All Frameworks  Object Hierarchy  This Framework  Indexes   

StrCutoutFeature (Object)

Represents a Cutout Feature.
CutoutType,Direction,Surface,DeirectionElement can be redefined.

Property Index

Contour
Returns or Sets the Contour Sketch for Current Cutout.
CutoutType
Returns or Sets the CutoutType for Current Cutout.
DirectionElement
Returns or Sets the Element used for defining for Current Cutout.
Direction
Returns or Sets the Direction Vector for Current Cutout.
ReferenceSurface
Returns or Sets the Reference Surface used for defining for Current Cutout.

Method Index

GetObject
Retrieves the Structure object on which the cutout is applied on.

Properties


o Property Contour() As
Returns or Sets the Contour Sketch for Current Cutout.
Example:
 Dim NewContour As Reference
 Set NewContour = rootProduct.CreateReferenceFromName("Product1/New/!Sketch.2")
 ExistingCutout.Contour =NewContour
 
o Property CutoutType() As
Returns or Sets the CutoutType for Current Cutout.
Example:
 Dim Type As String
 Type = Cutout1.CutoutType
 
o Property DirectionElement() As
Returns or Sets the Element used for defining for Current Cutout.If we are in CATStrBeforeForming mode, it gives NULL.
Example:
 Dim DirOfCutOut As Reference
 Set DirOfCutOut = Cutout2.DirectionElement
 
o Property Direction() As
Returns or Sets the Direction Vector for Current Cutout.If we are in CATStrBeforeForming mode, it gives NULL.
Example:
 Dim GetDir(3)
 GetDir(3) = Cutoutctr.Direction
 Dim x, y, z As Double
 x = GetDir(0)
 y = GetDir(1)
 z = GetDir(2)
 'For Setting Direction
 Dim Setdir(3) 
 Setdir(0) = 0.5
 Setdir(1) = 0.5
 Setdir(2) = 0.5
 Cutout1.Direction =Setdir
 
o Property ReferenceSurface() As
Returns or Sets the Reference Surface used for defining for Current Cutout.
Example:
 Dim SurForCutout As Reference
 Set SurForCutout = Cutout2.ReferenceSurface
 

Methods


o Func GetObject() As
Retrieves the Structure object on which the cutout is applied on.
Parameters:
oObject
[out] Product
Returns:
S_OK if everything ran ok.
Example
:
This example gives the product on which cutout is applied.
 Dim Prod As Product
 Set Prod = Cutout1.GetObject
 

Copyright © 2003, Dassault Systèmes. All rights reserved.