mec_mod_interfaces

axis_system

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.axis_system.AxisSystem(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
AxisSystem

The object Axis System A axis system has got one origin point and three
orthogonal axes, crossing at the origin point.
property axis_rotation_angle

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AxisRotationAngle() As Angle (Read Only)

Returns the rotation angle of an axis system. Succeeds only if the axis
system is defined by a rotation around an axis, wich means that its type is
catAxisSystemAxisRotation.
Returns

Angle

property axis_rotation_reference

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AxisRotationReference() As Reference

Returns the reference for the axis rotation. Succeeds only if the axis
system is defined by a rotation around an axis, wich means that its type is
catAxisSystemAxisRotation.
Returns

Reference

get_euler_angles(o_first_angle=None, o_second_angle=None, third_angle=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetEulerAngles(Angle oFirstAngle,
Angle oSecondAngle,
Angle ThirdAngle)

Returns the Euler Angles of an axis system. Succeeds only if the axis
system is defined by Euler angles, wich means its type is
catAxisSystemEulerAngles.
Parameters
  • o_first_angle (Angle) –

  • o_second_angle (Angle) –

  • third_angle (Angle) –

Returns

None

get_origin(o_origin=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetOrigin(CATSafeArrayVariant oOrigin)

Returns the coordinates X,Y,Z of the origin point of the axis
system.

Parameters:

oOrigin
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the origin point of the axis system.


Example:
The following example retrieves in originCoord the coordinates of the
origin point of the axisSystem axis system:

Dim originCoord(2)
axisSystem.GetOrigin originCoord
Parameters

o_origin (tuple) –

Returns

None

get_vectors(o_vector_x=None, o_vector_y=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetVectors(CATSafeArrayVariant oVectorX,
CATSafeArrayVariant oVectorY)

Returns the coordinates X,Y,Z of the axes X and Y of the axis
system.

Parameters:

oVectorX
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the X axis vector of the axis system.

oVectorY
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the Y axis vector of the axis system.


Example:
The following example retrieves in vectorXCoord and vectorYCoord the
coordinates of the vectors of the axisSystem axis
system:

Dim vectorXCoord(2)
Dim vectorYCoord(2)
axisSystem.GetVectors vectorXCoord, vectorYCoord
Parameters
  • o_vector_x (tuple) –

  • o_vector_y (tuple) –

Returns

None

get_x_axis(o_x_axis=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetXAxis(CATSafeArrayVariant oXAxis)

Returns the coordinates X,Y,Z of the X axis of the axis
system.

Parameters:

oXAxis
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the X axis of the axis system.


Example:
The following example retrieves in XAxisCoord the coordinates of the X
axis of the axisSystem axis system:

Dim XAxisCoord(2)
axisSystem.GetXAxis XAxisCoord
Parameters

o_x_axis (tuple) –

Returns

None

get_y_axis(o_y_axis=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetYAxis(CATSafeArrayVariant oYAxis)

Returns the coordinates X,Y,Z of the Y axis of the axis
system.

Parameters:

oYAxis
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the Y axis of the axis system.


Example:
The following example retrieves in YAxisCoord the coordinates of the Y
axis of the axisSystem axis system:

Dim YAxisCoord(2)
axisSystem.GetYAxis XAxisCoord
Parameters

o_y_axis (tuple) –

Returns

None

get_z_axis(o_z_axis=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetZAxis(CATSafeArrayVariant oZAxis)

Returns the coordinates X,Y,Z of the Z axis of the axis
system.

Parameters:

oZAxis
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the Z axis of the axis system.


Example:
The following example retrieves in ZAxisCoord the coordinates of the Z
axis of the axisSystem axis system:

Dim ZAxisCoord(2)
axisSystem.GetZAxis ZAxisCoord
Parameters

o_z_axis (tuple) –

Returns

None

property is_current

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property IsCurrent() As boolean

Returns True if the axis system is the current one, else returns False.
Sets the axis system as the current one or not.

Example:
The following example returns in isCurrent True if the axis system
axisSystem is the current one :

isCurrent = axisSystem.IsCurrent

The following example sets the axis system axisSystem as the current
one :

axisSystem.IsCurrent = 1

The following example sets the axis system axisSystem as not the
current one :

axisSystem.IsCurrent = 0
Returns

bool

property origin_point

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OriginPoint() As Reference

Returns or sets the geometric point which defines the origin of the axis
system.
OriginPoint is and must be a reference on a geometric 3D
point.

Example:
The following example sets the point Point.1 of the Geometrical Set
Geometrical Set.1 as the origin point of the axis system
AxisSystem0:

Dim HybridBody4 As AnyObject
Set HybridBody4 = Body1.HybridBodies.Item ( “Geometrical Set.1” )
Dim HybridShapePointCoord5 As AnyObject
Set HybridShapePointCoord5 = HybridBody4.HybridShapes.Item ( “Point.1” )
Dim Reference6 As Reference
Set Reference6 = CATIA.ActiveDocument.Part.CreateReferenceFromGeometry ( HybridShapePointCoord5 )
AxisSystem0.OriginPoint = Reference6
Returns

Reference

property origin_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OriginType() As CATAxisSystemOriginType

Returns or sets the way the origin point is defined.
The origin point can be not specified, or be defined by coordinates or by a
geometric point.
CATAxisSystemOriginType is the enumeration which describes how the origin
point is defined :
If OriginType=0, the origin point is defined by a geometric point. If no
point si selected, the origin will be automatically put at the intersection of
the lines or planes defining the axes.
If OriginType=1, the origin is defined by three coordinates x,y,z. Then,
the origin will allways stays at the position defined by the
coordinates.

Example:
The following example prints the origin type :

Catia.SystemService.Print ” OriginType = ” & axisSystem.OriginType

The following example sets the origin type to 1 :

axisSystem.OriginType = 1
Returns

enum cat_axis_system_origin_type

put_origin(i_origin=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutOrigin(CATSafeArrayVariant iOrigin)

Defines the coordinates X,Y,Z of the origin point of the axis
system.

Parameters:

iOrigin
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the origin point of the axis system.


Example:
The following example puts in originCoord the new coordinates of the
origin point of the axisSystem axis system:

Dim originCoord(2)
originCoord ( 0 ) = 100.000000
originCoord ( 1 ) = 200.000000
originCoord ( 2 ) = 10.000000
axisSystem.PutOrigin originCoord
Parameters

i_origin (tuple) –

Returns

None

put_vectors(i_vector_x=None, i_vector_y=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutVectors(CATSafeArrayVariant iVectorX,
CATSafeArrayVariant iVectorY)

Defines the coordinates X,Y,Z of the axes X and Y of the axis
system.

Parameters:

iVectorX
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the X axis vector of the axis system.

iVectorY
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the Y axis vector of the axis system.


Example:
The following example modifies in vectorXCoord and vectorYCoord the
coordinates of the vectors of the axisSystem axis
system:

Dim vectorXCoord(2)
vectorYCoord ( 0 ) = 1.000000
vectorYCoord ( 1 ) = -1.000000
vectorYCoord ( 2 ) = 0.000000
Dim vectorYCoord(2)
vectorYCoord ( 0 ) = 0.000000
vectorYCoord ( 1 ) = 0.000000
vectorYCoord ( 2 ) = 1.000000
axisSystem.PutVectors vectorXCoord, vectorYCoord
Parameters
  • i_vector_x (tuple) –

  • i_vector_y (tuple) –

Returns

None

put_x_axis(i_x_axis=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutXAxis(CATSafeArrayVariant iXAxis)

Defines the coordinates X,Y,Z of the X axis of the axis
system.

Parameters:

iXAxis
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the X axis of the axis system.


Example:
The following example puts in XAxisCoord the new coordinates of the X
axis of the axisSystem axis system:

Dim XAxis(2)
XAxis ( 0 ) = 100.000000
XAxis ( 1 ) = 200.000000
XAxis ( 2 ) = 10.000000
axisSystem.PutXAxis XAxis
Parameters

i_x_axis (tuple) –

Returns

None

put_y_axis(i_y_axis=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutYAxis(CATSafeArrayVariant iYAxis)

Defines the coordinates X,Y,Z of the Y axis of the axis
system.

Parameters:

iYAxis
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the Y axis of the axis system.


Example:
The following example puts in XAxisCoord the new coordinates of the Y
axis of the axisSystem axis system:

Dim YAxis(2)
YAxis ( 0 ) = 100.000000
YAxis ( 1 ) = 200.000000
YAxis ( 2 ) = 10.000000
axisSystem.PutYAxis YAxis
Parameters

i_y_axis (tuple) –

Returns

None

put_z_axis(i_z_axis=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutZAxis(CATSafeArrayVariant iZAxis)

Defines the coordinates X,Y,Z of the Z axis of the axis
system.

Parameters:

iZAxis
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the Z axis of the axis system.


Example:
The following example puts in ZAxisCoord the new coordinates of the Z
axis of the axisSystem axis system:

Dim ZAxis(2)
ZAxis ( 0 ) = 100.000000
ZAxis ( 1 ) = 200.000000
ZAxis ( 2 ) = 10.000000
axisSystem.PutZAxis ZAxis
Parameters

i_z_axis (tuple) –

Returns

None

property type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Type() As CATAxisSystemMainType

Returns or sets the type of the axis system. Sets the axis system
type.

Example:
The following example returns in type1 the type of the axis system
axisSystem1:

type1 = axisSystem1.Type

The following example sets the type of the axis system axisSystem1 as
standard:

axisSystem1.Type = 0

The following example sets the type of the axis system axisSystem1 as
axis rotation:

axisSystem1.Type = 1

The following example sets the type of the axis system axisSystem1 as datum
(explicit):

axisSystem1.Type = 3
Returns

enum cat_axis_system_main_type

property x_axis_direction

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property XAxisDirection() As Reference

Reads or sets the geometric point, line or plane which defines the
direction of the X axis.
AxisDirection is and must be a reference on a 3D point or 3D line or
plane.

Example:
The following example sets the point Point.1 of the Geometrical Set
Geometrical Set.1 as the direction of the X axis of the axis system
AxisSystem0:

Dim HybridBody4 As AnyObject
Set HybridBody4 = Body1.HybridBodies.Item ( “Geometrical Set.1” )
Dim HybridShapePointCoord5 As AnyObject
Set HybridShapePointCoord5 = HybridBody4.HybridShapes.Item ( “Point.1” )
Dim Reference6 As Reference
Set Reference6 = CATIA.ActiveDocument.Part.CreateReferenceFromGeometry ( HybridShapePointCoord5 )
AxisSystem0.XAxisDirection = Reference6
Returns

Reference

property x_axis_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property XAxisType() As CATAxisSystemAxisType

Reads or sets the way the X axis is specified.
An axis X,Y, or Z of the axis system can be defined by a geometric point,
line or plane, or by coordinates.
AxisType = 0 : The axis is defined by a geometric point, line or plane and with the same direction.
AxisType = 1 : The axis direction is defined by the three coordinates x,y,z, of a vector, to which the axis will allways stay parallel.
AxisType = 2 : the axis is defined by a geometric point, line or plane and with the opposite direction. Notice : If the X axis is neither defined by coordinates nor by a point,line or plane, the axis will be automatically computed in order to build an orthogonal axis sytem with the other specified axes.

Example:
The following example prints the X axis type :

Catia.SystemService.Print ” XAxisType = ” & axisSystem.XAxisType

The following example sets the X axis type to 1 :

axisSystem.XAxisType = 1
Returns

enum cat_axis_system_axis_type

property y_axis_direction

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property YAxisDirection() As Reference

Reads or sets the geometric point, line or plane which defines the
direction of the Y axis.
AxisDirection is and must be a reference on a 3D point or 3D line or
plane.

Example:
The following example sets the point Point.1 of the Geometrical Set
Geometrical Set.1 as the direction of the Y axis of the axis system
AxisSystem0:

Dim HybridBody4 As AnyObject
Set HybridBody4 = Body1.HybridBodies.Item ( “Geometrical Set.1” )
Dim HybridShapePointCoord5 As AnyObject
Set HybridShapePointCoord5 = HybridBody4.HybridShapes.Item ( “Point.1” )
Dim Reference6 As Reference
Set Reference6 = CATIA.ActiveDocument.Part.CreateReferenceFromGeometry ( HybridShapePointCoord5 )
AxisSystem0.YAxisDirection = Reference6
Returns

Reference

property y_axis_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property YAxisType() As CATAxisSystemAxisType

Reads or sets the way the Y axis is specified.
An axis X,Y, or Z of the axis system can be defined by a geometric point,
line or plane, or by coordinates.
AxisType = 0 : The axis is defined by a geometric point, line or plane and with the same direction.
AxisType = 1 : The axis direction is defined by the three coordinates x,y,z, of a vector, to which the axis will allways stay parallel.
AxisType = 2 : the axis is defined by a geometric point, line or plane and with the opposite direction. Notice : If the Y axis is neither defined by coordinates nor by a point,line or plane, the axis will be automatically computed in order to build an orthogonal axis sytem with the other specified axes.

Example:
The following example prints the Y axis type :

Catia.SystemService.Print ” YAxisType = ” & axisSystem.YAxisType

The following example sets the Y axis type to 1 :

axisSystem.YAxisType = 1
Returns

enum cat_axis_system_axis_type

property z_axis_direction

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ZAxisDirection() As Reference

Reads or sets the geometric point, line or plane which defines the
direction of the Z axis.
AxisDirection is and must be a reference on a 3D point or 3D line or
plane.

Example:
The following example sets the point Point.1 of the Geometrical Set
Geometrical Set.1 as the direction of the Z axis of the axis system
AxisSystem0:

Dim HybridBody4 As AnyObject
Set HybridBody4 = Body1.HybridBodies.Item ( “Geometrical Set.1” )
Dim HybridShapePointCoord5 As AnyObject
Set HybridShapePointCoord5 = HybridBody4.HybridShapes.Item ( “Point.1” )
Dim Reference6 As Reference
Set Reference6 = CATIA.ActiveDocument.Part.CreateReferenceFromGeometry ( HybridShapePointCoord5 )
AxisSystem0.ZAxisDirection = Reference6
Returns

Reference

property z_axis_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ZAxisType() As CATAxisSystemAxisType

Reads or sets the way the Z axis is specified.
An axis X,Y, or Z of the axis system can be defined by a geometric point,
line or plane, or by coordinates.
AxisType = 0 : The axis is defined by a geometric point, line or plane and with the same direction.
AxisType = 1 : The axis direction is defined by the three coordinates x,y,z, of a vector, to which the axis will allways stay parallel.
AxisType = 2 : the axis is defined by a geometric point, line or plane and with the opposite direction. Notice : If the Z axis is neither defined by coordinates nor by a point,line or plane, the axis will be automatically computed in order to build an orthogonal axis sytem with the other specified axes.

Example:
The following example prints the Z axis type :

Catia.SystemService.Print ” ZAxisType = ” & axisSystem.ZAxisType

The following example sets the Z axis type to 1 :

axisSystem.ZAxisType = 1
Returns

enum cat_axis_system_axis_type

axis_systems

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.axis_systems.AxisSystems(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
AxisSystems

A collection of all the AxisSystem objects contained in the
part.
add()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Add() As AxisSystem

Creates a new AxisSystem and adds it to the AxisSystems
collection.

Returns:
The created AxisSystem
Example:
The following example creates a AxisSystem names NewAxisSystem in the
AxisSystem collection of the rootPart part in the partDoc part
document.

Set rootPart = partDoc.Part
Set NewAxisSystem = rootPart.AxisSystems.Add()
Returns

AxisSystem

item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As AxisSystem

Returns an Axis System using its index or its name from the AxisSystems
collection.

Parameters:

iIndex
The index or the name of the AxisSystem to retrieve from the
collection of AxisSystems. As a numerics, this index is the rank of the
AxisSystem in the collection. The index of the first AxisSystem in the
collection is 1, and the index of the last AxisSystem is Count. As a string, it
is the name you assigned to the AxisSystem using the


AnyObject.Name property.
Returns:
The retrieved AxisSystem
Example:
This example retrieves in ThisAxisSystem the fifth AxisSystem in the
collection and in ThatAxisSystem the AxisSystem named MyAxisSystem in the
AxisSystem collection of the partDoc part document.

Set AxisSystemColl = partDoc.Part.AxisSystems
Set ThisAxisSystem = AxisSystemColl.Item(5)
Set ThatAxisSystem = AxisSystemColl.Item(“MyAxisSystem”)
Parameters

i_index (CATVariant) –

Returns

AxisSystem

bi_dim_feat_edge

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.bi_dim_feat_edge.BiDimFeatEdge(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
MecModInterfaces.Edge
BiDimFeatEdge

1-D boundary belonging to a feature whose topological result is two
dimensional.
Role: This Boundary object may be, for example, the edge of a surface obtained
through the extrusion of a spline.
You will create a BiDimFeatEdge object using the Shapes.GetBoundary ,
HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2
method. Then, you pass it to the operator (such as
HybridShapeFactory.AddNewPointOnCurveFromDistance ).
The lifetime of a BiDimFeatEdge object is limited, see
Boundary.

Example:
This example asks the end user to select an edge, and creates a point on
this edge. Here, both TriDimFeatEdge and BiDimFeatEdge objects are proposed to
the user.

Dim InputObjectType(1)
Set Document = CATIA.ActiveDocument
Set Selection = Document.Selection
Set HybridBodies = Document.Part.HybridBodies
Set HybridBody = HybridBodies.Item(“Geometrical Set.1”)
‘We propose to the user that he select an edge
InputObjectType(0)=”TriDimFeatEdge”
InputObjectType(1)=”BiDimFeatEdge”
Status=Selection.SelectElement2(InputObjectType,”Select an
edge”,true)
if (Status = “cancel”) then Exit Sub
Set Curve = Selection.Item(1).Value
Set HybridShapePointOnCurve = HybridShapeFactory.AddNewPointOnCurveFromDistance(Curve,18.0,False)
HybridBody.AppendHybridShape HybridShapePointOnCurve
Document.Part.InWorkObject = HybridShapePointOnCurve
Document.Part.Update


Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

bodies

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.bodies.Bodies(collection_com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
Bodies

A collection of all the Body objects contained in the part.
add()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Add() As Body

Creates a new body and adds it to the Bodies collection. This body becomes
the current one

Returns:
The created body
Example:
The following example creates a body names NewBody in the body
collection of the rootPart part in the partDoc part document. NewBody becomes
the current body in partDoc.

Set rootPart = partDoc.Part
Set NewBody = rootPart.Bodies.Add()
Returns

Body

item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As Body

Returns a body using its index or its name from the Bodies
collection.

Parameters:

iIndex
The index or the name of the body to retrieve from the collection
of bodies. As a numerics, this index is the rank of the body in the collection.
The index of the first body in the collection is 1, and the index of the last
body is Count. As a string, it is the name you assigned to the body using the


AnyObject.Name property.
Returns:
The retrieved body
Example:
This example retrieves in ThisBody the fifth body in the collection and
in ThatBody the body named MyBody in the body collection of the partDoc part
document.

Set BodyColl = partDoc.Part.Bodies
Set ThisBody = BodyColl.Item(5)
Set ThatBody = BodyColl.Item(“MyBody”)
Parameters

i_index (CATVariant) –

Returns

Body

body

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.body.Body(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Body

The object that manages a sequence of shapes, a set of sketches, a set of
hybrid bodies, a set of ordered geometrical sets and a set of hybrid
shapes.

It belongs to the Bodies collection of a Part or HybridBody
object.
property hybrid_bodies

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property HybridBodies() As HybridBodies (Read Only)

Returns the body’s HybridBodies collection.

Example:
The following example returns in hybridBodyColl the collection of
hybrid bodies of the main body of partDoc part
document:

Dim body As Body
Set body = partDoc.Part.Bodies.MainBody
Set hybridBodyColl = body.HybridBodies
Returns

HybridBodies

property hybrid_shapes

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property HybridShapes() As HybridShapes (Read Only)

Returns the list of hybrid shapes included in the body.

Returns:
oHybridShapes The list of hybrid shapes in the body (@see
CATIAHybridShapes
for more information).

Example:
The following example returns in HybridShapes1 the list
of
hybrid shapes in the body Body1:

Dim HybridShapes1 As HybridShapes
Set HybridShapes1 = Body1.HybridShapes
Returns

HybridShapes

property in_boolean_operation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property InBooleanOperation() As boolean (Read Only)

Returns True if the body is involved in a boolean operation, else returns
False.

Example:
The following example returns in operated True if the body body1belongs
to a boolean operation.

operated = body1.InBooleanOperation
Returns

bool

insert_hybrid_shape(i_hybrid_shape)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InsertHybridShape(HybridShape iHybridShape)

Insert a hybrid shape to the body.

Parameters:

iHybriShape
The hybrid shape to insert.

Example:
This example inserts the hybrid shape HybridShape1 to the body
Body1:

Body1.InsertHybridShape (HybridShape1)
Parameters

i_hybrid_shape (HybridShape) –

Returns

None

property ordered_geometrical_sets

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OrderedGeometricalSets() As OrderedGeometricalSets (Read
Only)

Returns the body’s OrderedGeometricalSets collection.

ometricalSetColl = Body1.OrderedGeometricalSets Example:
The following example returns in OrderedGeometricalSetColl the
collection of ordered geometrical set of the body Body1
:

Set OrderedGe
Returns

OrderedGeometricalSets

property shapes

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Shapes() As Shapes (Read Only)

Returns the body’s Shapes collection. These shapes make up the sequence of
shapes that will produce an intermediate result for the part, or the final
result in the case of the main body.

Example:
The following example returns in shapColl the collection of shapes
managed by the main body of the partDoc part document:

Dim body As Body
Set body = partDoc.Part.Bodies.MainBody
Set shapColl = body.Shapes
Returns

Shapes

property sketches

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Sketches() As Sketches (Read Only)

Returns the body’s Sketches collection. These sketches are those inside the
body at all levels.

Example:
The following example returns in skColl the collection of sketches of
the main body of partDoc part document:

Dim body As Body
Set body = partDoc.Part.Bodies.MainBody
Set skColl = body.Sketches
Returns

Sketches

boundary

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.boundary.Boundary(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
Boundary

Topological cell, such as a face, an edge or a vertex.
Role: The Boundary objects are basic topological objects, such as the edge of a
Pad. Some of them posess a geometrical feature (planar face, rectilinear
edge).
You will create a Boundary object (such as the TriDimFeatEdge object, which is
derived, indirectly, from the Boundary object) using the Shapes.GetBoundary ,
HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2
method. Then, you pass it to the operator (such as
ShapeFactory.AddNewEdgeFilletWithConstantRadius ). Note that, regarding V4
sub-elements, once the data of a CATIA Version 4 Model has been copied to a
.CATPart, the sub-elements of the resulting .CATPart are supported by the
Boundary object.
The lifetime of a Boundary object is limited. In particular, after having call
Part.Update , the Boundary objects are usually no more valid.
See also:

Face , PlanarFace , CylindricalFace
Edge , TriDimFeatEdge , RectilinearTriDimFeatEdge , BiDimFeatEdge ,
RectilinearBiDimFeatEdge , MonoDimFeatEdge ,
RectilinearMonoDimFeatEdge
Vertex , TriDimFeatVertexOrBiDimFeatVertex ,
NotWireBoundaryMonoDimFeatVertex,
ZeroDimFeatVertexOrWireBoundaryMonoDimFeatVertex

Note: Boundary objects cannot be selected into the specification
tree.

Note:For a Boundary object, the object returned by the AnyObject.Parent
property is the master shape. For example, if we have:

Pad.2
!
!
+ V
! +—+
! / / !
+– Pad.1 / / !
! / / one +——+
! +—+ / /! <— Pad.1
! ! ! / / +
+– Pad.2 ! !/ / /
! +——+ /
! ! /
+———-+


then, for the PlanarFace number “one”, the AnyObject.Parent property returns
the Pad.2 automation object (see Pad ).

Example:
This example asks the end user to select an edge (using the TriDimFeatEdge
object), and creates an edge fillet on this edge:

Dim InputObjectType(0)
Set Document = CATIA.ActiveDocument
Set Selection = Document.Selection
‘We propose to the user that he select an edge
InputObjectType(0)=”TriDimFeatEdge”
Status=Selection.SelectElement2(InputObjectType,”Select an
edge”,true)
if (Status = “cancel”) then Exit Sub
Set EdgeFillet = ShapeFactory.AddNewEdgeFilletWithConstantRadius(Selection.Item(1).Value,1,5.0)
EdgeFillet.EdgePropagation = 1
Document.Part.Update


Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

constraint

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.constraint.Constraint(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Constraint

A geometric constraint set for geometric elements of a part, a sketch, or a
product.
activate()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Activate()

Unsuppresses a constraint for the update process. An activated constraint
is again taken into account for the calculation of the part or product.

Example:
The following example es the pad1 pad:
Example:
The following example activates the tangencyCst constraint
:

tangencyCst.Activate
Returns

None

property angle_sector

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AngleSector() As CatConstraintAngleSector

Returns or sets the constraint angle (or angular) sector. The geometric elements of an angle
constraint (e.g. : 2 lines or 2 planes) divide the sketch or the space in 4 regions which are
called angle or angular sectors, numbered from 0 to 3. 1 / 0 —/— 2/ 3 By default, the
constraint is created in the sector number 0. One angle sector corresponds exactly to particular
values of the Dimension.Value, the Side and the Orientation. When changing the angle sector, the
Dimension.Value, Side and Orientation are also modified.

Parameters:

AngleSector=0
The default sector of a constraint.
Dimension.Value
= angle Orientation
= catCstOrientSame Side
= catCstSidePositive
AngleSector=1
Dimension.Value
= angle-180 if angle>180 abs(angle)+180 otherwise Orientation
= catCstOrientOpposite Side
= catCstSidePositive
AngleSector=2
Dimension.Value
= abs(540-angle) if angle>180 180-fabs(angle) otherwise Orientation
= catCstOrientOpposite Side
= catCstSideNegative
AngleSector=3
Dimension.Value
= 360-abs(angle) Orientation
= catCstOrientSame Side
= catCstSideNegative

Example:
The following example retrieves in angleSector the angle sector
of the angleCst angle constraint and then changes the angle
sector

angleSector = angleCst.AngleSector
angleCst.AngleSector = 2
Returns

enum cat_constraint_angle_sector

deactivate()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Deactivate()

Suppresses the constraint from being updated. A deactivated constraint is
not taken into account for the calculation of the part or of the product.


Example:
The following example deactivates the tangencyCst constraint from being
updated:

tangencyCst.Deactivate
Returns

None

property dimension

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Dimension() As Dimension (Read Only)

Returns the constraint dimension. The dimension may be meaningless for some
types of constraints such as tangency constraints, or if the constraint is not
currently satisfied. Use the Status property to check whether the constraint is
satisfied.

Example:
The following example returns in cstDimension the dimension of the
firstCst constraint:

Set cstDimension = firstCst.Dimension
Returns

Dimension

property distance_config

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DistanceConfig() As CatConstraintDistConfig

Returns or sets the distance constraint configuration. Distance constraints
between lines and cylinders offer often more degrees of freedom to geometry
than acually desired. This property allows to limit these degrees of freedom
without having to redefine additional constraints. This property is useless for
constraints whose type is not distance.

Example:
The following example retrieves in distCstConfig the configuration of
the distCst distance constraint:

distCstConfig = distCst.DistanceConfig
Returns

enum cat_constraint_dist_config

property distance_direction

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DistanceDirection() As CatConstraintDistDirection

Returns or sets the distance constraint direction. This property is useless for constraints whose
type is not Distance (1). Distance constraints may be measured along a particular direction.
This property will be used if the direction is a reference axis : In 2D, 1 means the horizontal
axis, 2 the vertical axis. In 3D, 1 stands for the X axis, 2 for the Y axis, 3 for the Z axis.
0 means that no direction is specified and the distance is measured as usual.

Example:
The following example retrieves in distCstDirection the configuration
of the distCst distance constraint:

distCstConfig = distCst.DistanceDirection
Returns

enum cat_constraint_dist_direction

get_constraint_element(i_element_number=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetConstraintElement(long iElementNumber) As
Reference

Reads an element of a constraint.

Parameters:

iElementNumber
The number of the element of the constraint to be read. (1 for the first element,2 for
the second, 3 for the third). Notice it must not exceed the total number of elements of
the constraint. (eg : not allowed to read the third element of a tangency).
oCurrentElement
An element of the constraint.

Example:
The following example reads the first element of a
constraint

Dim reference1 As Reference
reference1=tangencyCst.GetConstraintElement( 1 )
Parameters

i_element_number (int) –

Returns

Reference

get_constraint_visu_location(o_anchor_point=None, o_anchor_vector=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetConstraintVisuLocation(CATSafeArrayVariant
oAnchorPoint,
CATSafeArrayVariant oAnchorVector)

Returns the constraint visualisation location. When displayed on screen,
the constraint is visualized as a dimension positioned close to the constrained
geometric element(s). This method retrieves the data used to position this
representation within the 3D space.

Parameters:

oAnchorPoint
A Safe Array made up of 3 doubles: X, Y, Z, representing the
coordinates in model space of the point where the constraint value is
displayed.
oAnchorVector
A Safe Array made up of 3 doubles : X, Y, Z, representing the vector normal to the plane
onto which the constraint value is displayed.

Example:
The following example retrieves in anchorPt the anchor point of the
tangencyCst tangency constraint:

Dim anchorPoint(2)
Dim anchorVector(2)
tangencyCst.ConstraintVisuLocation
anchorPoint,vectorPoint
Parameters
  • o_anchor_point (tuple) –

  • o_anchor_vector (tuple) –

Returns

None

is_inactive()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func IsInactive() As boolean

Indicates whether a constraint is suppressed from the update process. A
suppressed constraint is not taken into account for the calculation of part or
the product. The method returns True if the constraint is not active, False if
the constraint is active.
Example:
The following example returns in isInactive whether the tangencyCst
constraint is suppressed from the update process:

Set isInactive = tangencyCst.IsInactive
Returns

bool

property mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Mode() As CatConstraintMode

Returns or sets the constraint driving mode. For constraint types
supporting the concept of value, such as distance constraints, the driving mode
tells whether the constraint value actually drives the geometry position, or,
conversely, is driven by it.

Example:
The following example retrieves in currentMode the driving mode for the
distCst distance constraint:

currentMode = distCst.Mode
Returns

enum cat_constraint_mode

property orientation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Orientation() As CatConstraintOrientation

Returns or sets the constraint orientation. This is used for constraints
that involve two geometric elements and specifies the orientation for the
second geometric element with regard to the first one, when several possible
orientations are all satisfying the constraint.

Example:
The following example retrieves the in distCstOrient the orientation of
the distCst distance constraint:

distCstOrient = distCst.Orientation
Returns

enum cat_constraint_orientation

property reference_axis

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ReferenceAxis() As CatConstraintRefAxis

Returns or sets the constraint reference axis. AxisParallel or
AxisPerpendicular constraint types define which axis they relate to through
this property, which makes no sense for constraints of another
type.

Example:
The following example retrieves in refAxis the reference axis for the
axisPerpCst AxisPerpendicular constraint:

refAxis = axisPerpCst.ReferenceAxis
Returns

enum cat_constraint_ref_axis

property reference_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ReferenceType() As CatConstraintRefType

Returns or sets the constraint reference type. This property is used only
for Reference constraints in the Assembly context.

Example:
The following example applies to the reference constraint refCst2 the
reference type of the constraint refCst1.

refCst2.ReferenceType = refCst1.ReferenceType
Returns

enum cat_constraint_ref_type

set_constraint_element(i_element_number=None, i_new_element=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetConstraintElement(long iElementNumber,
Reference iNewElement)

Replaces an element of a constraint.

Parameters:

iElementNumber
The number of the element of the constraint to replace. (1 for the
first element,2 for the second, 3 for the third).
iNewElement
A new element of the constraint.

Example:
The following example changes the second element of a
constraint

Dim reference1 As Reference
tangencyCst.SetConstraintElement ( 2, reference1)
Parameters
  • i_element_number (int) –

  • i_new_element (Reference) –

Returns

None

set_constraint_visu_location(i_new_x=None, i_new_y=None, i_new_z=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetConstraintVisuLocation(double iNewX,
double iNewY,
double iNewZ)

Sets a new location for the constraint visualization.

Parameters:

iNewX
The new value for the constraint anchor point X coordinate

iNewY
The new value for the constraint anchor point Y coordinate

iNewZ
The new value for the constraint anchor point Z coordinate


Example:
The following example changes the anchor point coordinates to
10,0,0

tangencyCst.SetConstraintVisuLocation 10,0,0
Parameters
  • i_new_x (float) –

  • i_new_y (float) –

  • i_new_z (float) –

Returns

None

property side

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Side() As CatConstraintSide

Returns or sets the constraint side. Some constraint types need to
relatively position the constrained geometries, when several possible
configurations are all satisfying the constraint.

Example:
The following example retrieves in distCstSide the side of the distCst
distance constraint:

distCstSide = distCst.Side
Returns

enum cat_constraint_side

property status

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Status() As CatConstraintStatus (Read Only)

Returns the constraint status. The constraint status is a diagnosis on
whether the constraint is satisfied.

Example:
The following example retrieves the status of the distCst distance
constraint.

distCstSts = distCst.Status
Returns

enum cat_constraint_status

property type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Type() As CatConstraintType (Read Only)

Returns the constraint type.

Example:
The following example returns in cstType the type of the firstCst
constraint:

cstType = firstCst.Type
Returns

enum cat_constraint_type

constraints

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.constraints.Constraints(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
Constraints

A collection of all geometric constraints set on a part, a sketch, or a
product.
A constraint collection is created with default values for its properties (such
as value, orientation, etc.). Use the constraint properties edition services to
set them to appropriate values after constraint creation.

See also:
Constraint
add_bi_elt_cst(i_cst_type=None, i_first_elem=None, i_second_elem=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddBiEltCst(CatConstraintType iCstType,
Reference iFirstElem,
Reference iSecondElem) As Constraint

Creates a new constraint applying to two geometric elements and adds it to
the Constraints collection.

Parameters:

iCstType
The constraint type
iFirstElem
The first constrained geometric element
The following

Boundary object is supported: Boundary.
iSecondElem
The second constrained geometric element
The following Boundary object is supported: Boundary.

Example:
This example adds the NewCst tangency constraint in a sketch, between the
two circles c1 and c2 using the value 4 for
catCstTypeTangency.

Set newCst = skCstList.AddBiEltCst(4, c1, c2)
Parameters
  • i_cst_type (CatConstraintType) –

  • i_first_elem (Reference) –

  • i_second_elem (Reference) –

Returns

Constraint

add_mono_elt_cst(i_cst_type=None, i_elem=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddMonoEltCst(CatConstraintType iCstType,
Reference iElem) As Constraint

Creates a new constraint applying to a single geometric element and adds it
to the Constraints collection.

Parameters:

iCstType
The constraint type
iElem
The constrained geometric element
The following

Boundary object is supported: Boundary.

Example:
This example creates the reference constraint NewCst to a part, stating
that the P1 point should remain fixed with respect to the part’s origin
elements using the value 0 for catCstTypeReference, and adds it to the cstList
collection.

Set NewCst = cstList.AddMonoEltCst(0, P1)
Parameters
  • i_cst_type (CatConstraintType) –

  • i_elem (Reference) –

Returns

Constraint

add_tri_elt_cst(i_cst_type=None, i_first_elem=None, i_second_elem=None, i_third_elem=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddTriEltCst(CatConstraintType iCstType,
Reference iFirstElem,
Reference iSecondElem,
Reference iThirdElem) As Constraint

Creates a new constraint applying to three geometric elements and adds it
to the Constraints collection.

Parameters:

iCstType
The constraint type
iFirstElem
The first constrained geometric element
The following

Boundary object is supported: Boundary.
iSecondElem
The second constrained geometric element
The following Boundary object is supported: Boundary.
iThirdElem
The third constrained geometric element
The following Boundary object is supported: Boundary.

Example:
This example adds symCst symmetry constraint in a part, stating that the
cylinders cyl1 and cyl2 are symmetric with respect to the plane symPlane using
the value 15 for catCstTypeSymmetry.

Set symCst = prtCstList.AddTriEltCst(15, cyl1, cyl2, symPlane)
Parameters
Returns

Constraint

property broken_constraints_count

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property BrokenConstraintsCount() As long (Read Only)

Returns the number of broken constraints from the Constraints
collection.

Example:
The following example retrieves in BknCstNum the number of broken
constraints from the myListofConstraints collection of
constraints:

BknCstNum = myListofConstraints.BrokenConstraintsCount
Returns

int

item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As Constraint

Returns a constraint using its index or its name from the Constraints
collection.

Parameters:

iIndex
The index or the name of the constraint to retrieve frm the
collection of constraints. As a numerics, this index is the rank of the
constraint in the collection. The index of the first constraint in the
collection is 1, and the index of the last constraint is Count. As a string, it
is the name you assigned to the constraint using the


AnyObject.Name property.
Returns:
The retrieved constraint
Example:
This example retrieves in cst1 the first constraint in the collection
and in cst2 the constraint Constraint.2.

Set cst1 = cstList.Item(1)
Set cst2 = cstList.Item(“Constraint.2”)
Parameters

i_index (CATVariant) –

Returns

Constraint

remove(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Remove(CATVariant iIndex)

Removes a constraint from the Constraints collection.

Parameters:

iIndex
The index or the name of the constraint to remove from the
Constraints collection. As a numerics, this index is the rank of the constraint
in the collection. The index of the first constraint in the collection is 1,
and the index of the last constraint is Count. As a string, it is the name you
assigned to the constraint using the

AnyObject.Name property.

Example:
This example removes the last constraint in the
collection.

cstList.Remove(cstList.Count)
Parameters

i_index (CATVariant) –

Returns

None

property un_updated_constraints_count

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UnUpdatedConstraintsCount() As long (Read Only)

Returns the number of unupdated constraints from the Constraints
collection.

Example:
The following example retrieves in UnUpdCstNum the number of unupdated
constraints from the myListofConstraints collection of
constraints:

UnUpdCstNum = myListofConstraints.UnUpdatedConstraintsCount
Returns

int

cylindrical_face

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.cylindrical_face.CylindricalFace(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
MecModInterfaces.Face
CylindricalFace

2-D boundary with a cylindrical geometry.
Role: This Boundary object may be, for example, the lateral face of a
cylinder.
You will create a CylindricalFace object using the Shapes.GetBoundary ,
HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2
method. Then, you pass it to the operator (such as
ShapeFactory.AddNewCircPattern ).
The lifetime of a CylindricalFace object is limited, see
Boundary.

Example:
This example asks the end user to select a shape to pattern and a
cylindrical face, and creates a circular pattern of the shape. The cylindrical
face specifies the rotation axis.

Dim InputObjectType(0)
Set Document = CATIA.ActiveDocument
Set Selection = Document.Selection
‘We propose to the user that he select the shape to
pattern
InputObjectType(0)=”SketchBasedShape”
Status=Selection.SelectElement2(InputObjectType,”Select the shape to
pattern”,true)
if (Status = “cancel”) then Exit Sub
Set Shape = Selection.Item(1).Value
Selection.Clear
‘We propose to the user that he select the cylindrical
face
InputObjectType(0)=”CylindricalFace”
Status=Selection.SelectElement2(InputObjectType,”Select the cylindrical
face”,true)
if (Status = “cancel”) then Exit Sub
Set CylindricalFace = Selection.Item(1).Value
Set RotationCenter = Document.Part.CreateReferenceFromName(“”)
Set CircPattern = ShapeFactory.AddNewCircPattern(Shape,1,4,20.0,45.0,1,4,RotationCenter,CylindricalFace,True,0.0,True)
Document.Part.Update
get_direction(o_direction=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetDirection(CATSafeArrayVariant oDirection)

Returns the direction of the cylindrical face axis

Parameters:

oDirection[0]
The X Coordinate of the axis direction
oDirection[1]
The Y Coordinate of the axis direction
oDirection[2]
The Z Coordinate of the axis direction
Parameters

o_direction (tuple) –

Returns

None

get_origin(o_origin=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetOrigin(CATSafeArrayVariant oOrigin)

Returns the origin of the cylindrical face axis.

Parameters:

oOrigin[0]
The X Coordinate of the axis origin
oOrigin[1]
The Y Coordinate of the axis origin
oOrigin[2]
The Z Coordinate of the axis origin
Parameters

o_origin (tuple) –

Returns

None

edge

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.edge.Edge(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
Edge

1-D boundary.
Role: This Boundary object may be, for example, the edge of a
cylinder.
You will create an Edge object using the Shapes.GetBoundary ,
HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2
method. Then, you pass it to the operator (such as
HybridShapeFactory.AddNewPointTangent ).
The lifetime of an Edge object is limited, see Boundary.
See also:
TriDimFeatEdge , RectilinearTriDimFeatEdge , BiDimFeatEdge ,
RectilinearBiDimFeatEdge , MonoDimFeatEdge , RectilinearMonoDimFeatEdge
.

Example:
This example asks the end user to select a planar curve, whose plane is
parallel to the XY plane. Then, it creates a point on the tangent to the curve
in the X direction:

Dim InputObjectType(0)
Set Document = CATIA.ActiveDocument
Set Selection = Document.Selection
Set HybridBodies = Document.Part.HybridBodies
Set HybridBody = HybridBodies.Item(“Geometrical Set.1”)
‘We propose to the user that he select a planar curve whose plane is
parallel to the XY plane
InputObjectType(0)=”Edge”
Status=Selection.SelectElement2(InputObjectType,”Select a planar curve
whose plane is parallel to the XY plane”,true)
if (Status = “cancel”) then Exit Sub
Set PlanarCurve = Selection.Item(1).Value
Set HybridShapeDirection = HybridShapeFactory.AddNewDirectionByCoord(1.0,0.0,0.0)
Set HybridShapePointTangent = HybridShapeFactory.AddNewPointTangent(PlanarCurve,HybridShapeDirection)
HybridBody.AppendHybridShape HybridShapePointTangent
Document.Part.InWorkObject = HybridShapePointTangent
Document.Part.Update


Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

face

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.face.Face(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
Face

2-D boundary.
Role: This Boundary object may be, for example, the lateral face of
cylinder.
You will create a Face object using the Shapes.GetBoundary ,
HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2
method. Then, you pass it to the operator (such as
ShapeFactory.AddNewFaceFillet ).
The lifetime of a Face object is limited, see Boundary.
See also:
PlanarFace , CylindricalFace .

Example:
This example asks the end user to select two faces, and creates a face-face
fillet on these faces:

Dim InputObjectType(0)
Set Document = CATIA.ActiveDocument
Set Selection = Document.Selection
‘We propose to the user that he select the first face
InputObjectType(0)=”Face”
Status=Selection.SelectElement2(InputObjectType,”Select the first
face”,true)
if (Status = “cancel”) then Exit Sub
Set FirstFace = Selection.Item(1).Value
Selection.Clear
‘We propose to the user that he select the second face
InputObjectType(0)=”Face”
Status=Selection.SelectElement2(InputObjectType,”Select the second
face”,true)
if (Status = “cancel”) then Exit Sub
Set SecondFace = Selection.Item(1).Value
Set FaceFillet = ShapeFactory.AddNewFaceFillet(FirstFace,SecondFace,5.0)
Document.Part.Update


Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

factory

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.factory.Factory(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Factory

Abstract object gathering behaviours of all objects being a
factory.

Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

fix_together

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.fix_together.FixTogether(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
FixTogether

The object that manages a sequence of products or
fixTogethers.

It belongs to the FixTogether collection of a Product.
add_fix_together(i_fix_together=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddFixTogether(FixTogether iFixTogether)

Add a fixTogether to a FixTogether. The fixTogether is fixed together with
the products or fixTogethers already contained in the FixTogether.

Example:
The following example adds a FixTogether fixTogether in a FixTogether
myFixTogether.

myFixTogether.AddFixTogether(fixTogether)
Parameters

i_fix_together (FixTogether) –

Returns

None

add_product(i_product=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddProduct(Product iProduct)

Add a product to a FixTogether. The product is fixed together with the
products and fixTogethers already contained in the FixTogether.

Example:
The following example adds a Product myProduct in a
FixTogether.

myFixTogether.AddProduct(myProduct)
Parameters

i_product (Product) –

Returns

None

property fix_togethers_count

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FixTogethersCount() As long (Read Only)

Returns the number of FixTogether entities in the
FixTogether.

Example:
The following example retrieves in fixTogethersCount the number of
FixTogethers of the myFixTogether FixTogether :

fixTogethersCount = myFixTogether.FixTogethersCount
Returns

int

get_fix_together(i_index=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFixTogether(CATVariant iIndex) As FixTogether

Returns a FixTogether using its index or its name in the
FixTogether.

Parameters:

iIndex
The index or the name of the FixTogether to retrieve. As a
numerics, this index is the rank of the FixTogether in the FixTogethers of the
FixTogether. The index of the first FixTogether is 1, and the index of the last
FixTogether is FixTogethersCount. As a string, it is the name you assigned to
the FixTogether using the

AnyObject.Name property.
Returns:
The retrieved FixTogether
Example:
This example retrieves in thisFixTogether the fifth FixTogether and in
thatFixTogether the FixTogether named myFixTogether in the FixTogethers of the
FixTogether.

Dim thisFixTogether As FixTogether
Set thisFixTogether = myFixTogether.GetFixTogether(5)
Dim thatFixTogether As FixTogether
Set thatFixTogether = myFixTogether.GetFixTogether(“myFixTogether”)
Parameters

i_index (CATVariant) –

Returns

FixTogether

get_product(i_index=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetProduct(CATVariant iIndex) As Product

Returns a Product using its index or its name in the
FixTogether.

Parameters:

iIndex
The index or the name of the Product to retrieve. As a numerics,
this index is the rank of the Product in the products of the FixTogether. The
index of the first Product is 1, and the index of the last Product is
ProductsCount. As a string, it is the name you assigned to the Product using
the

AnyObject.Name property.
Returns:
The retrieved Product
Example:
This example retrieves in thisProduct the fifth Product and in
thatProduct the Product named myProduct in the products of the
FixTogether.

Dim thisProduct As Product
Set thisProduct = myFixTogether.GetProduct(5)
Dim thatProduct As Product
Set thatProduct = myFixTogether.GetProduct(“myProduct”)
Parameters

i_index (CATVariant) –

Returns

Product

property products_count

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ProductsCount() As long (Read Only)

Returns the number of products fixed together in the
FixTogether.

Example:
The following example retrieves in productsCount the number of products
of the myFixTogether FixTogether :

productsCount = myFixTogether.ProductsCount
Returns

int

remove_fix_together(i_index=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveFixTogether(CATVariant iIndex)

Removes a FixTogether from the FixTogether.

Parameters:

iIndex
The index or the name of the FixTogether to remove from the
FixTogether. As a numerics, this index is the rank of the FixTogether in the
FixTogethers of the FixTogether. The index of the first FixTogether is 1, and
the index of the last FixTogether is FixTogethersCount. As a string, it is the
name you assigned to the FixTogether using the

AnyObject.Name property.

Example:
This example removes the last FixTogether of the
FixTogether.

fixTogether.RemoveFixTogether(fixTogether.FixTogethersCount)
Parameters

i_index (CATVariant) –

Returns

None

remove_product(i_index=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveProduct(CATVariant iIndex)

Removes a Product from the FixTogether.

Parameters:

iIndex
The index or the name of the Product to remove from the
FixTogether. As a numerics, this index is the rank of the Product in the
products of the FixTogether. The index of the first Product is 1, and the index
of the last Product is ProductsCount. As a string, it is the name you assigned
to the FixTogether using the

AnyObject.Name property.

Example:
This example removes the last Product of the FixTogether.

fixTogether.RemoveProduct(fixTogether.ProductsCount)
Parameters

i_index (CATVariant) –

Returns

None

fix_togethers

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.fix_togethers.FixTogethers(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
FixTogethers

A collection of all the FixTogether objects contained in the
product.
add()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Add() As FixTogether

Creates a new FixTogether and adds it to the FixTogethers
collection.

Returns:
The created FixTogether
Example:
The following example creates a FixTogether newFixTogether in the
FixTogether collection.

Set newFixTogether = fixTogethers.Add
Returns

FixTogether

item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As FixTogether

Returns a FixTogether using its index or its name from the FixTogethers
collection.

Parameters:

iIndex
The index or the name of the FixTogether to retrieve from the
collection of FixTogether. As a numerics, this index is the rank of the
FixTogether in the collection. The index of the first FixTogether in the
collection is 1, and the index of the last FixTogether is Count. As a string,
it is the name you assigned to the FixTogether using the


AnyObject.Name property.
Returns:
The retrieved FixTogether
Example:
This example retrieves in thisFixTogether the fifth FixTogether in the
collection and in thatFixTogether the FixTogether named MyFixTogether in the
FixTogether collection of the product product.

Set fixTogetherColl = product.FixTogethers
Set thisFixTogether = fixTogetherColl.Item(5)
Set thatFixTogether = fixTogetherColl.Item(“MyFixTogether”)
Parameters

i_index (CATVariant) –

Returns

FixTogether

remove(i_index=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Remove(CATVariant iIndex)

Removes a FixTogether from the FixTogethers collection.

Parameters:

iIndex
The index or the name of the FixTogether to remove from the
FixTogethers collection. As a numerics, this index is the rank of the
FixTogether in the collection. The index of the first FixTogether in the
collection is 1, and the index of the last FixTogether is Count. As a string,
it is the name you assigned to the FixTogether using the


AnyObject.Name property.

Example:
This example removes the last FixTogether in the
collection.

fixTogetherColl.Remove(fixTogetherColl.Count)
Parameters

i_index (CATVariant) –

Returns

None

geometric_elements

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.geometric_elements.GeometricElements(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
GeometricElements

A collection of all geometric elements contained in a part or a
sketch.
Geometric elements are created with the 2D factory for the sketch and with the
3D factory for the part. Geometric elements thus created are then aggregated
either in the sketch or as part of the geometric element
collection.

See also:
Factory2D, HybridShapeFactory
item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As GeometricElement

Returns a geometric element using its index or its name from the
GeometricElements collection.

Parameters:

iIndex
The index or the name of the geometric element to retrieve from the
collection of geometric elements. As a numerics, this index is the rank of the
geometric element in the collection. The index of the first geometric element
in the collection is 1, and the index of the last geometric element is Count.
As a string, it is the name you assigned to the geometric element using the


AnyObject.Name property.
Returns:
The retrieved geometric element
Example:
This example retrieves the last item in the geometric element
collection.

Set lastCst = cstList.Item(cstList.Count)
Parameters

i_index (CATVariant) –

Returns

GeometricElement

hybrid_bodies

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.hybrid_bodies.HybridBodies(com_object, child_object=<class 'pycatia.mec_mod_interfaces.hybrid_body.HybridBody'>)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
HybridBodies

A collection of the HybridBody objects.
add()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Add() As HybridBody

Creates a new hybrid body and adds it to the HybridBodies collection. This
body becomes the current one

Returns:
The created body
Example:
The following example creates a body named newHybridBody in the hybrid
body collection of the rootPart part in the partDoc part document. NewPartBody
becomes the current body in partDoc.

Set NewPartBody = rootPart.Bodies.AddPartBody()
Returns

HybridBody

item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As HybridBody

Returns a body using its index or its name from the Bodies
collection.

Parameters:

iIndex
The index or the name of the hybrid body to retrieve from the
collection of hybrid bodies. As a numerics, this index is the rank of the
hybrid body in the collection. The index of the first hybrid body in the
collection is 1, and the index of the last hybrid body is Count. As a string,
it is the name you assigned to the hybrid body using the


AnyObject.Name property.
Returns:
The retrieved hybrid body
Example:
This example retrieves in ThisHybridBody the fifth hybrid body in the
collection and in ThatHybridBody the hybrid body named MyHybridBody in the
hybrid body collection of the partDoc part document.

Set hybridBodyColl = partDoc.Part.HybridBodies
Set ThisHybridBody = hybridBodyColl.Item(5)
Set ThatHybridBody = hybridBodyColl.Item(“MyHybridBody”)
Parameters

i_index (CATVariant) –

Returns

HybridBody

hybrid_body

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.hybrid_body.HybridBody(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
HybridBody

The object is a hybrid body.
The hybrid body manages a set of geometric elements, a set of hybrid shapes, a
set of bodies and a set of hybrid bodies.
It belongs to the HybridBodies collection of a Part or @ref CATIABody or
HybridBody object.
append_hybrid_shape(i_hybrid_shape=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AppendHybridShape(HybridShape iHybridShape)

Appends a hybrid shape to the hybrid body.

Parameters:

iHybriShape
The hybrid shape to append.

Example:
This example appends the hybrid shape hybridShape to the hybrid body
hybridBody:

hybridBody.AppendHybridShape (hybridShape)
Parameters

i_hybrid_shape (HybridShape) –

Returns

None

append_hybrid_shapes(shapes)
Parameters

shapes (list(HybridShape)) –

Returns

property bodies

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Bodies() As Bodies (Read Only)

Returns the hybrid body’s Bodies collection.

Example:
The following example returns in bodyColl the collection of bodies of
the hybrid body hybridBody :

Set bodyColl = hybridBody.Bodies
Returns

Bodies

property geometric_elements

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property GeometricElements() As GeometricElements (Read
Only)

Returns the list of geometrical elements included in the hybrid
body.

Returns:
oGeometricElements The list of geometric elements in the hybrid body
(@see CATIAGeometricElements
for more information).

Example:
The following example returns in geometricElements the list
of
geometrical elements in the Hybrid body
hybridBody:

Dim geometricElements As GeometricElements
Set geometricElements = hybridBody.GeometricElements
Returns

GeometricElements

property hybrid_bodies

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property HybridBodies() As HybridBodies (Read Only)

Returns the hybrid body’s HybridBodies collection.

Example:
The following example returns in hybridBodyColl the collection of
hybrid bodies of the hybrid body hybridBody :

Set hybridBodyColl = hybridBody.HybridBodies
Returns

HybridBodies

property hybrid_shapes

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property HybridShapes() As HybridShapes (Read Only)

Returns the list of hybrid shapes included in the hybrid
body.

Returns:
oHybridShapes The list of hybrid shapes in the hybrid body (@see
CATIAHybridShapes
for more information).

Example:
The following example returns in hybridShapes the list
of
hybrid shapes in the hybrid body hybridBody:

Dim hybridShapes As HybridShapes
Set hybridShapes = hybridBody.HybridShapes
Returns

HybridShapes

property hybrid_sketches

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property HybridSketches() As Sketches (Read Only)

Returns the hybrid body’s Sketches collection. These sketches are those
inside the hybrid body at all levels.

Example:
The following example returns in skColl the collection of sketches of a
hybrid body :

Set skColl = hybridBody.HybridSketches
Returns

Sketches

hybrid_shape

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.hybrid_shape.HybridShape(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
HybridShape

Represents the hybrid shape object.
append_hybrid_shape(i_hybrid_shape=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AppendHybridShape(HybridShape iHybridShape)

Appends a hybrid shape to another hybrid shape.

Parameters:

iHybridShape
The hybrid shape to append.

Example:
This example appends the hybrid shape newHybridShape to the hybrid
shape oldHybridShape:

oldHybridShape.AppendHybridShape (newHybridShape)
Parameters

i_hybrid_shape (HybridShape) –

Returns

None

compute()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Compute()

Computes the result of the hybrid shape.
Returns

None

property thickness

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Thickness() As HybridShape (Read Only)

Returns the thickness of the hybrid shape.
The thickness is a CATIAHybridShapeThickness.

Example:
The following example returns the thickness ExtrudeThickness of the
extrude Extrude.1 as the origin point of the axis system
AxisSystem0:

Dim Extrude1 As AnyObject
Set Extrude1 = HybridBody1.HybridShapes.Item ( “Extrude.1” )
Dim Thickness1 As HybridShapeThickness
Set Thickness1 = Extrude1.Thickness
Returns

HybridShape

hybrid_shape_instance

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.hybrid_shape_instance.HybridShapeInstance(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
MecModInterfaces.HybridShape
HybridShapeInstance

The interface to access a CATIAHybridShapeInstance.
get_input(i_index=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetInput(CATBSTR iIndex) As AnyObject

Gets an input of a hybrid shape instance by its name.

Parameters:

iName
The name of the input of the hybrid shape instance


Returns:
The input, if found
Example:
The following example tests if the input was found:

Set input = hybridShapeInstance.GetInput(“Input1”)
If TypeName(input)=”Nothing” Then
MsgBox “Input not found”
End If
Parameters

i_index (str) –

Returns

AnyObject

get_input_data(i_name=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetInputData(CATBSTR iName) As CATBaseDispatch

Gets an input of a shape instance by its name. Use this method if you want
to retrieve a Reference.

Parameters:

iName
The name of the input of the shape instance

Returns:
The input, if found
Example:
The following example tests if the input was found:

Set input = shapeInstance.GetInput(“Input1”)
If TypeName(input)=”Nothing” Then
MsgBox “Input not found”
End If
Parameters

i_name (str) –

Returns

AnyObject

get_input_data_from_position(i_position=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetInputDataFromPosition(long iPosition) As
CATBaseDispatch

Gets an input of a hybrid shape instance from its position. Use this method
if you want to retrieve a Reference.

Parameters:

iPosition
The position

Returns:
The input, if found
Example:
The following example tests if the input was found:

Set input = hybridShapeInstance.GetInputFromPosition(2)
If TypeName(input)=”Nothing” Then
MsgBox “Input not found”
End If
Parameters

i_position (int) –

Returns

AnyObject

get_input_from_position(i_position=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetInputFromPosition(long iPosition) As AnyObject

Gets an input of a hybrid shape instance from its
position.

Parameters:

iPosition
The position

Returns:
The input, if found
Example:
The following example tests if the input was found:

Set input = hybridShapeInstance.GetInputFromPosition(2)
If TypeName(input)=”Nothing” Then
MsgBox “Input not found”
End If
Parameters

i_position (int) –

Returns

AnyObject

get_output(i_name=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOutput(CATBSTR iName) As AnyObject

Gets a Ouput by its name.

Parameters:

iName
The name of the output of the shape instance

Returns:
The output, if found
Example:
The following example tests if the output was found:

Set output = shapeInstance.GetOuput(“Output1”)
If TypeName(output)=”Nothing” Then
MsgBox “Output not found”
End If
Parameters

i_name (str) –

Returns

AnyObject

get_output_from_position(i_position=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOutputFromPosition(long iPosition) As AnyObject

Gets a Ouput from its position.

Parameters:

iPosition
The position

Returns:
The output, if found
Example:
The following example tests if the output was found:

Set output = shapeInstance.GetOuputFromPosition(2)
If TypeName(output)=”Nothing” Then
MsgBox “Output not found”
End If
Parameters

i_position (int) –

Returns

AnyObject

get_parameter(i_name=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetParameter(CATBSTR iName) As AnyObject

Gets a parameter of a hybrid shape instance by its name.

Parameters:

iName
The name of the parameter of the hybrid shape instance


Returns:
The parameter, if found
Example:
The following example tests if the parameter was
found:

Set parameter = hybridShapeInstance.GetParameter(“Parameter1”)
If TypeName(parameter)=”Nothing” Then
MsgBox “Parameter not found”
End If
Parameters

i_name (str) –

Returns

AnyObject

get_parameter_from_position(i_position=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetParameterFromPosition(long iPosition) As AnyObject

Gets a parameter of a hybrid shape instance from its
position.

Parameters:

iPosition
The position

Returns:
The parameter, if found
Example:
The following example tests if the parameter was
found:

Set parameter = hybridShapeInstance.GetParameterFromPosition(2)
If TypeName(input)=”Nothing” Then
MsgBox “Parameter not found”
End If
Parameters

i_position (int) –

Returns

AnyObject

property inputs_count

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property InputsCount() As long (Read Only)

Returns the number of Inputs.

Example:
The following example retrieves in inputsCount the number of Inputs of
hybridShapeInstance:

inputsCount = hybridShapeInstance.InputsCount
Returns

int

property outputs_count

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OutputsCount() As long (Read Only)

Returns the number of Outputs.

Example:
The following example retrieves in outputsCount the number of Outputs
of hybridShapeInstance:

outputsCount = hybridShapeInstance.OutputsCount
Returns

int

property parameters_count

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParametersCount() As long (Read Only)

Returns the number of Parameters.

Example:
The following example retrieves in parametersCount the number of
parameters of hybridShapeInstance:

parametersCount = hybridShapeInstance.ParametersCount
Returns

int

put_input(i_index=None, i_input=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutInput(CATBSTR iIndex,
AnyObject iInput)

Defines an input of a hybrid shape instance.

Parameters:

iName
The input name
iInput
The element wich will be input of the hybrid shape
instance
All types of

Boundary object are possibly supported.
Example:
The following example defines the input of a hybrid shape instance The
input will be a point and its name will be Input1.

hybridShapeInstance.PutInput “Input1”,point
Parameters
Returns

None

put_input_data(i_name=None, i_input=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutInputData(CATBSTR iName,
CATBaseDispatch iInput)

Defines an input of a shape instance. Use this method if you want to set as
input a Reference.

Parameters:

iName
The input name
iInput
The element wich will be input of the shape
instance
All types of

Boundary object are possibly supported.
Example:
The following example defines the input of a shape instance The input
will be a point and its name will be Input1.

shapeInstance.PutInput “Input1”,point
Parameters
Returns

None

hybrid_shapes

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.hybrid_shapes.HybridShapes(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
HybridShapes

The collection of the HybridShapes making up a body.
get_boundary(i_label=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetBoundary(CATBSTR iLabel) As Boundary

Returns a boundary using its label.

Parameters:

iLabel
Identification of the

Boundary object. See Reference.DisplayName.
Returns:
The retrieved boundary
Parameters

i_label (str) –

Returns

Boundary

item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As HybridShape

Returns a HybridShape using its index or its name from the HybridShapes
collection.

Parameters:

iIndex
The index or the name of the HybridShape to retrieve from the
collection of HybridShapes. As a numerics, this index is the rank of the
HybridShape in the collection. The index of the first HybridShape in the
collection is 1, and the index of the last HybridShape is


Collection.Count. As a string, it is the name you assigned to the
HybridShape using the AnyObject.Name property.
Returns:
The retrieved HybridShape
Example:
This example retrieves in ThisHybridShape the third HybridShape, and in
ThatHybridShape the HybridShape named MyHybridShape in the HybridShape
collection of the active document, supposed to be a part
document.

Set ThisHybridShape = CATIA.ActiveDocument.HybridShapes.Item(3)
Set ThatHybridShape = CATIA.ActiveDocument.HybridShapes.Item(“MyHybridShape”)
Parameters

i_index (CATVariant) –

Returns

HybridShape

instance_factory

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.instance_factory.InstanceFactory(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
MecModInterfaces.Factory
InstanceFactory

Represents the CATIAInstanceFactory.
Role: This interface is used to create a new instance of a shape reference
(ShapeInstance ) or a hybrid shape reference ( HybridShapeInstance ) in case of
the instantiation of a User Feature.
It is also used to instantiate a Power Copy reference.

This interface contains two protocols of instantiation:

The first protocol is dedicated to User Feature instantiation
only.
It is defined by a single method: AddInstance . It creates a shape or
hybrid shape instance depending on the result of the User
Feature.
Use this method when you want to perform only one instantiation of the
reference. Read the document containing the User Feature reference and
instantiate it.
As the document containing the reference is released from the session at
the end of the instantiation, it is not recommmended to use this method if you
want to perform several instantiations of the same reference in a
loop.
In that case, prefer the second protocol of instantiation.
The second protocol is dedicated to both User Feature and Power Copy
instantiations.
It is defined by several methods that must be called in
order.
For User Feature instantiation, these methods are an alternative way of
the AddInstance method.
It is recommended to use the second protocol to perform several
instantiations of the same reference in a loop.
For Power Copy instantiation, it is the only way of instantiating a
reference.
The instantiation process is composed of three major
steps:
The first step BeginInstanceFactory consists in initializing the
InstanceFactory with the reference and the document where it is
stored.
This step must be called once at the beginning whatever the number of
instantiations are done.
Optional step InstantiationMode allow the user to specify the mode of
the instantiation, that is to say “After” or “Inside”.
If this method is not called, the instantiation mode will be chosen
according to the BeginInstantiate method.
The second step is the instantiation itself: it is composed of five
methods that must be called in the order.
This set of five methods can be called in a loop in order to make
several instantiations.
The method BeginInstantiate is used to initialize all data of the
reference.
The method PutInputData is used to set a value to any input of the
reference.
The method GetParameter is used to retrieve any parameter of the
reference in order to modify its value.
The method Instantiate is used to duplicate the reference. It
returns the created instance when it does exist.
The method EndInstantiate is used to indicate that the
instantiation is done.
The third step EndInstanceFactory consists in ending the instantiation
and cleaning the InstanceFactory.
When doing several instantiations in a loop, this step must be called
just once at the end of all instantiations.
add_instance(i_reference=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddInstance(AnyObject iReference) As AnyObject

Creates a new instance of a shape or hybrid shape.

Parameters:

iReference
The reference shape or hybrid shape.

Example:
This example creates the instance NewInstance in the
part.

Set NewInstance = instanceFactory.AddInstance(reference)
Parameters

i_reference (AnyObject) –

Returns

AnyObject

begin_instance_factory(i_name_of_reference=None, i_name_of_document=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub BeginInstanceFactory(CATBSTR iNameOfReference,
CATBSTR iNameOfDocument)

Initializes the instantiation process with the document containing the
reference.
Role: Use this method to start instantiating a reference in the current
document.
In that method, the document containing the reference is locked in
session.
It will be unlocked in the last step EndInstanceFactory .

Parameters:

iNameOfReference
The name of the reference to be instantiated.
iDocumentFileName
The name of the file containing the document where to find the
reference to be instantiated.

Example:
The following example initializes the factory with a document and a
reference:

InstanceFactory.BeginInstanceFactory”NameOfReference”,”c:tmpNameOfDocument.CATPart”
Parameters
  • i_name_of_reference (str) –

  • i_name_of_document (str) –

Returns

None

begin_instantiate()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub BeginInstantiate()

Initializes the data of the reference.
Role: This is the first method of the second step of
instantiation.
It is used to initialize all data of the reference in the
factory.

Example:
The following example shows how to initialize the
factory:

InstanceFactory.BeginInstantiate
Returns

None

end_instance_factory()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub EndInstanceFactory()

Ends the instantiation process.
Role: Use this method to end the instantiation process.
In that method the document containing the reference is unlocked and
released from the session.

Example:
The following example shows how to end the
instantiation:

InstanceFactory.EndInstanceFactory
Returns

None

end_instantiate()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub EndInstantiate()

Ends the instantiation of the reference.
Role: This is the fifth and last method of the second step of
instantiation.
It is used to end the instantiation: after this step, all the links to the
reference are broken.

Example:
The following example shows how to end the
instantiation:

InstanceFactory.EndInstantiate
Returns

None

get_parameter(i_name=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetParameter(CATBSTR iName) As AnyObject

Retrieves a parameter of the reference by its name.
Role: This is the third method of the second step of
instantiation.
This step is optional.
It is used to retrieve a parameter of the reference in order to change its
value, using the ValuateFromString method of the Parameter
interface.
It has to be called on each parameter whose value has to be
changed.

Parameters:

iName
The name of the parameter.

Example:
The following example retrieves a parameter on the
reference:

Set parameter = InstanceFactory.GetParameter(“Parameter1”)
Parameters

i_name (str) –

Returns

AnyObject

instantiate()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Instantiate() As AnyObject

Instantiates the reference in the current document.
Role: This is the fourth method of the second step of
instantiation.
It is used to duplicate or instantiate the data of the
reference.

In case of Power Copy instantiation, the data are duplicated and there
is no created instance.
In case of User Feature instantiation, the data are instantiated and an
instance is created and returned.

Example:
The following example instantiates the reference:

Set Instance = InstanceFactory.Instantiate
Returns

AnyObject

property instantiation_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property InstantiationMode(CATBSTR iInstantiationModeBSTR) (Write
Only)

Sets the mode of instantiation to “Inside” or “After”.
Role: This method should be called BEFORE the method BeginInstantiate to
take into account the desired instantiation mode.
It is used to set the destination path of insertion of the template
reference.

Example:
The following example shows how to determine the instantiation mode
(Mode’s value is “Inside” or “After”):

InstanceFactory.InstantationMode = Mode
Returns

False

put_input_data(i_name=None, i_input=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutInputData(CATBSTR iName,
CATBaseDispatch iInput)

Sets a value to an input of the reference.
Role: This is the second method of the second step of
instantiation.
It is used to set a value to any input of the reference.
It has to be called on each input of the reference.

Parameters:

iName
The name of the input.
iInput
The element to set as the new value of the input.
All types of

Boundary object are possibly supported.

Example:
The following example sets a value to an input of the reference: The input
is a point and its name is Input1.

InstanceFactory.PutInputData “Input1”,point1
Parameters
Returns

None

mono_dim_feat_edge

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.mono_dim_feat_edge.MonoDimFeatEdge(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
MecModInterfaces.Edge
MonoDimFeatEdge

1-D boundary belonging to a feature whose topological result is one
dimensional.
Role: This Boundary object may be, for example, in a part containing a Sketch
which is made up of a circle arc and a spline, the circle arc.
You will create a MonoDimFeatEdge object using the Shapes.GetBoundary ,
HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2
method. Then, you pass it to the operator (such as
HybridShapeFactory.AddNewPointTangent ).
The lifetime of a MonoDimFeatEdge object is limited, see
Boundary.

Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

not_wire_boundary_mono_dim_feat_vertex

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.not_wire_boundary_mono_dim_feat_vertex.NotWireBoundaryMonoDimFeatVertex(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
MecModInterfaces.Vertex
NotWireBoundaryMonoDimFeatVertex

0-D boundary belonging to a feature whose topological result is one
dimensional, the boundary not beeing the extremity of the
feature.
Role: This Boundary object may be, for example, in a part containing a Sketch
which is made up of a circle arc and a spline, the vertex between the circle
arc and the spline.
You will create a NotWireBoundaryMonoDimFeatVertex object using the
Shapes.GetBoundary , HybridShapes.GetBoundary , Sketches.GetBoundary or
Selection.SelectElement2 method. Then, you pass it to the
operator.
The lifetime of a NotWireBoundaryMonoDimFeatVertex object is limited, see
Boundary.

Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

ordered_geometrical_set

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.ordered_geometrical_set.OrderedGeometricalSet(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
OrderedGeometricalSet

The object is an ordered geometrical set.
The ordered geometrical set manages a set of hybrid shapes, a set of bodies and
a set of ordered geometrical sets.
It belongs to the OrderedGeometricalSets collection of a Part or
OrderedGeometricalSet object.
property bodies

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Bodies() As Bodies (Read Only)

Returns the ordered geometrical set’s Bodies collection.

Example:
The following example returns in bodyColl the collection of bodies of
the ordered geometrical set OrderedGeometricalSet1 :

Set bodyColl = OrderedGeometricalSet1.Bodies
Returns

Bodies

property hybrid_shapes

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property HybridShapes() As HybridShapes (Read Only)

Returns the list of hybrid shapes included in the ordered geometrical
set.

Returns:
oHybridShapes The list of hybrid shapes in the ordered geometrical set
(@see CATIAHybridShapes
for more information).

Example:
The following example returns in HybridShapes1 the list
of
hybrid shapes in the ordered geometrical
setOrderedGeometricalSet1:

Dim HybridShapes1 As HybridShapes
Set HybridShapes1 = OrderedGeometricalSet1.HybridShapes
Returns

HybridShapes

insert_hybrid_shape(i_hybrid_shape=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InsertHybridShape(HybridShape iHybridShape)

Inserts a hybrid shape to the ordered geometrical set.

Parameters:

iHybridShape
The hybrid shape to insert.

Example:
This example inserts the hybrid shape HybridShape1 to the ordered
geometrical set OrderedGeometricalSet1:

OrderedGeometricalSet1.InsertHybridShape
(HybridShape1)
Parameters

i_hybrid_shape (HybridShape) –

Returns

None

property ordered_geometrical_sets

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OrderedGeometricalSets() As OrderedGeometricalSets (Read
Only)

Returns the ordered geometrical set’s OrderedGeometricalSets
collection.

Example:
The following example returns in OrderedGeometricalSetColl the
collection of ordered geometrical set of the ordered geometrical set
OrderedGeometricalSet1 :

Set OrderedGeometricalSetColl = OrderedGeometricalSet1.OrderedGeometricalSets
Returns

OrderedGeometricalSets

property ordered_sketches

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OrderedSketches() As Sketches (Read Only)

Returns the ordered geometrical set’s Sketches collection. These sketches
are those inside the ordered geometrical set at all
levels.

Example:
The following example returns in sketchesCollection the collection of
sketches of an ordered geometrical set :

Set sketchesCollection = OrderedGeometricalSet1.OrderedSketches
Returns

Sketches

ordered_geometrical_sets

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.ordered_geometrical_sets.OrderedGeometricalSets(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
OrderedGeometricalSets

A collection of the OrderedGeometricalSet objects.
add()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Add() As OrderedGeometricalSet

Creates a new ordered geometrical set and adds it to the
OrderedGeometricalSets collection. Thisordered geometrical set becomes the
current one

Returns:
The created ordered geometrical set
Example:
The following example creates a ordered geometrical set named
newOrderedGeometricalSet in the ordered geometrical set collection of the
rootPart part in the partDoc part document. NewPartBody becomes the in work
object of partDoc.

Set NewPartBody = rootPart.OrderedGeometricalSets.Add()
Returns

OrderedGeometricalSet

item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As OrderedGeometricalSet

Returns a ordered geometrical set using its index or its name from the
ordered geometrical set collection.

Parameters:

iIndex
The index or the name of the ordered geometrical set to retrieve
from the collection of ordered geometrical sets. As a numerics, this index is
the rank of the ordered geometrical set in the collection. The index of the
first ordered geometrical set in the collection is 1, and the index of the last
ordered geometrical set is Count. As a string, it is the name you assigned to
the ordered geometrical set using the

AnyObject.Name property.
Returns:
The retrieved ordered geometrical set
Example:
This example retrieves in ThisOrderedGeometricalSet the fifth ordered
geometrical set in the collection and in ThatOrderedGeometricalSet the ordered
geometrical set named MyOrderedGeometricalSet in the ordered geometrical set
collection of the partDoc part document.

Set orderedGeometricalSetColl = partDoc.Part.OrderedGeometricalSets
Set ThisOrderedGeometricalSet = orderedGeometricalSetColl.Item(5)
Set ThatOrderedGeometricalSet = orderedGeometricalSetColl.Item(“MyOrderedGeometricalSet”)
Parameters

i_index (CATVariant) –

Returns

OrderedGeometricalSet

origin_elements

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.origin_elements.OriginElements(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
OriginElements

Represents the part’s 3D reference axis system.
It allows an easy access to 3D reference axis system of a Part object thru the
three planes XY, YZ, and ZX.
See Part for parent object.
property plane_xy

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PlaneXY() As AnyObject (Read Only)

Returns the XY plane of the part 3D reference axis system.

Example:
The following example returns in plnXY the XY plane of the partRoot
part from the partDoc part document:

Set partRoot = partDoc.Part
Set plnXY = partRoot.originElements.PlaneXY
Returns

AnyObject

property plane_yz

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PlaneYZ() As AnyObject (Read Only)

Returns the YZ plane of the part 3D reference axis system.

Example:
The following example returns in plnYZ the YZ plane of the partRoot
part from the partDoc part document:

Set partRoot = partDoc.Part
Set plnYZ = partRoot.originElements.PlaneYZ
Returns

AnyObject

property plane_zx

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PlaneZX() As AnyObject (Read Only)

Returns the ZX plane of the part 3D reference axis system.

Example:
The following example returns in plnZX the ZX plane of the partRoot
part from the partDoc part document:

Set partRoot = partDoc.Part
Set plnZX = partRoot.originElements.PlaneZX
Returns

AnyObject

part

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.part.Part(com_part_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Part

The root level object inside a PartDocument object.
Role: It aggregates all the objects making up the part
document.
It provides many factories and collections. The collections list only the
direct children of the part. Selection.Search allows to get all objects of one
type.

See also:
PartDocument
activate(i_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Activate(AnyObject iObject)

Unsuppresses an object for the update process. A unsuppressed object is
again taken into account for the calculation of the part.

Parameters:

iObject
The object to unsuppress for the update process

Example:
The following example unsuppresses the pad1 pad:

Set partRoot = partDoc.Part
Set pad1 = partRoot.FindObjectByName(“Pad.1”)
partRoot.Activate(pad1)
Parameters

i_object (AnyObject) –

Returns

None

property annotation_sets

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AnnotationSets() As Collection (Read Only)

Returns the collection object containing the annotation sets. All the
annotation sets that are aggregated in the part might be accessed thru that
collection.

Example:
The following example returns in annotationSets the annotation sets of
the partRoot part from the partDoc part document:

Set partRoot = partDoc.Part
Dim annotationSets As AnnotationSets
Set annotationSets = partRoot.AnnotationSets
Returns

Collection

property axis_systems

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AxisSystems() As AxisSystems (Read Only)

Returns the collection object containing the coordinate systems. All the
coordinate systems that are aggregated in the part might be accessed thru that
collection.

Example:
The following example returns in axisSystems the coordinate systems of
the partRoot part from the partDoc part document:

Set partRoot = partDoc.Part
Dim axisSystems As AxisSystems
Set axisSystems = partRoot.AxisSystems
Returns

AxisSystems

property bodies

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Bodies() As Bodies (Read Only)

Returns the collection object containing the bodies that are direct
children of the part.
It does not return all the bodies of the part, particularly the bodies in a
boolean operation.

Example:
The following example returns in bodiesColl the collection of the
bodies of the partRoot part from the partDoc part
document:

Set partRoot = partDoc.Part
Set bodiesColl = partRoot.Bodies
Returns

Bodies

property constraints

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Constraints() As Constraints (Read Only)

Returns the collection object containing the part constraints. Only 3D
constraints are concerned here, 2D constraints are managed in
sketches.

Example:
The following example returns in csts the constraints of the partRoot
part from the partDoc part document:

Set partRoot = partDoc.Part
Set csts = partRoot.Constraints
Returns

Constraints

create_reference_from_b_rep_name(i_label, i_object_context)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateReferenceFromBRepName(CATBSTR iLabel,
AnyObject iObjectContext) As Reference

Creates a reference from a GenericNaming label. This allows manipulation of
B-Rep (Type Functinal and Relimited) that are not easy to
access.

Parameters:

iLabel
The GenericNaming identification for an object. This is a cryptic
form for “the edge surrounded by the face extruded from line.12 of sketch.4 and
the face…”)
iObjectContext
The Object Context of Resolution This is the feature used for label
GenericNaming resolution

Returns:
The reference to a B-Rep sub-element such a face or an edge
Parameters
  • i_label (str) –

  • i_object_context (AnyObject) –

Returns

Reference

create_reference_from_name(i_label)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateReferenceFromName(CATBSTR iLabel) As Reference

Creates a reference from a GenericNaming label. This allows manipulation of
B-Rep (type Functional Only) that are not easy to access.

Parameters:

iLabel
The GenericNaming identification for an object. This is a cryptic
form for “the edge surrounded by the face extruded from line.12 of sketch.4 and
the face…”)

Returns:
The reference to a B-Rep sub-element such a face or an edge
Parameters

i_label (str) –

Returns

Reference

create_reference_from_object(i_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func CreateReferenceFromObject(AnyObject iObject) As
Reference

Creates a reference from a operator. Use of reference allows a uniform
handling of B-Rep and non B-Rep objects.

Parameters:

iObject
The geometric object to be referenced. It can be a plane, a line or
a point.

Returns:
The reference to the object. This way, a direction can be either an
edge of a pad or a 3D line.
Parameters

i_object (AnyObject) –

Returns

Reference

property density

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Density() As double (Read Only)

Returns the part density.

Example:
The following example displays the density of the
part:

Set partRoot = partDoc.Part
MsgBox “The density is ” & partRoot.Density
Returns

float

property file_name
Returns

str()

find_object_by_name(i_obj_name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func FindObjectByName(CATBSTR iObjName) As AnyObject

Finds an object that is not a collection by its name. Scan in depth among
all the direct and indirect children (expensive, but hard to
escape).

Parameters:

iObjName
The name to be searched

Returns:
The object, if found
Example:
The following example tests if the object was found:

Set partRoot = partDoc.Part
Set obj = partRoot.FindObjectByName(“Wrong name”)
If TypeName(obj)=”Nothing” Then
MsgBox “Object not found”
End If
Parameters

i_obj_name (str) –

Returns

AnyObject

property full_name
Returns

str()

property geometric_elements

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property GeometricElements() As GeometricElements (Read
Only)

Returns the collection object containing the part geometrical elements.
Only 3D elements are concerned here, 2D elements are managed in sketches. The
origin elements are also accessible thru that collection.

Example:
The following example returns in geomElts the 3D elements of the
partRoot part from the partDoc part document:

Set partRoot = partDoc.Part
Set geomElts = partRoot.GeometricElements
Returns

GeometricElements

get_customer_factory(i_factory_iid=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetCustomerFactory(CATBSTR iFactoryIID) As Factory

Returns a customer factory from a code string defined by the customer. It
allows a customer to define its own factory to create its own
objects.

Parameters:

iFactoryIID
The code name of the factory
Parameters

i_factory_iid (str) –

Returns

Factory

property hybrid_bodies

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property HybridBodies() As HybridBodies (Read Only)

Returns the collection object containing the hybrid bodies that are direct
children of the part.

Example:
The following example returns in hybridBodiesColl the collection of
hybrid bodies of the partRoot part from the partDoc part
document:

Set partRoot = partDoc.Part
Set hybridBodiesColl = partRoot.HybridBodies
Returns

HybridBodies

property hybrid_shape_factory

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property HybridShapeFactory() As Factory (Read Only)

Returns the part hybrid shape factory. It allows the creation of hybrid
shapes in the part.

Example:
The following example returns in hybridShapeFact the hybrid shape
factory of the partRoot part from the partDoc part
document:

Set partRoot = partDoc.Part
Dim hybridShapeFact As Factory
Set hybridShapeFact = partRoot.HybridShapeFactory
Returns

HybridShapeFactory

property in_work_object

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property InWorkObject() As AnyObject

Returns or sets the in work object of the part. The in work object is the
object after which a new object is added.

Example:

Set partRoot = partDoc.Part
Set partRoot.InWorkObject = cylindricPad
If ( partRoot.InWorkObject <> cylindricPad ) Then
MsgBox “There is a big problem”
End If
Returns

AnyObject

inactivate(i_object=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Inactivate(AnyObject iObject)

Suppresses an object from being updated. A suppressed object is not taken
into account for the calculation of the part.

Parameters:

iObject
The object to suppress from being updated

Example:
The following example suppresses the pad1 pad from being
updated:

Set partRoot = partDoc.Part
Set pad1 = partRoot.FindObjectByName(“Pad.1”)
partRoot.Inactivate(pad1)
Parameters

i_object (AnyObject) –

Returns

None

is_inactive(i_object=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func IsInactive(AnyObject iObject) As boolean

Indicates whether an object is deactivated. A deactivated object is not
taken into account for the calculation of the part.

Parameters:

iObject
The object to examine

Example:
The following example returns in isInactive whether the pad1 pad is
deactivated:

Set partRoot = partDoc.Part
Set pad1 = partRoot.FindObjectByName(“Pad.1”)
isInactive = partRoot.IsInactive(pad1)
Parameters

i_object (AnyObject) –

Returns

bool

is_up_to_date(i_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func IsUpToDate(AnyObject iObject) As boolean

Indicates whether an object needs to be updated. An object which is not
up-to-date has not be calculated with the last
specifications.

Parameters:

iObject
The object to examine

Example:
The following example returns in isuptodate whether the pad1 pad is
up-to-date:

Set partRoot = partDoc.Part
Set pad1 = partRoot.FindObjectByName(“Pad.1”)
isuptodate = partRoot.IsUpToDate(pad1)
Parameters

i_object (AnyObject) –

Returns

bool

property main_body

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property MainBody() As Body

Returns or sets the main body of the part.

Example:
The following example returns the main body of the part of the current
document.

Dim mainBody As Body
Set mainBody=CATIA.ActiveDocument.Part.MainBody
Returns

Body

property ordered_geometrical_sets

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OrderedGeometricalSets() As OrderedGeometricalSets (Read
Only)

Returns the collection object containing the ordered geometrical sets of
the part.

Example:
The following example returns in ogsColl the collection of ordered
geometrical sets of the partRoot part from the partDoc part
document:

Set partRoot = partDoc.Part
Set ogsColl = partRoot.OrderedGeometricalSets
Returns

OrderedGeometricalSets

property origin_elements

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OriginElements() As OriginElements (Read Only)

Returns the object defining the part 3D reference axis
system.

Example:
The following example returns in originElts the origin of the partRoot
part from the partDoc part document:

Set partRoot = partDoc.Part
Set originElts = partRoot.OriginElements
Returns

OriginElements

property parameters

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Parameters() As Parameters (Read Only)

Returns the collection object containing the part parameters. All the
parameters that are aggregated in the different objects of the part might be
accessed thru that collection.

Example:
The following example returns in params the parameters of the partRoot
part from the partDoc part document:

Set partRoot = partDoc.Part
Dim params As Parameters
Set params = partRoot.Parameters
Returns

Parameters

path()

Returns the pathlib.Path() object of the document fullname. example e://users//psr//Parts//MyNicePart.CATPart >>> Part.path().name MyNicePart.CATPart >>> Part.path().parent e://users//psr//Parts// >>> Part.path().suffix .CATPart

Returns

Path()

property relations

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Relations() As Relations (Read Only)

Returns the collection object containing the part relations. All the
relations that are used to valuate the parameters of the part might be accessed
thru that collection.

Example:
The following example returns in rels the relations of the partRoot
part from the partDoc part document:

Set partRoot = partDoc.Part
Set rels = partRoot.Relations
Returns

Relations

property shape_factory

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ShapeFactory() As Factory (Read Only)

Returns the part shape factory. It allows the creation of shapes in the
part.

Example:
The following example returns in shapeFact the shape factory of the
partRoot part from the partDoc part document:

Set partRoot = partDoc.Part
Dim shapeFact As Factory
Set shapeFact = partRoot.ShapeFactory
Returns

ShapeFactory

property sheet_metal_factory

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SheetMetalFactory() As Factory (Read Only)

Returns the sheet metal factory of the part. It allows the creation of
sheet metal elements in the part.

Example:
The following example returns in sheetMetalFact the sheet metal factory
of the partRoot part from the partDoc part document:

Set partRoot = partDoc.Part
Dim sheetMetalFact As Factory
Set sheetMetalFact = partRoot.SheetMetalFactory
Returns

Factory

property sheet_metal_parameters

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SheetMetalParameters() As AnyObject (Read Only)

Returns the sheet metal parameters of the part.

Example:
The following example returns in sheetMetalParm the sheet metal
parameters of the partRoot part from the partDoc part
document:

Set partRoot = partDoc.Part
Dim sheetMetalParm As SheetMetalParameters
Set sheetMetalFact = partRoot.SheetMetalParameters
Returns

AnyObject

update()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub Update()

Updates of the part result with respect to its specifications. Any
composing specification that hasn’t its result up-to-date will recompute it,
thus propagating changes to the whole part.

Example:
The following example update the part:

Set partRoot = partDoc.Part
partRoot.Update
Returns

None

update_object(i_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub UpdateObject(AnyObject iObject)

Updates an object with respect to its specifications. Any composing
specification of the object that hasn’t its result up-to-date will recompute
it, thus propagating changes to the object.

Parameters:

iObject
The object to be updated

Example:
The following example updates Pad.1:

Set partRoot = partDoc.Part
Set pad1 = partRoot.FindObjectByName(“Pad.1”)
partRoot.UpdateObject(pad1)
Parameters

i_object (AnyObject) –

Returns

None

property user_surfaces

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UserSurfaces() As Collection (Read Only)

Returns the collection object containing the user surfaces. All the user
surfaces that are aggregated in the part might be accessed thru that
collection.

Example:
The following example returns in userSurfaces the user surfaces of the
partRoot part from the partDoc part document:

Set partRoot = partDoc.Part
Dim userSurfaces As UserSurfaces
Set userSurfaces = partRoot.UserSurfaces
Returns

Collection

part_document

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.part_document.PartDocument(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Document
PartDocument

Represents the Document object for parts.

Role: When a PartDocument object is created, a Part object is also created.
This Part object is the root object of the Part structure.

A reference Product object is also created in each PartDocument. It is used to
access Publications, PartNumber.

See also:
Product, Part
property part

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Part() As Part (Read Only)

Returns the root Part object from the current part
document.

Example:
The following example retrieves in RootPart the root Part object of the
active document, assumed to be a part document:

Set RootPart = CATIA.ActiveDocument.Part
Returns

Part

property product

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Product() As Product (Read Only)

Returns the root Product object from the current part
document.

Example:
The following example retrieves in RootProd the root Product object of
the active document, assumed to be a part document:

Set RootProd = CATIA.ActiveDocument.Part
Returns

Product

part_infrastructure_setting_att

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.part_infrastructure_setting_att.PartInfrastructureSettingAtt(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
System.SettingController
PartInfrastructureSettingAtt

Setting controller for all the Part Infrastructure property tab
pages.
Role: This interface is implemented by a component representing the controller
for the Part Infrastructure settings.
property also_delete_exclusive_parents

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AlsoDeleteExclusiveParents() As boolean

Returns or sets the “AlsoDeleteExclusiveParents”
parameter.
Role: This parameter defines if a exclusive parents of an object will also
be deleted when the object is deleted.
This option is effective only when the “Deletion warning box” is
displayed.

Parameters:

oDeleted
Current “AlsoDeleteExclusiveParents” parameter’s
value:

TRUE or 1 if exclusive parents are also
deleted,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property axis_system_size

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AxisSystemSize() As short

Returns or sets the “AxisSystemSize” parameter.
Role: This parameter determines the size of axis systems.

Parameters:

oSize
Current size of axis systems

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

enum

property bodies_under_operations_in_tree

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property BodiesUnderOperationsInTree() As boolean

Returns or sets the “BodiesUnderOperationsInTree”
parameter.
Role: This parameter determines if a Body node is displayed when it is
being aggregated under a boolean operation (Add, Assemble, Remove, Intersect,
Union Trim).
Its value can be changed even after a boolean operation has been created.
Simply collapse and expand the federating boolean operation node for the
specification tree to be refreshed.

Parameters:

oNodeDisplayed
Current “BodiesUnderOperationsInTree” parameter’s
value:

TRUE or 1 if such a node is displayed,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property color_synchronization_editability

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ColorSynchronizationEditability() As boolean

Returns or sets the “ColorSynchronizationEditability”
parameter.
Role: This parameter determines whether color synchronization property on
Part is editable or not.
Color synchronization editability defines whether the property of
synchronization on Part can be interactively editable If it is valuated to 1,
user will be able to interactively modify the Part property of Color management
tab for synchronization. If it is defined to 0, user will not be able to
interactively modify the Part property of Color management tab for
synchronization. This option cannot be changed after a document has been
opened.

Parameters:

oActivated
Current “ColorSynchronizationEditability” parameter’s
value:

TRUE or 1, Part property option for synchronization is
editable
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property color_synchronization_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ColorSynchronizationMode() As boolean

Returns or sets the “ColorSynchronizationMode” parameter.
Role: This parameter determines color synchronization mode for imported
features in a part.
Color synchronization mode defines whether the imported feature, created
through copy/paste as result with link mechanism, copies reference feature
colors on its faces or not. If it is valuated to 1, synchronization will be
effective and referece feature colors will be reported. If it is defined to 0,
nothing will be copied(default mode). This option cannot be changed after a
document has been opened.

Parameters:

oActivated
Current “ColorSynchronizationMode” parameter’s
value:

TRUE or 1 if reference feature colors are reported on imported
feature,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property color_synchronization_mode_manage

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ColorSynchronizationModeManage() As boolean

Returns or sets the “ColorSynchronizationModeManage”
parameter.
Role: This parameter determines access to specific color synchronization
mode for imported features in a part.
Color synchronization mode Manage defines if access is granted to color
synchronization suboptions “on feature” and “on subelements”. If it is valuated
to 1, access will be granted. If it is defined to 0, no acces to color on
feature & color on subelements options

Parameters:

oActivated
Current “ColorSynchronizationModeManage” parameter’s
value:

TRUE or 1 if possibility to chose specific color copy
parameters
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property color_synchronization_mode_on_feature

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ColorSynchronizationModeOnFeature() As boolean

Returns or sets the “ColorSynchronizationModeOnFeature”
parameter.
Role: This parameter determines graphic properties synchronization mode on
feature for imported features in a part.
Color synchronization mode defines whether the imported feature, created
through copy/paste as result with link mechanism, copies reference feature
graphic properties or not. If it is valuated to 1, synchronization will be
effective and referece feature graphic properties will be reported. If it is
defined to 0, nothing will be copied(default mode).

Parameters:

oActivated
Current “ColorSynchronizationModeOnFeature” parameter’s
value:

TRUE or 1 if reference feature graphic properties are reported
on imported feature,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property color_synchronization_mode_on_sub_elements

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ColorSynchronizationModeOnSubElements() As boolean

Returns or sets the “ColorSynchronizationModeOnSubElements”
parameter.
Role: This parameter determines color synchronization mode for imported
features in a part.
Color synchronization mode OnSubElements defines whether the imported
feature, created through copy/paste as result with link mechanism, copies
reference feature colors on his overloaded faces or not. If it is valuated to
1, synchronization will be effective and reference subelements colors will be
reported. If it is defined to 0, nothing will be copied(default
mode).

Parameters:

oActivated
Current “ColorSynchronizationModeOnSubElements” parameter’s
value:

TRUE or 1 if reference subelements colors are reported on
imported feature,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property colors3_d_experience_management

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Colors3DExperienceManagement() As boolean

Returns or sets the “Colors3DExperienceManagement”
parameter.
Role: This parameter determines whether color synchronization property on
Part is editable or not.
Color synchronization editability defines whether the property of
synchronization on Part can be interactively editable If it is valuated to 1,
user will be able to interactively modify the Part property of Color management
tab for synchronization. If it is defined to 0, user will not be able to
interactively modify the Part property of Color management tab for
synchronization. This option cannot be changed after a document has been
opened.

Parameters:

oActivated
Current “Colors3DExperienceManagement” parameter’s
value:

TRUE or 1, Part property option for synchronization is
editable
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property constraints_in_geometry

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ConstraintsInGeometry() As boolean

Returns or sets the “ConstraintsInGeometry” parameter.
Role: This parameter enables constraints to be visualized in the 3D
view.

Parameters:

oDisplayed
Current “Display constraints within 3D” parameter’s
value:

TRUE or 1 if constraints are displayed,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property constraints_node_in_tree

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ConstraintsNodeInTree() As boolean

Returns or sets the “ConstraintsNodeInTree” parameter.
Role: This parameter determines if a node called “Constraints” is created
to contain all constraints.
Its value can be changed even after constraints have been created. The
result is that the specification tree node display status will be
affected.

Parameters:

oNodeDisplayed
Current “ConstraintsNodeInTree” parameter’s value:

TRUE or 1 if such a node is displayed,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property contextual_features_selectable_at_creation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ContextualFeaturesSelectableAtCreation() As
boolean

Returns or sets the “ContextualFeaturesSelectableAtCreation”
parameter.
Role: This parameter determines if contextual features can be selected
during the creation of an other feature.

Parameters:

oContextualFeaturesSelectable
Current “ContextualFeaturesSelectableAtCreation” parameter’s
value:

TRUE or 1 if contextual features can be
selected,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property default_colors_editability

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DefaultColorsEditability() As boolean

Returns or sets the “DefaultColorsEditability” parameter.
Role: This parameter determines whether color synchronization property on
Part is editable or not.
Color synchronization editability defines whether the property of
synchronization on Part can be interactively editable If it is valuated to 1,
user will be able to interactively modify the Part property of Color management
tab for synchronization. If it is defined to 0, user will not be able to
interactively modify the Part property of Color management tab for
synchronization. This option cannot be changed after a document has been
opened.

Parameters:

oActivated
Current “DefaultColorsEditability” parameter’s
value:

TRUE or 1, Part property option for synchronization is
editable
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property delete_warning_box

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DeleteWarningBox() As boolean

Returns or sets the “DeleteWarningBox” parameter.
Role: This parameter defines if a warning box is displayed when an element
is deleted.

Parameters:

oDisplayed
Current “DeleteWarningBox” parameter’s value:

TRUE or 1 if a warning box is displayed at
deletion,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property display_geometry_after_current

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DisplayGeometryAfterCurrent() As boolean

Returns or sets the “DisplayGeometryAfterCurrent”
parameter.
Role: This parameter enables to visualize in the 3D features after the
current object in O.G.S. and “solid and surface set”.

Parameters:

oDisplayed
Current “DisplayGeometryAfterCurrent” parameter’s
value:

TRUE or 1 if such is the visualization,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property expand_sketch_based_features_node_at_creation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExpandSketchBasedFeaturesNodeAtCreation() As
boolean

Returns or sets the “ExpandSketchBasedFeaturesNodeAtCreation”
parameter.
Role: This parameter determines if specification tree nodes for
sketch-based features are expanded when such elements are created. This will
enable to view their sketch node.

Parameters:

oNodeExpanded
Current “ExpandSketchBasedFeaturesNodeAtCreation” parameter’s
value:

TRUE or 1 if such nodes are expanded,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property external_references_as_visible

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExternalReferencesAsVisible() As boolean

Returns or sets the “ExternalReferencesAsVisible”
parameter.
Role: This parameter defines if an external reference is visible when being
created.

Parameters:

oVisible
Current “ExternalReferencesAsVisible” parameter’s
value:

TRUE or 1 if external references are visible when being
created,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property external_references_assembly_root_context

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExternalReferencesAssemblyRootContext() As boolean

Returns or sets the “ExternalReferencesAssemblyRootContext”
parameter.
Role: This parameter defines if external references are created using the
root context of an assembly.

Parameters:

oRootContextUsed
Current “ExternalReferencesAssemblyRootContext” parameter’s
value:

TRUE or 1 if external references are created using the root
context of an assembly,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property external_references_node_in_tree

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExternalReferencesNodeInTree() As boolean

Returns or sets the “ExternalReferencesNodeInTree”
parameter.
Role: This parameter determines if a node called “External Reference” is
created to contain all linked external references.
Its value can be changed even after linked external references have been
created. The result is that the specification tree node display status will be
affected.

Parameters:

oNodeDisplayed
Current “ExternalReferencesNodeInTree” parameter’s
value:

TRUE or 1 if such a node is displayed,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

get_also_delete_exclusive_parents_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAlsoDeleteExclusiveParentsInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “AlsoDeleteExclusiveParents”
parameter.
Role:Retrieves the state of the “AlsoDeleteExclusiveParents” parameter in
the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_axis_system_size_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAxisSystemSizeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “AxisSystemSize”
parameter.
Role:Retrieves the state of the “AxisSystemSize” parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_bodies_under_operations_in_tree_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetBodiesUnderOperationsInTreeInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “BodiesUnderOperationsInTree”
parameter.
Role:Retrieves the state of the “BodiesUnderOperationsInTree” parameter in
the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_color_synchronization_editability_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetColorSynchronizationEditabilityInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the
“ColorSynchronizationEditability” parameter.
Role:Retrieves the state of the “ColorSynchronizationEditability” parameter
in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_color_synchronization_mode_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetColorSynchronizationModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “ColorSynchronizationMode”
parameter.
Role:Retrieves the state of the “ColorSynchronizationMode” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_color_synchronization_mode_manage_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetColorSynchronizationModeManageInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “ColorSynchronizationModeManage”
parameter.
Role:Retrieves the state of the “ColorSynchronizationModeManage” parameter
in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_color_synchronization_mode_on_feature_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetColorSynchronizationModeOnFeatureInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the
“ColorSynchronizationModeOnFeature” parameter.
Role:Retrieves the state of the “ColorSynchronizationModeOnFeature”
parameter in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_color_synchronization_mode_on_sub_elements_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetColorSynchronizationModeOnSubElementsInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the
“ColorSynchronizationModeOnSubElements” parameter.
Role:Retrieves the state of the “ColorSynchronizationModeOnSubElements”
parameter in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_colors3_d_experience_management_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetColors3DExperienceManagementInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “Colors3DExperienceManagement”
parameter.
Role:Retrieves the state of the “Colors3DExperienceManagement” parameter in
the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_constraints_in_geometry_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetConstraintsInGeometryInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “ConstraintsInGeometry”
parameter.
Role:Retrieves the state of the “ConstraintsInGeometry” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_constraints_node_in_tree_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetConstraintsNodeInTreeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “ConstraintsNodeInTree”
parameter.
Role:Retrieves the state of the “ConstraintsNodeInTree” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_contextual_features_selectable_at_creation_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetContextualFeaturesSelectableAtCreationInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the
“ContextualFeaturesSelectableAtCreation” parameter.
Role:Retrieves the state of the “ContextualFeaturesSelectableAtCreation”
parameter in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_default_colors_editability_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDefaultColorsEditabilityInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “DefaultColorsEditability”
parameter.
Role:Retrieves the state of the “DefaultColorsEditability” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_delete_warning_box_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDeleteWarningBoxInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “DeleteWarningBox”
parameter.
Role:Retrieves the state of the “DeleteWarningBox” parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_display_geometry_after_current_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDisplayGeometryAfterCurrentInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “DisplayGeometryAfterCurrent”
parameter.
Role:Retrieves the state of the “DisplayGeometryAfterCurrent” parameter in
the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_expand_sketch_based_features_node_at_creation_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExpandSketchBasedFeaturesNodeAtCreationInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the
“ExpandSketchBasedFeaturesNodeAtCreation” parameter.
Role:Retrieves the state of the “ExpandSketchBasedFeaturesNodeAtCreation”
parameter in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_external_references_as_visible_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExternalReferencesAsVisibleInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “ExternalReferencesAsVisible”
parameter.
Role:Retrieves the state of the “ExternalReferencesAsVisible” parameter in
the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_external_references_assembly_root_context_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExternalReferencesAssemblyRootContextInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the
“ExternalReferencesAssemblyRootContext” parameter.
Role:Retrieves the state of the “ExternalReferencesAssemblyRootContext”
parameter in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_external_references_node_in_tree_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetExternalReferencesNodeInTreeInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “ExternalReferencesNodeInTree”
parameter.
Role:Retrieves the state of the “ExternalReferencesNodeInTree” parameter in
the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_hybrid_design_mode_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetHybridDesignModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “HybridDesignMode”
parameter.
Role:Retrieves the state of the “HybridDesignMode” parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_knowledge_in_hybrid_design_mode_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetKnowledgeInHybridDesignModeInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “KnowledgeInHybridDesignMode”
parameter.
Role:Retrieves the state of the “KnowledgeInHybridDesignMode” parameter in
the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_linked_external_references_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLinkedExternalReferencesInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “LinkedExternalReferences”
parameter.
Role:Retrieves the state of the “LinkedExternalReferences” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_linked_external_references_only_on_publication_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLinkedExternalReferencesOnlyOnPublicationInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the
“LinkedExternalReferencesOnlyOnPublication” parameter.
Role:Retrieves the state of the “LinkedExternalReferencesOnlyOnPublication”
parameter in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_linked_external_references_warning_at_creation_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLinkedExternalReferencesWarningAtCreationInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the
“LinkedExternalReferencesWarningAtCreation” parameter.
Role:Retrieves the state of the “LinkedExternalReferencesWarningAtCreation”
parameter in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_naming_mode_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNamingModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “NamingMode”
parameter.
Role:Retrieves the state of the “NamingMode” parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_new_with3_d_support_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNewWith3DSupportInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “NewWith3DSupport”
parameter.
Role:Retrieves the state of the “NewWith3DSupport” parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_new_with_axis_system_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNewWithAxisSystemInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “NewWithAxisSystem”
parameter.
Role:Retrieves the state of the “NewWithAxisSystem” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_new_with_gs_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNewWithGSInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “NewWithGS”
parameter.
Role:Retrieves the state of the “NewWithGS” parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_new_with_ogs_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNewWithOGSInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “NewWithOGS”
parameter.
Role:Retrieves the state of the “NewWithOGS” parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_new_with_panel_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNewWithPanelInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “NewWithPanel”
parameter.
Role:Retrieves the state of the “NewWithPanel” parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_only_current_operated_solid_set_in_geometry_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOnlyCurrentOperatedSolidSetInGeometryInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the
“OnlyCurrentOperatedSolidSetInGeometry” parameter.
Role:Retrieves the state of the “OnlyCurrentOperatedSolidSetInGeometry”
parameter in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_only_current_solid_set_in_geometry_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOnlyCurrentSolidSetInGeometryInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “OnlyCurrentSolidSetInGeometry”
parameter.
Role:Retrieves the state of the “OnlyCurrentSolidSetInGeometry” parameter
in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_parameters_node_in_tree_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetParametersNodeInTreeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “ParametersNodeInTree”
parameter.
Role:Retrieves the state of the “ParametersNodeInTree” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_publish_topological_elements_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPublishTopologicalElementsInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “PublishTopologicalElements”
parameter.
Role:Retrieves the state of the “PublishTopologicalElements” parameter in
the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_relations_node_in_tree_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRelationsNodeInTreeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “RelationsNodeInTree”
parameter.
Role:Retrieves the state of the “RelationsNodeInTree” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_replace_only_after_current_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetReplaceOnlyAfterCurrentInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “ReplaceOnlyAfterCurrent”
parameter.
Role:Retrieves the state of the “ReplaceOnlyAfterCurrent” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_surface_elements_location_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetSurfaceElementsLocationInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “SurfaceElementsLocation”
parameter.
Role:Retrieves the state of the “SurfaceElementsLocation” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_true_color_mode_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetTrueColorModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “ColorInheritanceMode”
parameter.
Role:Retrieves the state of the “ColorInheritanceMode” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_update_elements_refreshed_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetUpdateElementsRefreshedInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “UpdateElementsRefreshed”
parameter.
Role:Retrieves the state of the “UpdateElementsRefreshed” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_update_linked_external_references_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetUpdateLinkedExternalReferencesInfo(CATBSTR
ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “UpdateLinkedExternalReferences”
parameter.
Role:Retrieves the state of the “UpdateLinkedExternalReferences” parameter
in the current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_update_mode_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetUpdateModeInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “UpdateMode”
parameter.
Role:Retrieves the state of the “UpdateMode” parameter in the current
environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

get_update_stopped_on_error_info(io_admin_level=None, io_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetUpdateStoppedOnErrorInfo(CATBSTR ioAdminLevel,
CATBSTR ioLocked) As boolean

Retrieves environment informations for the “UpdateStoppedOnError”
parameter.
Role:Retrieves the state of the “UpdateStoppedOnError” parameter in the
current environment.

Parameters:

ioAdminLevel

If the parameter is locked, AdminLevel gives the administration
level that imposes the value of the parameter.
If the parameter is not locked, AdminLevel gives the administration
level that will give the value of the parameter after a reset.

ioLocked
Indicates if the parameter has been locked.

Returns:
Indicates if the parameter has been explicitly modified or remain to
the administrated value.
Parameters
  • io_admin_level (str) –

  • io_locked (str) –

Returns

bool

property hybrid_design_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property HybridDesignMode() As boolean

Returns or sets the “HybridDesignMode” parameter.
Role: This parameter determines if hybrid design is possible inside Part
Bodies and bodies.
This option can be changed even after a document has been
opened.

Parameters:

oHybridDesign
Current “HybridDesignMode” parameter’s value:

TRUE or 1 if hybrid design is enabled,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property knowledge_in_hybrid_design_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property KnowledgeInHybridDesignMode() As boolean

Returns or sets the “KnowledgeInHybridDesignMode”
parameter.
Role: This parameter determines if knowledge features (formulas,
parameters, rules, …) can be located inside ordered
sets.
This option can be changed even after a document has been
opened.

Parameters:

oKnowledgeInHybridDesign
Current “KnowledgeInHybridDesignMode” parameter’s
value:

TRUE or 1 if hybrid design is enabled,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property linked_external_references

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property LinkedExternalReferences() As boolean

Returns or sets the “LinkedExternalReferences” parameter.
Role: This parameter enables creation of external references with
links.

Parameters:

oWithLink
“LinkedExternalReferences” parameter’s value:

TRUE or 1 if external references are created with
links,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property linked_external_references_only_on_publication

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property LinkedExternalReferencesOnlyOnPublication() As
boolean

Returns or sets the “LinkedExternalReferencesOnlyOnPublication”
parameter.
Role: This parameter restricts the creation of external references with
links to only published elements.
This option is only used when external references are created with
link.

Parameters:

oOnlyForPublishedElements
Current “LinkedExternalReferencesOnlyOnPublication” parameter’s
value:

TRUE or 1 if external references with link are only allowed on
published elements,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property linked_external_references_warning_at_creation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property LinkedExternalReferencesWarningAtCreation() As
boolean

Returns or sets the “LinkedExternalReferencesWarningAtCreation”
parameter.
Role: This parameter defines if a warning panel is displayed each time an
external reference with llink is created. The panel enables the user to decide
whether the link will be kept or not.
This option is only used when external references are created with
link.

Parameters:

oWarningAtCreation
Current “LinkedExternalReferencesWarningAtCreation” parameter’s
value:

TRUE or 1 if a panel is displayed upon external references with
link creation,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property naming_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NamingMode() As CatPartElementsNamingMode

Returns or sets the “NamingMode” parameter.
Role: This parameter determines how an element can be named through
Edit/Properties or any operation creating a feature (Copy-Paste,
etc.).
When this option is being changed, it only affects elements whose name is
modified afterwards.

Parameters:

oNamingMode
Current “NamingMode” parameter’s value:

catNoCheck when naming is rule-free,
catNamingCheckUnderSameNode when 2 elements cannot have the
same name under the same node,
catNamingCheckWithinUIActiveObject when 2 elements cannot have
the same name within a defined UIActiveObject.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

enum cat_part_elements_naming_mode

property new_with3_d_support

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NewWith3DSupport() As boolean

Returns or sets the “NewWith3DSupport” parameter.
Role: This parameter determines if a new .CATPart document will be created
with 3D working support.

Parameters:

o3DSupportCreated
Current “NewWith3DSupport” parameter’s value:

TRUE or 1 if a 3D support is created,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property new_with_axis_system

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NewWithAxisSystem() As boolean

Returns or sets the “NewWithAxisSystem” parameter.
Role: This parameter determines if a new .CATPart document will be created
with an Axis System.

Parameters:

oAxisSystemCreated
Current “NewWithAxisSystem” parameter’s value:

TRUE or 1 if an axis system is created,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property new_with_gs

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NewWithGS() As boolean

Returns or sets the “NewWithGS” parameter.
Role: This parameter determines if a new .CATPart document will be created
with a Geometrical Set.

Parameters:

oGSCreated
Current “NewWithGS” parameter’s value:

TRUE or 1 if a G.S. is created,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property new_with_ogs

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NewWithOGS() As boolean

Returns or sets the “NewWithOGS” parameter.
Role: This parameter determines if a new .CATPart document will be created
with an Ordered Geometrical Set.

Parameters:

oOGSCreated
Current “NewWithOGS” parameter’s value:

TRUE or 1 if an O.G.S. is created,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property new_with_panel

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property NewWithPanel() As boolean

Returns or sets the “NewWithPanel” parameter.
Role: This parameter determines if a dedicated ‘New Part’ panel is
displayed when createing a new .CATPart document.

Parameters:

oNewPartPanelDisplayed
Current “NewWithPanel” parameter’s value:

TRUE or 1 if the ‘New Part’ panel is
displayed,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property only_current_operated_solid_set_in_geometry

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OnlyCurrentOperatedSolidSetInGeometry() As boolean

Returns or sets the “OnlyCurrentOperatedSolidSetInGeometry”
parameter.
Role: This parameter enables to visualize in the 3D only the current
operated body’s feature (operated means being aggregated in a boolean
operation), as well as all other bodies and sets direcly inserted under the
Part feature.

Parameters:

oDisplayed
Current “Display in 3D only current operated solid set” parameter’s
value:

TRUE or 1 if such is the visualization,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property only_current_solid_set_in_geometry

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OnlyCurrentSolidSetInGeometry() As boolean

Returns or sets the “OnlyCurrentSolidSetInGeometry”
parameter.
Role: This parameter enables to visualize in the 3D only the current
operated body’s feature (operated means being aggregated in a boolean
operation), as well as all other bodies and sets direcly inserted under the
Part feature.

Parameters:

oDisplayed
Current “Display in 3D only current operated solid set” parameter’s
value:

TRUE or 1 if such is the visualization,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property parameters_node_in_tree

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParametersNodeInTree() As boolean

Returns or sets the “ParametersNodeInTree” parameter.
Role: This parameter determines if a node called “Parameters” is created to
contain all Knowledgeware parameters.
Its value can be changed even after parameters have been created. The
result is that the specification tree node display status will be
affected.

Parameters:

oNodeDisplayed
Current “ParametersNodeInTree” parameter’s value:

TRUE or 1 if such a node is displayed,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property publish_topological_elements

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PublishTopologicalElements() As boolean

Returns or sets the “PublishTopologicalElements”
parameter.
Role: This parameter defines if topological elements (faces, edges,
vertices, axes extremities) can be published.

Parameters:

oTopologyAllowed
Current “PublishTopologicalElements” parameter’s
value:

TRUE or 1 if topological elements can be used for
publication,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property relations_node_in_tree

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RelationsNodeInTree() As boolean

Returns or sets the “RelationsNodeInTree” parameter.
Role: This parameter determines if a node called “Relations” is created to
contain all Knowledgeware relations (for instance
formulas).
Its value can be changed even after parameters have been created. The
result is that the specification tree node display status will be
affected.

Parameters:

oNodeDisplayed
Current “RelationsNodeInTree” parameter’s value:

TRUE or 1 if such a node is displayed,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property replace_only_after_current

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ReplaceOnlyAfterCurrent() As boolean

Returns or sets the “ReplaceOnlyAfterCurrent” parameter.
Role: This parameter defines if the replace operation can only apply to
components located after the current object.

Parameters:

oOnlyAfterCurrent
Current “ReplaceOnlyAfterCurrent” parameter’s
value:

TRUE or 1 if the replace operation can only apply to components
located after the current object,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

set_also_delete_exclusive_parents_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAlsoDeleteExclusiveParentsLock(boolean iLocked)

Locks or unlocks the “AlsoDeleteExclusiveParents”
parameter.
Role:Locks or unlocks the “AlsoDeleteExclusiveParents” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_axis_system_size_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAxisSystemSizeLock(boolean iLocked)

Locks or unlocks the “AxisSystemSize” parameter.
Role:Locks or unlocks the “AxisSystemSize” parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_bodies_under_operations_in_tree_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetBodiesUnderOperationsInTreeLock(boolean iLocked)

Locks or unlocks the “BodiesUnderOperationsInTree”
parameter.
Role:Locks or unlocks the “BodiesUnderOperationsInTree” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_color_synchronization_editability_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetColorSynchronizationEditabilityLock(boolean
iLocked)

Locks or unlocks the “ColorSynchronizationEditability”
parameter.
Role:Locks or unlocks the “ColorSynchronizationEditability” parameter if it
is possible in the current administrative context. In user mode this method
will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_color_synchronization_mode_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetColorSynchronizationModeLock(boolean iLocked)

Locks or unlocks the “ColorSynchronizationMode” parameter.
Role:Locks or unlocks the “ColorSynchronizationMode” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_color_synchronization_mode_manage_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetColorSynchronizationModeManageLock(boolean iLocked)

Locks or unlocks the “ColorSynchronizationModeManage”
parameter.
Role:Locks or unlocks the “ColorSynchronizationModeManage” parameter if it
is possible in the current administrative context. In user mode this method
will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_color_synchronization_mode_on_feature_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetColorSynchronizationModeOnFeatureLock(boolean
iLocked)

Locks or unlocks the “ColorSynchronizationModeOnFeature”
parameter.
Role:Locks or unlocks the “ColorSynchronizationModeOnFeature” parameter if
it is possible in the current administrative context. In user mode this method
will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_color_synchronization_mode_on_sub_elements_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetColorSynchronizationModeOnSubElementsLock(boolean
iLocked)

Locks or unlocks the “ColorSynchronizationModeOnSubElements”
parameter.
Role:Locks or unlocks the “ColorSynchronizationModeOnSubElements” parameter
if it is possible in the current administrative context. In user mode this
method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_colors3_d_experience_management_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetColors3DExperienceManagementLock(boolean iLocked)

Locks or unlocks the “Colors3DExperienceManagement”
parameter.
Role:Locks or unlocks the “Colors3DExperienceManagement” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_constraints_in_geometry_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetConstraintsInGeometryLock(boolean iLocked)

Locks or unlocks the “ConstraintsInGeometry” parameter.
Role:Locks or unlocks the “ConstraintsInGeometry” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_constraints_node_in_tree_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetConstraintsNodeInTreeLock(boolean iLocked)

Locks or unlocks the “ConstraintsNodeInTree” parameter.
Role:Locks or unlocks the “ConstraintsNodeInTree” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_contextual_features_selectable_at_creation_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetContextualFeaturesSelectableAtCreationLock(boolean
iLocked)

Locks or unlocks the “ContextualFeaturesSelectableAtCreation”
parameter.
Role:Locks or unlocks the “ContextualFeaturesSelectableAtCreation”
parameter if it is possible in the current administrative context. In user mode
this method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_default_colors_editability_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDefaultColorsEditabilityLock(boolean iLocked)

Locks or unlocks the “DefaultColorsEditability” parameter.
Role:Locks or unlocks the “DefaultColorsEditability” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_delete_warning_box_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDeleteWarningBoxLock(boolean iLocked)

Locks or unlocks the “DeleteWarningBox” parameter.
Role:Locks or unlocks the “DeleteWarningBox” parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_display_geometry_after_current_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDisplayGeometryAfterCurrentLock(boolean iLocked)

Locks or unlocks the “DisplayGeometryAfterCurrent”
parameter.
Role:Locks or unlocks the “DisplayGeometryAfterCurrent” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_expand_sketch_based_features_node_at_creation_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExpandSketchBasedFeaturesNodeAtCreationLock(boolean
iLocked)

Locks or unlocks the “ExpandSketchBasedFeaturesNodeAtCreation”
parameter.
Role:Locks or unlocks the “ExpandSketchBasedFeaturesNodeAtCreation”
parameter if it is possible in the current administrative context. In user mode
this method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_external_references_as_visible_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExternalReferencesAsVisibleLock(boolean iLocked)

Locks or unlocks the “ExternalReferencesAsVisible”
parameter.
Role:Locks or unlocks the “ExternalReferencesAsVisible” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_external_references_assembly_root_context_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExternalReferencesAssemblyRootContextLock(boolean
iLocked)

Locks or unlocks the “ExternalReferencesAssemblyRootContext”
parameter.
Role:Locks or unlocks the “ExternalReferencesAssemblyRootContext” parameter
if it is possible in the current administrative context. In user mode this
method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_external_references_node_in_tree_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetExternalReferencesNodeInTreeLock(boolean iLocked)

Locks or unlocks the “ExternalReferencesNodeInTree”
parameter.
Role:Locks or unlocks the “ExternalReferencesNodeInTree” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_hybrid_design_mode_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetHybridDesignModeLock(boolean iLocked)

Locks or unlocks the “HybridDesignMode” parameter.
Role:Locks or unlocks the “HybridDesignMode” parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_knowledge_in_hybrid_design_mode_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetKnowledgeInHybridDesignModeLock(boolean iLocked)

Locks or unlocks the “KnowledgeInHybridDesignMode”
parameter.
Role:Locks or unlocks the “KnowledgeInHybridDesignMode” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_linked_external_references_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLinkedExternalReferencesLock(boolean iLocked)

Locks or unlocks the “LinkedExternalReferences” parameter.
Role:Locks or unlocks the “LinkedExternalReferences” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_linked_external_references_only_on_publication_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLinkedExternalReferencesOnlyOnPublicationLock(boolean
iLocked)

Locks or unlocks the “LinkedExternalReferencesOnlyOnPublication”
parameter.
Role:Locks or unlocks the “LinkedExternalReferencesOnlyOnPublication”
parameter if it is possible in the current administrative context. In user mode
this method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_linked_external_references_warning_at_creation_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLinkedExternalReferencesWarningAtCreationLock(boolean
iLocked)

Locks or unlocks the “LinkedExternalReferencesWarningAtCreation”
parameter.
Role:Locks or unlocks the “LinkedExternalReferencesWarningAtCreation”
parameter if it is possible in the current administrative context. In user mode
this method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_naming_mode_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNamingModeLock(boolean iLocked)

Locks or unlocks the “NamingMode” parameter.
Role:Locks or unlocks the “NamingMode” parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_new_with3_d_support_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNewWith3DSupportLock(boolean iLocked)

Locks or unlocks the “NewWith3DSupport” parameter.
Role:Locks or unlocks the “NewWith3DSupport” parameter if it is possible in
the current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_new_with_axis_system_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNewWithAxisSystemLock(boolean iLocked)

Locks or unlocks the “NewWithAxisSystem” parameter.
Role:Locks or unlocks the “NewWithAxisSystem” parameter if it is possible
in the current administrative context. In user mode this method will always
return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_new_with_gs_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNewWithGSLock(boolean iLocked)

Locks or unlocks the “NewWithGS” parameter.
Role:Locks or unlocks the “NewWithGS” parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_new_with_ogs_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNewWithOGSLock(boolean iLocked)

Locks or unlocks the “NewWithOGS” parameter.
Role:Locks or unlocks the “NewWithOGS” parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_new_with_panel_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNewWithPanelLock(boolean iLocked)

Locks or unlocks the “NewWithPanel” parameter.
Role:Locks or unlocks the “NewWithPanel” parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_only_current_operated_solid_set_in_geometry_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetOnlyCurrentOperatedSolidSetInGeometryLock(boolean
iLocked)

Locks or unlocks the “OnlyCurrentOperatedSolidSetInGeometry”
parameter.
Role:Locks or unlocks the “OnlyCurrentOperatedSolidSetInGeometry” parameter
if it is possible in the current administrative context. In user mode this
method will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_only_current_solid_set_in_geometry_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetOnlyCurrentSolidSetInGeometryLock(boolean iLocked)

Locks or unlocks the “OnlyCurrentSolidSetInGeometry”
parameter.
Role:Locks or unlocks the “OnlyCurrentSolidSetInGeometry” parameter if it
is possible in the current administrative context. In user mode this method
will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_parameters_node_in_tree_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetParametersNodeInTreeLock(boolean iLocked)

Locks or unlocks the “ParametersNodeInTree” parameter.
Role:Locks or unlocks the “ParametersNodeInTree” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_publish_topological_elements_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPublishTopologicalElementsLock(boolean iLocked)

Locks or unlocks the “PublishTopologicalElements”
parameter.
Role:Locks or unlocks the “PublishTopologicalElements” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_relations_node_in_tree_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRelationsNodeInTreeLock(boolean iLocked)

Locks or unlocks the “RelationsNodeInTree” parameter.
Role:Locks or unlocks the “RelationsNodeInTree” parameter if it is possible
in the current administrative context. In user mode this method will always
return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_replace_only_after_current_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetReplaceOnlyAfterCurrentLock(boolean iLocked)

Locks or unlocks the “ReplaceOnlyAfterCurrent” parameter.
Role:Locks or unlocks the “ReplaceOnlyAfterCurrent” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_surface_elements_location_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSurfaceElementsLocationLock(boolean iLocked)

Locks or unlocks the “SurfaceElementsLocation” parameter.
Role:Locks or unlocks the “SurfaceElementsLocation” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_update_elements_refreshed_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetUpdateElementsRefreshedLock(boolean iLocked)

Locks or unlocks the “UpdateElementsRefreshed” parameter.
Role:Locks or unlocks the “UpdateElementsRefreshed” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_update_linked_external_references_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetUpdateLinkedExternalReferencesLock(boolean iLocked)

Locks or unlocks the “UpdateLinkedExternalReferences”
parameter.
Role:Locks or unlocks the “UpdateLinkedExternalReferences” parameter if it
is possible in the current administrative context. In user mode this method
will always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_update_mode_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetUpdateModeLock(boolean iLocked)

Locks or unlocks the “UpdateMode” parameter.
Role:Locks or unlocks the “UpdateMode” parameter if it is possible in the
current administrative context. In user mode this method will always return
E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

set_update_stopped_on_error_lock(i_locked=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetUpdateStoppedOnErrorLock(boolean iLocked)

Locks or unlocks the “UpdateStoppedOnError” parameter.
Role:Locks or unlocks the “UpdateStoppedOnError” parameter if it is
possible in the current administrative context. In user mode this method will
always return E_FAIL.

Parameters:

iLocked
the locking operation to be performed Legal
values:
TRUE : to lock the parameter.
FALSE: to unlock the parameter.
Parameters

i_locked (bool) –

Returns

None

property surface_elements_location

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SurfaceElementsLocation() As
CatPartSurfaceElementsLocation

Returns or sets the “SurfaceElementsLocation” parameter.
Role: This parameter determines where wireframe and surface elements are
created when hybrid design is active.
This option can be changed when hybrid design mode is not active (but
useless then), and also even after a document has been
opened.

Parameters:

oLocation
Current “SurfaceElementsLocation” parameter’s
value:

catPartBodyLocation when elements are created within a
PartBody,
catXGSLocation when elements are created within a G.S. or an
O.G.S..

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

enum cat_part_surface_elements_location

property true_color_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TrueColorMode() As boolean

Returns or sets the “ColorInheritanceMode” parameter.
Role: This parameter determines color inheritance mode for absorbing
features in a part.
Color inheritance mode defines which mode of propagation will be used to
set color on an absorbing feature. If it is valuated to 1, absorbing feature
will inherit colors from all their input. If it is defined to 0, absorbing
features will inherit colors from their main input only (default mode). This
option can be changed even after a document has been
opened.

Parameters:

oActivated
Current “ColorInheritanceMode” parameter’s value:

TRUE or 1 if absorbing features inherit from all their
inputs,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property update_elements_refreshed

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UpdateElementsRefreshed() As boolean

Returns or sets the “UpdateElementsRefreshed” parameter.
Role: This parameter determines if elements visualization has to be
refreshed individually during update tasks.

Parameters:

oElementsRefreshed
Current “UpdateElementsRefreshed” parameter’s
value:

TRUE or 1 if elements visualization is
refreshed,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property update_linked_external_references

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UpdateLinkedExternalReferences() As boolean

Returns or sets the “UpdateLinkedExternalReferences”
parameter.
Role: This parameter determines if update tasks also apply to linked
external references.

Parameters:

oExternalReferencesUpdated
Current “UpdateLinkedExternalReferences” parameter’s
value:

TRUE or 1 if the update tasks apply to linked external
references,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

property update_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UpdateMode() As CatPartUpdateMode

Returns or sets the “UpdateMode” parameter.
Role: This parameter determines how the update of a .CATPart document is
conducted.

Parameters:

oUpdateMode
Current update mode:

catAutomaticUpdate when update is automatically
launched,
catManualUpdate when update has to be launched
manually.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

enum cat_part_update_mode

property update_stopped_on_error

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UpdateStoppedOnError() As boolean

Returns or sets the “UpdateStoppedOnError” parameter.
Role: This parameter determines if update tasks stop on the first detected
error.

Parameters:

oStoppedOnError
Current “UpdateStoppedOnError” parameter’s value:

TRUE or 1 if update tasks stop,
FALSE or 0 otherwise.

Returns:
S_OK if the parameter is correctly retrieved, E_FAIL otherwise.
Returns

bool

planar_face

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.planar_face.PlanarFace(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
MecModInterfaces.Face
PlanarFace

2-D boundary with a planar geometry.
Role: This Boundary object may be, for example, the face of a
cube.
You will create a PlanarFace object using the Shapes.GetBoundary ,
HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2
method. Then, you pass it to the operator (such as ShapeFactory.AddNewDraft
).
The lifetime of a PlanarFace object is limited, see Boundary.

Example:
This example asks the end user to select a face and two planar faces, and
creates a draft on these faces:

Dim InputObjectType(0)
Set Document = CATIA.ActiveDocument
Set Selection = Document.Selection
‘We propose to the user that he select the face to draft
InputObjectType(0)=”Face”
Status=Selection.SelectElement2(InputObjectType,”Select the face to
draft”,true)
if (Status = “cancel”) then Exit Sub
Set FaceToDraft = Selection.Item(1).Value
Selection.Clear
‘We propose to the user that he select the neutral face
InputObjectType(0)=”PlanarFace”
Status=Selection.SelectElement2(InputObjectType,”Select the neutral
face”,true)
if (Status = “cancel”) then Exit Sub
Set NeutralFace = Selection.Item(1).Value
Selection.Clear
‘We propose to the user that he select the parting
element
InputObjectType(0)=”PlanarFace”
Status=Selection.SelectElement2(InputObjectType,”Select the parting
element”,true)
if (Status = “cancel”) then Exit Sub
Set PartingElement = Selection.Item(1).Value
Set Draft = ShapeFactory.AddNewDraft(FaceToDraft,NeutralFace,0,PartingElement,0.0,0.0,1.0,0,5.0,0)
Set DraftDomains = Draft.DraftDomains
Set DraftDomain = DraftDomains.Item(1)
DraftDomain.SetPullingDirection 0.0, 0.0,1.0
Document.Part.Update
get_first_axis(o_first_axis=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetFirstAxis(CATSafeArrayVariant oFirstAxis)

Returns the planar face first axis

Parameters:

oFirstAxis[0]
The X Coordinate of the planar face first axis
oFirstAxis[1]
The Y Coordinate of the planar face first axis
oFirstAxis[2]
The Z Coordinate of the planar face first axis
Parameters

o_first_axis (tuple) –

Returns

None

get_origin(o_origin=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetOrigin(CATSafeArrayVariant oOrigin)

Returns the origin of the planar face.

Parameters:

oOrigin[0]
The X Coordinate of the planar face origin
oOrigin[1]
The Y Coordinate of the planar face origin
oOrigin[2]
The Z Coordinate of the planar face origin
Parameters

o_origin (tuple) –

Returns

None

get_second_axis(o_second_axis=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSecondAxis(CATSafeArrayVariant oSecondAxis)

Returns the planar face second axis.

Parameters:

oSecondAxis[0]
The X Coordinate of the planar face second axis
oSecondAxis[1]
The Y Coordinate of the planar face second axis
oSecondAxis[2]
The Z Coordinate of the planar face second axis
Parameters

o_second_axis (tuple) –

Returns

None

rectilinear_bi_dim_feat_edge

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.rectilinear_bi_dim_feat_edge.RectilinearBiDimFeatEdge(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
MecModInterfaces.Edge
MecModInterfaces.BiDimFeatEdge
RectilinearBiDimFeatEdge

1-D boundary belonging to a feature whose topological result is two
dimensional, the boundary having a rectilinear geometry.
Role: This Boundary object may be, for example, the edge of a surface obtained
through the extrusion of a line.
You will create a RectilinearBiDimFeatEdge object using the Shapes.GetBoundary
, HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2
method. Then, you pass it to the operator (such as Hole.SetDirection
).
The lifetime of a RectilinearBiDimFeatEdge object is limited, see
Boundary.

Example: see the RectilinearTriDimFeatEdge example
get_direction(o_direction=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetDirection(CATSafeArrayVariant oDirection)

Returns the direction of the rectilinear edge.

Parameters:

oDirection[0]
The X Coordinate of the direction
oDirection[1]
The Y Coordinate of the direction
oDirection[2]
The Z Coordinate of the direction
Parameters

o_direction (tuple) –

Returns

None

get_origin(o_origin=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetOrigin(CATSafeArrayVariant oOrigin)

Returns the origin of the the rectilinear edge.

Parameters:

oOrigin[0]
The X Coordinate of the rectilinear edge origin
oOrigin[1]
The Y Coordinate of the rectilinear edge origin
oOrigin[2]
The Z Coordinate of the rectilinear edge origin
Parameters

o_origin (tuple) –

Returns

None

rectilinear_mono_dim_feat_edge

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.rectilinear_mono_dim_feat_edge.RectilinearMonoDimFeatEdge(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
MecModInterfaces.Edge
MecModInterfaces.MonoDimFeatEdge
RectilinearMonoDimFeatEdge

1-D boundary belonging to a feature whose topological result is one
dimensional, the boundary having a rectilinear geometry.
Role: This Boundary object may be, for example, in a part containing a Sketch
which is made up of a line segment and a spline, the line
segment.
You will create a RectilinearMonoDimFeatEdge object using the
Shapes.GetBoundary , HybridShapes.GetBoundary , Sketches.GetBoundary or
Selection.SelectElement2 method. Then, you pass it to the operator (such as
Hole.SetDirection ).
The lifetime of a RectilinearMonoDimFeatEdge object is limited, see
Boundary.

Example: see the RectilinearTriDimFeatEdge example
get_direction(o_direction=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetDirection(CATSafeArrayVariant oDirection)

Returns the direction of the rectilinear edge

Parameters:

oDirection[0]
The X Coordinate of the direction
oDirection[1]
The Y Coordinate of the direction
oDirection[2]
The Z Coordinate of the direction
Parameters

o_direction (tuple) –

Returns

None

get_origin(o_origin=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetOrigin(CATSafeArrayVariant oOrigin)

Returns the origin of the the rectilinear edge.

Parameters:

oOrigin[0]
The X Coordinate of the rectilinear edge origin
oOrigin[1]
The Y Coordinate of the rectilinear edge origin
oOrigin[2]
The Z Coordinate of the rectilinear edge origin
Parameters

o_origin (tuple) –

Returns

None

rectilinear_tri_dim_feat_edge

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.rectilinear_tri_dim_feat_edge.RectilinearTriDimFeatEdge(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
MecModInterfaces.Edge
MecModInterfaces.TriDimFeatEdge
RectilinearTriDimFeatEdge

1-D boundary belonging to a feature whose topological result is three
dimensional, the boundary having a rectilinear geometry.
Role: This Boundary object may be, for example, the edge of a Pad resulting
from the extrusion of a square.
You will create a RectilinearTriDimFeatEdge object using the Shapes.GetBoundary
, HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2
method. Then, you pass it to the operator (such as Hole.SetDirection
).
The lifetime of a RectilinearTriDimFeatEdge object is limited, see
Boundary.

Example:
This example asks the end user to select a face, a rectilinear edge, and
creates a hole. The rectilinear edge specifies the hole direction. It may be a
RectilinearTriDimFeatEdge, a RectilinearBiDimFeatEdge or a
RectilinearMonoDimFeatEdge.

Dim EnabledObjectSelection1(0)
Dim EnabledObjectSelection2(2)
Set Document = CATIA.ActiveDocument
Set Selection = Document.Selection
‘We propose to the user that he select a face
EnabledObjectSelection1(0)=”Face”
Status=Selection.SelectElement2(EnabledObjectSelection1,”Select a
face”,true)
if (Status = “cancel”) then Exit Sub
Set Face = Selection.Item(1).Value
Selection.Clear
‘We propose to the user that he select the hole direction
EnabledObjectSelection2(0)=”RectilinearTriDimFeatEdge”
EnabledObjectSelection2(1)=”RectilinearBiDimFeatEdge”
EnabledObjectSelection2(2)=”RectilinearMonoDimFeatEdge”
Status=Selection.SelectElement2(EnabledObjectSelection2,”Select the hole
direction”,true)
if (Status = “cancel”) then Exit Sub
Set Hole = ShapeFactory.AddNewHoleFromPoint(20.0,-5.5, 1.07,Face,10.0)
Hole.ThreadingMode = 1
Hole.ThreadSide = 0
Hole.SetDirection Selection.Item(1).Value
Document.Part.Update
get_direction(o_direction=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetDirection(CATSafeArrayVariant oDirection)

Returns the direction of the rectilinear edge

Parameters:

oDirection[0]
The X Coordinate of the direction
oDirection[1]
The Y Coordinate of the direction
oDirection[2]
The Z Coordinate of the direction
Parameters

o_direction (tuple) –

Returns

None

get_origin(o_origin=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetOrigin(CATSafeArrayVariant oOrigin)

Returns the origin of the the rectilinear edge.

Parameters:

oOrigin[0]
The X Coordinate of the rectilinear edge origin
oOrigin[1]
The Y Coordinate of the rectilinear edge origin
oOrigin[2]
The Z Coordinate of the rectilinear edge origin
Parameters

o_origin (tuple) –

Returns

None

shape

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.shape.Shape(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
Shape

Represents the Shape object.
It is an abstract object which is not intended to be created as such, from
which all objects having a shape representation derive.

See also:
SketchBasedShape, BooleanShape, DressUpShape, TransformationShape


Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

shape_instance

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.shape_instance.ShapeInstance(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
MecModInterfaces.Shape
ShapeInstance

The interface to access a CATIAShapeInstance.
get_input(i_name=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetInput(CATBSTR iName) As AnyObject

Gets an input of a shape instance by its name.

Parameters:

iName
The name of the input of the shape instance

Returns:
The input, if found
Example:
The following example tests if the input was found:

Set input = shapeInstance.GetInput(“Input1”)
If TypeName(input)=”Nothing” Then
MsgBox “Input not found”
End If
Parameters

i_name (str) –

Returns

AnyObject

get_input_data(i_name=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetInputData(CATBSTR iName) As CATBaseDispatch

Gets an input of a shape instance by its name. Use this method if you want
to retrieve a Reference.

Parameters:

iName
The name of the input of the shape instance

Returns:
The input, if found
Example:
The following example tests if the input was found:

Set input = shapeInstance.GetInput(“Input1”)
If TypeName(input)=”Nothing” Then
MsgBox “Input not found”
End If
Parameters

i_name (str) –

Returns

AnyObject

get_input_data_from_position(i_position=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetInputDataFromPosition(long iPosition) As
CATBaseDispatch

Gets an input of a hybrid shape instance from its position. Use this method
if you want to retrieve a Reference.

Parameters:

iPosition
The position

Returns:
The input, if found
Example:
The following example tests if the input was found:

Set input = hybridShapeInstance.GetInputFromPosition(2)
If TypeName(input)=”Nothing” Then
MsgBox “Input not found”
End If
Parameters

i_position (int) –

Returns

AnyObject

get_input_from_position(i_position=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetInputFromPosition(long iPosition) As AnyObject

Gets an input of a hybrid shape instance from its
position.

Parameters:

iPosition
The position

Returns:
The input, if found
Example:
The following example tests if the input was found:

Set input = hybridShapeInstance.GetInputFromPosition(2)
If TypeName(input)=”Nothing” Then
MsgBox “Input not found”
End If
Parameters

i_position (int) –

Returns

AnyObject

get_output(i_name=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOutput(CATBSTR iName) As AnyObject

Gets a Ouput by its name.

Parameters:

iName
The name of the output of the shape instance

Returns:
The output, if found
Example:
The following example tests if the output was found:

Set output = shapeInstance.GetOuput(“Output1”)
If TypeName(output)=”Nothing” Then
MsgBox “Output not found”
End If
Parameters

i_name (str) –

Returns

AnyObject

get_output_from_position(i_position=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOutputFromPosition(long iPosition) As AnyObject

Gets a Ouput from its position.

Parameters:

iPosition
The position

Returns:
The output, if found
Example:
The following example tests if the output was found:

Set output = shapeInstance.GetOuputFromPosition(2)
If TypeName(output)=”Nothing” Then
MsgBox “Output not found”
End If
Parameters

i_position (int) –

Returns

AnyObject

get_parameter(i_name=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetParameter(CATBSTR iName) As AnyObject

Gets a parameter of a shape instance by its name.

Parameters:

iName
The name of the parameter of the shape instance

Returns:
The parameter, if found
Example:
The following example tests if the parameter was
found:

Set parameter = shapeInstance.GetParameter(“Parameter1”)
If TypeName(parameter)=”Nothing” Then
MsgBox “Parameter not found”
End If
Parameters

i_name (str) –

Returns

AnyObject

get_parameter_from_position(i_position=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetParameterFromPosition(long iPosition) As AnyObject

Gets a parameter of a hybrid shape instance from its
position.

Parameters:

iPosition
The position

Returns:
The parameter, if found
Example:
The following example tests if the parameter was
found:

Set parameter = hybridShapeInstance.GetParameterFromPosition(2)
If TypeName(input)=”Nothing” Then
MsgBox “Parameter not found”
End If
Parameters

i_position (int) –

Returns

AnyObject

property inputs_count

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property InputsCount() As long (Read Only)

Returns the number of Inputs.

Example:
The following example retrieves in inputsCount the number of Inputs of
hybridShapeInstance:

inputsCount = hybridShapeInstance.InputsCount
Returns

int

property outputs_count

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OutputsCount() As long (Read Only)

Returns the number of Outputs.

Example:
The following example retrieves in outputsCount the number of Outputs
of hybridShapeInstance:

outputsCount = hybridShapeInstance.OutputsCount
Returns

int

property parameters_count

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParametersCount() As long (Read Only)

Returns the number of Parameters.

Example:
The following example retrieves in parametersCount the number of
parameters of hybridShapeInstance:

parametersCount = hybridShapeInstance.ParametersCount
Returns

int

put_input(i_name=None, i_input=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutInput(CATBSTR iName,
AnyObject iInput)

Defines an input of a shape instance.

Parameters:

iName
The input name
iInput
The element wich will be input of the shape
instance
All types of

Boundary object are possibly supported.
Example:
The following example defines the input of a shape instance The input
will be a point and its name will be Input1.

shapeInstance.PutInput “Input1”,point
Parameters
Returns

None

put_input_data(i_name=None, i_input=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutInputData(CATBSTR iName,
CATBaseDispatch iInput)

Defines an input of a shape instance. Use this method if you want to set as
input a Reference.

Parameters:

iName
The input name
iInput
The element wich will be input of the shape
instance
All types of

Boundary object are possibly supported.
Example:
The following example defines the input of a shape instance The input
will be a point and its name will be Input1.

shapeInstance.PutInput “Input1”,point
Parameters
Returns

None

shapes

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.shapes.Shapes(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
Shapes

The collection of the shapes making up a body.
get_boundary(i_label=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetBoundary(CATBSTR iLabel) As Boundary

Returns a boundary using its label.

Parameters:

iLabel
Identification of the

Boundary object. See Reference.DisplayName.
Returns:
The retrieved boundary
Parameters

i_label (str) –

Returns

Boundary

item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As Shape

Returns a shape using its index or its name from the Shapes
collection.

Parameters:

iIndex
The index or the name of the shape to retrieve from the collection
of shapes. As a numerics, this index is the rank of the shape in the
collection. The index of the first shape in the collection is 1, and the index
of the last shape is

Collection.Count. As a string, it is the name you assigned to the shape
using the AnyObject.Name property.
Returns:
The retrieved shape
Example:
This example retrieves in ThisShape the third shape, and in ThatShape
the shape named MyShape in the shape collection of the active document,
supposed to be a part document.

Set ThisShape = CATIA.ActiveDocument.Shapes.Item(3)
Set ThatShape = CATIA.ActiveDocument.Shapes.Item(“MyShape”)
Parameters

i_index (CATVariant) –

Returns

Shape

sketches

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.sketches.Sketches(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.Collection
Sketches

The body’s collection of sketches not yet used by any shape.
add(i_plane=None)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Add(Reference iPlane) As Sketch

Creates a new sketch and adds it to the sketch collection. The sketch
creation implies to specify a supporting plane. Once created, the sketch
exists, but is empty. You must use the Sketch.OpenEdition method to begin to
edit it.

Parameters:

iPlane
The sketch supporting plane
The following

Boundary object is supported: PlanarFace.
Returns:
oNewSketch The created sketch
Example:
This example creates the newSketch sketch on the XY plane of the myPart
part:

Set XYPlane = myPart.OriginElements.PlaneXY()
Set newSketch = myPart.Sketches.Add(XYPlane)
Parameters

i_plane (Reference) –

Returns

Sketch

get_boundary(i_label)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetBoundary(CATBSTR iLabel) As Boundary

Returns a boundary using its label.

Parameters:

iLabel
Identification of the

Boundary object. See Reference.DisplayName.
Returns:
The retrieved boundary
Parameters

i_label (str) –

Returns

Boundary

item(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func Item(CATVariant iIndex) As Sketch

Returns a sketch using its index or its name from the Sketches
collection.

Parameters:

iIndex
The index or the name of the sketch to retrieve from the collection
of sketches. As a numerics, this index is the rank of the sketch in the
collection. The index of the first sketch in the collection is 1, and the index
of the last sketch is Count. As a string, it is the name you assigned to the
sketch using the

AnyObject.Name property.
Returns:
The retrieved sketch
Example:
This example retrieves the last item in the collection
sketches.

Set lastSketch = sketchList.Item(sketchList.Count)
Parameters

i_index (CATVariant) –

Returns

Sketch

solid

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.solid.Solid(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
MecModInterfaces.Shape
Solid

Represents an imported solid object.
Role: the imported solid is a solid obtained from copy/paste with link or
design in context.
The solid object has a link to a source element obtained from SourceElement and
a source product obtained from SourceProduct .
property move

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Move() As Move (Read Only)

Returns the move object of the solid.
Role: The move object is aggregated by the solid object and itself
aggregates a movable object to which you can apply a move transformation by
means of an isometry matrix. It moves the solid according to this
isometry.

Example:

This example retrieves the move object EngineMoveObject for
the
Engine product.


Dim EngineMoveObject As Move
Set EngineMoveObject = Engine.Move





See also:
Move
Returns

Move

property source_element

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SourceElement() As AnyObject (Read Only)

Returns the source element of the imported solid.
Role: returns the linked element in the source part.

Example:
The following example returns in element the source element of the
imported solid importedSolid:

Set element = importedSolid.SourceElement
Returns

AnyObject

property source_product

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SourceProduct() As AnyObject (Read Only)

Returns the source product instance of the imported solid.
Role: returns the product instance which was selected when the import was
created.

Example:
The following example returns in prod1 the source product instance of
the imported solid importedSolid:

Set prod1 = importedSolid.SourceProduct
Returns

AnyObject

tri_dim_feat_edge

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.tri_dim_feat_edge.TriDimFeatEdge(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
MecModInterfaces.Edge
TriDimFeatEdge

1-D boundary belonging to a feature whose topological result is three
dimensional.
Role: This Boundary object may be, for example, the edge of a
Pad.
You will create a TriDimFeatEdge object using the Shapes.GetBoundary ,
HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2
method. Then, you pass it to the operator (such as
ShapeFactory.AddNewEdgeFilletWithConstantRadius ).
The lifetime of a TriDimFeatEdge object is limited, see
Boundary.

Example:
This example asks the end user to select an edge, and creates an edge
fillet on this edge:

Dim InputObjectType(0)
Set Document = CATIA.ActiveDocument
Set Selection = Document.Selection
‘We propose to the user that he select an edge
InputObjectType(0)=”TriDimFeatEdge”
Status=Selection.SelectElement2(InputObjectType,”Select an
edge”,true)
if (Status = “cancel”) then Exit Sub
Set EdgeFillet = ShapeFactory.AddNewEdgeFilletWithConstantRadius(Selection.Item(1).Value,1,5.0)
EdgeFillet.EdgePropagation = 1
Document.Part.Update


Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

tri_dim_feat_vertex_or_bi_dim_feat_vertex

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.tri_dim_feat_vertex_or_bi_dim_feat_vertex.TriDimFeatVertexOrBiDimFeatVertex(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
MecModInterfaces.Vertex
TriDimFeatVertexOrBiDimFeatVertex

0-D boundary belonging to a feature whose topological result is three
dimensional or two dimentional.
Role: This Boundary object may be, for example, the corner of a Pad resulting
from the extrusion of a square.
You will create a TriDimFeatVertexOrBiDimFeatVertex object using the
Shapes.GetBoundary , HybridShapes.GetBoundary , Sketches.GetBoundary or
Selection.SelectElement2 method. Then, you pass it to the
operator.
The lifetime of a TriDimFeatVertexOrBiDimFeatVertex object is limited, see
Boundary.

Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

vertex

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.vertex.Vertex(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
Vertex

0-D boundary.
Role: This Boundary object may be, for example, the corner of a Pad resulting
from the extrusion of a square.
You will create an Vertex object using the Shapes.GetBoundary ,
HybridShapes.GetBoundary , Sketches.GetBoundary or Selection.SelectElement2
method. Then, you pass it to the operator (such as
HybridShapeFactory.AddNewLinePtPt ).
The lifetime of a Vertex object is limited, see Boundary.
See also:
TriDimFeatVertexOrBiDimFeatVertex , NotWireBoundaryMonoDimFeatVertex ,
ZeroDimFeatVertexOrWireBoundaryMonoDimFeatVertex .

Example:
This example asks the end user to select successively two vertices. Then,
it creates a line between these two vertices.

Dim InputObjectType(0)
Set Document = CATIA.ActiveDocument
Set Selection = Document.Selection
Set HybridBodies = Document.Part.HybridBodies
Set HybridBody = HybridBodies.Item(“Geometrical Set.1”)
‘We propose to the user that he select the first vertex
InputObjectType(0)=”Vertex”
Status=Selection.SelectElement2(InputObjectType,”Select the first
vertex”,true)
if (Status = “cancel”) then Exit Sub
Set FirstVertex = Selection.Item(1).Value
Selection.Clear
‘We propose to the user that he select the second vertex
InputObjectType(0)=”Vertex”
Status=Selection.SelectElement2(InputObjectType,”Select the second
vertex”,true)
if (Status = “cancel”) then Exit Sub
Set SecondVertex = Selection.Item(1).Value
Set hybridShapeLinePtPt = HybridShapeFactory.AddNewLinePtPt(FirstVertex,SecondVertex)
HybridBody.AppendHybridShape hybridShapeLinePtPt
Document.Part.InWorkObject = hybridShapeLinePtPt
Document.Part.Update


Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

zero_dim_feat_vertex_or_wire_boundary_mono_dim_feat_vertex

Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445

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.mec_mod_interfaces.zero_dim_feat_vertex_or_wire_boundary_mono_dim_feat_vertex.ZeroDimFeatVertexOrWireBoundaryMonoDimFeatVertex(com_object)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)

System.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
InfInterfaces.Reference
MecModInterfaces.Boundary
MecModInterfaces.Vertex
ZeroDimFeatVertexOrWireBoundaryMonoDimFeatVertex

0-D boundary being either an isolated point or the extremity of a feature
whose topological result is one dimensional.
Role: This Boundary object may be, for example, the extremity of a line
segment.
You will create a ZeroDimFeatVertexOrWireBoundaryMonoDimFeatVertex object using
the Shapes.GetBoundary , HybridShapes.GetBoundary , Sketches.GetBoundary or
Selection.SelectElement2 method. Then, you pass it to the
operator.
The lifetime of a ZeroDimFeatVertexOrWireBoundaryMonoDimFeatVertex object is
limited, see Boundary.

Copyright © 1999-2011, Dassault Systèmes. All rights reserved.