pycatia.structure_interfaces.str_cutout_feature

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357

Warning

The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.

class pycatia.structure_interfaces.str_cutout_feature.StrCutoutFeature(com_object)

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
StrCutoutFeature

Represents a Cutout Feature.
CutoutType,Direction,Surface,DeirectionElement can be
redefined.
property contour: Reference

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property Contour() As Reference

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
Return type:

Reference

property cutout_type: str

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property CutoutType() As CATBSTR

Returns or Sets the CutoutType for Current Cutout.

Example:



Dim Type As String
Type = Cutout1.CutoutType
Return type:

str

property direction: tuple

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property Direction() As CATSafeArrayVariant

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
Return type:

tuple

property direction_element: Reference

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property DirectionElement() As Reference

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
Return type:

Reference

get_object() Product

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
o Func GetObject() As Product

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 © 1999-2011, Dassault Systèmes. All rights
reserved.
Return type:

Product

property reference_surface: Reference

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property ReferenceSurface() As Reference

Returns or Sets the Reference Surface used for defining for Current
Cutout.

Example:



Dim SurForCutout As Reference
Set SurForCutout = Cutout2.ReferenceSurface
Return type:

Reference