hybrid_shape_interfaces

hybrid_shape3_d_curve_offset

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.hybrid_shape_interfaces.hybrid_shape3_d_curve_offset.HybridShape3DCurveOffset(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
HybridShape3DCurveOffset

Represents the hybrid shape 3DCurve Offset operation feature.
Role: Allows you to access data of the 3D Curve Offset feature created by using
a curve, a direction and three literal parameters

Use the HybridShapeFactory.AddNew3DCurveOffset to create a
HybridShape3DCurveOffset object.
property corner_radius_value

Note

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

Returns or sets the Corner Radius Value.
Returns

Length

property corner_tension_value

Note

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

Returns or sets the Corner Tension Value.
Returns

float

property curve_to_offset

Note

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

Returns or sets the curve to offset.
Returns

Reference

property direction

Note

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

Returns or sets the direction.
Returns

HybridShapeDirection

property invert_direction

Note

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

Returns or sets the direction orientation.
Returns

bool

property offset_value

Note

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

Returns or sets the OffsetValue.
Returns

Length

hybrid_shape_affinity

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.hybrid_shape_interfaces.hybrid_shape_affinity.HybridShapeAffinity(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
HybridShapeAffinity

Represents the hybrid shape affinity feature object.
Role: To access the data of the hybrid shape affinity feature object. This data
includes:

The element to transform using the affinity
The affinity reference coordinate system origin
The affinity reference coordinate system reference plane
The affinity reference coordinate system first direction
The affinity ratio along the x, y and z directions of the reference
coordinate system
The element to transform using the affinity

The reference coordinate system is always a direct one.

LICENSING INFORMATION: Creation of volume result requires GSO
License
if GSO License is not granted , setting of Volume context has not
effect

Use the CATIAHybridShapeFactory to create a HybridShapeAffinity
object.

See also:
HybridShapeFactory
property axis_first_direction

Note

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

Returns or sets the first direction of the reference coordinate
system.
Sub-element(s) supported (see Boundary object): RectilinearTriDimFeatEdge,
RectilinearBiDimFeatEdge or RectilinearMonoDimFeatEdge.

Example:
This example retrieves in FirstDir the first direction of the reference
coordinate system used by the Affinity hybrid shape
feature.

Dim FirstDir As Reference
Set FirstDir = Affinity.AxisFirstDirection
Returns

Reference

property axis_origin

Note

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

Returns or sets the origin of the reference coordinate
system.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in Origin the origin of the reference coordinate
system used by the Affinity hybrid shape feature.

Dim Origin As Reference
Set Origin = Affinity.AxisOrigin
Returns

Reference

property axis_plane

Note

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

Returns or sets the reference plane of the reference coordinate
system.
Sub-element(s) supported (see Boundary object):
PlanarFace.

Example:
This example retrieves in RefPlane the reference plane of the reference
coordinate system used by the Affinity hybrid shape
feature.

Dim RefPlane As Reference
Set RefPlane = Affinity.AxisPlane
Returns

Reference

property creation_mode

Note

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

Returns or sets the creation mode(creation or
modification).
Legal values: True if the result is a creation feature and False if the
result is a modification feature.

Example:

This example sets that the mode of
the hybShpAffinity hybrid shape affinity to creation


hybShpAffinity.CreationMode = True
Returns

bool

property elem_to_transform

Note

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

Returns or sets the element to transform using the
affinity.

Example:
This example retrieves in ElementToTransform the element to transform
for the Affinity hybrid shape feature.

Dim ElementToTransform As Reference
Set ElementToTransform = Affinity.ElemToTransform
Returns

Reference

property volume_result

Note

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

Returns or sets the volume result.
Legal values: True if the result of affinity is required as volume (option
is effective only in case of volumes,requires GSO License) and False if it is
needed as surface .

Example:

This example sets that the result of
the hybShpAffinity hybrid shape affinity is volume.


hybShpAffinity.VolumeResult = True
Returns

bool

property x_ratios

Note

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

Returns the affinity ratio along the X Direction of the reference
coordinate system.

Example:
This example retrieves in X the ratio of the affinity along the X
Direction of the reference coordinate system used by the Affinity hybrid shape
feature.

Dim X As RealParam
Set X = Affinity.XRatios
Returns

RealParam

property y_ratios

Note

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

Returns the affinity ratio along the Y Direction of the reference
coordinate system.

Example:
This example retrieves in Y the ratio of the affinity along the Y
Direction of the reference coordinate system used by the Affinity hybrid shape
feature.

Dim Y As RealParam
Set Y = Affinity.YRatios
Returns

RealParam

property z_ratios

Note

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

Returns the affinity ratio along the Z Direction of the reference
coordinate system.

Example:
This example retrieves in Z the ratio of the affinity along the Z
Direction of the reference coordinate system used by the Affinity hybrid shape
feature.

Dim Z As RealParam
Set Z = Affinity.ZRatios
Returns

RealParam

hybrid_shape_assemble

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.hybrid_shape_interfaces.hybrid_shape_assemble.HybridShapeAssemble(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
HybridShapeAssemble

Represents the hybrid shape assemble feature object.
Role: To access the data of the hybrid shape assemble feature object. This data
includes:

A list of the assembled elements
Some methods to access this data

Use the CATIAHybridShapeFactory to create a HybridShapeAssemble
object.

See also:
HybridShapeFactory
add_element(i_element)

Note

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

Adds an element to the hybrid shape assemble feature
object.

Parameters:

iElement
The element to add to the hybrid shape assemble feature
object.
Sub-element(s) supported (see

Boundary object): Face, TriDimFeatEdge and BiDimFeatEdge.


Examples:
The following example adds the iElement feature object to the
HybridShapeAssemble object.

HybridShapeAssemble.AddElement iElement
Parameters

i_element (Reference) –

Returns

None

add_sub_element(i_sub_element)

Note

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

Adds a sub element to the hybrid shape assemble feature
object.

Parameters:

iSubElement
The sub element to remove to the hybrid shape assemble feature
object.
Parameters

i_sub_element (Reference) –

Returns

None

append_federated_element(i_element)

Note

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

Appends an init to the list of elements to federate.

Parameters:

iElement
Element to append.

See also:
Reference
Parameters

i_element (Reference) –

Returns

None

get_angular_tolerance()

Note

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

Get the angular tolerance.

Parameters:

oValue
The angular tolerance.
Returns

float

get_angular_tolerance_mode()

Note

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

Get the angular tolerance mode.

Parameters:

oValue
The angular tolerance mode.
Returns

bool

get_connex()

Note

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

Get the connex checker flag.

Parameters:

oConnex
Returns

bool

get_deviation()

Note

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

Get the deviation value.

Parameters:

odeviation
The deviation.
Returns

float

get_element(i_rank)

Note

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

Retrieves an element used by the hybrid shape assemble feature
object.

Parameters:

iRank
The rank of the element to read.

Examples:
The following example gets the oElement feature object of the
HybridShapeAssemble object at the position iRank.

Dim oElement As Reference
Set oElement = HybridShapeAssemble.GetElement (iRank).
Parameters

i_rank (int) –

Returns

Reference

get_elements_size()

Note

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

Returns the size of the list of elements to assemble in the hybrid shape
assemble feature object.

Parameters:

oSize
Number of elements in the Assemble.

Example:
This example retrieves the number of elements in the
HybShpAssemble hybrid shape assemble.

Dim oSize As long
oSize = HybShpAssemble.GetElementsSize
Returns

int

get_federated_element(i_rank)

Note

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

Retrieves an federated inits used by the hybrid shape assemble feature
object.

Parameters:

iRank
The rank of the element to read.
oElement
The federated element.

See also:
Reference
Parameters

i_rank (int) –

Returns

Reference

get_federated_elements_size()

Note

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

Gets the number of federated inits.

Parameters:

Size
Number of elements.
Returns

int

get_federation_propagation()

Note

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

Gets the propagation mode of the federation.

Parameters:

i
type of propagation (0: No, 1: All, 2: Continuity,
3:Tangency).
Returns

int

get_manifold()

Note

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

Get the manifold checker flag.

Parameters:

oManifold
Returns

bool

get_simplify()

Note

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

Get the simplify flag.

Parameters:

oSimplify
Returns

bool

get_sub_element(i_rank)

Note

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

Retrieves a sub element used by the hybrid shape assemble feature
object.

Parameters:

iRank
The rank of the subelement to read.
Parameters

i_rank (int) –

Returns

Reference

get_sub_elements_size()

Note

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

Returns the size of the list of sub-elements to remove in the hybrid shape
assemble feature object.

Parameters:

oSize
Number of sub elements in the Assemble.

Example:
This example retrieves the number of sub elements in the
HybShpAssemble hybrid shape assemble.

Dim oSize As long
oSize = HybShpAssemble.GetSubElementsSize
Returns

int

get_suppress_mode()

Note

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

Get the SuppressMode flag.

Parameters:

oSuppressMode
Returns

bool

get_tangency_continuity()

Note

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

Get the tangency continuity checker flag.

Parameters:

oTangencyContinuity
Returns

bool

property invert

Note

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

Returns or sets the invert mode.
Legal values: True the result is inverted. False the result is not
inverted.

Example:

This example sets the invert mode of
the HybShpAssemble hybrid shape assemble feature to
True.


HybShpAssemble.Invert = True
Returns

bool

remove_element(i_rank)

Note

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

Removes an element used by the hybrid shape assemble feature
object.

Parameters:

iRank
The rank of the element to remove.

Examples:
The following example removes the feature object from the
HybridShapeAssemble object at the position iRank.

HybridShapeAssemble.RemoveElement iRank.
Parameters

i_rank (int) –

Returns

None

remove_federated_element(i_rank)

Note

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

Removes an element to the list of elements to federate.

Parameters:

iRank
Position of the element to remove.
Parameters

i_rank (int) –

Returns

None

remove_sub_element(i_rank)

Note

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

Removes a sub element used by the hybrid shape assemble feature
object.

Parameters:

iRank
The rank of the element to remove.
Parameters

i_rank (int) –

Returns

None

replace_element(i_pos, i_element)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ReplaceElement(long iPos,
Reference iElement)

Replaces the element at specified position in the hybrid shape assemble
feature object.

Parameters:

iPos
Position at which the element should be replaced.
iElement
Reference of the element to be inserted.

Example:
This example replaces the element in the HybShpAssemble
assemble feature at specified position iPos

HybShpAssemble.ReplaceElement iPos,iElement
Parameters
Returns

None

set_angular_tolerance(i_value)

Note

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

Set the angular tolerance.

Parameters:

iValue
The angular tolerance.
Parameters

i_value (float) –

Returns

None

set_angular_tolerance_mode(i_value)

Note

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

Set the angular tolerance mode.

Parameters:

iValue
The angular tolerance mode.
Parameters

i_value (bool) –

Returns

None

set_connex(i_connex)

Note

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

Set the connex checker flag.

Parameters:

iConnex
Parameters

i_connex (bool) –

Returns

None

set_deviation(ideviation)

Note

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

Set the deviation value.

Parameters:

ideviation
The deviation.
Parameters

ideviation (float) –

Returns

None

set_federation_propagation(i_mode)

Note

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

Sets the propagation mode of federation.

Parameters:

i
type of propagation (0: No, 1: All, 2: Continuity,
3:Tangency).
Parameters

i_mode (int) –

Returns

None

set_manifold(i_manifold)

Note

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

Set the manifold checker flag.

Parameters:

iManifold
Parameters

i_manifold (bool) –

Returns

None

set_simplify(i_simplify)

Note

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

Set the simplify flag.

Parameters:

iSimplify
Parameters

i_simplify (bool) –

Returns

None

set_suppress_mode(i_suppress_mode)

Note

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

Set the SuppressMode flag.

Parameters:

iSuppressMode
Parameters

i_suppress_mode (bool) –

Returns

None

set_tangency_continuity(i_tangency_continuity)

Note

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

Set the tangency continuity checker flag.

Parameters:

iTangencyContinuity
Parameters

i_tangency_continuity (bool) –

Returns

None

hybrid_shape_axis_line

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.hybrid_shape_interfaces.hybrid_shape_axis_line.HybridShapeAxisLine(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
HybridShapeAxisLine

Represents the hybrid shape axis line feature object.
Role: To access the data of the hybrid shape axis line feature object. This
data includes:

The element used to compute the axis
The direction used in orientation of axis
AxisLineType to change the axis type

Use the CATIAHybridShapeFactory to create a HybridShapeAxisLine
object.

See also:
HybridShapeFactory
property axis_line_type

Note

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

Returns or sets the axis line type.
Legal values:

1
This option creates Axis along major axis if element is ellipse or
oblong, Axis is aligned with direction specified if input is circle and
coincides with revolution axis if element is revolution
surface
2
This option creates Axis along minor axis if element is ellipse or
oblong, Axis is normal to direction specified if input is
circle
3
This option creates Axis normal to the element if it is circle, ellipse
or oblong

Example:
This example retrieves in oType the axis line type for the AxisLine hybrid
shape feature.

Dim oType
Set oType = AxisLine.AxisLineType
Returns

int

property direction

Note

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

Gets the reference direction used in computation of axis.
This is useful only if the element selected is circle, arc or sphere. If
the element is circle or arc Axis may be normal to reference direction or
aligned with reference direction

Example:
This example retrieves in oDir the direction for the AxisLine hybrid
shape feature.

Dim oDir As CATIAHybridShapeDirection
Set oDir = AxisLine.Direction
Returns

HybridShapeDirection

property element

Note

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

Returns or sets the element from which axis is computed.

Example:
This example retrieves in Element the element from which axis is
computed for the AxisLine hybrid shape feature.

Dim Element As Reference
Set Element = AxisLine.Element
Returns

Reference

hybrid_shape_axis_to_axis

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.hybrid_shape_interfaces.hybrid_shape_axis_to_axis.HybridShapeAxisToAxis(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
HybridShapeAxisToAxis

Represents the hybrid shape axis to axis transformation feature
object.
Role: To access the data of the axis to axis transformation shape feature
object. The data includes:

The element to be transformed
The reference axis system
The target axis system

LICENSING INFORMATION: Creation of volume result requires GSO
License
if GSO License is not granted , setting of Volume context has not
effect
Use the CATIAHybridShapeFactory to create HybridShapeFeature
object.

See also:
HybridShapeFactory
property creation_mode

Note

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

Returns or sets the creation mode(creation or
modification).
Legal values: True if the result is a creation feature and False if the
result is a modification feature.

Example:

This example sets that the mode of
the hybShpAxisToAxis hybrid shape axis to axis to
creation


hybShpAxisToAxis.CreationMode = True
Returns

bool

property elem_to_transform

Note

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

Returns or sets the element to transform.

Example:
This example retrieves in Elem the element to transform for the
AxisToAxis hybrid shape feature.

Dim Elem As Reference
Set Elem = AxisToAxis.ElemToTransform
Returns

Reference

property reference_axis

Note

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

Returns or sets the reference axis.

Example:
This example retrieves in Ref the reference axis for the AxisToAxis
hybrid shape feature.

Dim Ref As Reference
Set Ref = AxisToAxis.ReferenceAxis
Returns

Reference

property target_axis

Note

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

Returns or sets the target axis.

Example:
This example retrieves in Ref the target axis for the AxisToAxis hybrid
shape feature.

Dim Ref As Reference
Set Ref = AxisToAxis.ReferenceAxis
Returns

Reference

property volume_result

Note

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

Returns or sets the volume result.
Legal values: True if the result of axis to axis transformation is required
as volume (option is effective only in case of volumes,requires GSO License))
and False if it is needed as surface .

Example:

This example sets that the result of
the hybShpAxisToAxis hybrid shape AxisToAxis is
volume.


hybShpAxisToAxis.VolumeResult = True
Returns

bool

hybrid_shape_blend

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.hybrid_shape_interfaces.hybrid_shape_blend.HybridShapeBlend(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
HybridShapeBlend

Represents the hybrid shape blended surface object.
Role: To access the data of the hybrid shape blended surface
object.

This data includes:

Two support surfaces, one at each limit of the blended
surface
Two curves, one for each support surface
The curve closing points

Use the CATIAHybridShapeFactory to create a HybridShapeBlend
object.

See also:
HybridShapeFactory
property coupling

Note

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

Returns or sets the type of coupling between the limits of the
blend.
Legal values: The values representing the type of coupling can
be:

1
Ratio: the curves are coupled according to the curvilinear abscissa
ratio
2
Tangency: the curves are coupled according to their tangency
discontinuity points. If they do not have the same number of tangency
discontinuity points, they cannot be coupled and an error message is displayed

3
Tangency then curvature: the curves are coupled according to their
tangency discontinuity points first, then according to their curvature
discontinuity points. If they do not have the same number of tangency and
curvature discontinuity points, they cannot be coupled and an error message is
displayed
4
Vertices: the curves are coupled according to their vertices. If they
do not have the same number of vertices, they cannot be coupled and an error
message is displayed
5
Spine: coupling is completely driven by a curve (called spine)


Example:
This example retrieves in CouplingVal the coupling value of the
ShpBlend hybrid shape blended feature.

CouplingVal = ShpBlend.Coupling
Returns

int

get_border_mode(i_blend_limit)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetBorderMode(long iBlendLimit) As long

Returns the type of border to a limit of the blend.

Parameters:

iBlendLimit
The limit of the blend whose type of border is to be
retrieved.
Legal values: 1 for the first limit, and 2 for the second one


Returns:
The type of border
Legal values:

1
The border of the blend will be tangent to the border of the
support surface, or if the curve ends on the border of a face of the support
surface, then the border of the blend will be tangent to the border face.

2
The border of the blend is not constrained.

Example:
This example retrieves in BorderType the type of border of the first limit
of the ShpBlend hybrid shape blended feature.

BorderType = ShpBlend.GetBorderMode(1)
Parameters

i_blend_limit (int) –

Returns

int

get_closing_point(i_blend_limit)

Note

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

Returns the closing point of a closed curve of the blend.

Parameters:

iBlendLimit
The limit of the blend whose curve closing point is
returned.
Legal values: 1 for the first curve, and 2 for the second one


Returns:
The retrieved closing point

Example:
This example retrieves in ClosingPoint the closing point of the curve of
the second limit of the ShpBlend hybrid shape blended
feature.

Dim ClosingPoint As Reference
ClosingPoint = ShpBlend.GetClosingPoint(2)
Parameters

i_blend_limit (int) –

Returns

Reference

get_continuity(i_blend_limit)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetContinuity(long iBlendLimit) As long

Retrieves the continuity of a limit of the blend.

Parameters:

iBlendLimit
The limit of the blend whose continuity is to be
retrieved.
Legal values: 1 for the first limit, and 2 for the second one


Returns:
The retrieved continuity.
Legal values:

0
Point continuity
1
Tangency continuity
2
Curvature continuity

Example:
This example retrieves in Continuity the continuity of the second limit of
the ShpBlend hybrid shape blended feature.

Continuity = ShpBlend.GetContinuity(2)
Parameters

i_blend_limit (int) –

Returns

int

get_curve(i_blend_limit)

Note

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

Returns a curve from the blend.

Parameters:

iBlendLimit
The limit of the blend from which the curve will be
retrieved.
Legal values: 1 for the first curve, and 2 for the second one


Returns:
The retrieved curve

Example:
This example retrieves in BlendCurve the curve of the second limit of the
ShpBlend hybrid shape blended feature.

Dim BlendCurve As Reference
BlendCurve = ShpBlend.GetCurve(2)
Parameters

i_blend_limit (int) –

Returns

Reference

get_orientation(i_blend_limit)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOrientation(long iBlendLimit) As long

Returns the orientation of a curve of the blend.

Parameters:

iBlendLimit
The limit of the blend whose curve orientation is to be
retrieved.
Legal values: 1 for the first curve, and 2 for the second one


Returns:
The orientation to set to the curve.
Legal values: 1 for direct and -1 for reverse

Example:
This example retrieves in Orientation the orientation of the second limit
of the ShpBlend hybrid shape blended feature.

Orientation = ShpBlend.GetOrientation(2)
Parameters

i_blend_limit (int) –

Returns

int

get_ruled_developable_surface_connection(i_blend_limit)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRuledDevelopableSurfaceConnection(long iBlendLimit) As
long

Returns or sets the ruled developable surface connection
type.

Parameters:

iBlendLimit
The limit of the blend for which the connection type is to be
set.
Legal values: 1 for the start limit, and 2 for the end one

oBlendConnection
The value of connection type
Legal values:

1
Connect to both extremities
2
Free first curve
3
Free second curve
Parameters

i_blend_limit (int) –

Returns

int

get_support(i_blend_limit)

Note

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

Returns a support from the blend.

Parameters:

iBlendLimit
The limit of the blend whose support is to be
retrieved.
Legal values: 1 for the first support, and 2 for the second one


Returns:
The retrieved support surface

Example:
This example retrieves in SupportSurf the support surface of the second
limit of the ShpBlend hybrid shape blended feature.

Dim SupportSurf As Reference
SupportSurf = ShpBlend.GetSupport(2)
Parameters

i_blend_limit (int) –

Returns

Reference

get_tension_in_double(i_blend_limit, i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetTensionInDouble(long iBlendLimit,
long iRank) As RealParam

Returns the tension values of a limit of the blend.

Parameters:

iBlendLimit
The limit of the blend from which the tension type and values are
to be retrieved.
Legal values: 1 for the first limit, and 2 for the second one

iRank
The rank of the value to retrieve among those available, depending
on the tension type.
Legal values: iRank can take the following values:

1
With default tension and constant tension, for the unique
available value, and with linear tension for the first value

2
With linear tension for the second value

Returns:
The retrieved tension value

Example:
This example retrieves in TensionVal the tension value of the tension,
supposed to be a constant tension, of the first limit of the ShpBlend hybrid
shape blended feature.

Dim ConstTensionVal As RealParam
Set ConstTensionVal = ShpBlend.GetTensionInDouble(1, 1)
Parameters
  • i_blend_limit (int) –

  • i_rank (int) –

Returns

RealParam

get_tension_type(i_blend_limit)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetTensionType(long iBlendLimit) As long

Returns the tension type of a limit of the blend.

Parameters:

iBlendLimit
The limit of the blend from which the tension type is to be
retrieved.
Legal values: 1 for the first limit, and 2 for the second one


Returns:
The value of tension type
Legal values:

1
Default tension
2
Constant tension
3
Linear tension

Example:
This example retrieves in TensionType the tension type of the first limit
of the ShpBlend hybrid shape blended feature.

TensionType.GetTensionType(1)
Parameters

i_blend_limit (int) –

Returns

int

get_transition(i_blend_limit)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetTransition(long iBlendLimit) As long

Returns the transition orientation from a limit of the
blend.
Let T be the tangent to the wire, and N be the normal to the skin body. The
transition orientation defines how the blend goes from the initial wires: it
takes the direction of iTransition*(T^N), where ^ is the cross
product.

Parameters:

iBlendLimit
The limit of the blend whose transition orientation is to be
retrieved.
Legal values: 1 for the first support, and 2 for the second one


Returns:
The retrieved value of transition orientation.
Legal values: 1 for direct and -1 for reverse

Example:
This example retrieves in TransOrientation the transition orientation of
the second limit of the ShpBlend hybrid shape blended
feature.

TransOrientation = ShpBlend.GetTransition(2)
Parameters

i_blend_limit (int) –

Returns

int

get_trim_support(i_blend_limit)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetTrimSupport(long iBlendLimit) As long

Returns whether a support of the blend will be trimmed
off.
If the support is set to be trimmed, it will be trimmed using the curve
then joined to the blend.

Parameters:

iBlendLimit
The limit of the blend whose support is to be
trimmed.
Legal values: 1 for the first limit, and 2 for the second one


Returns:
The trim support mode
Legal values:

1
No trim
2
The support will be trimmed

Example:
This example retrieves whether the second limit of the ShpBlend hybrid
shape blended feature should be trimmed off.

IsTrimmed = ShpBlend.GetTrimSupport(2)
Parameters

i_blend_limit (int) –

Returns

int

insert_coupling(i_position)

Note

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

Inserts a coupling into the blend.

Parameters:

iPosition
The position of the coupling in the list of couplings. Setting
iPosition to 0 inserts the coupling at the end of the list.


Example:
This example inserts a coupling at the end of the coupling list of the
ShpBlend hybrid shape blended feature.

ShpBlend.InsertCouplingt 0
Parameters

i_position (int) –

Returns

None

insert_coupling_point(i_coupling_index, i_position, i_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InsertCouplingPoint(long iCouplingIndex,
long iPosition,
Reference iPoint)

Inserts a coupling point to a coupling of the blend.

Parameters:

iCouplingIndex
The index of the coupling in the list of couplings into which the
coupling point will be inserted.
iPosition
The position of the coupling point in the list of coupling points.
Setting iPosition to 0 inserts the coupling point at the end of the list.

iPoint
The coupling point to be inserted. This point must lay on the
section with the same position.
Sub-element(s) supported (see

Boundary object): Vertex.

Example:
This example inserts the Point23 point into the third coupling at the end
of the list of coupling points of the ShpBlend hybrid shape blended
feature.

ShpBlend.InsertCouplingPoint 3, 0, Point23
Parameters
  • i_coupling_index (int) –

  • i_position (int) –

  • i_point (Reference) –

Returns

None

property ruled_developable_surface

Note

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

Returns or sets the ruled developable surface mode.
TRUE means that the mode is enabled and FALSE means that it is disabled.
Returns

bool

set_border_mode(i_blend_limit, i_border)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetBorderMode(long iBlendLimit,
long iBorder)

Sets the type of border to a limit of the blend.

Parameters:

iBlendLimit
The limit of the blend whose type of border is to be
set.
Legal values: 1 for the first limit, and 2 for the second one

iBorder
The type of border
Legal values:

1
The border of the blend will be tangent to the border of the
support surface, or if the curve ends on the border of a face of the support
surface, then the border of the blend will be tangent to the border face.

2
The border of the blend is not constrained.
3
The border of the blend will be tangent to the border of the
support surface at the start extremity of the curve, or if the curve ends on
the border of a face of the support surface, then the border of the blend will
be tangent to the border face at the start extremity of the curve.

4
The border of the blend will be tangent to the border of the
support surface at the end extremity of the curve, or if the curve ends on the
border of a face of the support surface, then the border of the blend will be
tangent to the border face at the end extremity of the curve.


Example:
This example sets the type of border of the second limit of the
ShpBlend hybrid shape blended feature to “no
constraint”.

ShpBlend.SetBorderMode 2, 2
Parameters
  • i_blend_limit (int) –

  • i_border (int) –

Returns

None

set_closing_point(i_blend_limit, i_closing_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetClosingPoint(long iBlendLimit,
Reference iClosingPoint)

Sets a new closing point to a closed curve of the blend.

Parameters:

iBlendLimit
The limit of the blend whose curve will be set a new closing
point.
Legal values: 1 for the first curve, and 2 for the second one

iClosingPoint
The closing point to be set. This point must lay on the curve of
the blend limit.
Sub-element(s) supported (see

Boundary object): Vertex.

Example:
This example sets the Point10 point as the closing point to the second
limit of the ShpBlend hybrid shape blended feature.

ShpBlend.SetClosingPoint 2, Point10
Parameters
  • i_blend_limit (int) –

  • i_closing_point (Reference) –

Returns

None

set_continuity(i_blend_limit, i_continuity)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetContinuity(long iBlendLimit,
long iContinuity)

Sets the continuity to a limit of the blend.

Parameters:

iBlendLimit
The limit of the blend whose continuity is to be
set.
Legal values: 1 for the first limit, and 2 for the second one

iContinuity
The continuity to set
Legal values:

0
Point continuity
1
Tangency continuity
2
Curvature continuity

Example:
This example sets the continuity of the second limit of the ShpBlend
hybrid shape blended feature to tangency continuity.

ShpBlend.SetContinuity 2, 1
Parameters
  • i_blend_limit (int) –

  • i_continuity (int) –

Returns

None

set_curve(i_blend_limit, i_curve)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetCurve(long iBlendLimit,
Reference iCurve)

Sets a curve to the blend.

Parameters:

iBlendLimit
The limit of the blend to which the curve will be
set.
Legal values: 1 for the first curve, and 2 for the second one

iCurve
The curve to be set.
Sub-element(s) supported (see

Boundary object): TriDimFeatEdge and BiDimFeatEdge.

Example:
This example sets the CurveForBlend curve to the second limit of the
ShpBlend hybrid shape blended feature.

ShpBlend.SetCurve 2, CurveForBlend
Parameters
  • i_blend_limit (int) –

  • i_curve (Reference) –

Returns

None

set_orientation(i_blend_limit, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetOrientation(long iBlendLimit,
long iOrientation)

Sets the orientation of a curve of the blend.

Parameters:

iBlendLimit
The limit of the blend whose curve orientation is to be
set.
Legal values: 1 for the first curve, and 2 for the second one

iOrientation
The orientation to set to the curve.
Legal values: 1 for direct and -1 for reverse

Example:
This example sets the orientation of the second limit of the ShpBlend
hybrid shape blended feature to direct.

ShpBlend.SetOrientation 2, 1
Parameters
  • i_blend_limit (int) –

  • i_orientation (int) –

Returns

None

set_ruled_developable_surface_connection(i_blend_limit, i_blend_connection)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRuledDevelopableSurfaceConnection(long iBlendLimit,
long iBlendConnection)
Parameters
  • i_blend_limit (int) –

  • i_blend_connection (int) –

Returns

None

set_smooth_angle_threshold(i_angle)

Note

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

Sets the angular threshold.

Parameters:

iAngle
The angular threshold
Parameters

i_angle (float) –

Returns

None

set_smooth_deviation(i_length)

Note

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

Sets the deviation value (length) from guide curves allowed during sweeping
operation in order to smooth it.

Parameters:

iLength
The deviation value
Parameters

i_length (float) –

Returns

None

set_support(i_blend_limit, i_support)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSupport(long iBlendLimit,
Reference iSupport)

Sets a support to the blend.

Parameters:

iBlendLimit
The limit of the blend whose support is to be set.
Legal values: 1 for the first support, and 2 for the second one

iSupport
The support surface to be set. The curve of the blend limit must
lay on the surface.
Sub-element(s) supported (see

Boundary object): Face.

Example:
This example sets the SupportSurf surface as the support of the second
limit of the ShpBlend hybrid shape blended feature.

ShpBlend.SetSupport 2, SupportSurf
Parameters
  • i_blend_limit (int) –

  • i_support (Reference) –

Returns

None

set_tension_in_double(i_blend_limit, i_tension_type, i_first_tension, i_second_tension)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTensionInDouble(long iBlendLimit,
long iTensionType,
double iFirstTension,
double iSecondTension)

Sets the tension values to a limit of the blend. The values must be
expressed as doubles and must be positive.

Parameters:

iBlendLimit
The limit of the blend to which the tension values are to be
set.
Legal values: 1 for the first limit, and 2 for the second one

iTensionType
The tension type
Legal values:

1
Default tension
2
Constant tension
3
Linear tension

iFirstTension
The value for the first tension. It must be used with any tension
type
Legal values: it must be a double and positive.
iSecondTension
The value for the second tension. It can be used with linear
tension only
Legal values: it must be a double and positive.

Example:
This example sets the tension values of the tension, supposed to be a
linear tension, of the first limit of the ShpBlend hybrid shape blended feature
to respectively 1.5 and 0.5.

ShpBlend.SetTensionInDouble 1, 3, 1.5, 0.5
Parameters
  • i_blend_limit (int) –

  • i_tension_type (int) –

  • i_first_tension (float) –

  • i_second_tension (float) –

Returns

None

set_tension_type(i_blend_limit, i_tension_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTensionType(long iBlendLimit,
long iTensionType)

Sets the tension type of a limit of the blend.

Parameters:

iBlendLimit
The limit of the blend for which the tension type is to be
set.
Legal values: 1 for the first limit, and 2 for the second one

iBlendLimit
The value of tension type
Legal values:

1
Default tension
2
Constant tension
3
Linear tension
4
SType tension

Example:
This example sets the tension type as Default Tension for the first
limit of the ShpBlend hybrid shape blended feature.

ShpBlend.SetTensionType 1, 1
Parameters
  • i_blend_limit (int) –

  • i_tension_type (int) –

Returns

None

set_transition(i_blend_limit, i_transition)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTransition(long iBlendLimit,
long iTransition)

Sets the transition orientation to a limit of the blend.
Role: Let T be the tangent to the wire, and N be the normal to the skin
body. The transition orientation defines how the blend goes from the initial
wires: it takes the direction of iTransition*(T^N), where ^ is the cross
product.

Parameters:

iBlendLimit
The limit of the blend whose transition orientation is to be
set.
Legal values: 1 for the first support, and 2 for the second one

iTransition
The value of transition orientation.
Legal values: 1 for direct and -1 for reverse

Example:
This example sets the transition orientation of the second limit of the
ShpBlend hybrid shape blended feature to reverse.

ShpBlend.SetTransition 2, -1
Parameters
  • i_blend_limit (int) –

  • i_transition (int) –

Returns

None

set_trim_support(i_blend_limit, i_trim_support)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTrimSupport(long iBlendLimit,
long iTrimSupport)

Sets whether a support of the blend is to be trimmed off.
If the support is set to be trimmed, it will be trimmed using the curve
then joined to the blend.

Parameters:

iBlendLimit
The limit of the blend whose support is to be
trimmed.
Legal values: 1 for the first limit, and 2 for the second one

iTrimSupport
The trim support mode
Legal values:

1
No trim
2
The support will be trimmed

Example:
This example sets that the second limit of the ShpBlend hybrid shape
blended feature should be trimmed off.

ShpBlend.SetTrimSupport 2, 2
Parameters
  • i_blend_limit (int) –

  • i_trim_support (int) –

Returns

None

property smooth_angle_threshold

Note

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

Returns the angular threshold.
Returns

Angle

property smooth_angle_threshold_activity

Note

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

Returns or sets information whether a blending operation is smoothed or
not.
TRUE if the blending operation is smoothed, or FALSE otherwise (FALSE if
not specified).
Returns

bool

property smooth_deviation

Note

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

Returns the deviation value (length) from guide curves allowed during a
sweeping operation in order to smooth it.
Returns

Length

property smooth_deviation_activity

Note

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

Returns or sets information whether a deviation from guide curves is
allowed or not.
Gives the information on performing smoothing during blending
operation.
TRUE if a deviation from guide curves is allowed, or FALSE otherwise (FALSE
if not specified).
Returns

bool

property spine

Note

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

Returns or sets a curve used as spine for coupling in Blend computation.
Setting the spine curve also changes coupling mode to CATGSMSpineCoupling. In
order to remove the spine, set another coupling mode.

Parameters:

iSpine
spine curve
Returns

Reference

unset_closing_point(i_blend_limit)

Note

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

Unsets the closing point of a closed curve of the blend.

Parameters:

iBlendLimit
The limit of the blend whose curve closing point is
unset.
Legal values: 1 for the first curve, and 2 for the second one


Example:
This example unsets the closing point of the second limit of the
ShpBlend hybrid shape blended feature.

ShpBlend.UnsetClosingPoint 2
Parameters

i_blend_limit (int) –

Returns

None

unset_support(i_blend_limit)

Note

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

Unsets a support from the blend.

Parameters:

iBlendLimit
The limit of the blend whose support is to be
unset.
Legal values: 1 for the first support, and 2 for the second one


Example:
This example unsets the support surface of the second limit of the
ShpBlend hybrid shape blended feature.

ShpBlend.UnsetSupport 2
Parameters

i_blend_limit (int) –

Returns

None

hybrid_shape_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.hybrid_shape_interfaces.hybrid_shape_boundary.HybridShapeBoundary(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
HybridShapeBoundary

Represents the hybrid shape boundary feature object.
Role: To access the data of the hybrid shape boundary feature object. This data
includes:

The boundary propagation
The initial element used for the boundary propagation
The boundary support

Use the CATIAHybridShapeFactory to create a HybridShapeBoundary
object.

See also:
HybridShapeFactory
property from_orientation

Note

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

Gets or sets the Ending Limit Orientation (i.e same or inverse)
Returns

int

property from_py

Note

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

Removes or sets the ending limit(i.e Limit2) of the boundary
Returns

Reference

property initial_element

Note

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

Returns or sets the element used to initialize the boundary
propagation.
Sub-element(s) supported (see Boundary object):
BiDimFeatEdge.

Example:
This example retrieves in InitElem the initial element of the
ShpBoundary hybrid shape boundary feature.

Dim InitElem As Reference
InitElem = ShpBoundary.InitialElement
Returns

Reference

property propagation

Note

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

Returns or sets the boundary propagation.
Legal values: xxxxxxxxxx

Example:
This example retrieves in Prop the boundary propagation of the
ShpBoundary hybrid shape boundary feature.

Prop = ShpBoundary.Propagation
Returns

int

property support

Note

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

Returns or sets the support surface around which the boundary is
computed.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in SupSurf the initial element of the
ShpBoundary hybrid shape boundary feature.

Dim SupSurf As Reference
SupSurf = ShpBoundary.Support
Returns

Reference

property to

Note

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

Removes or sets the starting limit(i.e Limit1) of the boundary
Returns

Reference

property to_orientation

Note

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

Gets or sets the Starting Limit Orientation (i.e same or inverse)
Returns

int

hybrid_shape_bump

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.hybrid_shape_interfaces.hybrid_shape_bump.HybridShapeBump(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
HybridShapeBump

The Bump feature : an Bump is made up of a body to process and some Bump parameters.
property body_to_bump

Note

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

Returns or sets the element to Bump.
Returns

Reference

property center_tension

Note

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

Returns or sets the tension center parameter.
Returns

RealParam

property continuity_type

Note

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

Returns or sets the continuity type ..
Legal values: the continuity type is either

PointContinuity =0
TangentContinuity =1
CurvatureContinuity =2
Returns

int

property deformation_center

Note

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

Returns or sets the Deformation Center.
Returns

Reference

property deformation_dir

Note

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

Returns or sets the Deformation Direction.
Returns

Reference

property deformation_dist

Note

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

Returns the translate distance (CATIA Parameter).
Note: Distance value is set or retrieve trough a Literaql
parameter
Parameters are value are given in the Part Unit
Example : if Part Unit for dimensions is mm: for 1 mmm, oDefDist.Value will return 1.000
Returns

Length

property deformation_dist_value

Note

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

Returns or sets the Deformation distance (double) .
Note: Distance value is expressed in MKS = Meters
Example to set up 1mm , use .001
Returns

float

property limit_curve

Note

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

Returns or sets the limit curve.
Returns

Reference

property projection_dir

Note

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

Returns or sets the limit curve.
Returns

Reference

hybrid_shape_circle

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.hybrid_shape_interfaces.hybrid_shape_circle.HybridShapeCircle(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
HybridShapeCircle

Represents the hybrid shape circle object.
Role: To access the data of the hybrid shape circle object.

This data includes:

The circle radius
Two circle center
The circle arc limitation mode
The circle start and end angles

All interfaces for different type of circle derivates
HybridShapeCircle.

Use the CATIAHybridShapeFactory to create a HybridShapeCircle
objects.

See also:
HybridShapeFactory
property axis_computation

Note

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

Returns or sets the axis computation mode.

Example:

This example retrieves the axis computation mode of
the hybShpCircle


Dim axisComp As Boolean
axisComp = hybShpCircle.AxisComputation
Returns

bool

property axis_direction

Note

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

Role: To get_Direction on the object.

Parameters:

oDir
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
HybridShapeDirection
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

HybridShapeDirection

property end_angle

Note

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

Returns the circle end angle.

Example:
This example retrieves in ShpCircleEndAngle the end angle of the
ShpCircle hybrid shape circle.

Dim ShpCircleEndAngle As Angle
ShpCircleEndAngle = ShpCircle.EndAngle
Returns

Angle

get_axis(i_position, o_axis)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetAxis(long iPosition,
Reference oAxis)

Returns the axis of the Circle.

Parameters:

iType
Type of axis to be retrived. 3 - CATGSMAxisLineType_NormalToCircle
2 - CATGSMAxisLineType_NormalToDirection 1 -
CATGSMAxisLineType_AlignedWithDirection
oAxis
Reference to the element.

Example:
This example retrieves the axis of the circle. HybShpCircle
hybrid shape circle.

Dim AxisRef As Reference
HybShpCircle.GetAxis 1, AxisRef
Parameters
  • i_position (int) –

  • o_axis (Reference) –

Returns

None

get_center(o_center_x, o_center_y, o_center_z)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetCenter(double oCenterX,
double oCenterY,
double oCenterZ)

Gets the mathematical center of the circle. This information is available
once the circle has been computed.

Parameters:

oCenterX,
oCenterY, oCenterZ, circle center
Parameters
  • o_center_x (float) –

  • o_center_y (float) –

  • o_center_z (float) –

Returns

None

get_free_center(io_center)

Note

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

Returns the circle center.

Parameters:

oCenter
The circle center. It is returned as an array of three coordinates
in SafeArrayVariant

Example:
This example retrieves in HybShpCircleCenter the center of the
HybShpCircle hybrid shape circle.

Dim HybShpCircleCenter
ReDim HybShpCircleCenter(2)
ShpCircle.GetFreeRadius(HybShpCircleCenter)


You can access each center coordinate as follows:

x is in HybShpCircleCenter(0)
y is in HybShpCircleCenter(1)
z is in HybShpCircleCenter(2)
Parameters

io_center (tuple) –

Returns

None

get_free_radius(o_radius)

Note

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

Returns the circle radius.

Parameters:

oRadius
The circle radius

Example:
This example retrieves in HybShpCircleRadius the radius of the
HybShpCircle hybrid shape circle.

double HybShpCircleRadius
ShpCircle.GetFreeRadius(HybShpCircleRadius)
Parameters

o_radius (float) –

Returns

None

get_limitation()

Note

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

Gets the limitation type for the circle.

Parameters:

oLimit
(Angles = 0, Whole = 1, Trimmed = 2, Complementary = 3). circle limitation
Returns

int

set_limitation(i_limitation)

Note

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

Set the circle limitation type.

Parameters:

iLimitation
The circle limitation type
Legal values:

0
Angles
1
Whole
2
Trimmed
3
Complementary

Example:
This example sets the limitiation type of the ShpCircle hybrid shape
circle to trimmed.

ShpCircle.SetLimitation 2
Parameters

i_limitation (int) –

Returns

None

property start_angle

Note

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

Returns the circle start angle.

Example:
This example retrieves in ShpCircleStartAngle the end angle of the
ShpCircle hybrid shape circle.

Dim ShpCircleStartAngle As Angle
ShpCircleStartAngle = ShpCircle.StartAngle
Returns

Angle

hybrid_shape_circle2_points_rad

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.hybrid_shape_interfaces.hybrid_shape_circle2_points_rad.HybridShapeCircle2PointsRad(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
CATGSMIDLItf.HybridShapeCircle
HybridShapeCircle2PointsRad

Represents the hybrid shape circle object defined using two points and a
radius.
Role: To access the data of the hybrid shape circle object.

This data includes:

The circle two passing points
The circle radius
The surface that supports the circle
The circle orientation

Use the CATIAHybridShapeFactory to create a HybridShapeCircle2PointsRad
object.

See also:
HybridShapeFactory
property diameter

Note

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

Returns the circle diameter. It is expressed as a Length literal. Succeeds
only if DiameterMode is set to True.

Example:
This example retrieves in HybShpCircleDiameter the diameter of the
HybShpCircle hybrid shape circle feature

Dim HybShpCircleDiameter As Length
HybShpCircleDiameter = HybShpCircle.Diameter
Returns

Length

property diameter_mode

Note

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

Returns or sets the DiameterMode.
Legal values: True implies diameter False implies radius (default). When
DiameterMode is changed, Radius/Diameter value, which is stored will not be
modified.

Example:

This example sets that the DiameterMode of
the HybShpCircle hybrid shape circle feature


HybShpCircle.DiameterMode = True
Returns

bool

is_geodesic()

Note

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

Queries whether the circle is geodesic or not.

Parameters:

oGeod
geodesic type : when TRUE, the circle is geodesic.
Returns

bool

property orientation

Note

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

Returns or sets the circle orientation.
Role: The circle orientation indicates which side of the line made up using
the two passing points is used to create the major part of the circle. It is
determined using the cross product of the normal to the suppport and the vector
made up using the two passing points (Pt1-Pt2).
Legal values: 1 to state that the major part of the circle is or should be
created on the side of the line shown by the vector resulting from this cross
product, and -1 otherwise.

Example:
This example retrieves in HybShpCircleOrientation the orientation of
the HybShpCircle hybrid shape circle.

HybShpCircleOrientation = HybShpCircle.Orientation
Returns

int

property pt1

Note

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

Returns or sets the circle first passing point.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves the first passing point of the HybShpCircle
hybrid shape circle in HybShpCircleFirstPassingPoint
point.

Dim HybShpCircleFirstPassingPoint As Reference
Set HybShpCircleFirstPassingPoint = HybShpCircle.Pt1
Returns

Reference

property pt2

Note

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

Returns or sets the circle second passing point.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example sets the second passing point of the HybShpCircle hybrid
shape circle as the Point12 point.

HybShpCircle.Pt2 Point12
Returns

Reference

property radius

Note

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

Returns the circle radius.

Parameters:

Radius
The circle radius, expressed as a

Length literal. Succeeds only if DiameterMode is set to False.


Example:
This example retrieves in HybShpCircleRadius the radius of the HybShpCircle
hybrid shape circle.

Dim HybShpCircleRadius As Length
HybShpCircleRadius = HybShpCircle.Radius
Returns

Length

set_geometry_on_support()

Note

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

Sets GeometryOnSupport of circle.
It puts the circle on the surface. S_OK if OK, E_FAIL if fail
Returns

None

property support

Note

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

Returns or sets the circle support surface.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in HybShpCircleSupportSurf the support surface
of the HybShpCircle hybrid shape circle.

Dim HybShpCircleSupportSurf As Reference
HybShpCircleSupportSurf = HybShpCircle.Support
Returns

Reference

unset_geometry_on_support()

Note

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

Inactivates GeometryOnSupport of circle.
Note: The circle becomes euclidean.
Returns

None

hybrid_shape_circle3_points

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.hybrid_shape_interfaces.hybrid_shape_circle3_points.HybridShapeCircle3Points(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
CATGSMIDLItf.HybridShapeCircle
HybridShapeCircle3Points

Represents the hybrid shape circle object defined using three
points.
Role: To access the data of the hybrid shape circle object.

This data includes the circle three passing points.

Use the CATIAHybridShapeFactory to create a HybridShapeCircle2PointsRad
object.

See also:
HybridShapeFactory
property element1

Note

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

Returns or sets the circle first passing point.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves the first passing point of the HybShpCircle3Pt
hybrid shape circle in HybShpCircle3PtFirstPassingPoint
point.

Dim HybShpCircle3PtFirstPassingPoint As Reference
Set HybShpCircle3PtFirstPassingPoint=
HybShpCircle3Pt.Element1
Returns

Reference

property element2

Note

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

Returns or sets the circle second passing point.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example sets the second passing point of the HybShpCircle3Pt
hybrid shape circle as the Point2 point.

HybShpCircle3Pt.Element2 Point2
Returns

Reference

property element3

Note

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

Returns or sets the circle third passing point.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves the third passing point of the HybShpCircle3Pt
hybrid shape circle in HybShpCircle3PtThirdPassingPoint
point.

Dim HybShpCircle3PtThirdPassingPoint As Reference
Set HybShpCircle3PtThirdPassingPoint=
HybShpCircle3Pt.Element3
Returns

Reference

remove_support()

Note

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

Removes the support surface.
Returns

None

property support

Note

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

Returns or sets the circle support surface.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in HybShpCircleSupportSurf the support surface
of the HybShpCircle hybrid shape circle.

Dim HybShpCircleSupportSurf As Reference
HybShpCircleSupportSurf = HybShpCircle.Support
Returns

Reference

hybrid_shape_circle_bitangent_point

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.hybrid_shape_interfaces.hybrid_shape_circle_bitangent_point.HybridShapeCircleBitangentPoint(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
CATGSMIDLItf.HybridShapeCircle
HybridShapeCircleBitangentPoint

Represents the hybrid shape circle object defined using a point and tangent to
two curves.
Role: To access the data of the hybrid shape circle object.

This data includes:

The circle passing point
The two curves to which the circle is tangent
The surface that supports the circle
The orientation of each curve

Use the CATIAHybridShapeFactory to create a HybridShapeCircleBitangentPoint
object.

See also:
HybridShapeFactory
property begin_of_circle

Note

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

Return or Set the number of the beginning curve of the circle. This
parameter is used to stabilize the resulting circle

Example:

This example set the beginning wire index of
the hybShpcircle hybrid shape circle


hybShpcircle.BeginOfCircle = 1
Returns

int

property curve1

Note

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

Returns or sets the first curve to which the circle is or will be
tangent.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.

Example:
This example retrieves in HybShpCircleFirstCurve the first curve to
which the HybShpCircle hybrid shape circle is tangent.

Dim HybShpCircleFirstCurve As Reference
HybShpCircleFirstCurve = HybShpCircle.Curve1
Returns

Reference

property curve2

Note

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

Returns or sets the second curve to which the circle is or will be
tangent.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.

Example:
This example sets the second curve to which the HybShpCircle hybrid
shape circle will be tangent to Crv5.

HybShpCircle.Curve2 Crv5
Returns

Reference

property discrimination_index

Note

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

Return or set the discrimination index of the current circle. Several
resulting solutions produced by the operator can be same oriented regarding to
the input wire bodies. In such a case, they are sorted in order to distinguish
them. The Sequence FirstOrientation - SecondOrientation - DiscriminationIndex
allows you to identify a unique one-domain solution.

Example:

This example set the discrimination index of
the hybShpcircle hybrid shape circle


hybShpcircle.DiscriminationIndex = 2
Returns

int

property orientation1

Note

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

Returns or sets the orientation of the first curve to which the circle is
tangent.
Role: The orientation of the first curve determines the side of this curve
taken into account to find the point where the circle is tangent to the curve.
This side is determined by the cross product of the normal to the support and a
tangent to the curve oriented using the curve orientation.
Legal values: 1 to state that the side of the curve to be taken into
account is the side shown by the vector resulting from this cross product, and
-1 otherwise.

Example:
This example sets the orientation of the first curve to which the
HybShpCircle hybrid shape circle is tangent to
reverse.

HybShpCircle.Orientation1 -1
Returns

int

property orientation2

Note

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

Returns or sets the orientation of the second curve to which the circle is
tangent.
Role: The orientation of the second curve determines the side of this curve
taken into account to find the point where the circle is tangent to the curve.
This side is determined by the cross product of the normal to the support and a
tangent to the curve oriented using the curve orientation.
Legal values: 1 to state that the side of the curve to be taken into
account is the side shown by the vector resulting from this cross product, and
-1 otherwise.

Example:
This example retrieves in HybShpCircleOrientation the orientation of
the second curve to which the HybShpCircle hybrid shape circle is
tangent.

HybShpCircleOrientation = HybShpCircle.Orientation2
Returns

int

property pt

Note

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

Returns or sets the circle passing point. This point must lie on second
curve.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves the passing point of the HybShpCircle hybrid
shape circle in HybShpCirclePassingPoint point.

Dim HybShpCirclePassingPoint As Reference
Set HybShpCirclePassingPoint = HybShpCircle.Pt
Returns

Reference

property support

Note

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

Returns or sets the circle support surface.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in HybShpCircleSupportSurf the support surface
of the HybShpCircle hybrid shape circle.

Dim HybShpCircleSupportSurf As Reference
HybShpCircleSupportSurf = HybShpCircle.Support
Returns

Reference

property tangent_orientation1

Note

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

Returns or sets the tangent orientation of the circle first reference
element. compared to the circle itself

Example:

This example retrieves the tangent orientation of first reference
element of
the hybShpcircle hybrid shape circle in firstOrient.


Dim firstOrient As long
firstOrient = hybShpcircle.FirstTangentOrientation
Returns

int

property tangent_orientation2

Note

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

Returns or sets the tangent orientation of the circle second reference
element. compared to the corner itself

Example:

This example retrieves the tangent orientation of second reference
element of
the hybShpcircle hybrid shape circle in secondOrient.


Dim secondOrient As long
secondOrient = hybShpcircle.SecondTangentOrientation
Returns

int

property trim_mode

Note

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

Returns or sets whether the circle reference curves are or should be
trimmed.
Legal values: 0 if the circle reference curves are not or should not be
trimmed, 1 if the circle reference curves are or should be trimmed, 2 if only
the first circle reference curve is or should be trimmed, 3 if only the second
circle reference curve is or should be trimmed,

Example:

This example sets that the reference curves of
the hybShpCircle hybrid shape circle should be
trimmed.


hybShpCircle.TrimMode = 1
Returns

int

hybrid_shape_circle_bitangent_radius

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.hybrid_shape_interfaces.hybrid_shape_circle_bitangent_radius.HybridShapeCircleBitangentRadius(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
CATGSMIDLItf.HybridShapeCircle
HybridShapeCircleBitangentRadius

Represents the hybrid shape circle object defined using a radius and tangent to
two curves.
Role: To access the data of the hybrid shape circle object.

This data includes:

The circle radius
The two curves to which the circle is tangent
The surface that supports the circle
The orientation of each curve

Use the CATIAHybridShapeFactory to create a HybridShapeCircleBitangentRadius
object.

See also:
HybridShapeFactory
property begin_of_circle

Note

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

Return or Set the number of the beginning curve of the circle. This
parameter is used to stabilize the resulting circle

Example:

This example set the beginning wire index of
the hybShpcircle hybrid shape circle


hybShpcircle.BeginOfCircle = 1
Returns

int

property curve1

Note

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

Returns or sets the first curve to which the circle is or will be
tangent.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.

Example:
This example retrieves in HybShpCircleFirstCurve the first curve to
which the HybShpCircle hybrid shape circle is tangent.

Dim HybShpCircleFirstCurve As Reference
HybShpCircleFirstCurve = HybShpCircle.Curve1
Returns

Reference

property curve2

Note

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

Returns or sets the second curve to which the circle is or will be
tangent.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.

Example:
This example sets the second curve to which the HybShpCircle hybrid
shape circle will be tangent to Crv5.

HybShpCircle.Curve2 Crv5
Returns

Reference

property diameter

Note

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

Returns the circle diameter. It is expressed as a Length literal. Succeeds
only if DiameterMode is set to True.

Example:
This example retrieves in HybShpCircleDiameter the diameter of the
HybShpCircle hybrid shape circle feature

Dim HybShpCircleDiameter As Length
HybShpCircleDiameter = HybShpCircle.Diameter
Returns

Length

property diameter_mode

Note

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

Returns or sets the DiameterMode.
Legal values: True implies diameter False implies radius (default). When
DiameterMode is changed, Radius/Diameter value, which is stored will not be
modified.

Example:

This example sets that the DiameterMode of
the HybShpCircle hybrid shape circle feature


HybShpCircle.DiameterMode = True
Returns

bool

property discrimination_index

Note

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

Return or set the discrimination index of the current circle. Several
resulting solutions produced by the operator can be same oriented regarding to
the input wire bodies. In such a case, they are sorted in order to distinguish
them. The Sequence FirstOrientation - SecondOrientation - DiscriminationIndex
allows you to identify a unique one-domain solution.

Example:

This example set the discrimination index of
the hybShpcircle hybrid shape circle


hybShpcircle.DiscriminationIndex = 2
Returns

int

property orientation1

Note

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

Returns or sets the orientation of the first curve to which the circle is
tangent.
Role: The orientation of the first curve determines the side of this curve
taken into account to find the point where the circle is tangent to the
curve.
Legal values: To be provided by Claire (1/-1??)

Example:
This example sets the orientation of the first curve to which the
HybShpCircle hybrid shape circle is tangent to
reverse.

HybShpCircle.Orientation1 -1
Returns

int

property orientation2

Note

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

Returns or sets the orientation of the second curve to which the circle is
tangent.
Role: The orientation of the second curve determines the side of this curve
taken into account to find the point where the circle is tangent to the
curve.
Legal values: To be provided by Claire (1/-1??)

Example:
This example retrieves in HybShpCircleOrientation the orientation of
the second curve to which the HybShpCircle hybrid shape circle is
tangent.

HybShpCircleOrientation = HybShpCircle.Orientation2
Returns

int

property radius

Note

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

Returns the circle radius. It is expressed as a Length literal. Succeeds
only if DiameterMode is set to False.

Example:
This example retrieves in HybShpCircleRadius the radius of the HybShpCircle
hybrid shape circle.

Dim HybShpCircleRadius As Length
HybShpCircleRadius = HybShpCircle.Radius
Returns

Length

property support

Note

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

Returns or sets the circle support surface.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in HybShpCircleSupportSurf the support surface
of the HybShpCircle hybrid shape circle.

Dim HybShpCircleSupportSurf As Reference
HybShpCircleSupportSurf = HybShpCircle.Support
Returns

Reference

property tangent_orientation1

Note

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

Returns or sets the tangent orientation of the circle first reference
element. compared to the circle itself

Example:

This example retrieves the tangent orientation of first reference
element of
the hybShpcircle hybrid shape circle in firstOrient.


Dim firstOrient As long
firstOrient = hybShpcircle.FirstTangentOrientation
Returns

int

property tangent_orientation2

Note

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

Returns or sets the tangent orientation of the circle second reference
element. compared to the corner itself

Example:

This example retrieves the tangent orientation of second reference
element of
the hybShpcircle hybrid shape circle in secondOrient.


Dim secondOrient As long
secondOrient = hybShpcircle.SecondTangentOrientation
Returns

int

property trim_mode

Note

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

Returns or sets whether the circle reference curves are or should be
trimmed.
Legal values: 0 if the circle reference curves are not or should not be
trimmed, 1 if the circle reference curves are or should be trimmed, 2 if only
the first circle reference curve is or should be trimmed, 3 if only the second
circle reference curve is or should be trimmed,

Example:

This example sets that the corner reference curves
of
the hybShpCircle hybrid shape circle should be
trimmed.


hybShpCircle.TrimMode = 1
Returns

int

hybrid_shape_circle_center_axis

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.hybrid_shape_interfaces.hybrid_shape_circle_center_axis.HybridShapeCircleCenterAxis(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
CATGSMIDLItf.HybridShapeCircle
HybridShapeCircleCenterAxis

Represents the hybrid shape circle object defined using a point and
axis/line.
Role: To access the data of the hybrid shape circle center axis
object.

This data includes:

Point
Axis/Line
Value of radius/diameter
Diameter Mode
Projection Mode

Use the CATIAHybridShapeFactory to create a HybridShapeCircleCenterAxis
object.

See also:
HybridShapeFactory.AddNewCircleCenterAxis
property axis

Note

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

Returns or sets the Axis of the circle.

Example:
This example retrieves in CircleAxis the Axis of plane in which circle
is lying from HybShpCircle hybrid shape circle center axis
feature

Dim CircleAxis As Reference
Set CircleAxis = HybShpCircle.Axis
Returns

Reference

property diameter

Note

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

Returns the circle diameter. It is expressed as a Length literal. Succeeds
only if DiameterMode is set to True.

Example:
This example retrieves in HybShpCircleDiameter the diameter of the
HybShpCircle hybrid shape circle center axis feature

Dim HybShpCircleDiameter As Length
HybShpCircleDiameter = HybShpCircle.Diameter
Returns

Length

property diameter_mode

Note

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

Returns or sets the DiameterMode.
Legal values: True implies diameter False implies radius (default). When
DiameterMode is changed, Radius/Diameter value, which is stored will not be
modified.

Example:

This example sets that the DiameterMode of
the HybShpCircle hybrid shape circle center axis
feature


HybShpCircle.DiameterMode = True
Returns

bool

property point

Note

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

Returns or sets the Point of the circle.

Example:
This example retrieves in CirclePoint the point used for center
computation from HybShpCircle hybrid shape circle center axis
feature

Dim CirclePoint As Reference
Set CirclePoint = HybShpCircle.Point
Returns

Reference

property projection_mode

Note

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

Returns or sets the ProjectionMode.
Legal values: True (default) implies point will be projected on to
axis/line False implies that point will be center of the
circle.

Example:

This example sets that the ProjectionMode of
the HybShpCircle hybrid shape circle center axis
feature


HybShpCircle.ProjectionMode = True
Returns

bool

property radius

Note

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

Returns the circle radius. It is expressed as a Length literal. Succeeds
only if DiameterMode is set to False.

Example:
This example retrieves in HybShpCircleRadius the radius of the HybShpCircle
hybrid shape circle center axis feature

Dim HybShpCircleRadius As Length
HybShpCircleRadius = HybShpCircle.Radius


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

Length

hybrid_shape_circle_center_tangent

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.hybrid_shape_interfaces.hybrid_shape_circle_center_tangent.HybridShapeCircleCenterTangent(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
CATGSMIDLItf.HybridShapeCircle
HybridShapeCircleCenterTangent

Represents the hybrid shape circle object defined using a center, a curve and a
support.
Role: To access the data of the hybrid shape circle tangent
object.

This data includes:

The center element
The tangent curve
The support
The value of the raduius
and also the type of solution index

Use the CATIAHybridShapeFactory to create a HybridShapeCircleCenterTangent
object.

See also:
HybridShapeFactory.AddNewCircleCenterTangent
property begin_of_circle

Note

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

Return or Set the number of the beginning curve of the circle. This
parameter is used to stabilize the resulting circle

Example:

This example set the beginning wire index of
the hybShpcircle hybrid shape circle


hybShpcircle.BeginOfCircle = 1
Returns

int

property center_elem

Note

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

Returns or sets the Center Element of the circle.

Example:
This example retrieves in HybShpCircleCenterCurve the first curve to
which the HybShpCircle hybrid shape circle is Center
curve.

Dim HybShpCircleFirstCurve As Reference
HybShpCircleFirstCurve = HybShpCircle.CenterElem
Returns

Reference

property diameter

Note

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

Returns the circle diameter. It is expressed as a Length literal. Succeeds
only if DiameterMode is set to True.

Example:
This example retrieves in HybShpCircleDiameter the diameter of the
HybShpCircle hybrid shape circle feature

Dim HybShpCircleDiameter As Length
HybShpCircleDiameter = HybShpCircle.Diameter
Returns

Length

property diameter_mode

Note

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

Returns or sets the DiameterMode.
Legal values: True implies diameter False implies radius (default). When
DiameterMode is changed, Radius/Diameter value, which is stored will not be
modified.

Example:

This example sets that the DiameterMode of
the HybShpCircle hybrid shape circle feature


HybShpCircle.DiameterMode = True
Returns

bool

property discrimination_index

Note

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

Return or set the discrimination index of the current circle. Several
resulting solutions produced by the operator can be same oriented regarding to
the input wire bodies. In such a case, they are sorted in order to distinguish
them. The Sequence FirstOrientation - SecondOrientation - DiscriminationIndex
allows you to identify a unique one-domain solution.

Example:

This example set the discrimination index of
the hybShpcircle hybrid shape circle


hybShpcircle.DiscriminationIndex = 2
Returns

int

property orientation1

Note

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

Returns or sets the orientation of the first curve to which the circle is
tangent.
Role: The orientation of the first curve determines the side of this curve
taken into account to find the point where the circle is tangent to the
curve.
Legal values: To be provided by Claire (1/-1??)

Example:
This example sets the orientation of the first curve to which the
HybShpCircle hybrid shape circle is tangent to
reverse.

Set HybShpCircle.Orientation1 -1
Returns

int

property orientation2

Note

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

Returns or sets the orientation of the second curve to which the circle is
tangent.
Role: The orientation of the second curve determines the side of this curve
taken into account to find the point where the circle is tangent to the
curve.
Legal values: To be provided by Claire (1/-1??)

Example:
This example retrieves in HybShpCircleOrientation the orientation of
the second curve to which the HybShpCircle hybrid shape circle is
tangent.

HybShpCircleOrientation = HybShpCircle.Orientation2
Returns

int

property radius

Note

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

Returns the circle radius. It is expressed as a Length literal. Succeeds
only if DiameterMode is set to False.

Example:
This example retrieves in HybShpCircleRadius the radius of the HybShpCircle
hybrid shape circle.

Dim HybShpCircleRadius As Length
HybShpCircleRadius = HybShpCircle.Radius
Returns

Length

property support

Note

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

Returns or sets the circle support surface.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in HybShpCircleSupportSurf the support surface
of the HybShpCircle hybrid shape circle.

Dim HybShpCircleSupportSurf As Reference
Set HybShpCircleSupportSurf = HybShpCircle.Support
Returns

Reference

property tangent_curve

Note

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

Returns or sets the tangent curve to which the circle will be
tangent.

Example:
This example sets the tangent curve to which the HybShpCircle hybrid
shape circle will be tangent to TgtCrv.

Set HybShpCircle.Tangent Curve TgtCrv
Returns

Reference

property tangent_orientation1

Note

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

Returns or sets the tangent orientation of the circle first reference
element. compared to the circle itself

Example:

This example retrieves the tangent orientation of first reference
element of
the hybShpcircle hybrid shape circle in firstOrient.


Dim firstOrient As long
firstOrient = hybShpcircle.FirstTangentOrientation
Returns

int

property tangent_orientation2

Note

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

Returns or sets the tangent orientation of the circle second reference
element. compared to the corner itself

Example:

This example retrieves the tangent orientation of second reference
element of
the hybShpcircle hybrid shape circle in secondOrient.


Dim secondOrient As long
secondOrient = hybShpcircle.SecondTangentOrientation
Returns

int

hybrid_shape_circle_ctr_pt

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.hybrid_shape_interfaces.hybrid_shape_circle_ctr_pt.HybridShapeCircleCtrPt(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
CATGSMIDLItf.HybridShapeCircle
HybridShapeCircleCtrPt

Represents the hybrid shape circle object defined using a center and a point on
the circle.
Role: To access the data of the hybrid shape circle object.

This data includes:

The circle center
The point on the circle
The surface that supports the circle

Use the CATIAHybridShapeFactory to create a HybridShapeCircleCtrPt
object.

See also:
HybridShapeFactory
property center

Note

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

Returns or sets the circle center.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in HybShpCircleCenter the center of the
HybShpCircle hybrid shape circle.

Dim HybShpCircleCenter As Reference
HybShpCircleCenter = HybShpCircle.Center
Returns

Reference

property crossing_point

Note

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

Returns or sets the circle passing point.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves the passing point of the HybShpCircle hybrid
shape circle in HybShpCirclePassingPoint point.

Dim HybShpCirclePassingPoint As Reference
Set HybShpCirclePassingPoint = HybShpCircle.CrossingPoint
Returns

Reference

is_geodesic()

Note

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

Queries whether the circle is geodesic or not.

Parameters:

oGeod
geodesic type : when TRUE, the circle is geodesic.
Returns

bool

set_geometry_on_support()

Note

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

Sets GeometryOnSupport of circle.
It puts the circle on the surface.
Returns

None

property support

Note

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

Returns or sets the circle support surface.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in HybShpCircleSupportSurf the support surface
of the HybShpCircle hybrid shape circle.

Dim HybShpCircleSupportSurf As Reference
HybShpCircleSupportSurf = HybShpCircle.Support
Returns

Reference

unset_geometry_on_support()

Note

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

Inactivates GeometryOnSupport of circle.
Note: The circle becomes euclidean.
Returns

None

hybrid_shape_circle_ctr_rad

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.hybrid_shape_interfaces.hybrid_shape_circle_ctr_rad.HybridShapeCircleCtrRad(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
CATGSMIDLItf.HybridShapeCircle
HybridShapeCircleCtrRad

Represents the hybrid shape circle object defined using a center and a
radius.
Role: To access the data of the hybrid shape circle object.

This data includes:

The circle center
The circle radius
The surface that supports the circle

Use the CATIAHybridShapeFactory to create a HybridShapeCircleCtrRad
object.

See also:
HybridShapeFactory
property center

Note

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

Returns or sets the circle center.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in HybShpCircleCenter the center of the
HybShpCircle hybrid shape circle.

Dim HybShpCircleCenter As Reference
HybShpCircleCenter = HybShpCircle.Center
Returns

Reference

property diameter

Note

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

Returns the circle diameter.
It is expressed as a Length literal. Succeeds only if DiameterMode is set
to True.

Example:
This example retrieves in HybShpCircleDiameter the diameter of the
HybShpCircle hybrid shape circle feature

Dim HybShpCircleDiameter As Length
HybShpCircleDiameter = HybShpCircle.Diameter
Returns

Length

property diameter_mode

Note

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

Returns or sets the DiameterMode.
Legal values: True implies diameter False implies radius (default). When
DiameterMode is changed, Radius/Diameter value, which is stored will not be
modified.

Example:

This example sets that the DiameterMode of
the HybShpCircle hybrid shape circle feature


HybShpCircle.DiameterMode = True
Returns

bool

property first_direction

Note

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

Returns or sets the first direction used to set the angles reference.


Example:
This example retrieves in myHybridShapeDirection the first direction of the
HybShpCircle hybrid shape circle feature

Dim myHybridShapeDirection As CATIAHybridShapeDirection
myHybridShapeDirection = HybShpCircle.FirstDirection


See also:
HybridShapeDirection
Returns

HybridShapeDirection

get_second_direction(o_dir_x, o_dir_y, o_dir_z)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSecondDirection(double oDirX,
double oDirY,
double oDirZ)

Gets the second direction on the plane to compute the point (for
stability).
This direction has to be kept perpendicular to the first
direction

Parameters:

oDirX,
oDirY, oDirZ. second direction

See also:
HybridShapeDirection
Parameters
  • o_dir_x (float) –

  • o_dir_y (float) –

  • o_dir_z (float) –

Returns

None

is_geodesic()

Note

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

Queries whether the circle is geodesic or not.

Parameters:

oGeod
geodesic type : when TRUE, the circle is geodesic.
Returns

bool

property radius

Note

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

Returns the circle radius. It is expressed as a Length literal. Succeeds
only if DiameterMode is set to False.

Example:
This example retrieves in HybShpCircleRadius the radius of the HybShpCircle
hybrid shape circle.

Dim HybShpCircleRadius As Length
HybShpCircleRadius = HybShpCircle.Radius
Returns

Length

set_geometry_on_support()

Note

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

Sets GeometryOnSupport of circle.
It puts the circle on the surface.
Returns

None

set_second_direction(i_dir_x, i_dir_y, i_dir_z)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSecondDirection(double iDirX,
double iDirY,
double iDirZ)

Sets the second direction on the plane to compute the point (for
stability).
This direction has to be kept perpendicular to the first
direction

Parameters:

iDirX,
iDirY, iDirZ. second direction

See also:
HybridShapeDirection
Parameters
  • i_dir_x (float) –

  • i_dir_y (float) –

  • i_dir_z (float) –

Returns

None

property support

Note

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

Returns or sets the circle support surface.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in HybShpCircleSupportSurf the support surface
of the HybShpCircle hybrid shape circle.

Dim HybShpCircleSupportSurf As Reference
HybShpCircleSupportSurf = HybShpCircle.Support
Returns

Reference

unset_geometry_on_support()

Note

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

Inactivates GeometryOnSupport of circle.
Note: The circle becomes euclidean.
Returns

None

hybrid_shape_circle_explicit

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.hybrid_shape_interfaces.hybrid_shape_circle_explicit.HybridShapeCircleExplicit(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
CATGSMIDLItf.HybridShapeCircle
HybridShapeCircleExplicit

Represents the hybrid shape circle object explicitely defined.
Role: To access the data of the hybrid shape circle object.

This data includes:

??????????????

Use the CATIAHybridShapeFactory to create a HybridShapeCircleExplicit
object.

See also:
HybridShapeFactory

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

hybrid_shape_circle_tritangent

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.hybrid_shape_interfaces.hybrid_shape_circle_tritangent.HybridShapeCircleTritangent(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
CATGSMIDLItf.HybridShapeCircle
HybridShapeCircleTritangent

Represents the hybrid shape circle object tangent to three
curves.
Role: To access the data of the hybrid shape circle object.

This data includes:

The three curves to which the circle is tangent
The surface that supports the circle
The orientation of each curve

Use the CATIAHybridShapeFactory to create a HybridShapeCircleTritangent
object.

See also:
HybridShapeFactory
property begin_of_circle

Note

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

Return or Set the number of the beginning curve of the circle. This
parameter is used to stabilize the resulting circle

Example:

This example set the beginning wire index of
the hybShpcircle hybrid shape circle


hybShpcircle.BeginOfCircle = 1
Returns

int

property curve1

Note

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

Returns or sets the first curve to which the circle is or will be
tangent.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.

Example:
This example retrieves in HybShpCircleFirstCurve the first curve to
which the HybShpCircle hybrid shape circle is tangent.

Dim HybShpCircleFirstCurve As Reference
HybShpCircleFirstCurve = HybShpCircle.Curve1
Returns

Reference

property curve2

Note

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

Returns or sets the second curve to which the circle is or will be
tangent.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.

Example:
This example sets the second curve to which the HybShpCircle hybrid
shape circle will be tangent to Crv5.

HybShpCircle.Curve2 Crv5
Returns

Reference

property curve3

Note

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

Returns or sets the third curve to which the circle is or will be
tangent.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.

Example:
This example retrieves in HybShpCircleThirsCurve the third curve to
which the HybShpCircle hybrid shape circle is tangent.

Dim HybShpCircleThirdCurve As Reference
HybShpCircleThirdCurve = HybShpCircle.Curve3
Returns

Reference

property discrimination_index

Note

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

Return or set the discrimination index of the current circle. Several
resulting solutions produced by the operator can be same oriented regarding to
the input wire bodies. In such a case, they are sorted in order to distinguish
them. The Sequence FirstOrientation - SecondOrientation - DiscriminationIndex
allows you to identify a unique one-domain solution.

Example:

This example set the discrimination index of
the hybShpcircle hybrid shape circle


hybShpcircle.DiscriminationIndex = 2
Returns

int

property orientation1

Note

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

Returns or sets the orientation of the first curve to which the circle is
tangent.
Role: The orientation of the first curve determines the side of this curve
taken into account to find the point where the circle is tangent to the curve.
This side is determined by the cross product of the normal to the support and a
tangent to the curve oriented using the curve orientation.
Legal values: 1 to state that the side of the curve to be taken into
account is the side shown by the vector resulting from this cross product, and
-1 otherwise.

Example:
This example sets the orientation of the first curve to which the
HybShpCircle hybrid shape circle is tangent to
reverse.

HybShpCircle.Orientation1 -1
Returns

int

property orientation2

Note

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

Returns or sets the orientation of the second curve to which the circle is
tangent.
Role: The orientation of the second curve determines the side of this curve
taken into account to find the point where the circle is tangent to the curve.
This side is determined by the cross product of the normal to the support and a
tangent to the curve oriented using the curve orientation.
Legal values: 1 to state that the side of the curve to be taken into
account is the side shown by the vector resulting from this cross product, and
-1 otherwise.

Example:
This example retrieves in HybShpCircleOrientation the orientation of
the second curve to which the HybShpCircle hybrid shape circle is
tangent.

HybShpCircleOrientation = HybShpCircle.Orientation2
Returns

int

property orientation3

Note

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

Returns or sets the orientation of the third curve to which the circle is
tangent.
Role: The orientation of the third curve determines the side of this curve
taken into account to find the point where the circle is tangent to the curve.
This side is determined by the cross product of the normal to the support and a
tangent to the curve oriented using the curve orientation.
Legal values: 1 to state that the side of the curve to be taken into
account is the side shown by the vector resulting from this cross product, and
-1 otherwise.

Example:
This example sets the orientation of the third curve to which the
HybShpCircle hybrid shape circle is tangent to
reverse.

HybShpCircle.Orientation3 -1
Returns

int

property support

Note

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

Returns or sets the circle support surface.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in HybShpCircleSupportSurf the support surface
of the HybShpCircle hybrid shape circle.

Dim HybShpCircleSupportSurf As Reference
HybShpCircleSupportSurf = HybShpCircle.Support
Returns

Reference

property tangent_orientation1

Note

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

Returns or sets the tangent orientation of the circle first reference
element. compared to the circle itself

Example:

This example retrieves the tangent orientation of first reference
element of
the hybShpcircle hybrid shape circle in firstOrient.


Dim firstOrient As long
firstOrient = hybShpcircle.FirstTangentOrientation
Returns

int

property tangent_orientation2

Note

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

Returns or sets the tangent orientation of the circle second reference
element. compared to the corner itself

Example:

This example retrieves the tangent orientation of second reference
element of
the hybShpcircle hybrid shape circle in secondOrient.


Dim secondOrient As long
secondOrient = hybShpcircle.SecondTangentOrientation
Returns

int

property tangent_orientation3

Note

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

Returns or sets the tangent orientation of the circle third reference
element. compared to the corner itself

Example:

This example retrieves the tangent orientation of third reference
element of
the hybShpcircle hybrid shape circle in thirdOrient.


Dim thirdOrient As long
thirdOrient = hybShpcircle.ThirdTangentOrientation
Returns

int

property trim_mode

Note

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

Returns or sets whether the circle reference curves are or should be
trimmed.
Legal values: 0 if the circle reference curves are not or should not be
trimmed, 1 if the circle reference curves are or should be trimmed, 2 if only
the first circle reference curve is or should be trimmed, 3 if only the second
circle reference curve is or should be trimmed,

Example:

This example sets that the reference curves of
the hybShpCircle hybrid shape circle should be
trimmed.


hybShpCircle.TrimMode = 1
Returns

int

hybrid_shape_combine

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.hybrid_shape_interfaces.hybrid_shape_combine.HybridShapeCombine(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
HybridShapeCombine

Represents the hybrid shape combined curve object.
Role: To access the data of the hybrid shape combined curve object. This data
includes:

The three curves to which the circle is tangent
The surface that supports the circle
The orientation of each curve.

Use the HybridShapeFactory object to create a HybridShapeCombine
object.
property direction1

Note

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

Returns or sets the first direction used to create the combined curve. The
first direction is the direction along which the first curve is
extruded.

Example:

This example sets firstDir as the first direction to create the
combined curve
hybCombCurve.


hybCombCurve.Direction1 = firstDir
Returns

HybridShapeDirection

property direction2

Note

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

Returns or sets the second direction used to create the combined
curve.

Example:

This example retrieves in secondDir the second direction
used
to create the combined curve hybCombCurve.


Dim secondDir As CATIAHybridShapeDirection
Set secondDir = hybCombCurve.Direction2
Returns

HybridShapeDirection

property elem1

Note

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

Returns or sets the first curve used to create the combined
curve.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.

Example:

This example sets firstCurve as the first curve to create the
combined curve
hybCombCurve.


hybCombCurve.Elem1 = firstCurve
Returns

Reference

property elem2

Note

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

Returns or sets the second curve used to create the combined
curve.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.

Example:

This example retrieves in secondCurve the second curve used to
create
the combined curve hybCombCurve.


Dim secondCurve As CATIAReference
Set secondCurve = hybCombCurve.Elem2
Returns

Reference

property nearest_solution

Note

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

Returns or sets whether the combined curve is or should be created as the
curve closest to the first curve.
Role: The nearest solution indicates whether the created combined curve is
the one closest to the first curve if there are several possible combined
curves, or if all these possible combined curves are
created..
Legal values: 0 for the nearest solution and 1 for all possible
solutions.

Example:

This example sets the nearest solution mode to create the combined
curve
hybCombCurve closest to the first curve.


hybCombCurve.NearestSolution = 1
Returns

int

property solution_type_combine

Note

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

Returns or sets whether the curves that create the combined curve are or
should be extruded along normals to the curve planes or along given
directions.
Role: The curves that make up the combined curve are each extruded along a
direction. This direction can be the normal to the curve plane, or can be set
to a given direction. This is valid for the two curves
altogether.
Legal values: 0 for the normal to the curve planes (default mode), 1 for
given directions

Example:

This example sets that the combined curve hybCombCurve should be
created
by extruding the two curves along the normals to their
planes.


hybCombCurve.SolutionTypeCombine = 0
Returns

int

hybrid_shape_conic

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.hybrid_shape_interfaces.hybrid_shape_conic.HybridShapeConic(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
HybridShapeConic

Represents the hybrid shape conic object.
Role: To access the data of the hybrid shape conic object. This data
includes:

The start point and its associated tangent contraint
The end point and its associated tangent contraint
The supporting plane
The tangent intersection point
The conic parameter: p = 0.5 (parabola), 0<=p<=0.5 (ellipse), 0.5<= p <=1.0 (hyperbola)

Use the HybridShapeFactory to create a HybridShapeConic
object.
property conic_parameter

Note

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

Returns or sets the conic parameter.

Example:
This example retrieves in conicParm the conic parameter of the conic
hybConic.

Dim conicParm As double
Set conicParm = hybConic.ConicParameter
Returns

float

property conic_user_tol

Note

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

Gets or sets the conic User Tolerance.

Example:
This example retrieves in conicUserTol the conic user tolerance of the
conic HybridShapeConic.

Dim oConicUserTol As CATIALength
Set oConicUserTol = HybridShapeConic.conicUserTol


See also:
Length
Returns

Length

property end_point

Note

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

Returns or sets the conic end point.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in endPt the end point of the conic
hybConic.

Dim endPt As Reference
Set endPt = hybConic.EndPoint
Returns

Reference

property end_tangent

Note

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

Returns or sets the tangent direction at the conic end
point.

Example:
This example retrieves in endTgt the tangent direction associated with
the end point of the conic hybConic.

Dim endTgt As Reference
Set endTgt = hybConic.EndTangent
Returns

HybridShapeDirection

get_end_tangent_direction_flag(o_orientation)

Note

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

Retrieves the tangent direction orientation at the conic end
point.

Parameters:

oOrientation
The direction orientation applied to the tangent direction at the
conic end point
Legal values: 1 if the tangent direction is used as is, and -1 if
it is inverted

Example:

This example retrieves the direction orientation of the tangent at
the end point of
the conic hybConic.


Dim endPtTgtOrient As long
hybConic.GetEndTangentDirectionFlag endPtTgtOrient
Parameters

o_orientation (int) –

Returns

None

get_intermed_tangent(i_index_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetIntermedTangent(long iIndexPoint) As
HybridShapeDirection

Retrieves the tangent direction at one of the conic intermediate passing
points.

Parameters:

iIndexPoint
An index that designates the passing point to
retrieve
Legal values: 1 for the first passing point, and 2 for the second
one
oTgtDir
The retrieved tangent direction at the given passing point


Example:

This example retrieves in tgtDir the tangent direction at point
passingPtIdx
through which the conic hybConic passes.


Dim tgtDir As Reference
passingPtIdx = 1
Set tgtDir = hybConic.GetIntermedTangent (passingPtIdx)
Parameters

i_index_point (int) –

Returns

HybridShapeDirection

get_intermediate_point(i_index_point, o_end_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetIntermediatePoint(long iIndexPoint,
Reference oEndPoint)

Retrieves one of the conic intermediate passing points.

Parameters:

iIndexPoint
An index that designates the passing point to
retrieve
Legal values: 1 for the first passing point, 2 for the second one,
and 3 for the third one
oEndPoint
The retrieved passing point

Example:

This example retrieves in passingPt the second point through
which
the conic hybConic passes.


Dim passingPt As Reference
passingPtIdx = 2
hybConic.GetIntermediatePoint passingPtIdx, passingPt
Parameters
  • i_index_point (int) –

  • o_end_point (Reference) –

Returns

None

get_intermediate_tangent_direction_flag(i_index_point, o_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetIntermediateTangentDirectionFlag(long iIndexPoint,
long oOrientation)

Retrieves the tangent direction orientation of one of the conic
intermediate points.

Parameters:

iIndexPoint
An index that designates the passing point to
retrieve
Legal values: 1 for the first passing point, and 2 for the second
one
oOrientation
The direction orientation applied to the tangent direction at the
intermediate passing point
Legal values: 1 if the tangent direction is used as is, and -1 if
it is inverted

Example:

This example retrieves the direction orientation of the tangent at
the first point through which
the conic hybConic passes.


passingPtIdx = 1
Dim passingPtTgtOrient As long
hybConic.GetIntermediateTangentDirectionFlag passingPtIdx,
passingPtTgtOrient
Parameters
  • i_index_point (int) –

  • o_orientation (int) –

Returns

None

get_start_tangent_direction_flag(o_orientation)

Note

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

Retrieves the tangent direction orientation at the conic start
point.

Parameters:

oOrientation
The direction orientation applied to the tangent direction at the
conic start point
Legal values: 1 if the tangent direction is used as is, and -1 if
it is inverted

Example:

This example retrieves the direction orientation of the tangent at
the start point of
the conic hybConic.


Dim startPtTgtOrient As long
hybConic.GetStartTangentDirectionFlag
startPtTgtOrient
Parameters

o_orientation (int) –

Returns

None

set_end_tangent_direction_flag(i_orientation)

Note

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

Sets the tangent direction orientation at the conic end
point.

Parameters:

iOrientation
The direction orientation to be applied to the tangent direction at
the conic end point
Legal values: 1 if the tangent direction is to be used as is, and
-1 if it must be inverted

Example:

This example sets the direction orientation of the tangent at the end
point of
the conic hybConic to the one of the direction used
for
the tangent.


endPtTgtOrient = 1
hybConic.SetEndTangentDirectionFlag endPtTgtOrient
Parameters

i_orientation (int) –

Returns

None

set_intermediate_point(i_index_point, i_end_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetIntermediatePoint(long iIndexPoint,
Reference iEndPoint)

Sets one of the conic intermediate passing points.

Parameters:

iIndexPoint
An index that designates the passing point to
retrieve
Legal values: 1 for the first passing point, 2 for the second one,
and 3 for the third one
iEndPoint
The passing point to set.
Sub-element(s) supported (see

Boundary object): Vertex.
Example:

This example sets passingPt as the first point through
which
the conic hybConic must pass.


Dim passingPt As Reference
… ‘ Value passingPt
passingPtIdx = 1
hybConic.SetIntermediatePoint passingPtIdx, passingPt
Parameters
  • i_index_point (int) –

  • i_end_point (Reference) –

Returns

None

set_intermediate_tangent(i_index_point, i_tgt_dir)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetIntermediateTangent(long iIndexPoint,
HybridShapeDirection iTgtDir)

Sets the tangent direction at one of the conic intermediate passing
points.

Parameters:

iIndexPoint
An index that designates the passing point where the tangent
direction is to be set
Legal values: 1 for the first passing point, and 2 for the second
one
iTgtDir
The direction to set as the tangent direction at the given passing
point

Example:

This example sets tgtDir as the tangent direction at the first point
through which
the conic hybConic passes.


Dim tgtDir As Reference
… ‘ Value tgtDir
passingPtIdx = 1
hybConic.SetIntermediateTangent passingPtIdx, tgtDir
Parameters
Returns

None

set_intermediate_tangent_direction_flag(i_index_point, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetIntermediateTangentDirectionFlag(long iIndexPoint,
long iOrientation)

Sets the tangent direction orientation of one of the conic intermediate
points.

Parameters:

iIndexPoint
An index that designates the passing point to
retrieve
Legal values: 1 for the first passing point, and 2 for the second
one
iOrientation
The direction orientation to be applied to the tangent direction at
the intermediate passing point
Legal values: 1 if the tangent direction is to be used as is, and
-1 if it must be inverted

Example:

This example sets the direction orientation of the tangent at the
first point through which
the conic hybConic passes to the inverse of the one of the direction
used for
the tangent.


passingPtIdx = 1
passingPtTgtOrient = -1
hybConic.SetIntermediateTangentDirectionFlag passingPtIdx,
passingPtTgtOrient
Parameters
  • i_index_point (int) –

  • i_orientation (int) –

Returns

None

set_start_and_end_tangents_plus_conic_parameter(i_start_tgt, i_end_tgt, i_conic_param)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetStartAndEndTangentsPlusConicParameter(HybridShapeDirection
iStartTgt,
HybridShapeDirection iEndTgt,
double iConicParam)

Sets the tangent directions at conic start and end points, and the conic
parameter.

Parameters:

iStartTgt
The tangent direction at the start point
iEndTgt
The tangent direction at the end point
iConicParam
The conic parameter
Legal values: p = 0.5 (parabola), 0<=p<=0.5 (ellipse), 0.5<= p <=1.0 (hyperbola)

Example:

This example sets firstDir and secondDir as the tangent directions at
the start
and end points of the conic hybConic, and conicParm as the conic
parameter.


hybConic.SetStartAndEndTangentsPlusConicParameter firstDir, secondDir,
conicParm
Parameters
Returns

None

set_start_and_end_tangents_plus_passing_point(i_start_tgt, i_end_tgt, i_passing_pt)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetStartAndEndTangentsPlusPassingPoint(HybridShapeDirection
iStartTgt,
HybridShapeDirection iEndTgt,
Reference iPassingPt)

Sets the tangent directions at conic start and end points, and a passing
point.

Parameters:

iStartTgt
The tangent direction at the start point.
Sub-element(s) supported (see

Boundary object): Vertex.
iEndTgt
The tangent direction at the end point
iPassingPt
A point through which the conic must pass.
Legal values: This point must differ from the start and end points.

Example:

This example sets firstDir and secondDir as the tangent directions at
the start
and end points of the conic hybConic, and passingPoint as a point
through
which the conic must pass.


hybConic.SetStartAndEndTangentsPlusPassingPoint firstDir, secondDir,
passingPoint
Parameters
Returns

None

set_start_tangent_direction_flag(i_orientation)

Note

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

Sets the tangent direction orientation at the conic start
point.

Parameters:

iOrientation
The direction orientation to be applied to the tangent direction at
the conic start point
Legal values: 1 if the tangent direction is to be used as is, and
-1 if it must be inverted

Example:

This example sets the direction orientation of the tangent at the
start point of
the conic hybConic to the inverse of the one of the direction used
for
the tangent.


startPtTgtOrient = -1
hybConic.SetStartTangentDirectionFlag
startPtTgtOrient
Parameters

i_orientation (int) –

Returns

None

set_tangent_intersect_point_plus_conic_parm(i_tgt_int, i_conic_param)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTangentIntersectPointPlusConicParm(Reference
iTgtInt,
double iConicParam)

Sets the intersection point of the conic tangents to the start and end
points, and the conic parameter.

Parameters:

iTgtInt
The point intersection of the conic tangents to the start and end
point.
Sub-element(s) supported (see

Boundary object): Vertex.
iConicParam
The conic parameter
Legal values: p = 0.5 (parabola), 0<=p<=0.5 (ellipse), 0.5<= p <=1.0 (hyperbola)
Example:

This example sets tgtIntPoint as the intersection point of the
tangents
to the start and end points of the conic hybConic, and conicParm as
the conic parameter.


hybConic.SetTangentIntersectPointPlusConicParm tgtIntPoint,
conicParm
Parameters
  • i_tgt_int (Reference) –

  • i_conic_param (float) –

Returns

None

set_tangent_intersect_point_plus_passing_point(i_tgt_int, i_passing_pt)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTangentIntersectPointPlusPassingPoint(Reference
iTgtInt,
Reference iPassingPt)

Sets the intersection point of the conic tangents to the start and end
points, and a passing point.

Parameters:

iTgtInt
The point intersection of the conic tangents to the start and end
point.
Sub-element(s) supported (see

Boundary object): Vertex.
iPassingPt
A point through which the conic must pass.
Legal values: This point must differ from the start and end
points.
Sub-element(s) supported (see Boundary object):
Vertex.
Example:

This example sets tgtIntPoint as the intersection point of the
tangents
to the start and end points of the conic hybConic, and passingPoint as
a point through
which the conic must pass.


hybConic.SetTangentIntersectPointPlusPassingPoint tgtIntPoint,
passingPoint
Parameters
Returns

None

set_three_intermediate_passing_points(i_pass_pt1, i_pass_pt2, i_pass_pt3)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetThreeIntermediatePassingPoints(Reference iPassPt1,
Reference iPassPt2,
Reference iPassPt3)

Sets three conic intermediate passing points.

Parameters:

iPassPt1
The first intermediate passing point.
Sub-element(s) supported (see

Boundary object): Vertex.
iPassPt2
The second intermediate passing point.
Sub-element(s) supported (see Boundary object):
Vertex.
iPassPt3
The third intermediate passing point.
Sub-element(s) supported (see Boundary object):
Vertex.
Example:

This example sets passingPoint1, passingPoint2, and passingPoint3 as
the
three intermediate points through which the conic hybConic must
pass.


hybConic.SetThreeIntermediatePassingPoints passingPoint1,
passingPoint2, passingPoint3
Parameters
Returns

None

set_two_intermediate_passing_points_plus_one_tangent(i_pass_pt1, i_pass_pt2, i_tgt_dir, i_index_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTwoIntermediatePassingPointsPlusOneTangent(Reference
iPassPt1,
Reference iPassPt2,
HybridShapeDirection iTgtDir,
long iIndexPoint)

Sets two conic intermediate passing points and a tangent at one of the
passing points.

Parameters:

iPassPt1
The first intermediate passing point.
Sub-element(s) supported (see

Boundary object): Vertex.
iPassPt2
The second intermediate passing point.
Sub-element(s) supported (see Boundary object):
Vertex.
iTgtDir
The tangent direction at one of the intermediate passing points

iIndexPoint
An index indicating the passing point to which the tangent direction
applies
Legal values: 1 for the first passing point, and 2 for the second one

Example:

This example sets passingPoint1 and passingPoint2 as
two
intermediate points through which the conic hybConic must
pass,
tgtDir as the tangent direction at the passing point designated by
passingPointIdx.


hybConic.SetTwoIntermediatePassingPointsPlusOneTangent passingPoint1,
passingPoint2, tgtDir, passingPointIdx
Parameters
Returns

None

property start_point

Note

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

Returns or sets the conic start point.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example sets startPt as the start point of the conic
hybConic.

Dim startPt As Reference
… ‘ Value startPt
hybConic.StartPoint startPt
Returns

Reference

property start_tangent

Note

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

Returns or sets the tangent direction at the conic start
point.

Example:
This example sets startTgt as the tangent direction at the start point
of the conic hybConic.

Dim startTgt As Reference
… ‘ Value startTangent
hybConic.StartTangent startTgt
Returns

HybridShapeDirection

property support_plane

Note

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

Returns or sets the conic supporting plane.
Sub-element(s) supported (see Boundary object):
PlanarFace.

Example:
This example retrieves in supportPln the supporting plane of the conic
hybConic.

Dim supportPln As Reference
Set supportPln = hybConic.SupportPlane
Returns

Reference

switch_end_tangent_direction()

Note

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

Inverts the tangent direction orientation at the conic end
point.

Example:

This example inverts the direction orientation of the tangent at the
end point of
the conic hybConic.


hybConic.SwitchEndTangentDirection
Returns

None

switch_intermediate_tangent_direction(i_index_point)

Note

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

Inverts the tangent direction orientation of one of the conic intermediate
points.

Parameters:

iIndexPoint
An index that designates the passing point where the tangent
direction is to be inverted
Legal values: 1 for the first passing point, and 2 for the second
one

Example:

This example inverts the direction orientation of the tangent at the
first point through which
the conic hybConic passes.


passingPtIdx = 1
hybConic.SwitchIntermediateTangentDirection
passingPtIdx
Parameters

i_index_point (int) –

Returns

None

switch_start_tangent_direction()

Note

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

Inverts the tangent direction orientation at the conic start
point.

Example:

This example inverts the direction orientation of the tangent at the
start point of
the conic hybConic.


hybConic.SwitchStartTangentDirection
Returns

None

property tangent_int_point

Note

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

Returns or sets the conic tangent intersection point.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in tgtIntPt the tangent intersection point of
the conic hybConic.

Dim tgtIntPt As Reference
Set tgtIntPt = hybConic.TangentIntPoint
Returns

Reference

hybrid_shape_connect

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.hybrid_shape_interfaces.hybrid_shape_connect.HybridShapeConnect(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
HybridShapeConnect

Represents the hybrid shape connect curve object.
Role: To access the data of the hybrid shape connect curve object. This data
includes:

The face to process
The connection parameter.

Use the HybridShapeFactory to create a HybridShapeConnect
object.
property base_curve

Note

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

Returns or sets the base curve.
Do not use this property
Returns

Reference

property connect_type

Note

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

Returns or sets whether the connect curve is or should be created as
a”Normal Connect” or with a “Base Curve”.
Legal values: 0 for the normal solution and 1 for base curve
solution.

Example:

This example sets the mode to create the connect
curve
hybConnectCurve with a base curve.


hybConnectCurve.Base Curve = 1
Returns

int

property first_continuity

Note

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

Gets or Sets the continuity on first curve. FirstContinuity = 0 : Point continuity = 1 :
Tangency continuity = 2 : Curvature continuity
Returns

int

property first_curve

Note

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

Gets or Sets the first reference curve. new first reference curve
Returns

Reference

property first_orientation

Note

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

Gets or Sets the orientation of first curve FirstOrientation = 1 : SameOrientation. = -1 :
InvertOrientation. = 2 : KoOrientation
Returns

int

property first_point

Note

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

Gets or Sets the first reference point. new first reference point
Returns

Reference

property first_tension

Note

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

Returns the tension on the first curve making up the connect
curve.

Example:

This example retrieves the tension of the first curve that makes
up
the connect curve hybConnect.


Dim firstCurveTension As CATIARealParam
firstCurveTension = hybConnect.FirstTension
Returns

RealParam

property second_continuity

Note

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

Gets or Sets the continuity on second curve. SecondContinuity = 0 : Point continuity = 1 :
Tangency continuity = 2 : Curvature continuity
Returns

int

property second_curve

Note

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

Gets or Sets the second reference curve. new second reference curve
Returns

Reference

property second_orientation

Note

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

Gets or Sets the orientation of second curve SecondOrientation = 1 : SameOrientation. = -1 :
InvertOrientation. = 2 : KoOrientation
Returns

int

property second_point

Note

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

Gets or Sets the second reference point. new second reference point
Returns

Reference

property second_tension

Note

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

Returns the tension on the second curve making up the connect
curve.

Example:

This example retrieves the tension of the second curve that makes
up
the connect curve hybConnect.


Dim secondCurveTension As CATIARealParam
secondCurveTension = hybConnect.SecondTension
Returns

RealParam

property trim

Note

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

Gets or Sets the trim mode. Trim = FALSE : Connected curves are not trimmed. = TRUE :
Connected curves are trimmed.
Returns

bool

hybrid_shape_corner

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.hybrid_shape_interfaces.hybrid_shape_corner.HybridShapeCorner(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
HybridShapeCorner

Represents the hybrid shape corner feature.
Role: To access the data of the hybrid shape corner object. This data
includes:

Two elements
Their orientations (same or inverse than the underlying
curve)
A support for the hybrid shape corner on support feature
A direction for the hybrid shape 3D corner feature
A radius.

Use the HybridShapeFactory to create a HybridShapeCorner
object.
property begin_of_corner

Note

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

Return or Set the number of the beginning curve of the corner. This
parameter is used to stabilize the resulting corner

Example:

This example set the beginning wire index of
the hybShpCorner hybrid shape corner


hybShpCorner.BeginOfCorner = 1
Returns

int

property corner_type

Note

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

Returns or sets the Corner Type.

Example:

This example retrieves the Corner Type
the hybShpCorner hybrid shape corner in CornerType.


Dim lCornerType As long
lCornerType = hybShpCorner.CornerType
Returns

int

property direction

Note

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

Returns or sets the 3D corner direction.
Legal values: This can be a CATIAHybridShapeDirection.

See also:
HybridShapeDirection
Example:

This example sets the direction of
the hybShpCorner hybrid shape 3D corner as
the existing direction hybShpDirection.


hybShpCorner.Direction = hybShpDirection
Returns

HybridShapeDirection

property discrimination_index

Note

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

Returns or set the discrimination index of the current corner. Several
resulting solutions produced by the operator can be same oriented regarding to
the input wire bodies. In such a case, they are sorted in order to distinguish
them. The Sequence FirstOrientation - SecondOrientation - DiscriminationIndex
allows you to identify a unique one-domain solution.

Example:

This example set the discrimination index of
the hybShpCorner hybrid shape corner


hybShpCorner.DiscriminationIndex = 2
Returns

int

property first_elem

Note

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

Returns or sets the corner first reference element.
Legal values: This can be a curve or a point.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge,
BiDimFeatEdge or Vertex.

Example:

This example retrieves the first reference element
of
the hybShpCorner hybrid shape corner in firstElt.


Dim fisrtElt As CATIAReference
fisrtElt = hybShpCorner.FirstElem
Returns

Reference

property first_orientation

Note

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

Returns or sets the orientation of the corner first reference element. The
orientation specifies the corner center position. It is either the same of the
inverse orientation than those of the cross product: Normal(Support) ^
Tangent(FirstElem)
Legal values: 1 if the orientation of the corner first reference element is
the same than the cross product: Normal(Support) ^ Tangent(FirstElem), and -1
if it is the inverse.

Example:

This example retrieves the orientation of first reference element
of
the hybShpCorner hybrid shape corner in firstOrient.


Dim firstOrient As long
firstOrient = hybShpCorner.FirstOrientation
Returns

int

property first_tangent_orientation

Note

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

Returns or sets the tangent orientation of the corner first reference
element. compared to the corner itself

Example:

This example retrieves the tangent orientation of first reference
element of
the hybShpCorner hybrid shape corner in firstOrient.


Dim firstOrient As long
firstOrient = hybShpCorner.FirstTangentOrientation
Returns

int

invert_first_orientation()

Note

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

Inverts the first reference element orientation used to compute the
corner.

Example:

This example inverts the first corner reference element orientation
of
the hybShpCorner.


hybShpCorner.InvertFirstOrientation
Returns

None

invert_second_orientation()

Note

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

Inverts the second reference element orientation used to compute the
corner.

Example:

This example inverts the second corner reference element orientation
of
the hybShpCorner.


hybShpCorner.InvertSecondOrientation
Returns

None

property on_vertex

Note

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

Returns or sets the On Vertex mode off/on.

Example:

This example retrieves the OnVertex
the hybShpCorner hybrid shape corner in OnVertex.


Dim bOnVertex As boolean
bOnVertex = hybShpCorner.OnVertex
Returns

bool

property radius

Note

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

Returns the corner radius.

Example:

This example retrieves the radius of
the hybShpCorner hybrid shape corner in radius.


Dim radius As CATIALength
radius = hybShpCorner.Radius
Returns

Length

property second_elem

Note

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

Returns or sets the corner second reference element.
Legal values: This is always a curve.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge,
BiDimFeatEdge or Vertex.

Example:

This example retrieves the second reference element
of
the hybShpCorner hybrid shape corner in secondElt.


Dim secondElt As CATIAReference
secondElt = hybShpCorner.SecondElem
Returns

Reference

property second_orientation

Note

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

Returns or sets the orientation of the corner second reference element. The
orientation specifies the corner center position. It is either the same of the
inverse orientation than those of the cross product: Normal(Support) ^
Tangent(SecondElem)
Legal values: 1 if the orientation of the corner second reference element
is the same than the cross product: Normal(Support) ^ Tangent(SecondElem), and
-1 if it is the inverse.

Example:

This example sets the orientation of second reference element
of
the hybShpCorner hybrid shape corner to the inverse of the cross
porduct
Normal(Support) ^ Tangent(SecondElem).


hybShpCorner.SecondOrientation = -1
Returns

int

property second_tangent_orientation

Note

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

Returns or sets the tangent orientation of the corner second reference
element. compared to the corner itself

Example:

This example retrieves the tangent orientation of second reference
element of
the hybShpCorner hybrid shape corner in secondOrient.


Dim secondOrient As long
firstOrient = hybShpCorner.SecondTangentOrientation
Returns

int

property support

Note

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

Returns or sets the corner support.
Legal values: This can be a plane or a surface.
Sub-element(s) supported (see Boundary object): Face.

Example:

This example sets the support of
the hybShpCorner hybrid shape corner as
the existing surface supportSurf.


hybShpCorner.Support = supportSurf
Returns

Reference

property trim

Note

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

Returns or sets whether the corner reference curves are or should be
trimmed.
Legal values: True if the corner reference curves are or should be trimmed,
and False otherwise.

Example:

This example sets that the corner reference curves
of
the hybShpCorner hybrid shape corner should be
trimmed.


hybShpCorner.Trim = True
Returns

bool

property trim_mode

Note

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

Returns or sets whether the corner reference curves are or should be
trimmed.
Legal values: 1 if the corner reference curves are or should be trimmed, 0
if the corner reference curves are not or should not be trimmed, 2 if only the
first corner reference curve is or should be trimmed, 3 if only the second
corner reference curve is or should be trimmed,

Example:

This example sets that the corner reference curves
of
the hybShpCorner hybrid shape corner should be
trimmed.


hybShpCorner.TrimMode = 1
Returns

int

hybrid_shape_curve_explicit

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.hybrid_shape_interfaces.hybrid_shape_curve_explicit.HybridShapeCurveExplicit(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
HybridShapeCurveExplicit

Represents the hybrid shape Curve explicit feature object.
Role: Declare hybrid shape Curve explicit feature object.

See also:
HybridShapeFactory.AddNewCurveDatum

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

hybrid_shape_curve_par

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.hybrid_shape_interfaces.hybrid_shape_curve_par.HybridShapeCurvePar(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
HybridShapeCurvePar

Represents the hybrid shape curve parameter object.
Role: To access the data of the hybrid shape curve parameter object. This data
includes:

The face to process
The offset parameter.

Use the HybridShapeFactory to create a HybridShapeCurvePar
object.
property curve_offseted

Note

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

Returns or sets the offset curve of the curve parameter
object.
Sub-element(s) supported (see Boundary object): see TriDimFeatEdge or
BiDimFeatEdge.

Example:

This example retrieves the offset curve of
the hybShpCurvePar in offsetCrv.


Dim offsetCrv As CATIAReference
offsetCrv = hybShpCurvePar.CurveOffseted
Returns

Reference

property curve_par_law

Note

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

Returns or sets the offset law.

Example:
This example retrieves in oLaw the offset law for the hybShpCurvePar
hybrid shape feature.

Dim oLaw As Reference
Set oLaw = hybShpCurvePar.CurveParLaw
Returns

Reference

property curve_par_type

Note

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

Returns or sets the corner type.
Legal values:

0
CATGSMCurvePar_Sharp. corner with angle.
1
CATGSMCurvePar_Round. round corner.

Example:
This example retrieves in oCurveParType the curve par type for the
hybShpCurvePar hybrid shape feature.

oCurveParType = hybShpCurvePar.CurveParType
Returns

int

property geodesic

Note

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

Returns or sets Geodesic mode.
Legal values: True Geodesic mode and False Euclidian mode
.

Example:

This example sets that the geodesic mode of
the hybShpCurvePar hybrid shape curve par feature to
True.


hybShpCurvePar.Geodesic = True
Returns

bool

get_plane_normal(o_normal)

Note

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

Returns the Normal of the plane created when the Support of the curve is
not specified.

Parameters:

oNormal
Plane normal. It is returned as an array of three coordinates in
SafeArrayVariant

Example:
This example retrieves in oNormal the normal of the hybShpCurvePar
plane created.

Dim oNormal(2)
hybShpCurvePar.GetPlaneNormal(oNormal)


You can access each normal coordinate as follows:

x is in oNormal(0)
y is in oNormal(1)
z is in oNormal(2)
Parameters

o_normal (tuple) –

Returns

None

property invert_direction

Note

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

Returns or sets the orientation.
Legal values: True True to invert this orientation and False False means
that there is no invertion of the curve orientation (orientation is the vector
product of the tangent of the curve by the normal on the
support).

Example:

This example sets that the orientation of
the hybShpCurvePar hybrid shape curve par feature to
True.


hybShpCurvePar.InvertDirection = True
Returns

bool

property invert_mapping_law

Note

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

Returns or sets the mapping orientation of the law (if offset is specified
by a law).
Legal values: True Law is applied from the end to the beginning of the
curve (mapping is inverted). False Law is applied from the beginning to the end
of the curve (mapping is not inverted).

Example:

This example sets that the mapping orientation of
the hybShpCurvePar hybrid shape curve par feature to
True.


hybShpCurvePar.InvertMappingLaw = True
Returns

bool

property keep_both_sides

Note

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

Returns or sets the both sides mode of the curve parameter
object.

Example:

This example retrieves the both sides mode of
the hybShpCurvePar


Dim bothSides As Boolean
bothSides = hybShpCurvePar.KeepBothSides
Returns

bool

property law_type

Note

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

Returns or sets the law type.
Legal values:

0
CATGSMBasicLawType_None. Undefined law type.
1
CATGSMBasicLawType_Constant. Constant law type.
2
CATGSMBasicLawType_Linear. Linear law type.
3
CATGSMBasicLawType_SType. S law type.
4
CATGSMBasicLawType_Advanced. Law specified by a GSD law
feature.

Example:
This example retrieves in oLawType the law type for the hybShpCurvePar
hybrid shape feature.

oLawType = hybShpCurvePar.LawType
Returns

int

property maximum_deviation_value

Note

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

Sets or Gets the maximum deviation allowed for smoothing
operation.
Sets in distance unit, it corresponds to the radius of a pipe around the
input curve in which the result is allowed to be. This value must be set in SI
unit (m).

Example: This example retrieves in DeviationValue the maximum deviation
value for the CurvePar hybrid shape feature.

Dim DeviationValue As CATIALength
Set DeviationValue = CurvePar.MaximumDeviationValue
Returns

float

property offset

Note

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

Returns the offset parameter of the curve parameter
object.

Example:

This example retrieves the offset parameter of
the hybShpCurvePar in offsetParm.


Dim offsetParm As CATIALength
offsetParm = hybShpCurvePar.Offset
Returns

Length

property offset2

Note

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

Returns the second offset parameter of the curve parameter
object.

Example:

This example retrieves the second offset parameter
of
the hybShpCurvePar in offsetParm.


Dim offsetParm As CATIALength
offsetParm = hybShpCurvePar.Offset2
Returns

Length

property other_side

Note

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

Returns the other side of parallel curve if both sides mode is
on.

Example:

This example retrieves the other side of
the hybShpCurvePar


Dim otherSide As CATIAReference
Set otherSide = hybShpCurvePar.OtherSide
Returns

Reference

property p3_d_smoothing

Note

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

Returns or sets the ‘3D Smoothing’ option. Role: To activate or not the 3D smoothing option
Available only for tangent or curvature smoothing type TRUE : Smoothing performed without
specifying support FALSE : Smoothing performed with specific support

Example: This example retrieves in 3DSmoothingOption the support for the
Project hybrid shape feature.

Dim 3DSmoothingOption As boolean
Set 3DSmoothingOption = Project.p3DSmoothing
Returns

bool

property passing_point

Note

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

Returns or sets the passing point of the curve parameter
object.
Sub-element(s) supported (see Point object):

Example:

This example retrieves the offset curve of
the hybShpCurvePar in offsetCrv.


Dim PassingPoint As CATIAReference
offsetCrv = hybShpCurvePar.PassingPoint
Returns

Reference

put_plane_normal(i_normal)

Note

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

Sets the Normal of the plane created when the Support of the curve is not
specified.

Parameters:

iNormal
iNormal[0]
The X Coordinate of the normal vector
iNormal[1]
The Y Coordinate of the normal vector
iNormal[2]
The Z Coordinate of the normal vector
Parameters

i_normal (tuple) –

Returns

None

property smoothing_type

Note

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

Returns or sets the smoothing Type.
Smoothing type:

: 0 -> No Smoothing
: 2 -> G1 Smoothing : Enhance current continuity to tangent continuity
: 3 -> G2 Smoothing : Enhance current continuity to curvature continuity

Example: This example retrieves in SType the smoothing type for the
CurvePar hybrid shape feature.

Dim SType As long
Set SType = CurvePar.SmoothingType
Returns

int

property support

Note

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

Returns or sets the support of the curve..

Example:
This example retrieves in oElem the support of the curve for the
hybShpCurvePar hybrid shape feature.

Dim oElem As Reference
Set oElem = hybShpCurvePar.Support
Returns

Reference

hybrid_shape_curve_smooth

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.hybrid_shape_interfaces.hybrid_shape_curve_smooth.HybridShapeCurveSmooth(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
HybridShapeCurveSmooth

Represents the hybrid shape curve smoothing operation feature.
Role: To access the data of the curve smoothing operation.of the hybrid shape
curve parameter object. This data includes:

The curve to smooth
The support (if exist )
The tangent tolerance value (threshold)
The curvature tolerance value (threshold)
The info if curvature threshold is activated
The maximum deviation accepted
The info if maxcimum deviation is activated
The fixed points
The fixed segments
The info if topology simplification is activated

Use the HybridShapeFactory.AddNewCurveSmooth to create a HybridShapeCurveSmooth
object.
property correction_mode

Note

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

Returns or sets the correction mode (threshold, point, tangency or
curvature) applied to the smoothed curve.
Legal values:

0
CATGSMCSCorrectionMode_Threshold. no continuity
1
CATGSMCSCorrectionMode_Point. continuity in point
(C0).
2
CATGSMCSCorrectionMode_Tangency. continuity in tangency
(C1).
3
CATGSMCSCorrectionMode_Curvature. continuity in curvature
(C2).

Example:
This example retrieves in oMode the correction mode for the
hybShpCurveSmooth hybrid shape feature.

oMode = hybShpCurveSmooth.CorrectionMode
Returns

int

property curvature_threshold

Note

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

Returns or sets the CurvatureThreshold.

Example: This example retrieves the CurvatureThreshold of the
hybShpCurveSmooth in CurvatureThH.

Dim CurvatureThH as double
CurvatureThH = hybShpCurvePar.CurvatureThreshold
Returns

float

property curvature_threshold_activity

Note

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

Returns or sets the CurvatureThresholdActivity.

Example: This example retrieves the CurvatureThresholdActivity of the
hybShpCurveSmooth in CurvatureActivity .

Dim CurvatureActivity as boolean
CurvatureActivity = hybShpCurvePar.CurvatureThresholdActivity
Returns

bool

property curve_to_smooth

Note

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

Returns or sets the curve to smooth.

Example: This example retrieves the curve to smooth object of the
hybShpCurveSmooth in Curve.

Dim Curve as CATIAReference
Curve = hybShpCurvePar.CurveToSmooth
Returns

Reference

property end_extremity_continuity

Note

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

Returns or sets the continuity condition (curvature, tangency or point)
applied to the smoothed curve with regard to the input curve at the end
extremity of the input curve.
Legal values:

0
CATGSMContinuity_Point. continuity in point (C0).
1
CATGSMContinuity_Tangency. continuity in tangency
(C1).
2
CATGSMContinuity_Curvature. continuity in curvature
(C2).

Example:
This example retrieves in oContinuity the continuity at the end extremity
for the hybShpCurveSmooth hybrid shape feature.

oContinuity = hybShpCurveSmooth.EndExtremityContinuity
Returns

int

property maximum_deviation

Note

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

Returns the MaximumDeviation.

Example: This example retrieves the MaximumDeviation of the
hybShpCurveSmooth in MaximumDeviationVal.

Dim MaximumDeviationVal as CATIALength
MaximumDeviationVal = hybShpCurvePar.MaximumDeviation
Returns

Length

property maximum_deviation_activity

Note

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

Returns or sets the MaximumDeviationActivity.

Example: This example retrieves the MaximumDeviationActivity of the
hybShpCurveSmooth in MaxActivity .

Dim MaxActivity as boolean
MaxActivity = hybShpCurvePar.MaximumDeviationActivity
Returns

bool

property start_extremity_continuity

Note

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

Returns or sets the continuity condition (curvature, tangency or point)
applied to the smoothed curve with regard to the input curve at the start
extremity of the input curve.
Legal values:

0
CATGSMContinuity_Point. continuity in point (C0).
1
CATGSMContinuity_Tangency. continuity in tangency
(C1).
2
CATGSMContinuity_Curvature. continuity in curvature
(C2).

Example:
This example retrieves in oContinuity the continuity at the start extremity
for the hybShpCurveSmooth hybrid shape feature.

oContinuity = hybShpCurveSmooth.StartExtremityContinuity
Returns

int

property support

Note

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

Returns or sets the support of the curve.
if Suppport == nothing no support associated to the curve

Example: This example retrieves the support of curve to smooth object of
the hybShpCurveSmooth in Support.

Dim Support as CATIAReference
Support = ybShpCurveSmooth.Support
Returns

Reference

property tangency_threshold

Note

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

Returns the TangencyThreshold.

Example: This example retrieves the curve to smooth object of the
hybShpCurveSmooth in AngleThH.

Dim Curve as CATIAAngle
AngleThH = ybShpCurveSmooth.TangencyThreshold
Returns

Angle

property topology_simplification_activity

Note

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

Returns or sets the TopologySimplificationActivity.

Example: This example retrieves the TopologySimplificationActivity of the
hybShpCurveSmooth in TopSimplifyAct.

Dim TopSimplifyAct as boolean
TopSimplifyAct = hybShpCurvePar.TogologySimplificationActivity


Methods

o Sub AddFrozenCurveSegment(Reference iCurve)

Adds a frozen curve to the hybrid shape curve smooth feature
object.

Parameters:

iCurve
The curve to be added to the hybrid shape curve smooth feature
object.

Example:
The following example adds the iCurve curve to the hybShpCurveSmooth
object.

hybShpCurveSmooth.AddFrozenCurveSegment iCurve


o Sub AddFrozenPoint(Reference iPoint)

Adds a frozen points to the hybrid shape curve smooth feature
object.

Parameters:

iPoint
The frozen point to be added to the hybrid shape curve smooth
feature object.

Example:
The following example adds the iPoint frozen point to the
hybShpCurveSmooth object.

hybShpCurveSmooth.AddFrozenPoint iPoint


o Func GetFrozenCurveSegment(long iPos) As Reference

Retrieves the Frozen Curve Segment at specified position in the hybrid
shape curve smooth object.

Parameters:

iPos
The position of the Frozen Curve Segment to retrieve.


Example:
The following example gets the oCurve Frozen Curve Segment of the
hybShpCurveSmooth object at the position iPos.

Dim oCurve As Reference
Set oCurve = hybShpCurveSmooth.GetFrozenCurveSegment (iPos).


o Func GetFrozenCurveSegmentsSize() As long

Returns the number of frozen curve segments in the curve smooth
object.

Parameters:

oSize
Number of frozen curve segments in the curve
smooth.

Example:
This example retrieves the number of frozen curve segments. in
the hybShpCurveSmooth hybrid shape curve
smooth.

Dim oSize As long
oSize = hybShpCurveSmooth.GetFrozenCurveSegmentsSize


o Func GetFrozenPoint(long iPos) As Reference

Retrieves the Frozen Point at specified position in the hybrid shape curve
smooth object.

Parameters:

iPos
The position of the Frozen Point to retrieve.

Example:
The following example gets the oPoint Frozen Point of the
hybShpCurveSmooth object at the position iPos.

Dim oPoint As Reference
Set oPoint = hybShpCurveSmooth.GetFrozenPoint (iPos).


o Func GetFrozenPointsSize() As long

Returns the number of Frozen Points in the curve smooth
object.

Parameters:

oSize
Number of Frozen Points in the curve smooth.

Example:
This example retrieves the number of Frozen Points. in the
hybShpCurveSmooth hybrid shape curve smooth.

Dim oSize As long
oSize = hybShpCurveSmooth.GetFrozenPointsSize


o Sub RemoveAllFrozenCurveSegments()

Removes all Frozen Curve Segment of the hybrid shape curve smooth object.


Example:
The following example removes all Frozen Curve Segments of the
hybShpCurveSmooth object.

hybShpCurveSmooth.RemoveAllFrozenCurveSegments


o Sub RemoveAllFrozenPoints()

Removes all Frozen Points of the hybrid shape curve smooth object.


Example:
The following example removes all Frozen Points of the hybShpCurveSmooth
object.

hybShpCurveSmooth.RemoveAllFrozenPoints


o Sub RemoveFrozenCurveSegment(Reference iCurve)

Removes Frozen Curve Segment from the list of Forzen curves in hybrid shape
curve smooth object.

Parameters:

iCurve
The Frozen Curve Segment to remove.

Example:
The following example removes the Frozen Curve Segment from the
hybShpCurveSmooth object.

hybShpCurveSmooth.RemoveFrozenCurveSegment iCurve.


o Sub RemoveFrozenPoint(Reference iPoint)

Removes Frozen Point from the list of frozen points in hybrid shape curve
smooth object.

Parameters:

iPoint
The Frozen Point to remove.

Example:
The following example removes the Frozen Point from the
hybShpCurveSmooth object.

hybShpCurveSmooth.RemoveFrozenPoint iPoint.


o Sub SetMaximumDeviation(double iMaxDeviation)

Sets the maximum deviation.

Parameters:

iMaxDeviation
The maximium deviation

o Sub SetTangencyThreshold(double iTangencyThreshold)

Sets the tangency threshold.

Parameters:

iTangencyThreshold
The tangency threshold
Returns

bool

hybrid_shape_cylinder

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.hybrid_shape_interfaces.hybrid_shape_cylinder.HybridShapeCylinder(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
HybridShapeCylinder

Represents the hybrid shape Cylinder feature object.
Role: To access the data of the hybrid shape Cylinder feature object. This data
includes:

The center of the Cylinder
The Radius of the Cylinder
Length of Cylinder in the given extrusion direction
Length of Cylinder opposite to extrusion direction
Direction of extrusion for cylinder.

Use the CATIAHybridShapeFactory to create a HybridShapeCylinder
object.

See also:
HybridShapeFactory
property center

Note

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

Returns or sets the center of the cylinder object.

Example:
This example retrieves in CylinderCenter the center of the Cylinder,
for the Cylinder hybrid shape feature.

Dim CylinderCenter As Reference
Set CylinderCenter = Cylinder.Center
Returns

Reference

property direction

Note

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

Returns or sets the direction of the cylinder object.

Example:
This example retrieves in CylinderDirection the direction of extrusion
of the Cylinder, for the Cylinder hybrid shape
feature.

Dim CylinderDirection As HybridShapeDirection
Set CylinderDirection = Cylinder.Direction
Returns

HybridShapeDirection

invert_orientation()

Note

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

Inverts the Orientation of Cylinder object.

Example:
This example inverts the orientation for the Cylinder hybrid shape
feature.

Cylinder.InvertOrientation
Returns

None

property length1

Note

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

Returns or sets the length of the cylinder object in the given extrusion
direction.

Example:
This example retrieves in CylinderLength1 the length of the Cylinder in
the given extrusion direction, for the Cylinder hybrid shape
feature.

Dim CylinderLength1 As Length
Set CylinderLength1 = Cylinder.Length1
Returns

Length

property length2

Note

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

Returns or sets the length of the cylinder object in the opposite direction
of given extrusion direction.

Example:
This example retrieves in CylinderLength2 the length of the Cylinder in
the opposite direction of the given extrusion direction, for the Cylinder
hybrid shape feature.

Dim CylinderLength2 As Length
Set CylinderLength2 = Cylinder.Length2
Returns

Length

property orientation

Note

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

Returns or sets the the inversion of extrusion direction.

Example:
This example retrieves in IsInverted the inversion status of extrusion
direction for the Cylinder hybrid shape feature.

Dim IsInverted As boolean
Set IsInverted = Cylinder.Orientation
Returns

False

property radius

Note

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

Returns or sets the radius of the cylinder object.

Example:
This example retrieves in CylinderRadius the radius of the Cylinder,
for the Cylinder hybrid shape feature.

Dim CylinderRadius As Length
Set CylinderRadius = Cylinder.Radius
Returns

Length

property symmetrical_extension

Note

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

Gets or Sets the symmetrical extension of Cylinder (Length 2 = -Length 1).

Parameters:

iSym
Symmetry flag
Returns

bool

hybrid_shape_develop

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.hybrid_shape_interfaces.hybrid_shape_develop.HybridShapeDevelop(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
HybridShapeDevelop

Represents the hybrid shape develop feature object.
Role: To access the data of the hybrid shape develop feature object. This data
includes:

The developing mode
The positining mode used for the 2D wire
The 2D wire to be developed
The positioning transformation
The support revolution surface on which the development is
operated
The point designated as the origin of the planar 2D wire
The direction corresponding to the first axis of the planar axis system
related to the planar 2D wire
The development origin on the support surface

Use the CATIAHybridShapeFactory to create a HybridShapeDevelop
object.

See also:
HybridShapeFactory
get_plane_axis_angle()

Note

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

Retrieves the rotation angle.
Role: The rotation angle is expressed in the planar coordinate system
related to the 2D planar wire from its default position.

Returns:
The rotation value
Returns

Angle

get_plane_axis_coord(i_coor_idx)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPlaneAxisCoord(long iCoorIdx) As Length

Retrieves the translation coordinates.
Role: The translation coordinates are expressed with respect to the planar
coordinate system related to the 2D planar wire from its default position.
GetPlaneAxisCoord retrieves one coordinate at a time.

Parameters:

iCoorIdx
The coordinate index
Legal values
: 1 for X and 2 for Y

Returns:
The coordinate value
Parameters

i_coor_idx (int) –

Returns

Length

get_plane_axis_swap_axes(ii)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPlaneAxisSwapAxes(long ii) As long

Retrieves the inversion axes from their previous
definitions.

Parameters:

iI
== NOT USED YET == Must always be set to 0

Returns:
The inversion value
Legal values:

CATGSMAxisInversionMode_None
No axis inverted
CATGSMAxisInversionMode_X
Only the X axis is inverted
CATGSMAxisInversionMode_Y
Only the Y axis is inverted
CATGSMAxisInversionMode_Both
Both axes are inverted
Parameters

ii (int) –

Returns

int

property mode

Note

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

Returns or sets the developing mode.
Legal values:

CATGSMDevelopMethod_DevDev
Develop / develop algorithm
CATGSMDevelopMethod_DevProj
Develop / project algorithm
Returns

int

property mode_pos

Note

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

Returns or sets the positioning mode used for the 2D wire.
Legal values:

CATGSMPositionMode_NoneOrPositioned
No positioning
CATGSMPositionMode_ExplicitSweep
CATGSMPositionMode_Develop
The 2D wire is to be moved from its initial position
Returns

int

property plane_axis_direction

Note

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

Returns or sets the direction corresponding to the first axis of the planar
axis system related to the planar 2D wire.
Sub-element(s) supported (see Boundary object): RectilinearTriDimFeatEdge,
BiDimFeatEdge or RectilinearMonoDimFeatEdge.
Returns

Reference

property plane_axis_origin

Note

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

Returns or sets the point designated as the origin of the planar 2D
wire.
Sub-element(s) supported (see Boundary object): Vertex.
Returns

Reference

property point_on_support

Note

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

Returns or sets the development origin on the support
surface.
Sub-element(s) supported (see Boundary object): Vertex.
Returns

Reference

property positioned_wire

Note

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

Returns or sets the positioning transformation.
Role: To retrieve or set the positioning transformation associated to the
develop feature and which result corresponds to the positioned 2D wire.
Returns

Reference

set_plane_axis_angle(i_angle)

Note

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

Sets the rotation angle.
Role: The rotation angle is expressed in the planar coordinate system
related to the 2D planar wire from its default position.

Parameters:

iAngle
The rotation angle value.
Parameters

i_angle (float) –

Returns

None

set_plane_axis_coord(i_coor_idx, i_coord_value)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPlaneAxisCoord(long iCoorIdx,
double iCoordValue)

Sets the translation coordinates.
Role: The translation coordinates are expressed with respect to the planar
coordinate system related to the 2D planar wire from its default position.
SetPlaneAxisCoord sets one coordinate at a time.

Parameters:

iCoorIdx
The coordinate index
Legal values
: 1 for X and 2 for Y
iCoordValue
The coordinate value
Parameters
  • i_coor_idx (int) –

  • i_coord_value (float) –

Returns

None

set_plane_axis_swap_axes(i_idx, i_inversion_value)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPlaneAxisSwapAxes(long iIdx,
long iInversionValue)

Sets the inversion axes from their previous definitions.

Parameters:

iIdx
== NOT USED YET == Must always be set to 0
iInversionValue
The inversion value
Legal values:

CATGSMAxisInversionMode_None
No axis inverted
CATGSMAxisInversionMode_X
Only the X axis is inverted
CATGSMAxisInversionMode_Y
Only the Y axis is inverted
CATGSMAxisInversionMode_Both
Both axes are inverted
Parameters
  • i_idx (int) –

  • i_inversion_value (int) –

Returns

None

property support

Note

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

Returns or sets the support revolution surface on which the development is
operated.
Sub-element(s) supported (see Boundary object): Face.
Returns

Reference

property wire_to_develop

Note

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

Returns or sets the 2D wire to be developed.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.
Returns

Reference

hybrid_shape_direction

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.hybrid_shape_interfaces.hybrid_shape_direction.HybridShapeDirection(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
HybridShapeDirection

Represents the hybrid shape direction feature object.
Role: To access the data of the hybrid shape direction feature object. A
direction can be specified using:

A line: the direction is tangent to the line
A plane: the direction is normal to the plane
Its components

Use the CATIAHybridShapeFactory to create a HybridShapeDirection
object.

See also:
HybridShapeFactory
direction_specification()

Note

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

Queries the direction specification status.

Parameters:

oDir
direction specification = 0 : Direction is not specified. = 1 :
Direction is specified and is valid. = -1 : Direction is specified but is not valid.
Returns

int

get_x()

Note

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

Returns the direction X component. This method succeeds only when direction
is specified using components. It fails when direction is specified using a
geometrical element i.e Line, Plane. In such cases use GetXVal method
instead.

Parameters:

oCoordinates
The direction X component
Returns

RealParam

get_x_val()

Note

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

Returns the direction X component as Double. This method succeeds
irrespective of the way direction is specified.

Parameters:

oX
The direction X component
Returns

float

get_y()

Note

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

Returns the direction Y component. This method succeeds only when direction
is specified using components. It fails when direction is specified using a
geometrical element i.e Line, Plane. In such cases use GetYVal method
instead.

Parameters:

oCoordinates
The direction Y component
Returns

RealParam

get_y_val()

Note

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

Returns the direction Y component as Double.This method succeeds
irrespective of the way direction is specified.

Parameters:

oY
The direction Y component
Returns

float

get_z()

Note

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

Returns the direction Z component. This method succeeds only when direction
is specified using components. It fails when direction is specified using a
geometrical element i.e Line, Plane. In such cases use GetZVal method
instead.

Parameters:

oCoordinates
The direction Z component
Returns

RealParam

get_z_val()

Note

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

Returns the direction Z component as Double.This method succeeds
irrespective of the way direction is specified.

Parameters:

oZ
The direction Z component
Returns

float

property object

Note

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

Returns or sets the object that specifies the direction.
This object can be a line or a plane.

Parameters:

oObject
The object (a line or a plane) that specifies the
direction

Sub-element(s) supported (see

Boundary object): RectilinearTriDimFeatEdge, RectilinearBiDimFeatEdge
or RectilinearMonoDimFeatEdge.
Returns

Reference

property ref_axis_system

Note

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

Returns or Sets the reference Axis System for Direction
feature.
This data is not mandatory, if element is null, the absolute axis system is
taken.
When an element is given, X, Y and Z are considered in this Axis system.

Example
:
This example retrieves in oRefAxis the reference Axis System for Direction
feature.

Dim oRefAxis As CATIAReference
Set oRefAxis = Direction.RefAxisSystem
Returns

Reference

property type

Note

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

Returns the direction type.
Legal value: The direction type can be:

0
The direction is specified using an object (a line or a plane). In the
case of a plane, the direction is the normal to the
plane
1
The direction is specified using its components
Returns

int

hybrid_shape_extract

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.hybrid_shape_interfaces.hybrid_shape_extract.HybridShapeExtract(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
HybridShapeExtract

Represents the hybrid shape extract feature object.
Role: To access the data of the hybrid shape extract feature
object.

Use the CATIAHybridShapeFactory to create a HybridShapeExtract
object.

See also:
HybridShapeFactory.AddNewExtract
property angular_threshold

Note

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

Returns or sets the AngularThreshold.

Example: This example retrieves the AngularThreshold of the hybShpExtract
in AngularThH.

Dim AngularThH as double
AngularThH = hybShpExtract.AngularThreshold
Returns

float

property angular_threshold_activity

Note

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

Returns or sets the AngularThresholdActivity.

Example: This example retrieves the AngularThresholdActivity of the
hybShpExtract in AngularActivity .

Dim AngularActivity as boolean
AngularActivity = hybShpExtract.AngularThresholdActivity
Returns

bool

property complementary_extract

Note

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

Returns or sets the ComplementaryExtract checked/unchecked for the extract.
Returns

bool

property curvature_threshold

Note

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

Returns or sets the CurvatureThreshold.

Example: This example retrieves the CurvatureThreshold of the hybShpExtract
in CurvatureThH.

Dim CurvatureThH as double
CurvatureThH = hybShpExtract.CurvatureThreshold
Returns

float

property curvature_threshold_activity

Note

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

Returns or sets the CurvatureThresholdActivity.

Example: This example retrieves the CurvatureThresholdActivity of the
hybShpExtract in CurvatureActivity .

Dim CurvatureActivity as boolean
CurvatureActivity = hybShpExtract.CurvatureThresholdActivity
Returns

bool

property distance_threshold

Note

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

Returns or sets the DistanceThreshold.

Example: This example retrieves the DistanceThreshold of the hybShpExtract
in DistanceThH.

Dim DistanceThH as double
DistanceThH = hybShpExtract.DistanceThreshold
Returns

float

property distance_threshold_activity

Note

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

Returns or sets the DistanceThresholdActivity.

Example: This example retrieves the DistanceThresholdActivity of the
hybShpExtract in DistanceActivity .

Dim DistanceActivity as boolean
DistanceActivity = hybShpExtract.DistanceThresholdActivity
Returns

bool

property elem

Note

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

Returns or sets the sub element used as init for the
propagation.

See also:
HybridShapeFactory
Returns

Reference

property is_federated

Note

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

Returns or sets the IsFederated flag checked/unchecked for the extract.
Returns

bool

property propagation_type

Note

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

Returns or sets the type of propagation for the extract.
The propagation types for the extract can have the following
values:

1 for extraction propagation in point continuity
2 for extraction propagation in tangent continuity
3 for extraction without propagation
Returns

int

property support

Note

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

Returns or sets the support for the extract.
Returns

Reference

hybrid_shape_extract_multi

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.hybrid_shape_interfaces.hybrid_shape_extract_multi.HybridShapeExtractMulti(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
HybridShapeExtractMulti

Represents the hybrid shape ExtractMulti feature object.
Role: To access the data of the hybrid shape ExtractMulti feature
object.

Use the CATIAHybridShapeFactory to create a HybridShapeExtractMulti
object.

See also:
HybridShapeFactory.AddNewExtractMulti
add_constraint(i_constraint, i_type, i_complementaire, i_is_federated, i_crvtre_thsld, i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddConstraint(Reference iConstraint,
long iType,
boolean iComplementaire,
boolean iIsFederated,
double iCrvtreThsld,
long iPos)

Deprecated:
V5R16 CATIAHybridShapeExtractMulti#AddConstraintTolerant Adds a
constraint to the list of Extracted Elements.
Parameters:

iConstraint
The constraint to add.
iType
the type of propagation for the ExtractMulti.
iComplementaire
the Complementary flag checked/unchecked for for the constraint.

iIsFederated
the Federated flag checked/unchecked for the constraint.

iCrvtreThsld
the CurvatureThreshold for the constraint.
iPos
The position at which the element is to be added in the list of
constraints.

Example:
This example adds a body in the list of constraints at
specified position with the type of propagation, the Federated flag and the
CurvatureThreshold of the HybShpExtractMulti hybrid shape
ExtractMulti.

Dim iType as long
Dim iComplementaire as boolean
Dim iIsFederated as boolean
Dim iCrvtreThsld as double
HybShpExtractMulti.AddConstraint iCst iType iComplementaire
iIsFederated iCrvtreThsld 1
Parameters
  • i_constraint (Reference) –

  • i_type (int) –

  • i_complementaire (bool) –

  • i_is_federated (bool) –

  • i_crvtre_thsld (float) –

  • i_pos (int) –

Returns

None

add_constraint_tolerant(i_constraint, i_type, i_complementaire, i_is_federated, i_distre_thsld, i_angtre_thsld, i_crvtre_thsld, i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddConstraintTolerant(Reference iConstraint,
long iType,
boolean iComplementaire,
boolean iIsFederated,
double iDistreThsld,
double iAngtreThsld,
double iCrvtreThsld,
long iPos)

Adds a constraint to the list of Extracted Elements.

Parameters:

iConstraint
The constraint to add.
iType
the type of propagation for the ExtractMulti.
iComplementaire
the Complementary flag checked/unchecked for for the constraint.

iIsFederated
the Federated flag checked/unchecked for the constraint.

iDistreThsld
the DistanceThreshold for the constraint.
iAngtreThsld
the AngularThreshold for the constraint.
iCrvtreThsld
the CurvatureThreshold for the constraint.
iPos
The position at which the element is to be added in the list of
constraints.

Example:
This example adds a body in the list of constraints at
specified position with the type of propagation, the Federated flag and the
CurvatureThreshold of the HybShpExtractMulti hybrid shape
ExtractMulti.

Dim iType as long
Dim iComplementaire as boolean
Dim iIsFederated as boolean
Dim iDistreThsld as double
Dim iAngtreThsld as double
Dim iCrvtreThsld as double
HybShpExtractMulti.AddConstraintTolerant iCst iType
iComplementaire iIsFederated iCrvtreThsld 1
Parameters
  • i_constraint (Reference) –

  • i_type (int) –

  • i_complementaire (bool) –

  • i_is_federated (bool) –

  • i_distre_thsld (float) –

  • i_angtre_thsld (float) –

  • i_crvtre_thsld (float) –

  • i_pos (int) –

Returns

None

get_angular_threshold(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAngularThreshold(long iPos) As double

Returns the AngularThreshold of the list of constraints at specified
position.

Example:
This example retrieves the AngularThreshold in the list of constraints
at specified position of the hybShpExtractMulti in
AngularThH.

Dim oAngtreThsld as double
AngularThH = HybShpExtractMulti.GetAngularThreshold(1)
Parameters

i_pos (int) –

Returns

float

get_angular_threshold_activity(i_pos)

Note

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

Returns the AngularThresholdActivity of the list of constraints at
specified position.

Example:
This example retrieves the AngularThresholdActivity of the list of
constraints at specified position of the hybShpExtractMulti in AngularActivity
.

Dim oAngtreThsldActivity as boolean
oAngtreThsldActivity = HybShpExtractMulti.GetAngularThresholdActivity (1)
Parameters

i_pos (int) –

Returns

bool

get_complementary_extract_multi(i_pos)

Note

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

Returns the Complementary flag checked/unchecked of the list of constraints
at specified position.

Example:
This example retrieves the Complementary flag in the list of
constraints at specified position of the hybShpExtractMulti in
Complementaire.

Dim oComplementaire as boolean
oComplementaire = HybShpExtractMulti.GetComplementaryExtractMulti(1)
Parameters

i_pos (int) –

Returns

bool

get_curvature_threshold(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetCurvatureThreshold(long iPos) As double

Returns the CurvatureThreshold of the list of constraints at specified
position.

Example:
This example retrieves the CurvatureThreshold in the list of
constraints at specified position of the hybShpExtractMulti in
CurvatureThH.

Dim oCrvtreThsld as double
CurvatureThH = HybShpExtractMulti.GetCurvatureThreshold(1)
Parameters

i_pos (int) –

Returns

float

get_curvature_threshold_activity(i_pos)

Note

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

Returns the CurvatureThresholdActivity of the list of constraints at
specified position.

Example:
This example retrieves the CurvatureThresholdActivity of the list of
constraints at specified position of the hybShpExtractMulti in
CurvatureActivity .

Dim oCrvtreThsldActivity as boolean
oCrvtreThsldActivity = HybShpExtractMulti.GetCurvatureThresholdActivity (1)
Parameters

i_pos (int) –

Returns

bool

get_distance_threshold(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDistanceThreshold(long iPos) As double

Returns the DistanceThreshold of the list of constraints at specified
position.

Example:
This example retrieves the DistanceThreshold in the list of constraints
at specified position of the hybShpExtractMulti in
DistanceThH.

Dim oDistreThsld as double
DistanceThH = HybShpExtractMulti.GetDistanceThreshold(1)
Parameters

i_pos (int) –

Returns

float

get_distance_threshold_activity(i_pos)

Note

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

Returns the DistanceThresholdActivity of the list of constraints at
specified position.

Example:
This example retrieves the DistanceThresholdActivity of the list of
constraints at specified position of the hybShpExtractMulti in DistanceActivity
.

Dim oDistreThsldActivity as boolean
oDistreThsldActivity = HybShpExtractMulti.GetDistanceThresholdActivity (1)
Parameters

i_pos (int) –

Returns

bool

get_element(i_pos)

Note

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

Returns the sub element used as init for the propagation.

Example:
This example retrieves the sub element in the list of constraints at
specified position of the hybShpExtractMulti in Elem.

Dim oElem as CATIAReference
oElem = HybShpExtractMulti.GetElement(1)


See also:
HybridShapeFactory
Parameters

i_pos (int) –

Returns

Reference

get_is_federated(i_pos)

Note

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

Returns the IsFederated flag checked/unchecked of the list of constraints
at specified position.

Example:
This example retrieves the federated flag in the list of constraints at
specified position of the hybShpExtractMulti in
IsFederated.

Dim oIsFederated as boolean
oIsFederated = HybShpExtractMulti.GetIsFederated(1)
Parameters

i_pos (int) –

Returns

bool

get_list_of_constraints(o_list_of_extracted_constraints)

Note

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

Returns the list of Extracted Elements.

Parameters:

oListOfExtractedConstraints
The list of constraints. It is returned as an array of
nbconstraints in SafeArrayVariant.

Example:
This example returns the list of constraints of the
HybShpExtractMulti hybrid shape ExtractMulti.

Dim oListOfExtractedConstraints as CATSafeArrayVariant

HybShpExtractMulti.GetListOfConstraints
(oListOfExtractedConstraints)


Note: You can access each constraint as
follows:

1 is in oListOfExtractedConstraints(0)
2 is in oListOfExtractedConstraints(1)
nbconstraints is in
oListOfExtractedConstraints(nbconstraints-1)
Parameters

o_list_of_extracted_constraints (tuple) –

Returns

None

get_nb_constraints(o_nb_constraints)

Note

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

Returns number of constraints in the list of Extracted
Elements.

Parameters:

oNbConstraints
number of constraints in the list of Extracted
Elements.

Example:
This example returns number of constraints in the list of
constraints of the HybShpExtractMulti hybrid shape
ExtractMulti.

Dim oNbConstraints as long
HybShpExtractMulti.GetNbConstraints (oNbConstraints )
Parameters

o_nb_constraints (int) –

Returns

None

get_propagation_type(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPropagationType(long iPos) As long

Returns the type of propagation of the list of constraints at specified
position.
The propagation types for the ExtractMulti can have the following
values:

1 for extraction propagation in point continuity
2 for extraction propagation in tangent continuity
3 for extraction without propagation
4 for extraction propagation in curvature continuity

Example:
This example retrieves the PropagationType in the list of constraints
at specified position of the hybShpExtractMulti in
TypePropag.

Dim oTypePropag as long
oTypePropag = HybShpExtractMulti.GetPropagationType(1)
Parameters

i_pos (int) –

Returns

int

get_support(i_pos)

Note

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

Returns the support of the list of constraints at specified
position.

Parameters:

oSupport
The support.
Parameters

i_pos (int) –

Returns

Reference

remove_element(i_position)

Note

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

Removes the body to be extracted from the list of constraints at specified
position.

Parameters:

iPosition
Position at which the body is to be removed

Example:
This example removes the body from the list of constraints at
specified position of the HybShpExtractMulti hybrid shape
ExtractMulti.

HybShpExtractMulti.RemoveElement 1
Parameters

i_position (int) –

Returns

None

replace_element(i_extract_to_replace, i_new_extract, i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ReplaceElement(Reference iExtractToReplace,
Reference iNewExtract,
long iPos)

Replaces an element to extract in the list of constraints at specified
position.

Parameters:

iExtractToReplace
The element to replace.
iNewExtract
The new element.
iPos
The position at which the element is to be replaced in the list of
constraints.

Example:
This example replaces the body from the list of constraints at
specified position of the HybShpExtractMulti hybrid shape
ExtractMulti.

Dim RefToRep as CATIAReference
Dim RefNewExtract as CATIAReference
HybShpExtractMulti.ReplaceElement RefToRep RefNewExtract 1
Parameters
Returns

None

set_angular_threshold(i_pos, i_angtre_thsld)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAngularThreshold(long iPos,
double iAngtreThsld)

Sets the AngularThreshold in the list of constraints at specified
position.

Example:
This example sets the AngularThreshold of the list of constraints at
specified position of the hybShpExtractMulti in
AngularThH.

Dim iAngtreThsld as double
HybShpExtractMulti.SetAngularThreshold 1 iAngtreThsld
Parameters
  • i_pos (int) –

  • i_angtre_thsld (float) –

Returns

None

set_angular_threshold_activity(i_pos, i_angtre_thsld_activity)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAngularThresholdActivity(long iPos,
boolean iAngtreThsldActivity)

Sets the AngularThresholdActivity in the list of constraints at specified
position.

Example:
This example sets the AngularThresholdActivity in the list of
constraints at specified position of the hybShpExtractMulti in AngularActivity
.

Dim iAngtreThsldActivity as boolean
iAngtreThsldActivity = TRUE
HybShpExtractMulti.SetAngularThresholdActivity 1 iAngtreThsldActivity
Parameters
  • i_pos (int) –

  • i_angtre_thsld_activity (bool) –

Returns

None

set_complementary_extract_multi(i_pos, i_complementaire)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetComplementaryExtractMulti(long iPos,
boolean iComplementaire)

Sets the Complementary flag checked/unchecked in the list of constraints at
specified position.

Example:
This example sets the Complementary flag of the list of constraints at
specified position of the hybShpExtractMulti in
Complementaire.

Dim iComplementaire as boolean
iComplementaire = TRUE
HybShpExtractMulti.SetComplementaryExtractMulti 1 iComplementaire
Parameters
  • i_pos (int) –

  • i_complementaire (bool) –

Returns

None

set_curvature_threshold(i_pos, i_crvtre_thsld)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetCurvatureThreshold(long iPos,
double iCrvtreThsld)

Sets the CurvatureThreshold in the list of constraints at specified
position.

Example:
This example sets the CurvatureThreshold of the list of constraints at
specified position of the hybShpExtractMulti in
CurvatureThH.

Dim iCrvtreThsld as double
HybShpExtractMulti.SetCurvatureThreshold 1 iCrvtreThsld
Parameters
  • i_pos (int) –

  • i_crvtre_thsld (float) –

Returns

None

set_curvature_threshold_activity(i_pos, i_crvtre_thsld_activity)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetCurvatureThresholdActivity(long iPos,
boolean iCrvtreThsldActivity)

Sets the CurvatureThresholdActivity in the list of constraints at specified
position.

Example:
This example sets the CurvatureThresholdActivity in the list of
constraints at specified position of the hybShpExtractMulti in
CurvatureActivity .

Dim iCrvtreThsldActivity as boolean
iCrvtreThsldActivity = TRUE
HybShpExtractMulti.SetCurvatureThresholdActivity 1
iCrvtreThsldActivity
Parameters
  • i_pos (int) –

  • i_crvtre_thsld_activity (bool) –

Returns

None

set_distance_threshold(i_pos, i_distre_thsld)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDistanceThreshold(long iPos,
double iDistreThsld)

Sets the DistanceThreshold in the list of constraints at specified
position.

Example:
This example sets the DistanceThreshold of the list of constraints at
specified position of the hybShpExtractMulti in
DistanceThH.

Dim iDistreThsld as double
HybShpExtractMulti.SetDistanceThreshold 1 iDistreThsld
Parameters
  • i_pos (int) –

  • i_distre_thsld (float) –

Returns

None

set_distance_threshold_activity(i_pos, i_distre_thsld_activity)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetDistanceThresholdActivity(long iPos,
boolean iDistreThsldActivity)

Sets the DistanceThresholdActivity in the list of constraints at specified
position.

Example:
This example sets the DistanceThresholdActivity in the list of
constraints at specified position of the hybShpExtractMulti in DistanceActivity
.

Dim iDistreThsldActivity as boolean
iDistreThsldActivity = TRUE
HybShpExtractMulti.SetDistanceThresholdActivity 1
iDistreThsldActivity
Parameters
  • i_pos (int) –

  • i_distre_thsld_activity (bool) –

Returns

None

set_element(i_pos, i_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetElement(long iPos,
Reference iElem)

Sets the sub element used as init for the propagation.

Example:
This example sets the sub element in the list of constraints at
specified position of the hybShpExtractMulti in Elem.

Dim iPos as long
Dim iElem as CATIAReference
HybShpExtractMulti.SetElement 1 iElem


See also:
HybridShapeFactory
Parameters
Returns

None

set_is_federated(i_pos, i_is_federated)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetIsFederated(long iPos,
boolean iIsFederated)

Sets the IsFederated flag checked/unchecked in the list of constraints at
specified position.

Example:
This example sets the federated flag in the list of constraints at
specified position of the hybShpExtractMulti in
IsFederated.

Dim iIsFederated as boolean
iIsFederated = TRUE
HybShpExtractMulti.SetIsFederated 1 iIsFederated
Parameters
  • i_pos (int) –

  • i_is_federated (bool) –

Returns

None

set_propagation_type(i_pos, i_type_propag)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPropagationType(long iPos,
long iTypePropag)

Sets the type of propagation for the ExtractMulti in the list of
constraints at specified position.
The propagation types for the ExtractMulti can have the following
values:

1 for extraction propagation in point continuity
2 for extraction propagation in tangent continuity
3 for extraction without propagation
4 for extraction propagation in curvature continuity

Example:
This example sets the PropagationType of the list of constraints at
specified position of the hybShpExtractMulti in
TypePropag.

Dim iTypePropag as long
iTypePropag = 1
HybShpExtractMulti.SetPropagationType 1 iTypePropag
Parameters
  • i_pos (int) –

  • i_type_propag (int) –

Returns

None

set_support(i_pos, i_support)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSupport(long iPos,
Reference iSupport)

Sets the support of the list of constraints at specified
position.

Parameters:

oSupport
The support.
Parameters
Returns

None

hybrid_shape_extrapol

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.hybrid_shape_interfaces.hybrid_shape_extrapol.HybridShapeExtrapol(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
HybridShapeExtrapol

Represents the hybrid shape extrapolation feature object.
Role: To access the data of the hybrid shape affinity feature object. The
hybrid shape extrapolation feature object is created by using an element (a
curve or a surface), a boundary of this element (a point in case of curve
extrapolation or a curve in case of surface extrapolation), and a limit (which
can be specified by a length or a limit element).
The continuity between the extrapolated element and the extrapolation can be
either tangent continuity or curvature continuity.
The extrapolation can be assembled or not with the extrapolated curve or
surface. In case of surface extrapolation, extrapolation borders can
be:

Normal to the boundary of the extrapolated surface
Tangent to the edges of the extrapolated surface, that are adjacent to the
boundary

Use the CATIAHybridShapeFactory to create a HybridShapeExtrapol
object.

See also:
HybridShapeFactory
property border_type

Note

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

Returns or sets the border type of extrapolation.
This applies for surface extrapolation only.
Legal values: the border type is either normal to the boundary of the
extrapolated surface (CATGSMNormalBorder(=0)), or tangent to the edges of the
extrapolated surface that are adjacent to the boundary
CATGSMTangentBorder(=1)).
Returns

int

property boundary

Note

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

This method is left available for compatibility reasons but it is
preferable to use the GetBoundary method instead.

Migration instructions: use the signature that uses an integer as the first
argument.
Returns

Reference

property constant_length_mode

Note

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

Returns or sets the constant distance mode in case of Length extrapolation
limit.
This applies in case of Length extrapolation limit.
Returns

bool

property continuity_type

Note

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

This method is left available for compatibility reasons but it is
preferable to use the GetContinuityType method instead.

Migration instructions: use the signature that uses an integer as the first
argument.
Returns

int

property elem_to_extrapol

Note

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

Returns or sets the curve or surface to extrapolate.
Sub-element(s) supported (see Boundary object): see Face , TriDimFeatEdge
or BiDimFeatEdge.
Returns

Reference

property elem_until

Note

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

This method is left available for compatibility reasons but it is
preferable to use the GetElemUntil method instead.

Migration instructions: use the signature that uses an integer as the first
argument.
Returns

Reference

property extend_edges_mode

Note

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

Returns or sets the extension of extrapolated edges mode.
This applies in case of tangent continuity mode, tangent border mode and
assembled result.
Returns

bool

property extrapol_both_sides_identically

Note

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

Returns or sets the the boolean telling if the second side is extrapolated
according to the first side’s settings or to its own ones.
This applies in case the element to extrapol is a wire.
Returns

bool

get_boundary(i_pos)

Note

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

Returns or sets the iPos-th boundary of an extrapolated curve or surface
from which extrapolation begins. If iPos equals 0 or the number of
extrapolations, SetBoundary appends iBoundary to the list of
boundaries.
The boudary is a point for an extrapolated curve, or a curve for an
extrapolated surface.
Sub-element(s) supported (see Boundary object): see Face , TriDimFeatEdge
or BiDimFeatEdge.
Parameters

i_pos (int) –

Returns

Reference

get_continuity_type(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetContinuityType(long iPos) As long

Returns or sets the continuity type between extrapolated element and
extrapolation at the iPos-th boundary. If iPos equals 0 or the number of
extrapolations, SetContinuityType appends iLim to the list of
lengths.
Legal values: the continuity type is either CATGSMTangentContinuity (=0) or
CATGSMCurvatureContinuity (=1).
Parameters

i_pos (int) –

Returns

int

get_elem_until(i_pos)

Note

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

Returns or sets the surface or volume specifying the limit of the
extrapolation that begins from the iPos-th boundary. If iPos equals 0 or the
number of extrapolations, SetElemUntil appends iElemUntil to the list of up-to
elements.
This applies when the limit type is CATGSMUpToElementLimit (=1).
Parameters

i_pos (int) –

Returns

Reference

get_internal_edges_element(i_pos)

Note

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

Gets an element in the list of internal elements (vertex or
edges).

Parameters:

oInternalElement
internal element
iPos
position of internal element to be retrieved.
Parameters

i_pos (int) –

Returns

Reference

get_length(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLength(long iPos) As Length

Returns or sets the length specifying the limit of the extrapolation that
begins from the iPos-th boundary. If iPos equals 0 or the number of
extrapolations, SetLength appends iLength to the list of
lengths.
This applies when the limit type is CATGSMLengthLimit (=0).
Parameters

i_pos (int) –

Returns

Length

get_limit_type(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLimitType(long iPos) As long

Returns or sets the limit type of the extrapolation that begins from the
iPos-th boundary. If iPos equals 0 or the number of extrapolations,
SetLimitType appends iLim to the list of limit types.
The limit can be a length, a surface, or a volume.
Legal values: the limit type is either CATGSMLengthLimit(0) or
CATGSMUpToElementLimit(1).
Parameters

i_pos (int) –

Returns

int

get_number_of_extrapolations(o_number_of_extrapolations)

Note

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

Returns the number of extrapolations set. An extrapolation is specified by
a boundary of the element to extrapolate, a limit type, a limit and a
continuity type.
Parameters

o_number_of_extrapolations (int) –

Returns

None

is_assemble()

Note

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

Retrieves whether extrapolation is assembled with extrapolated curve or
surface.

Parameters:

oAssemble
The assemble option
True when the extrapolation is assembled with extrapolated curve or
surface, and False otherwise
Returns

bool

property length

Note

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

This method is left available for compatibility reasons but it is
preferable to use the GetLength method instead.

Migration instructions: use the signature that uses an integer as the first
argument.
Returns

Length

property limit_type

Note

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

This method is left available for compatibility reasons but it is
preferable to use the GetLimitType method instead.

Migration instructions: use the signature that uses an integer as the first
argument.
Returns

int

property propagation_mode

Note

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

Returns or sets the propagation mode.
This applies in case of curvature extrapolation of a shell.
Returns

int

remove_all_extrapolations_except_the_first_one()

Note

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

Removes all extrapolations that may have been set, except the first one.
Returns

None

remove_all_internal_edges_element()

Note

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

Removes all internal elements.
Returns

None

remove_extrapolation(i_pos)

Note

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

Removes the iPos-th extrapolation that has been set.
Parameters

i_pos (int) –

Returns

None

set_assemble(i_assemble)

Note

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

Sets whether extrapolation is to be assembled with extrapolated curve or
surface.

Parameters:

iAssemble
The assemble option
True when the extrapolation is to be assembled with extrapolated
curve or surface, and False otherwise.
Parameters

i_assemble (bool) –

Returns

None

set_boundary(i_pos, i_boundary)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetBoundary(long iPos,
Reference iBoundary)
Parameters
Returns

None

set_continuity_type(i_pos, i_lim)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetContinuityType(long iPos,
long iLim)
Parameters
  • i_pos (int) –

  • i_lim (int) –

Returns

None

set_elem_until(i_pos, i_elem_until)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetElemUntil(long iPos,
Reference iElemUntil)
Parameters
  • i_pos (int) –

  • i_elem_until (Reference) –

Returns

None

set_length(i_pos, i_length)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLength(long iPos,
Length iLength)

Do not use this method.
Parameters
  • i_pos (int) –

  • i_length (Length) –

Returns

None

set_length_d(i_pos, i_length)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLengthD(long iPos,
double iLength)
Parameters
  • i_pos (int) –

  • i_length (float) –

Returns

None

set_limit_type(i_pos, i_lim)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLimitType(long iPos,
long iLim)
Parameters
  • i_pos (int) –

  • i_lim (int) –

Returns

None

property support

Note

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

Returns or sets the support surface.
This applies in case of tangent extrapolation of a wire. If a support
surface is given, the extrapolation will lie on it.
Sub-element(s) supported (see Boundary object): see Face.
Returns

Reference

hybrid_shape_extremum

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.hybrid_shape_interfaces.hybrid_shape_extremum.HybridShapeExtremum(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
HybridShapeExtremum

Represents the hybrid shape extremum feature object.
Role: To access the data of the hybrid shape extremum feature object. This data
includes:

The three directions into which the extremum is detected
The object onto which the extremum is detected
The extremum type of each direction

Use the CATIAHybridShapeFactory to create a HybridShapeExtremum
object.

See also:
HybridShapeFactory
property direction

Note

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

Returns or sets the direction into which the extremum is detected.
Returns

HybridShapeDirection

property direction2

Note

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

Returns or sets the second direction into which the extremum is detected.
Returns

HybridShapeDirection

property direction3

Note

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

Returns or sets the third direction into which the extremum is detected.
Returns

HybridShapeDirection

property extremum_type

Note

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

Returns or sets the extremum type.
Legal values: 1 to get a maximum element or 0 to get a minimum element.
Returns

int

property extremum_type2

Note

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

Returns or sets the extremum type of the second direction.
Legal values: 1 to get a maximum element or 0 to get a minimum element.
Returns

int

property extremum_type3

Note

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

Returns or sets the extremum type of the third direction.
Legal values: 1 to get a maximum element or 0 to get a minimum element.
Returns

int

property reference_element

Note

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

Returns or sets the object on which the extremum is detected.
Returns

Reference

hybrid_shape_extremum_polar

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.hybrid_shape_interfaces.hybrid_shape_extremum_polar.HybridShapeExtremumPolar(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
HybridShapeExtremumPolar

Represents the hybrid shape extremum polar feature.
Role: To access the data of the extremum polar feature . This data
includes:

The contour
The support (if exist )
The direction of evaluation
The extermum type

Use the HybridShapeFactory.AddNewExtremumPolarto create a
HybridShapeExtremumPolar object.
property angle

Note

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

returns the resulting angle of extremum.
Returns

Angle

property contour

Note

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

returns or sets the input contour.
Returns

Reference

property dir

Note

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

returns or sets the direction of computation.
Returns

HybridShapeDirection

property extremum_type

Note

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

returns or sets the type of extremum.
Returns

enum

property origin

Note

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

returns or sets the origin of the polar axis.
Returns

Reference

property radius

Note

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

returns the resulting radius of extremum.
Returns

Length

property support

Note

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

returns or sets the support (if exist).
Returns

Reference

hybrid_shape_extrude

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.hybrid_shape_interfaces.hybrid_shape_extrude.HybridShapeExtrude(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
HybridShapeExtrude

The Extrude feature : an Extrude is made up of a face to process and one Extrude parameter.
Role: To access the data of the hybrid shape extrude feature
object.

LICENSING INFORMATION: Creation of volume result requires GSO
License
if GSO License is not granted , setting of Volume context has not
effect
property begin_offset

Note

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

Role: To get_BeginOffset on the object. For surface extrude, if limit type
is upto, this offset value is not used. In case of Volume Extrude, if the up-to
element is specified, this will act as offset value from the upto
element.

Parameters:

oExtrude
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Length
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Length

property context

Note

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

Returns or sets the context on Extrude feature.
Legal values:

0 This option creates surface of extrusion.
1 This option creates volume of extrusion.


Note: Setting volume result requires GSO License.

Example:
This example retrieves in oContext the context for the Extrude1 hybrid
shape feature.

Dim oContext
Set oContext = Extrude1.Context
Returns

int

property direction

Note

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

Role: To get_Direction on the object.

Parameters:

oDir
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
HybridShapeDirection
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

HybridShapeDirection

property end_offset

Note

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

Role: To get_EndOffset on the object. For surface extrude, if limit type is
upto, this offset value is not used. In case of Volume Extrude, if the up-to
element is specified, this will act as offset value from the upto
element.

Parameters:

oExtrude
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Length
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Length

property extruded_object

Note

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

Role: To get_ExtrudedObject on the object.

Parameters:

oFaceToExtrude
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

property first_limit_type

Note

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

Returns or sets the First limit type.
Legal values:

0
Unknown Limit type.
1
Limit type is Dimension. It implies that limit is defined by
length
2
Limit type is UptoElement. It implies that limit is defined by a
geometrical element

Example:
This example retrieves in oLim1Type the first limit type for the Extrude
hybrid shape feature.

Dim oLim1Type
Set oLim1Type = Extrude.FirstLimitType
Returns

int

property first_upto_element

Note

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

Returns or sets the First up-to element used to limit
extrusion.

Example:
This example retrieves in Lim1Elem the First up-to element for the
Extrude hybrid shape feature.

Dim Lim1Elem As Reference
Set Lim1Elem = Extrude.FirstUptoElement
Returns

Reference

property orientation

Note

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

Gets or sets orientation of the extrude. Orientation = TRUE :
The natural orientation is taken. = FALSE :
The opposite orientation is taken This example retrieves in IsInverted orientation of the
extrude for the Extrude hybrid shape feature.

Dim IsInverted As boolean
IsInverted = Extrude.Orientation
Returns

False

property second_limit_type

Note

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

Returns or sets the Second limit type.
Legal values:

0
Unknown Limit type.
1
Limit type is Dimension. It implies that limit is defined by
length
2
Limit type is UptoElement. It implies that limit is defined by a
geometrical element

Example:
This example retrieves in oLim2Type the second limit type for the Extrude
hybrid shape feature.

Dim oLim2Type
Set oLim2Type = Extrude.SecondLimitType
Returns

int

property second_upto_element

Note

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

Returns or sets the Second up-to element used to limit
extrusion.

Example:
This example retrieves in Lim2Elem the Second up-to element for the
Extrude hybrid shape feature.

Dim Lim2Elem As Reference
Set Lim2Elem = Extrude.SecondUptoElement
Returns

Reference

property symmetrical_extension

Note

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

Returns or Sets the Symmetrical Extension of Extrude (Limit 2 = -Limit 1).

Parameters:

iSym
Symmetry flag
Returns

bool

hybrid_shape_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.hybrid_shape_interfaces.hybrid_shape_factory.HybridShapeFactory(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
HybridShapeFactory

Interface to create all kinds of HybridShape objects that may be needed in
wireframe and surface design.

Note:
This interface concern GSD/GSO/DL1 feature creation via VB
Use of the creation methods requires to have granted license configuration for
feature creation
i.e:
- Bump, Develop,WrapCurve,WrapSurface require GSO license.
- Unfold, Develop require DL1 license.
- Other require GSD license.
Note2:
For all methods creating datums AddNew*Datum,
the object passed as parameter to create the datum has to be in the current
container.
Otherwise, an error occurs.
add_new3_d_corner(i_element1, i_element2, i_direction, i_radius, i_orientation1, i_orientation2, i_trim)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNew3DCorner(Reference iElement1,
Reference iElement2,
HybridShapeDirection iDirection,
double iRadius,
long iOrientation1,
long iOrientation2,
boolean iTrim) As HybridShapeCorner

Creates a new 3D Corner within the current body.
Create a 3D corner curve between a point and a curve or 2 curves along a
direction.

Parameters:

iElement1
First reference curve.
iElement2
Second reference curve.
iDirection
Direction.
iRadius
Radius of the corner.
iOrientation1
Manage the corner center position. Value can be 1 or -1

iOrientation2
Manage the corner center position. Value can be 1 or -1

iTrim
Value can be FALSE or TRUE
if TRUE the 2 curves are trimed and asembled with the corner.

oCorner
Created corner.
Parameters
Returns

HybridShapeCorner

add_new3_d_curve_offset(i_curve_to_offset, i_direction, i_offset, i_corner_radius, i_corner_tension)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNew3DCurveOffset(Reference iCurveToOffset,
HybridShapeDirection iDirection,
double iOffset,
double iCornerRadius,
double iCornerTension) As HybridShape3DCurveOffset

Creates a 3D Curve Offset.

Parameters:

iCurve
The curve to offset
iDirection
Offset pulling direction.
iOffsetValue
Offset Value.
iCornerRadius
Radius of the 3D corners.
iCornerTension
Tension of the 3D corners.

Returns:
CATIGSM3DCurveOffset_var created 3DCurveOffset.
Parameters
  • i_curve_to_offset (Reference) –

  • i_direction (HybridShapeDirection) –

  • i_offset (float) –

  • i_corner_radius (float) –

  • i_corner_tension (float) –

Returns

HybridShape3DCurveOffset

add_new_affinity(i_element, i_x_ratio, i_y_ratio, i_z_ratio)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewAffinity(Reference iElement,
double iXRatio,
double iYRatio,
double iZRatio) As HybridShapeAffinity

Creates a new Affinity within the current body.

Parameters:

iElement
point, curve, surface or solid.
Sub-element(s) supported (see

Boundary object): see Face, TriDimFeatEdge, BiDimFeatEdge and Vertex.

iXRatio
Ratio of affinity in iX direction.
iYRatio
Ratio of affinity in iY direction.
iZRatio
Ratio of affinity in iZ direction.
oAffinity
Created affinity
Parameters
  • i_element (Reference) –

  • i_x_ratio (float) –

  • i_y_ratio (float) –

  • i_z_ratio (float) –

Returns

HybridShapeAffinity

add_new_axis_line(i_element)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewAxisLine(Reference iElement) As
HybridShapeAxisLine

Creates a new AxisLine within the current body.

Parameters:

iElement
Circle, Ellipse, Oblong, Sphere, Revolution surface. Axis is
computed for this element
oAxisLine
Created axis line
Parameters

i_element (Reference) –

Returns

HybridShapeAxisLine

add_new_axis_to_axis(i_object, i_reference_axis, i_target_axis)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewAxisToAxis(Reference iObject,
Reference iReferenceAxis,
Reference iTargetAxis) As HybridShapeAxisToAxis

Creates a new axis to axis transformation within the current
body.

Parameters:

iObject
Point, curve, surface or solid to transform.
iReferenceAxis
reference axis system
iTargetAxis
target axis system
oAxisToAxis
Created axis to axis transformation.
Parameters
Returns

HybridShapeAxisToAxis

add_new_blend()

Note

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

Creates a new blend surface within the current body.

Parameters:

oBlend
The Blend object if succeded
Returns

HybridShapeBlend

add_new_boundary(i_initial_element, i_support, i_typede_propagation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewBoundary(Reference iInitialElement,
Reference iSupport,
long iTypedePropagation) As HybridShapeBoundary

Creates a new Boundary within the current body.

Parameters:

iInitialElement
the element used to initialise the propagation around the
surface

Sub-element(s) supported (see

Boundary object): see BiDimFeatEdge.
iSupport
the surface used to compute the boundary around it

Sub-element(s) supported (see Boundary object): see
Face.
iTypedePropagation
Propagation type the values are: 0 for Boundary for all edges 1 for
Boundary propagation for edges on connexe point 2 for Boundary propagation for
edges tangent at point breaks 3 for Boundary not propagation from the current
edge
oBoundary
The computed element
Parameters
  • i_initial_element (Reference) –

  • i_support (Reference) –

  • i_typede_propagation (int) –

Returns

HybridShapeBoundary

add_new_boundary_of_surface(surface)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewBoundaryOfSurface(Reference Surface) As
HybridShapeBoundary

Creates a Boundary within the current body.

Parameters:

iSurface
the feature on which all the boundaries will be computed

oBoundary
the whole boundary of the Surface given in first
parameter
Parameters

surface (Reference) –

Returns

HybridShapeBoundary

add_new_bump(i_body_to_bump)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewBump(Reference iBodyToBump) As HybridShapeBump

Creates a new Bump within the current body.
Note: require GSO license.

Parameters:

:
iBodyToBump Body to deform witn a Bump
:
oBump Bump result
Parameters

i_body_to_bump (Reference) –

Returns

HybridShapeBump

add_new_circle2_points_rad(i_point1, i_point2, i_support, i_geodesic, i_radius, i_ori)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCircle2PointsRad(Reference iPoint1,
Reference iPoint2,
Reference iSupport,
boolean iGeodesic,
double iRadius,
long iOri) As HybridShapeCircle2PointsRad

Creates a new Circle passing through 2 points with a radius within the
current body.

Parameters:

iPoint1
first passing point.
Sub-element(s) supported (see

Boundary object): see Vertex.
iPoint2
second passing point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iSupport
support surface.
Sub-element(s) supported (see Boundary object): see
Face.
iGeodesic
Puts the circle on the surface.
iRadius
Value specified is considered as radius. To use this value as diameter,
set DiameterMode using SetDiameterMode method
iOri
circle orientation. Defines the side where circle is computed using the
normal direction of line between the 2 passing points.

oCircle
The Circle object if succeded
Parameters
  • i_point1 (Reference) –

  • i_point2 (Reference) –

  • i_support (Reference) –

  • i_geodesic (bool) –

  • i_radius (float) –

  • i_ori (int) –

Returns

HybridShapeCircle2PointsRad

add_new_circle3_points(i_point1, i_point2, i_point3)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCircle3Points(Reference iPoint1,
Reference iPoint2,
Reference iPoint3) As HybridShapeCircle3Points

Creates a new circle passing through 3 points within the current
body.

Parameters:

iPoint1
first passing point.
Sub-element(s) supported (see

Boundary object): see Vertex.
iPoint2
second passing point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iPoint3
third passing point.
Sub-element(s) supported (see Boundary object): see
Vertex.
oCircle
Created circle
Parameters
Returns

HybridShapeCircle3Points

add_new_circle_bitangent_point(i_curve1, i_curve2, i_point, i_support, i_ori1, i_ori2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCircleBitangentPoint(Reference iCurve1,
Reference iCurve2,
Reference iPoint,
Reference iSupport,
long iOri1,
long iOri2) As HybridShapeCircleBitangentPoint

Creates a new circle tangent to 2 curves and passing through one point
within the current body.

Parameters:

iCurve1
first curve to which the circle will be tangent.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iCurve2
second curve to which the circle will be tangent.
Sub-element(s) supported (see Boundary object): see TriDimFeatEdge and
BiDimFeatEdge.
iPoint
passing point. This point must lie on second curve.
Sub-element(s) supported (see Boundary object): see
Vertex.
iSupport
support surface.
Sub-element(s) supported (see Boundary object): see
Face.
iOri1
first curve orientation for circle computation.
iOri2
second curve orientation for circle computation.
oCircle
Created circle
Parameters
Returns

HybridShapeCircleBitangentPoint

add_new_circle_bitangent_radius(i_curve1, i_curve2, i_support, i_radius, i_ori1, i_ori2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCircleBitangentRadius(Reference iCurve1,
Reference iCurve2,
Reference iSupport,
double iRadius,
long iOri1,
long iOri2) As HybridShapeCircleBitangentRadius

Creates a new circle tangent to 2 curves and with a radius within the
current body.

Parameters:

iCurve1
first curve to which the circle will be tangent.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iCurve2
second curve to which the circle will be tangent.
Sub-element(s) supported (see Boundary object): see TriDimFeatEdge and
BiDimFeatEdge.
iSupport
support surface.
Sub-element(s) supported (see Boundary object): see
Face.
iRadius
Value specified is considered as radius. To use this value as diameter,
set DiameterMode using SetDiameterMode method
iOri1
first curve orientation for circle computation.
iOri2
second curve orientation for circle computation.
oCircle
Created circle
Parameters
Returns

HybridShapeCircleBitangentRadius

add_new_circle_center_axis(i_axis, i_point, i_value, i_projection)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCircleCenterAxis(Reference iAxis,
Reference iPoint,
double iValue,
boolean iProjection) As HybridShapeCircleCenterAxis

Creates a circle from point and axis.

Parameters:

iAxis
Axis of plane in which circle is lying
iPoint
Point used for center computation. It will be the center if ProjectionMode is False.
If ProjectionMode = True, this point will be projected on to axis/line
iValue
Value specified is considered as radius. To use this value as
diameter, set DiameterMode property
iProjection
Sets Projection Mode. ProjectionMode = TRUE implies point will be projected on to
axis/line, ProjectionMode = FALSE implies that point will be center of the circle.
oCircle
Created circle
Parameters
  • i_axis (Reference) –

  • i_point (Reference) –

  • i_value (float) –

  • i_projection (bool) –

Returns

HybridShapeCircleCenterAxis

add_new_circle_center_axis_with_angles(i_axis, i_point, i_value, i_projection, i_start_angle, i_end_angle)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCircleCenterAxisWithAngles(Reference iAxis,
Reference iPoint,
double iValue,
boolean iProjection,
double iStartAngle,
double iEndAngle) As HybridShapeCircleCenterAxis

Creates a circle from point and axis.

Parameters:

iAxis
Axis of plane in which circle is lying
Sub-element(s) supported (see

Boundary object):
iPoint
Point used for center computation. It will be the center if ProjectionMode is False.
If ProjectionMode = True, this point will be projected on to axis/line
Sub-element(s) supported (see Boundary object):
iValue
Value specified is considered as radius. To use this value as diameter,
set DiameterMode property
iProjection
Sets Projection Mode. ProjectionMode = TRUE implies point will be projected on to axis/line,
ProjectionMode = FALSE implies that point will be center of the circle.
iStartAngle
start angle
iEndAngle
end angle
oCircle
Created circle
Parameters
  • i_axis (Reference) –

  • i_point (Reference) –

  • i_value (float) –

  • i_projection (bool) –

  • i_start_angle (float) –

  • i_end_angle (float) –

Returns

HybridShapeCircleCenterAxis

add_new_circle_center_tangent(i_center_elem, i_tangent_curve, i_support, i_radius)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCircleCenterTangent(Reference iCenterElem,
Reference iTangentCurve,
Reference iSupport,
double iRadius) As HybridShapeCircleCenterTangent

Creates a new circle with given center element and tangent
curve.

Parameters:

iCenterElem
Can be either curve or point.
iTangentCurve
Curve to which the circle will be tangent.
iSupport
support surface or plane.
iRadius
circle radius, valid only if center element is curve. Value
specified is considered as radius. To use this value as diameter, set
DiameterMode using SetDiameterMode method
oCircle
Created circle
Parameters
Returns

HybridShapeCircleCenterTangent

add_new_circle_ctr_pt(i_center, i_crossing_point, i_support, i_geodesic)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCircleCtrPt(Reference iCenter,
Reference iCrossingPoint,
Reference iSupport,
boolean iGeodesic) As HybridShapeCircleCtrPt

Creates a new whole circle defined by its center, a passing point within
the current body.

Parameters:

iCenter
circle center.
Sub-element(s) supported (see

Boundary object): see Vertex.
iCrossingPoint
passing point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iSupport
support surface.
Sub-element(s) supported (see Boundary object): see
Face.
iGeodesic
Puts the circle on the surface.
oCircle
CreatedCircle
Parameters
Returns

HybridShapeCircleCtrPt

add_new_circle_ctr_pt_with_angles(i_center, i_crossing_point, i_support, i_geodesic, i_start_angle, i_end_angle)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCircleCtrPtWithAngles(Reference iCenter,
Reference iCrossingPoint,
Reference iSupport,
boolean iGeodesic,
double iStartAngle,
double iEndAngle) As HybridShapeCircleCtrPt

Creates a new circle defined by its center, a passing point and angles
within the current body.

Parameters:

iCenter
circle center.
Sub-element(s) supported (see

Boundary object): see Vertex.
iCrossingPoint
passing point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iSupport
support surface.
Sub-element(s) supported (see Boundary object): see
Face.
iGeodesic
Puts the circle on the surface.
iStartAngle
start angle
iEndAngle
end angle
oCircle
Created circle
Parameters
  • i_center (Reference) –

  • i_crossing_point (Reference) –

  • i_support (Reference) –

  • i_geodesic (bool) –

  • i_start_angle (float) –

  • i_end_angle (float) –

Returns

HybridShapeCircleCtrPt

add_new_circle_ctr_rad(i_center, i_support, i_geodesic, i_radius)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCircleCtrRad(Reference iCenter,
Reference iSupport,
boolean iGeodesic,
double iRadius) As HybridShapeCircleCtrRad

Creates a new whole circle defined by its center and a radius within the
current body.

Parameters:

iCenter
circle center.
Sub-element(s) supported (see

Boundary object): see Vertex.
iSupport
support surface.
Sub-element(s) supported (see Boundary object): see
Face.
iGeodesic
Puts the circle on the surface.
iRadius
Value specified is considered as radius. To use this value as diameter,
set DiameterMode using SetDiameterMode method
oCircle
Created circle
Parameters
  • i_center (Reference) –

  • i_support (Reference) –

  • i_geodesic (bool) –

  • i_radius (float) –

Returns

HybridShapeCircleCtrRad

add_new_circle_ctr_rad_with_angles(i_center, i_support, i_geodesic, i_radius, i_start_angle, i_end_angle)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCircleCtrRadWithAngles(Reference iCenter,
Reference iSupport,
boolean iGeodesic,
double iRadius,
double iStartAngle,
double iEndAngle) As HybridShapeCircleCtrRad

Creates a new circle defined by its center, a radius and angles within the
current body.

Parameters:

iCenter
circle center.
Sub-element(s) supported (see

Boundary object): see Vertex.
iSupport
support surface.
Sub-element(s) supported (see Boundary object): see
Face.
iGeodesic
Puts the circle on the surface.
iRadius
Value specified is considered as radius. To use this value as diameter,
set DiameterMode using SetDiameterMode method
iStartAngle
start angle
iEndAngle
end angle
oCircle
Created circle
Parameters
  • i_center (Reference) –

  • i_support (Reference) –

  • i_geodesic (bool) –

  • i_radius (float) –

  • i_start_angle (float) –

  • i_end_angle (float) –

Returns

HybridShapeCircleCtrRad

add_new_circle_datum(i_object)

Note

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

Creates a new datum of circle within the current body.

Parameters:

iObject
The object whose topological body will be duplicated and put into
created datum
oCircle
Created datum Note2: the object passed as parameter to create the
datum has to be in the current container. Otherwise, an error
occurs.
Parameters

i_object (Reference) –

Returns

HybridShapeCircleExplicit

add_new_circle_tritangent(i_curve1, i_curve2, i_curve3, i_support, i_ori1, i_ori2, i_ori3)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCircleTritangent(Reference iCurve1,
Reference iCurve2,
Reference iCurve3,
Reference iSupport,
long iOri1,
long iOri2,
long iOri3) As HybridShapeCircleTritangent

Creates a new tritangent circle within the current body.

Parameters:

iCurve1
first curve to which the circle will be tangent.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iCurve2
second curve to which the circle will be tangent.
Sub-element(s) supported (see Boundary object): see TriDimFeatEdge and
BiDimFeatEdge.
iCurve3
third curve to which the circle will be tangent.
Sub-element(s) supported (see Boundary object): see TriDimFeatEdge and
BiDimFeatEdge.
iSupport
support surface.
Sub-element(s) supported (see Boundary object): see
Face.
iOri1
first curve orientation for circle computation.
iOri2
second curve orientation for circle computation.
iOri3
third curve orientation for circle computation.
oCircle
Created circle
Parameters
Returns

HybridShapeCircleTritangent

add_new_combine(i_first_curve, i_second_curve, i_nearest_solutions)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCombine(Reference iFirstCurve,
Reference iSecondCurve,
long iNearestSolutions) As HybridShapeCombine

Creates a new Combine within the current body. By default, the combine
direction is the normal of each curve. If you want to change see
CATIAHybridShapeCombine interfaces.

Parameters:

iFirstCurve
First curve to combine

Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iSecondCurve
Second curve to combine

Sub-element(s) supported (see Boundary object): see TriDimFeatEdge and
BiDimFeatEdge.
iNearestSolution
If more than one solution, to choose the nearest solution of the first
curve
oCombine
The combine object if succeded
Parameters
  • i_first_curve (Reference) –

  • i_second_curve (Reference) –

  • i_nearest_solutions (int) –

Returns

HybridShapeCombine

add_new_conic(i_support, i_starting_point, i_end_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewConic(Reference iSupport,
Reference iStartingPoint,
Reference iEndPoint) As HybridShapeConic

Creates a new conic within the current body.

Parameters:

iSupport
The conic support (always a plane).
Sub-element(s) supported (see

Boundary object): see PlanarFace.
iStartingPoint
Starting Point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iEndPoint
End Point

Sub-element(s) supported (see Boundary object): see
Vertex.
oConic
The Conic object if succeded
Parameters
Returns

HybridShapeConic

add_new_conical_reflect_line_with_type(i_support, i_origin, i_angle, i_orientation_support, i_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewConicalReflectLineWithType(Reference iSupport,
Reference iOrigin,
double iAngle,
long iOrientationSupport,
long iType) As HybridShapeReflectLine

Creates a new conical ReflectLine within the current body.
Create a conical reflectline curve on a support surface from an origin
point with an angle.

Parameters:

iSupport
Support surface.
iOrigin
Origin point.
iAngle
Angle of the reflectline.
iOrientationSupport
Manage the angle used to compute the reflectline. Value can be 1 or
-1
iType
Manage the type used to compute the reflectline. Value can be 0 or
1 Returns or sets whether the reflectline curve is or should be created with
the normal to the support or the tangent plane to the
support.
Role: The TypeSolution indicates whether the created reflectline
curve is compute with the angle between the normale to the support and the
direction or with the angle between the tangent plane to the support and the
direction..
Legal values: 0 for the normal and 1 for the tangent plane.

oReflectLine
Created conical reflectline.
Parameters
  • i_support (Reference) –

  • i_origin (Reference) –

  • i_angle (float) –

  • i_orientation_support (int) –

  • i_type (int) –

Returns

HybridShapeReflectLine

add_new_connect(i_curve1, i_point1, i_orient1, i_continuity1, i_tension1, i_curve2, i_point2, i_orient2, i_continuity2, i_tension2, trim)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewConnect(Reference iCurve1,
Reference iPoint1,
long iOrient1,
long iContinuity1,
double iTension1,
Reference iCurve2,
Reference iPoint2,
long iOrient2,
long iContinuity2,
double iTension2,
boolean Trim) As HybridShapeConnect

Creates a new Connect within the current body.

Parameters:

iCurve1
First curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iPoint1
First point (lying on the first curve)

Sub-element(s) supported (see Boundary object): see
Vertex.
iOrient1
Orientation on the first curve
iContinuity1
Continuity on first curve
iTension1
Tension on first curve
iCurve2
Second curve.
Sub-element(s) supported (see Boundary object): see TriDimFeatEdge and
BiDimFeatEdge.
iPoint2
Second point (lying on the second curve)

Sub-element(s) supported (see Boundary object): see
Vertex.
iOrient2
Orientation on the second curve
iContinuity2
Continuity on second curve
iTension2
Tension on second curve
iTrim
Trim the two curves with the connect
oConnect
The connect object
Parameters
  • i_curve1 (Reference) –

  • i_point1 (Reference) –

  • i_orient1 (int) –

  • i_continuity1 (int) –

  • i_tension1 (float) –

  • i_curve2 (Reference) –

  • i_point2 (Reference) –

  • i_orient2 (int) –

  • i_continuity2 (int) –

  • i_tension2 (float) –

  • trim (bool) –

Returns

HybridShapeConnect

add_new_corner(i_element1, i_element2, i_support, i_radius, i_orientation1, i_orientation2, i_trim)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCorner(Reference iElement1,
Reference iElement2,
Reference iSupport,
double iRadius,
long iOrientation1,
long iOrientation2,
boolean iTrim) As HybridShapeCorner

Creates a new Corner within the current body.
Create a corner curve between a point and a curve or 2 curves on a support
surface.

Parameters:

iElement1
First reference curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge, BiDimFeatEdge and Vertex.

iElement2
Second reference curve.
Sub-element(s) supported (see Boundary object): see TriDimFeatEdge,
BiDimFeatEdge and Vertex.
iSupport
Support surface.
Sub-element(s) supported (see Boundary object): see
Face.
iRadius
Radius of the corner.
iOrientation1
Manage the corner center position. Value can be 1 or -1

iOrientation2
Manage the corner center position. Value can be 1 or -1

iTrim
Value can be FALSE or TRUE
if TRUE the 2 curves are trimed and asembled with the corner.

oCorner
Created corner.
Parameters
  • i_element1 (Reference) –

  • i_element2 (Reference) –

  • i_support (Reference) –

  • i_radius (float) –

  • i_orientation1 (int) –

  • i_orientation2 (int) –

  • i_trim (bool) –

Returns

HybridShapeCorner

add_new_curve_datum(i_object)

Note

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

Creates a new datum of curve within the current body.

Parameters:

iObject
The object whose topological body will be duplicated and put into
created datum
oCurve
Created curve Note2: the object passed as parameter to create the
datum has to be in the current container. Otherwise, an error
occurs.
Parameters

i_object (Reference) –

Returns

HybridShapeCurveExplicit

add_new_curve_par(curve, support, distance, invert_direction, geodesic)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCurvePar(Reference Curve,
Reference Support,
double Distance,
boolean InvertDirection,
boolean Geodesic) As HybridShapeCurvePar

Creates a new CurvePar within the current body.

Parameters:

iCurve
Reference curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iSupport
Support on which the curve is lying on

Sub-element(s) supported (see Boundary object): see
Face.
iDistance
Distance value
iInvertDirection
Orientation
iGeodesic
Geodesic mode
oCurvePar
Parallel curve
Parameters
  • curve (Reference) –

  • support (Reference) –

  • distance (float) –

  • invert_direction (bool) –

  • geodesic (bool) –

Returns

HybridShapeCurvePar

add_new_curve_smooth(ip_ia_curve)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCurveSmooth(Reference ipIACurve) As
HybridShapeCurveSmooth

Creates a new CurveSmooth within the current body.

Parameters:

iCurve
Reference curve to be smoothened
oCurveSmooth
Smoothened curve
Parameters

ip_ia_curve (Reference) –

Returns

HybridShapeCurveSmooth

add_new_cylinder(i_center, i_radius, i_first_length, i_second_length, i_direction)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewCylinder(Reference iCenter,
double iRadius,
double iFirstLength,
double iSecondLength,
HybridShapeDirection iDirection) As HybridShapeCylinder

Creates a new Cylinder within the current body.

Parameters:

iCenter
Center of the Cylinder - Can be Point or Vertex.
Sub-element(s) supported (see

Vertex object):
iRadius
Radius of Cylinder.
iFirstLength
Length of Cylinder in the given direction.
iSecondLength
Length of Cylinder in the opposite direction.
iDirection
Direction of extrusion for Cylinder.
oCylinderObject
Created CylinderObjct.
Parameters
Returns

HybridShapeCylinder

add_new_datums(i_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewDatums(Reference iElem) As CATSafeArrayVariant

Creates datums from a multi-domain result feature, one datum is created by
object domain.
Note; Available only for a shape design feature as input ( not for datum
feature ).

Parameters:

iElem
Reference element
oArrayOfDatum
List of datum objects , one datum is created per
omain
Level of availability = V5R14

Example:
This example converts a hybrid shape object in as much as
datums that the original hybrid shape features contains of
domain

Dim HShape
Set reference = part.CreateReferenceFromObject(hybridShapeObject)
‘ Convert to Datums
HShape = hybridShapeFactory.AddNewDatums reference
Num =UBound(HShape)
For i = 0 to Num
hybridBody1.AppendHybridShape HShape (i)

Next
part.InWorkObject = HShape(num)
part.Update
‘ Delete original feature
hybridShapeFactory.DeleteObjectForDatum
reference
Parameters

i_elem (Reference) –

Returns

tuple

add_new_develop(i_mode, i_to_develop, i_support)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewDevelop(long iMode,
Reference iToDevelop,
Reference iSupport) As HybridShapeDevelop

Creates a new Develop within the current body.
Note: require either DL1 or GSO license.

Parameters:

iMode
Develop method.
iToDevelop
Wire to be developed.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iSupport
Revolution support surface.
Sub-element(s) supported (see Boundary object): see
Face.
oExt
Created developed wire.
Parameters
Returns

HybridShapeDevelop

add_new_direction(i_element)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewDirection(Reference iElement) As
HybridShapeDirection

Creates a new direction specified by an element within the current
body.

Parameters:

iElement
Line or plane specifying the direction. In case of plane, the plane
normal vector is the direction

Sub-element(s) supported (see

Boundary object): see RectilinearTriDimFeatEdge,
RectilinearBiDimFeatEdge and RectilinearMonoDimFeatEdge.

oDirection
Created direction.
Parameters

i_element (Reference) –

Returns

HybridShapeDirection

add_new_direction_by_coord(i_x, i_y, i_z)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewDirectionByCoord(double iX,
double iY,
double iZ) As HybridShapeDirection

Creates a new Direction specifed by coordinates within the current
body.

Parameters:

iX
X component
iY
Y component
iZ
Z component
oDirection
Created direction
Parameters
  • i_x (float) –

  • i_y (float) –

  • i_z (float) –

Returns

HybridShapeDirection

add_new_empty_rotate()

Note

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

Creates a new empty Rotate within the current body.
Returns

HybridShapeRotate

add_new_empty_translate()

Note

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

Creates a new empty Translate within the current body.
Returns

HybridShapeTranslate

add_new_extract(element)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewExtract(Reference Element) As
HybridShapeExtract

Creates a new Extract within the current body.

Parameters:

iElement
Initial element used to start the extraction

Sub-element(s) supported (see

Boundary object): see Boundary.
oExt
The extracted object
Parameters

element (Reference) –

Returns

HybridShapeExtract

add_new_extract_multi(element)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewExtractMulti(Reference Element) As
HybridShapeExtractMulti

Creates a new Multiple Extract within the current body.

Parameters:

iElement
Initial element used to start the extraction

Sub-element(s) supported (see

Boundary object): see Boundary.
oExt
The extracted object
Parameters

element (Reference) –

Returns

HybridShapeExtractMulti

add_new_extrapol_length(i_boundary, i_to_extrapol, i_length)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewExtrapolLength(Reference iBoundary,
Reference iToExtrapol,
double iLength) As HybridShapeExtrapol

Creates a new Extrapol (specified by length) within the current
body.

Parameters:

iBoundary
Boundary point of curve to extrapolate or boundary curve of surface
to extrapolate.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iToExtrapol
Curve or surface to extrapolate.
Sub-element(s) supported (see Boundary object): see Face,
TriDimFeatEdge and BiDimFeatEdge.
iLength
Extrapolation length.
oExtrapol
Created Extrapolation.
Parameters
Returns

HybridShapeExtrapol

add_new_extrapol_until(i_boundary, i_to_extrapol, i_until)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewExtrapolUntil(Reference iBoundary,
Reference iToExtrapol,
Reference iUntil) As HybridShapeExtrapol

Creates a new Extrapol (until an element) within the current
body.

Parameters:

iBoundary
Boundary point of curve to extrapolate or boundary curve of surface
to extrapolate.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iToExtrapol
Curve or surface to extrapolate.
Sub-element(s) supported (see Boundary object): see Face,
TriDimFeatEdge and BiDimFeatEdge.
iUntil
Extrapolation limit surface.
oExtrapol
Created Extrapolation.
Parameters
Returns

HybridShapeExtrapol

add_new_extremum(i_objet, i_dir, i_min_max)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewExtremum(Reference iObjet,
HybridShapeDirection iDir,
long iMinMax) As HybridShapeExtremum

Creates a new Extremum within the current body.

Parameters:

iObjet
Element onto extremum is computed

Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge, BiDimFeatEdge and Face.

iDir
Extremum direction
iMinMax
Maximum (GSMMax) or Minimum (GSMMin)
oExt
The extremum object if succeded
Parameters
Returns

HybridShapeExtremum

add_new_extremum_polar(i_type, ip_ia_contour)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewExtremumPolar(short iType,
Reference ipIAContour) As HybridShapeExtremumPolar

Creates a new Extremum Polar within the current body.

Parameters:

iType
Type of extremum polar 0-Min Radius 1-Max Radius 2- Min Angle 3-
Maximum Angle
ipIAContour
Extremum Polar Contour. It should be non convex
opIAExtPolar
The extremum polar object if succeded
Parameters
  • i_type (enum) –

  • ip_ia_contour (Reference) –

Returns

HybridShapeExtremumPolar

add_new_extrude(i_object_to_extrude, i_offset_debut, i_offset_fin, i_direction)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewExtrude(Reference iObjectToExtrude,
double iOffsetDebut,
double iOffsetFin,
HybridShapeDirection iDirection) As HybridShapeExtrude

Creates a new extrude within the current body.

Parameters:

iObjectToExtrude
Object to be extruded (point, line ,curve,or face)

Sub-element(s) supported (see

Boundary object): see Boundary.
iOffsetDebut
Length value
iOffsetFin
Length value ( iOffsetFin has to be larger than iOffsetDebut)

iDirection
Extrusion direction
oExtrudeObject
Extruded result
Parameters
Returns

HybridShapeExtrude

add_new_fill()

Note

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

Creates a new Fill within the current body.

Parameters:

oFill
Fill object
Returns

HybridShapeFill

add_new_fillet_bi_tangent(i_element1, i_element2, i_radius, i_orientation1, i_orientation2, i_supports_trim_mode, i_ribbon_relimitation_mode)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewFilletBiTangent(Reference iElement1,
Reference iElement2,
double iRadius,
long iOrientation1,
long iOrientation2,
long iSupportsTrimMode,
long iRibbonRelimitationMode) As HybridShapeFilletBiTangent

Creates a new a sphere bitangent fillet between two skins.

Parameters:

iElement1
First support of fillet.
Sub-element(s) supported (see

Boundary object): see Face.
iElement2
Second support of fillet.
Sub-element(s) supported (see Boundary object): see
Face.
iRadius
Radius of the fillet.
iOrientation1
Manage the fillet center position.
iOrientation2
Manage the fillet center position.
iSupportsTrimMode
The 2 supports can be trimmed and assembled with the fillet. Value can
be 0 (No trim ) or 1 (Trim)
iRibbonRelimitationMode
Manage the relimition of fillet extremities. Value can be :
0 (Smooth),
1 (Straight),
2 (Maximum) or
3 (Minimum)
oFillet
Created fillet.
Parameters
  • i_element1 (Reference) –

  • i_element2 (Reference) –

  • i_radius (float) –

  • i_orientation1 (int) –

  • i_orientation2 (int) –

  • i_supports_trim_mode (int) –

  • i_ribbon_relimitation_mode (int) –

Returns

HybridShapeFilletBiTangent

add_new_fillet_tri_tangent(i_element1, i_element2, i_remove_elem, i_orientation1, i_orientation2, i_remove_orientation, i_supports_trim_mode, i_ribbon_relimitation_mode)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewFilletTriTangent(Reference iElement1,
Reference iElement2,
Reference iRemoveElem,
long iOrientation1,
long iOrientation2,
long iRemoveOrientation,
long iSupportsTrimMode,
long iRibbonRelimitationMode) As HybridShapeFilletTriTangent

Creates a new a tritangent fillet between three skins.

Parameters:

iElement1
First support of fillet.
Sub-element(s) supported (see

Boundary object): see Face.
iElement2
Second support of fillet.
Sub-element(s) supported (see Boundary object): see
Face.
iRemoveElem
Support to remove of fillet.
Sub-element(s) supported (see Boundary object): see
Face.
iOrientation1
Manage the fillet center position.
iOrientation2
Manage the fillet center position.
iRemoveOrientation
Manage the fillet center position.
iSupportsTrimMode
The 2 supports can be trimmed and assembled with the fillet. Value can
be 0 (No trim ) or 1 (Trim)
iRibbonRelimitationMode
Manage the relimition of fillet extremities. Value can be : 0 (Smooth), 1 (Straight),
2 (Maximum) or 3 (Minimum)
oFillet
Created fillet.
Parameters
  • i_element1 (Reference) –

  • i_element2 (Reference) –

  • i_remove_elem (Reference) –

  • i_orientation1 (int) –

  • i_orientation2 (int) –

  • i_remove_orientation (int) –

  • i_supports_trim_mode (int) –

  • i_ribbon_relimitation_mode (int) –

Returns

HybridShapeFilletTriTangent

add_new_healing(i_body_toheal)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewHealing(Reference iBodyToheal) As
HybridShapeHealing

Creates a new healing within the current body.

Parameters:

iBodyToHeal
The body to heal
oHealing
The created healing
Parameters

i_body_toheal (Reference) –

Returns

HybridShapeHealing

add_new_helix(i_axis, i_invert_axis, i_starting_point, i_pitch, i_height, i_clockwise_revolution, i_starting_angle, i_taper_angle, i_taper_outward)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewHelix(Reference iAxis,
boolean iInvertAxis,
Reference iStartingPoint,
double iPitch,
double iHeight,
boolean iClockwiseRevolution,
double iStartingAngle,
double iTaperAngle,
boolean iTaperOutward) As HybridShapeHelix

Creates a new Helix within the current body.

Parameters:

iAxis
The helix axis (always a line).
Sub-element(s) supported (see

Boundary object): see RectilinearTriDimFeatEdge and
RectilinearBiDimFeatEdge.
iInvertAxis
iStartingPoint
Starting Point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iPitch
Pitch.
iHeight
Helix height.
iClockwiseRevolution
Revolutions are clockwise if TRUE, counterclockwise if FALSE.

iStartingAngle
Starting angle from starting point measured on the helix itself. If no
starting angle is wanted, set it to 0.0.
iTaperAngle
0 <= Taper Angle < Pi/2 If no taper angle is wanted, set it to 0.0
(constant helix radius).
iTaperOutward
Helix radius increases if TRUE, decreases if FALSE.
oHelix
The Helix object if succeded
Parameters
  • i_axis (Reference) –

  • i_invert_axis (bool) –

  • i_starting_point (Reference) –

  • i_pitch (float) –

  • i_height (float) –

  • i_clockwise_revolution (bool) –

  • i_starting_angle (float) –

  • i_taper_angle (float) –

  • i_taper_outward (bool) –

Returns

HybridShapeHelix

add_new_hybrid_scaling(i_elem_to_scale, i_center, i_ratio)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewHybridScaling(Reference iElemToScale,
Reference iCenter,
double iRatio) As HybridShapeScaling

Creates a new scaling within the current body.

Parameters:

iElemToScale
Point, curve, surface or solid to transform.
Sub-element(s) supported (see

Boundary object): see Face, TriDimFeatEdge, BiDimFeatEdge and Vertex.

iCenter
Reference point or reference plane.
Sub-element(s) supported (see Boundary object): see PlanarFace and
Vertex.
iRatio
Scaling ratio.
oScaling
Created scaling.
Parameters
Returns

HybridShapeScaling

add_new_hybrid_split(i_element1, i_element2, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewHybridSplit(Reference iElement1,
Reference iElement2,
long iOrientation) As HybridShapeSplit

Creates a new Split within the current body.

Parameters:

iElement1
The feature to cut (curve or surface).
Sub-element(s) supported (see

Boundary object): see Face, TriDimFeatEdge and BiDimFeatEdge.

iElement2
The cutting feature (point, curve, surface).
Sub-element(s) supported (see Boundary object): see Face,
TriDimFeatEdge, BiDimFeatEdge and Vertex.
iOrientation
Manage the kept side of the feature to cut (value can be 1 or -1)

oSplit
Created split
Parameters
Returns

HybridShapeSplit

add_new_hybrid_trim(i_element1, i_orientation1, i_element2, i_orientation2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewHybridTrim(Reference iElement1,
long iOrientation1,
Reference iElement2,
long iOrientation2) As HybridShapeTrim

Creates a new Trim within the current body by cutting and joining two
elements.
You can trim a surface by a surface or a curve by a curve.

Parameters:

iElement1
The feature to trim (curve or surface).
iOrientation1
Manage the kept side of iElement1 (value can be 1 or -1).

iElement2
The second feature to trim (curve or surface).
iOrientation2
Manage the kept side of iElement2 (value can be 1 or -1).

oTrim
Created trim.
Parameters
  • i_element1 (Reference) –

  • i_orientation1 (int) –

  • i_element2 (Reference) –

  • i_orientation2 (int) –

Returns

HybridShapeTrim

add_new_integrated_law(i_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewIntegratedLaw(long iType) As
HybridShapeIntegratedLaw

Creates Integrated Law.

Parameters:

iType
Type of law
= 0 : None
= 1 : Constant
= 2 : Linear
= 3 : SType
= 4 : Advanced
= 5 : Implicit
Parameters

i_type (int) –

Returns

HybridShapeIntegratedLaw

add_new_intersection(i_object1, i_object2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewIntersection(Reference iObject1,
Reference iObject2) As HybridShapeIntersection

Creates a new Intersection within the current body.

Parameters:

iObject1
First element ( line, curve, plane, surface.
Sub-element(s) supported (see

Boundary object): see Face, RectilinearTriDimFeatEdge and
RectilinearBiDimFeatEdge.
iObject2
Second element ( line , curve, plane, surface.
Sub-element(s) supported (see Boundary object): see Face,
RectilinearTriDimFeatEdge and
RectilinearBiDimFeatEdge.
oIntersection
Intersection
Parameters
Returns

HybridShapeIntersection

add_new_inverse(element, inverse)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewInverse(Reference Element,
long Inverse) As HybridShapeInverse

Creates a new Inverse within the current body.

Parameters:

iElement
The objet to inverse
iInverse
the type of inversion (see CATGSMOrientation.h) 1 for no inversion
-1 for inversion
oInv
The inverted object
Parameters
Returns

HybridShapeInverse

add_new_join(element1, element2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewJoin(Reference Element1,
Reference Element2) As HybridShapeAssemble

Creates a new Join within the current body.

Parameters:

iElement1
First element to join ( curve or surface.
Sub-element(s) supported (see

Boundary object): see Face, TriDimFeatEdge and BiDimFeatEdge.

iElement2
Second element to join ( same type of the first
element)

Sub-element(s) supported (see Boundary object): see Face,
TriDimFeatEdge and BiDimFeatEdge.
oExt
Join result The default value used to join element is
0.001mm
Parameters
Returns

HybridShapeAssemble

add_new_law_dist_proj(i_reference, i_definition)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLawDistProj(Reference iReference,
Reference iDefinition) As HybridShapeLawDistProj

Creates a new law within the current body.

Parameters:

iReference
Reference line of the law.
Sub-element(s) supported (see

Boundary object): see RectilinearTriDimFeatEdge and
RectilinearBiDimFeatEdge.
iDefinition
Definition curve of the law.
Sub-element(s) supported (see Boundary object): see TriDimFeatEdge and
BiDimFeatEdge.
oLaw
The Law object if succeded
Parameters
Returns

HybridShapeLawDistProj

add_new_line_angle(i_curve, i_surface, i_point, i_geodesic, i_begin_offset, i_end_offset, i_angle, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLineAngle(Reference iCurve,
Reference iSurface,
Reference iPoint,
boolean iGeodesic,
double iBeginOffset,
double iEndOffset,
double iAngle,
boolean iOrientation) As HybridShapeLineAngle

Creates a new angle line within the current body.

Parameters:

iCurve
Reference curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iSurface
Reference surface.
Sub-element(s) supported (see Boundary object): see
Face.
iPoint
reference point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iGeodesic
Puts the line on the surface
iBeginOffset
start offset
iEndOffset
end offset
iAngle
angle to reference curve
iOrientation
Orientation allows to reverse the line direction from the reference
point. For a line of L length, it is the same as creating this line with -L
length.
oLine
Created line
Parameters
  • i_curve (Reference) –

  • i_surface (Reference) –

  • i_point (Reference) –

  • i_geodesic (bool) –

  • i_begin_offset (float) –

  • i_end_offset (float) –

  • i_angle (float) –

  • i_orientation (bool) –

Returns

HybridShapeLineAngle

add_new_line_bi_tangent(i_curve1, i_element2, i_support)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLineBiTangent(Reference iCurve1,
Reference iElement2,
Reference iSupport) As HybridShapeLineBiTangent

Creates a new bitangent line within the current body.

Parameters:

iCurve1
First tangency curve lying on the support surface.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iCurve2
Second tangency element (point, curve) lying on the support
surface.
Sub-element(s) supported (see Boundary object): see TriDimFeatEdge,
BiDimFeatEdge and Vertex.
iSupport
The support surface of the two elements.
Sub-element(s) supported (see Boundary object): see
Face.
oLine
Created line
Parameters
Returns

HybridShapeLineBiTangent

add_new_line_bisecting(i_line1, i_line2, i_begin_offset, i_end_offset, i_orientation, solution_nb)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLineBisecting(Reference iLine1,
Reference iLine2,
double iBeginOffset,
double iEndOffset,
boolean iOrientation,
long SolutionNb) As HybridShapeLineBisecting

Creates a new bisecting line within the current body.

Parameters:

iLine1
First line.
Sub-element(s) supported (see

Boundary object): see RectilinearTriDimFeatEdge and
RectilinearBiDimFeatEdge.
iLine2
Second line.
Sub-element(s) supported (see Boundary object): see
RectilinearTriDimFeatEdge and
RectilinearBiDimFeatEdge.
iBeginOffset
start offset
iEndOffset
end offset
iOrientation
Orientation allows to reverse the line direction from the reference
point. For a line of L length, it is the same as creating this line with -L
length.
oLine
Created line
Parameters
  • i_line1 (Reference) –

  • i_line2 (Reference) –

  • i_begin_offset (float) –

  • i_end_offset (float) –

  • i_orientation (bool) –

  • solution_nb (int) –

Returns

HybridShapeLineBisecting

add_new_line_bisecting_on_support(i_line1, i_line2, i_surface, i_begin_offset, i_end_offset, i_orientation, solution_nb)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLineBisectingOnSupport(Reference iLine1,
Reference iLine2,
Reference iSurface,
double iBeginOffset,
double iEndOffset,
boolean iOrientation,
long SolutionNb) As HybridShapeLineBisecting

Creates a new bisecting line on a support within the current
body.

Parameters:

iLine1
First line.
Sub-element(s) supported (see

Boundary object): see RectilinearTriDimFeatEdge and
RectilinearBiDimFeatEdge.
iLine2
Second line.
Sub-element(s) supported (see Boundary object): see
RectilinearTriDimFeatEdge and
RectilinearBiDimFeatEdge.
iSurface
Reference surface.
Sub-element(s) supported (see Boundary object): see
Face.
iBeginOffset
start offset
iEndOffset
end offset
iOrientation
Orientation allows to reverse the line direction from the reference
point. For a line of L length, it is the same as creating this line with -L
length.
oLine
Created line
Parameters
  • i_line1 (Reference) –

  • i_line2 (Reference) –

  • i_surface (Reference) –

  • i_begin_offset (float) –

  • i_end_offset (float) –

  • i_orientation (bool) –

  • solution_nb (int) –

Returns

HybridShapeLineBisecting

add_new_line_bisecting_on_support_with_point(i_line1, i_line2, i_ref_point, i_surface, i_begin_offset, i_end_offset, i_orientation, solution_nb)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLineBisectingOnSupportWithPoint(Reference
iLine1,
Reference iLine2,
Reference iRefPoint,
Reference iSurface,
double iBeginOffset,
double iEndOffset,
boolean iOrientation,
long SolutionNb) As HybridShapeLineBisecting

Creates a new bisecting line on a support with a atarting point within the
current body.

Parameters:

iLine1
First line.
Sub-element(s) supported (see

Boundary object): see RectilinearTriDimFeatEdge and
RectilinearBiDimFeatEdge.
iLine2
Second line.
Sub-element(s) supported (see Boundary object): see
RectilinearTriDimFeatEdge and
RectilinearBiDimFeatEdge.
iRefPoint
Starting point of the bisecting line.
Sub-element(s) supported (see Boundary object): see
Vertex.
iSurface
Reference surface.
Sub-element(s) supported (see Boundary object): see
Face.
iBeginOffset
start offset
iEndOffset
end offset
iOrientation
Orientation allows to reverse the line direction from the reference
point. For a line of L length, it is the same as creating this line with -L
length.
oLine
Created line
Parameters
  • i_line1 (Reference) –

  • i_line2 (Reference) –

  • i_ref_point (Reference) –

  • i_surface (Reference) –

  • i_begin_offset (float) –

  • i_end_offset (float) –

  • i_orientation (bool) –

  • solution_nb (int) –

Returns

HybridShapeLineBisecting

add_new_line_bisecting_with_point(i_line1, i_line2, i_ref_point, i_begin_offset, i_end_offset, i_orientation, solution_nb)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLineBisectingWithPoint(Reference iLine1,
Reference iLine2,
Reference iRefPoint,
double iBeginOffset,
double iEndOffset,
boolean iOrientation,
long SolutionNb) As HybridShapeLineBisecting

Creates a new bisecting line with a starting point within the current
body.

Parameters:

iLine1
First line.
Sub-element(s) supported (see

Boundary object): see RectilinearTriDimFeatEdge and
RectilinearBiDimFeatEdge.
iLine2
Second line.
Sub-element(s) supported (see Boundary object): see
RectilinearTriDimFeatEdge and
RectilinearBiDimFeatEdge.
iRefPoint
Starting point of the bisecting line.
Sub-element(s) supported (see Boundary object): see
Vertex.
iBeginOffset
start offset
iEndOffset
end offset
iOrientation
Orientation allows to reverse the line direction from the reference
point. For a line of L length, it is the same as creating this line with -L
length.
oLine
Created line
Parameters
  • i_line1 (Reference) –

  • i_line2 (Reference) –

  • i_ref_point (Reference) –

  • i_begin_offset (float) –

  • i_end_offset (float) –

  • i_orientation (bool) –

  • solution_nb (int) –

Returns

HybridShapeLineBisecting

add_new_line_datum(i_object)

Note

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

Creates a new datum of line within the current body.

Parameters:

iObject
The object whose topological body will be duplicated and put into
created datum
oLine
Created datum Note2: the object passed as parameter to create the
datum has to be in the current container. Otherwise, an error
occurs.
Parameters

i_object (Reference) –

Returns

HybridShapeLineExplicit

add_new_line_normal(i_surface, i_point, i_begin_offset, i_end_offset, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLineNormal(Reference iSurface,
Reference iPoint,
double iBeginOffset,
double iEndOffset,
boolean iOrientation) As HybridShapeLineNormal

Creates a new normal line within the current body.

Parameters:

iSurface
Reference surface.
Sub-element(s) supported (see

Boundary object): see Face.
iPoint
Reference point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iBeginOffset
start offset
iEndOffset
end offset
iOrientation
Orientation allows to reverse the line direction from the reference
point. For a line of L length, it is the same as creating this line with -L
length.
oLine
Created line
Parameters
  • i_surface (Reference) –

  • i_point (Reference) –

  • i_begin_offset (float) –

  • i_end_offset (float) –

  • i_orientation (bool) –

Returns

HybridShapeLineNormal

add_new_line_pt_dir(i_pt, i_direction, i_begin_offset, i_end_offset, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLinePtDir(Reference iPt,
HybridShapeDirection iDirection,
double iBeginOffset,
double iEndOffset,
boolean iOrientation) As HybridShapeLinePtDir

Creates a new point-direction line within the current
body.

Parameters:

iPt
reference point.
Sub-element(s) supported (see

Boundary object): see Vertex.
iDirection
Direction
iBeginOffset
start offset
iEndOffset
end offset
iOrientation
Orientation allows to reverse the line direction from the reference
point. For a line of L length, it is the same as creating this line with -L
length.
oLine
Created line
Parameters
Returns

HybridShapeLinePtDir

add_new_line_pt_dir_on_support(i_pt, i_direction, i_support, i_begin_offset, i_end_offset, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLinePtDirOnSupport(Reference iPt,
HybridShapeDirection iDirection,
Reference iSupport,
double iBeginOffset,
double iEndOffset,
boolean iOrientation) As HybridShapeLinePtDir

Creates a new point-direction line within the current
body.

Parameters:

iPt
reference point.
Sub-element(s) supported (see

Boundary object): see Vertex.
iDirection
Direction
iSupport
Support element (surface or plane)

Sub-element(s) supported (see Boundary object): see
Face.
iBeginOffset
start offset
iEndOffset
end offset
iOrientation
Orientation allows to reverse the line direction from the reference
point. For a line of L length, it is the same as creating this line with -L
length.
oLine
Created line
Parameters
Returns

HybridShapeLinePtDir

add_new_line_pt_pt(i_pt_origine, i_pt_extremite)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLinePtPt(Reference iPtOrigine,
Reference iPtExtremite) As HybridShapeLinePtPt

Creates a new point-point line within the current body.

Parameters:

iPtOrigine
Origin point.
Sub-element(s) supported (see

Boundary object): see Vertex.
iPtExtremite
Extremity point.
Sub-element(s) supported (see Boundary object): see
Vertex.
oLine
Created line
Parameters
Returns

HybridShapeLinePtPt

add_new_line_pt_pt_extended(i_pt_origine, i_pt_extremite, i_begin_offset, i_end_offset)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLinePtPtExtended(Reference iPtOrigine,
Reference iPtExtremite,
double iBeginOffset,
double iEndOffset) As HybridShapeLinePtPt

Creates a new point-point line with extensions within the current
body.

Parameters:

iPtOrigine
Origin point.
Sub-element(s) supported (see

Boundary object): see Vertex.
iPtExtremite
Extremity point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iBeginOffset
start offset
iEndOffset
end offset
oLine
Created line
Parameters
  • i_pt_origine (Reference) –

  • i_pt_extremite (Reference) –

  • i_begin_offset (float) –

  • i_end_offset (float) –

Returns

HybridShapeLinePtPt

add_new_line_pt_pt_on_support(i_pt_origine, i_pt_extremite, i_support)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLinePtPtOnSupport(Reference iPtOrigine,
Reference iPtExtremite,
Reference iSupport) As HybridShapeLinePtPt

Creates a new point-point line with support within the current
body.

Parameters:

iPtOrigine
Origin point.
Sub-element(s) supported (see

Boundary object): see Vertex.
iPtExtremite
Extremity point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iSupport
Support element (surface or plane)

Sub-element(s) supported (see Boundary object): see
Face.
oLine
Created line
Parameters
Returns

HybridShapeLinePtPt

add_new_line_pt_pt_on_support_extended(i_pt_origine, i_pt_extremite, i_support, i_begin_offset, i_end_offset)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLinePtPtOnSupportExtended(Reference iPtOrigine,
Reference iPtExtremite,
Reference iSupport,
double iBeginOffset,
double iEndOffset) As HybridShapeLinePtPt

Creates a new point-point line with extensions and with support within the
current body.

Parameters:

iPtOrigine
Origin point.
Sub-element(s) supported (see

Boundary object): see Vertex.
iPtExtremite
Extremity point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iSupport
Support element (surface or plane)

Sub-element(s) supported (see Boundary object): see
Face.
iBeginOffset
start offset
iEndOffset
end offset
oLine
Created line
Parameters
  • i_pt_origine (Reference) –

  • i_pt_extremite (Reference) –

  • i_support (Reference) –

  • i_begin_offset (float) –

  • i_end_offset (float) –

Returns

HybridShapeLinePtPt

add_new_line_tangency(i_curve, i_point, i_begin_offset, i_end_offset, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLineTangency(Reference iCurve,
Reference iPoint,
double iBeginOffset,
double iEndOffset,
boolean iOrientation) As HybridShapeLineTangency

Creates a new tangent line within the current body.

Parameters:

iCurve
Reference curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iPoint
Reference point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iBeginOffset
start offset
iEndOffset
end offset
iOrientation
Orientation allows to reverse the line direction from the reference
point. For a line of L length, it is the same as creating this line with -L
length.
oLine
Created line
Parameters
  • i_curve (Reference) –

  • i_point (Reference) –

  • i_begin_offset (float) –

  • i_end_offset (float) –

  • i_orientation (bool) –

Returns

HybridShapeLineTangency

add_new_line_tangency_on_support(i_curve, i_point, i_support, i_begin_offset, i_end_offset, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewLineTangencyOnSupport(Reference iCurve,
Reference iPoint,
Reference iSupport,
double iBeginOffset,
double iEndOffset,
boolean iOrientation) As HybridShapeLineTangency

Creates a new tangent line within the current body.

Parameters:

iCurve
Reference curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iPoint
Reference point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iSupport
Support element (surface or plane)

Sub-element(s) supported (see Boundary object): see
Face.
iBeginOffset
start offset
iEndOffset
end offset
iOrientation
Orientation allows to reverse the line direction from the reference
point. For a line of L length, it is the same as creating this line with -L
length.
oLine
Created line
Parameters
  • i_curve (Reference) –

  • i_point (Reference) –

  • i_support (Reference) –

  • i_begin_offset (float) –

  • i_end_offset (float) –

  • i_orientation (bool) –

Returns

HybridShapeLineTangency

add_new_loft()

Note

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

Creates a new Loft within the current body.

Parameters:

oExt
CATIAHybridShapeLoft created
Returns

HybridShapeLoft

add_new_mid_surface(i_support, i_creation_mode, i_threshold)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewMidSurface(Reference iSupport,
long iCreationMode,
double iThreshold) As HybridShapeMidSurface

Creates a new MidSurface in Automatic Creation Mode Only.

Parameters:

iSupport
support Body
iCreationMode
Creation Mode (Only Automatic Accepted)
iThreshold
Threshold Thickness

Returns:
oMidSurface Created MidSurface
Parameters
  • i_support (Reference) –

  • i_creation_mode (int) –

  • i_threshold (float) –

Returns

HybridShapeMidSurface

add_new_mid_surface_with_auto_threshold(i_support, i_creation_mode, i_threshold, i_auto_thickness_threshold)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewMidSurfaceWithAutoThreshold(Reference iSupport,
long iCreationMode,
double iThreshold,
long iAutoThicknessThreshold) As HybridShapeMidSurface

Creates a new MidSurface in Automatic Creation Mode Only.

Parameters:

iSupport
support Body
iCreationMode
Creation Mode (Only Automatic Accepted)
iThreshold
Threshold Thickness
iAutoThicknessThreshold
Automatic Thickness Threshold

Returns:
oMidSurface Created MidSurface
Parameters
  • i_support (Reference) –

  • i_creation_mode (int) –

  • i_threshold (float) –

  • i_auto_thickness_threshold (int) –

Returns

HybridShapeMidSurface

add_new_near(multi_element, reference_element)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewNear(Reference MultiElement,
Reference ReferenceElement) As HybridShapeNear

Creates a new Near within the current body.

Parameters:

iMultiElement
Non connex element (point,curve,surface.
Sub-element(s) supported (see

Boundary object): see Face, TriDimFeatEdge, BiDimFeatEdge and Vertex.

iReferenceElement
Reference element

Sub-element(s) supported (see Boundary object): see Face,
TriDimFeatEdge, BiDimFeatEdge and Vertex.
oNear
The result is the connex component that is the nearest from the
reference element
Parameters
Returns

HybridShapeNear

add_new_offset(i_object_to_offset, i_offset, i_orientation, i_precision)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewOffset(Reference iObjectToOffset,
double iOffset,
boolean iOrientation,
double iPrecision) As HybridShapeOffset

Creates a new offset within the current body.

Parameters:

iObjectToOffset
Surface to offset.
Sub-element(s) supported (see

Boundary object): see Face.
iOffset
Offset value
iOrientation
Offset orientation
iPrecision
This variable is no longer in use and any change in it’s value does not
impact the output.
oOffsetObject
Offset Surface
Parameters
  • i_object_to_offset (Reference) –

  • i_offset (float) –

  • i_orientation (bool) –

  • i_precision (float) –

Returns

HybridShapeOffset

add_new_plane1_curve(i_planar_curve)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPlane1Curve(Reference iPlanarCurve) As
HybridShapePlane1Curve

Creates a new plane passing through one planar curve within the current
body.

Parameters:

iPlanarCurve
passing curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

oPlane
Created plane
Parameters

i_planar_curve (Reference) –

Returns

HybridShapePlane1Curve

add_new_plane1_line1_pt(i_ln, i_pt)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPlane1Line1Pt(Reference iLn,
Reference iPt) As HybridShapePlane1Line1Pt

Creates a new plane passing through 1 line and 1 point within the current
body.

Parameters:

iLn
passing line.
Sub-element(s) supported (see

Boundary object): see RectilinearTriDimFeatEdge,
RectilinearBiDimFeatEdge and RectilinearMonoDimFeatEdge.

iPt
passing point.
Sub-element(s) supported (see Boundary object): see
Vertex.
oPlane
Created plane
Parameters
Returns

HybridShapePlane1Line1Pt

add_new_plane2_lines(i_ln1, i_ln2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPlane2Lines(Reference iLn1,
Reference iLn2) As HybridShapePlane2Lines

Creates a new plane passing through 2 lines within the current
body.

Parameters:

iLn1
first passing line.
Sub-element(s) supported (see

Boundary object): see RectilinearTriDimFeatEdge,
RectilinearBiDimFeatEdge and RectilinearMonoDimFeatEdge.

iLn2
second passing line.
Sub-element(s) supported (see Boundary object): see
RectilinearTriDimFeatEdge, RectilinearBiDimFeatEdge and
RectilinearMonoDimFeatEdge.
oPlane
Created line
Parameters
Returns

HybridShapePlane2Lines

add_new_plane3_points(i_pt1, i_pt2, i_pt3)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPlane3Points(Reference iPt1,
Reference iPt2,
Reference iPt3) As HybridShapePlane3Points

Creates a new plane passing through 3 points within the current
body.

Parameters:

iPt1
first passing point.
Sub-element(s) supported (see

Boundary object): see Vertex.
iPt2
second passing point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iPt3
third passing point.
Sub-element(s) supported (see Boundary object): see
Vertex.
oPlane
Created plane
Parameters
Returns

HybridShapePlane3Points

add_new_plane_angle(i_plane, i_revol_axis, i_angle, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPlaneAngle(Reference iPlane,
Reference iRevolAxis,
double iAngle,
boolean iOrientation) As HybridShapePlaneAngle

Creates a new angle plane within the current body.

Parameters:

iPlane
reference plane

Sub-element(s) supported (see

Boundary object): see PlanarFace.
iRevolAxis
rotation axis

Sub-element(s) supported (see Boundary object): see
RectilinearTriDimFeatEdge, RectilinearBiDimFeatEdge and
RectilinearMonoDimFeatEdge.
iAngle
angle
iOrientation
Orientation to reverse the plane from the reference plane.

oPlane
Created plane
Parameters
  • i_plane (Reference) –

  • i_revol_axis (Reference) –

  • i_angle (float) –

  • i_orientation (bool) –

Returns

HybridShapePlaneAngle

add_new_plane_datum(i_object)

Note

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

Creates a new datum of plane within the current body.

Parameters:

iObject
The object whose topological body will be duplicated and put into
created datum
oPlane
Created datum Note2: the object passed as parameter to create the
datum has to be in the current container. Otherwise, an error
occurs.
Parameters

i_object (Reference) –

Returns

HybridShapePlaneExplicit

add_new_plane_equation(i_a_coeff, i_b_coeff, i_c_coeff, i_d_coeff)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPlaneEquation(double iA_Coeff,
double iB_Coeff,
double iC_Coeff,
double iD_Coeff) As HybridShapePlaneEquation

Creates a new equation plane within the current body. Plane equation is Ax+By+Cz = D.

Parameters:

iA_Coeff
A coefficient
iB_Coeff
B coefficient
iC_Coeff
C coefficient
iD_Coeff
D coefficient
oPlane
Created plane
Parameters
  • i_a_coeff (float) –

  • i_b_coeff (float) –

  • i_c_coeff (float) –

  • i_d_coeff (float) –

Returns

HybridShapePlaneEquation

add_new_plane_mean(i_list_of_points, nb_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPlaneMean(CATSafeArrayVariant iListOfPoints,
long NbPoint) As HybridShapePlaneMean

Creates a new mean through points plane within the current
body.

Parameters:

oIListOfPoints
list of passing points Warning : Input and Output parameter for CATScript applications,
procedural type
iNbPoint
Number of points
oPlane
Created plane
Parameters
  • i_list_of_points (tuple) –

  • nb_point (int) –

Returns

HybridShapePlaneMean

add_new_plane_normal(i_curve, i_pt)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPlaneNormal(Reference iCurve,
Reference iPt) As HybridShapePlaneNormal

Creates a new normal plane within the current body.

Parameters:

iCurve
Reference curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iPt
Reference point.
Sub-element(s) supported (see Boundary object): see
Vertex.
oPlane
Created plane
Parameters
Returns

HybridShapePlaneNormal

add_new_plane_offset(i_plane, i_offset, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPlaneOffset(Reference iPlane,
double iOffset,
boolean iOrientation) As HybridShapePlaneOffset

Creates a new offset plane within the current body.

Parameters:

iPlane
reference plane

Sub-element(s) supported (see

Boundary object): see PlanarFace.
iOffset
offset value
iOrientation
Orientation to reverse the plane from the reference plane.

oPlane
Created plane
Parameters
  • i_plane (Reference) –

  • i_offset (float) –

  • i_orientation (bool) –

Returns

HybridShapePlaneOffset

add_new_plane_offset_pt(i_plane, i_pt)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPlaneOffsetPt(Reference iPlane,
Reference iPt) As HybridShapePlaneOffsetPt

Creates a new offset trough point plane within the current
body.

Parameters:

iPlane
reference plane

Sub-element(s) supported (see

Boundary object): see PlanarFace.
iPt
Reference point.
Sub-element(s) supported (see Boundary object): see
Vertex.
oPlane
Created plane
Parameters
Returns

HybridShapePlaneOffsetPt

add_new_plane_tangent(i_surface, i_pt)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPlaneTangent(Reference iSurface,
Reference iPt) As HybridShapePlaneTangent

Creates a new tangent plane within the current body.

Parameters:

iSurface
reference surface.
Sub-element(s) supported (see

Boundary object): see Face.
iPt
reference point.
Sub-element(s) supported (see Boundary object): see
Vertex.
oPlane
Created plane
Parameters
Returns

HybridShapePlaneTangent

add_new_point_between(i_point1, i_point2, i_ratio, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointBetween(Reference iPoint1,
Reference iPoint2,
double iRatio,
long iOrientation) As HybridShapePointBetween

Creates a new PointBetween within the current body.

Parameters:

iPoint1
Reference point to compute the barycenter.
Sub-element(s) supported (see

Boundary object): see Vertex.
iPoint2
Second point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iRatio
barycenter parameter
iOrientation
To compute the barycenter of the segment [Pt1 - Pt2]
oPoint
PointBetween if succeded
Parameters
  • i_point1 (Reference) –

  • i_point2 (Reference) –

  • i_ratio (float) –

  • i_orientation (int) –

Returns

HybridShapePointBetween

add_new_point_center(i_curve)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointCenter(Reference iCurve) As
HybridShapePointCenter

Creates a new circle center point within the current body.

Parameters:

iCurve
Reference circle

Sub-element(s) supported (see

Boundary object): see Edge.
oPoint
Created point
Parameters

i_curve (Reference) –

Returns

HybridShapePointCenter

add_new_point_coord(i_x, i_y, i_z)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointCoord(double iX,
double iY,
double iZ) As HybridShapePointCoord

Creates a new point defined by its cartesian coordinates within the current
body.

Parameters:

iX
X coordinate for the point
iY
Y coordinate for the point
iZ
Z coordinate for the point
oPoint
Created point
Parameters
  • i_x (float) –

  • i_y (float) –

  • i_z (float) –

Returns

HybridShapePointCoord

add_new_point_coord_with_reference(i_x, i_y, i_z, i_pt)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointCoordWithReference(double iX,
double iY,
double iZ,
Reference iPt) As HybridShapePointCoord

Creates a new point defined its the cartesian coordinates regarding a
reference point.

Parameters:

iX
X coordinate for the point
iY
Y coordinate for the point
iZ
Z coordinate for the point
iPt
Reference point.
Sub-element(s) supported (see

Boundary object): see Vertex.
oPoint
Created point
Parameters
  • i_x (float) –

  • i_y (float) –

  • i_z (float) –

  • i_pt (Reference) –

Returns

HybridShapePointCoord

add_new_point_coords(coord_list)

coord_list must be a list of iterables of length 3.

Example: coord_list = [[0, 0, 1], [0, 1, 0]]

Parameters

coord_list (list()) –

Returns

list[HybridShapePointCoord]

add_new_point_datum(i_object)

Note

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

Creates a new datum of point within the current body.

Parameters:

iObject
The object whose topological body will be duplicated and put into
created datum
oPoint
Created datum Note2: the object passed as parameter to create the
datum has to be in the current container. Otherwise, an error
occurs.
Parameters

i_object (Reference) –

Returns

HybridShapePointExplicit

add_new_point_on_curve_along_direction(i_crv, i_long, i_orientation, i_direction)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointOnCurveAlongDirection(Reference iCrv,
double iLong,
boolean iOrientation,
HybridShapeDirection iDirection) As HybridShapePointOnCurve

Creates a new point on a curve with a deafult origin point and from a
distance along direction.

Parameters:

iCrv
support curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iLong
distance to default origin point.(origin of acurrent axis system)

iOrientation
Orientation = TRUE means that distance is measured in the other orientation of the curve.
iDirection
Direction = The distance at which point is created is measured in this direction.
oPoint
Created point
Parameters
Returns

HybridShapePointOnCurve

add_new_point_on_curve_from_distance(i_crv, i_long, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointOnCurveFromDistance(Reference iCrv,
double iLong,
boolean iOrientation) As HybridShapePointOnCurve

Creates a new point on a curve from a distance to an extremity within the
current body.

Parameters:

iCrv
support curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iLong
distance to extremity
iOrientation
Orientation = TRUE means that distance is measured in the other orientation of the curve and
from the other extremity.
oPoint
Created point
Parameters
  • i_crv (Reference) –

  • i_long (float) –

  • i_orientation (bool) –

Returns

HybridShapePointOnCurve

add_new_point_on_curve_from_percent(i_crv, i_long, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointOnCurveFromPercent(Reference iCrv,
double iLong,
boolean iOrientation) As HybridShapePointOnCurve

Creates a new point on a curve from a ratio of distance to an extremity
within the current body.

Parameters:

iCrv
support curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iLong
Ratio of curve length
iOrientation
Orientation = TRUE means that ratio is measured in the other orientation of the curve and
from the other extremity.
oPoint
Created point
Parameters
  • i_crv (Reference) –

  • i_long (float) –

  • i_orientation (bool) –

Returns

HybridShapePointOnCurve

add_new_point_on_curve_with_reference_along_direction(i_crv, i_pt, i_long, i_orientation, i_direction)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointOnCurveWithReferenceAlongDirection(Reference
iCrv,
Reference iPt,
double iLong,
boolean iOrientation,
HybridShapeDirection iDirection) As HybridShapePointOnCurve

Creates a new point on a curve with a reference point and from a distance
along direction.

Parameters:

iCrv
support curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iPt
reference point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iLong
distance (length) to reference point
iOrientation
Orientation = TRUE means that distance is measured in the other orientation of the curve
iDirection
Direction = The distance at which point is created is measured in this direction.
oPoint
Created point
Parameters
Returns

HybridShapePointOnCurve

add_new_point_on_curve_with_reference_from_distance(i_crv, i_pt, i_long, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointOnCurveWithReferenceFromDistance(Reference
iCrv,
Reference iPt,
double iLong,
boolean iOrientation) As HybridShapePointOnCurve

Creates a new point on a curve with a reference point and from a distance
within the current body.

Parameters:

iCrv
support curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iPt
reference point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iLong
distance (length) to reference point
iOrientation
Orientation = TRUE means that distance is measured in the other orientation of the curve
oPoint
Created point
Parameters
Returns

HybridShapePointOnCurve

add_new_point_on_curve_with_reference_from_percent(i_crv, i_pt, i_long, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointOnCurveWithReferenceFromPercent(Reference
iCrv,
Reference iPt,
double iLong,
boolean iOrientation) As HybridShapePointOnCurve

Creates a new point on a curve with a reference point and from a ratio of
distance within the current body.

Parameters:

iCrv
Support curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iPt
reference point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iLong
Ratio of curve length
iOrientation
Orientation = TRUE means that ratio is measured in the other orientation of the curve
oPoint
Created point
Parameters
Returns

HybridShapePointOnCurve

add_new_point_on_plane(i_plane, i_x, i_y)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointOnPlane(Reference iPlane,
double iX,
double iY) As HybridShapePointOnPlane

Creates a new point on a plane within the current body.

Parameters:

iPlane
Support plane

Sub-element(s) supported (see

Boundary object): see PlanarFace.
iX
X cartesian coordinates in the plane.
iY
Y cartesian coordinates in the plane.
oPoint
Created point
Parameters
  • i_plane (Reference) –

  • i_x (float) –

  • i_y (float) –

Returns

HybridShapePointOnPlane

add_new_point_on_plane_with_reference(i_plane, i_pt, i_x, i_y)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointOnPlaneWithReference(Reference iPlane,
Reference iPt,
double iX,
double iY) As HybridShapePointOnPlane

Creates a new point on a plane with a reference point within the current
body.

Parameters:

iPlane
Support plane

Sub-element(s) supported (see

Boundary object): see PlanarFace.
iPt
Reference plane

Sub-element(s) supported (see Boundary object): see
Vertex.
iX
X cartesian coordinates in the plane.
iY
Y cartesian coordinates in the plane.
oPoint
Created point
Parameters
Returns

HybridShapePointOnPlane

add_new_point_on_surface(i_surface, i_direction, i_x)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointOnSurface(Reference iSurface,
HybridShapeDirection iDirection,
double iX) As HybridShapePointOnSurface

Creates a new point on a surface within the current body.

Parameters:

iSurface
Support surface.
Sub-element(s) supported (see

Boundary object): see Face.
iDirection
Direction from the reference point in which the point is computed.

iX
geodesic length to reference point
oPoint
Created point
Parameters
Returns

HybridShapePointOnSurface

add_new_point_on_surface_with_reference(i_surface, i_pt, i_direction, i_x)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointOnSurfaceWithReference(Reference iSurface,
Reference iPt,
HybridShapeDirection iDirection,
double iX) As HybridShapePointOnSurface

Creates a new point on a surface with a reference point within the current
body.

Parameters:

iSurface
Support surface.
Sub-element(s) supported (see

Boundary object): see Face.
iPt
reference point.
Sub-element(s) supported (see Boundary object): see
Vertex.
iDirection
Direction from the reference point in which the point is computed.

iX
geodesic length to reference point
oPoint
Created point
Parameters
Returns

HybridShapePointOnSurface

add_new_point_tangent(i_curve, i_direction)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPointTangent(Reference iCurve,
HybridShapeDirection iDirection) As HybridShapePointTangent

Creates a new tangent to curve point within the current
body.

Parameters:

iCurve
Reference curve.
Sub-element(s) supported (see

Boundary object): see Edge.
iDirection
Direction in which tangent points are computed
oPoint
Created point
Parameters
Returns

HybridShapePointTangent

add_new_polyline()

Note

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

Creates a new Polyline within the current body.

Parameters:

oPolyline
The Polyline object if succeded
Returns

HybridShapePolyline

add_new_position_transfo(i_mode)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewPositionTransfo(long iMode) As
HybridShapePositionTransfo

Creates a new PositionTransfo within the current body.

Parameters:

iMode
Positioning mode.
oExt
Created positioning transformation (i.e. positioned wire /
profile).
Parameters

i_mode (int) –

Returns

HybridShapePositionTransfo

add_new_project(i_element, i_support)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewProject(Reference iElement,
Reference iSupport) As HybridShapeProject

Creates a new Project within the current body.

Parameters:

iElement
Element to project (point, curve).
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge, BiDimFeatEdge and Vertex.

iSupport
Curve or surface support for projection.
Sub-element(s) supported (see Boundary object): see Face,
TriDimFeatEdge and BiDimFeatEdge.
oProjection
Created projection
Parameters
Returns

HybridShapeProject

add_new_reflect_line(i_support, i_dir, i_angle, i_orientation_support, i_orientation_direction)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewReflectLine(Reference iSupport,
HybridShapeDirection iDir,
double iAngle,
long iOrientationSupport,
long iOrientationDirection) As HybridShapeReflectLine

Deprecated:
V5R17 CATIAHybridShapeFactory#AddNewReflectLineWithType Creates a new
ReflectLine within the current body.
Create a reflectline curve on a support surface along a direction with
an angle.
Parameters:

iSupport
Support surface.
Sub-element(s) supported (see

Boundary object): see Face.
iAngle
Angle of the reflectline.
iOrientationSupport
Manage the angle used to compute the reflectline. Value can be 1 or -1

iOrientationDirection
Manage the angle used to compute the reflectline. Value can be 1 or -1

oReflectLine
Created reflectline.
Parameters
  • i_support (Reference) –

  • i_dir (HybridShapeDirection) –

  • i_angle (float) –

  • i_orientation_support (int) –

  • i_orientation_direction (int) –

Returns

HybridShapeReflectLine

add_new_reflect_line_with_type(i_support, i_dir, i_angle, i_orientation_support, i_orientation_direction, i_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewReflectLineWithType(Reference iSupport,
HybridShapeDirection iDir,
double iAngle,
long iOrientationSupport,
long iOrientationDirection,
long iType) As HybridShapeReflectLine

Creates a new ReflectLine within the current body.
Create a reflectline curve on a support surface along a direction with an
angle.

Parameters:

iSupport
Support surface.
iAngle
Angle of the reflectline.
iOrientationSupport
Manage the angle used to compute the reflectline. Value can be 1 or
-1
iOrientationDirection
Manage the angle used to compute the reflectline. Value can be 1 or
-1
iType
Manage the type used to compute the reflectline. Value can be 0 or
1 Returns or sets whether the reflectline curve is or should be created with
the normal to the support or the tangent plane to the
support.
Role: The TypeSolution indicates whether the created reflectline
curve is compute with the angle between the normale to the support and the
direction or with the angle between the tangent plane to the support and the
direction..
Legal values: 0 for the normal and 1 for the tangent plane.

oReflectLine
Created reflectline.
Parameters
  • i_support (Reference) –

  • i_dir (HybridShapeDirection) –

  • i_angle (float) –

  • i_orientation_support (int) –

  • i_orientation_direction (int) –

  • i_type (int) –

Returns

HybridShapeReflectLine

add_new_revol(i_object_to_extrude, i_offset_debut, i_offset_fin, i_axis)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewRevol(Reference iObjectToExtrude,
double iOffsetDebut,
double iOffsetFin,
Reference iAxis) As HybridShapeRevol

Creates a new revolution within the current body.

Parameters:

iObjectToExtrude
Profile to be revolved

Sub-element(s) supported (see

Boundary object): see Face, TriDimFeatEdge, BiDimFeatEdge and Vertex.

iOffsetDebut
Angle value
iOffsetFin
Angle value
iAxis
Revolution axis ( line that has to be in the profil
plane

Sub-element(s) supported (see Boundary object): see
RectilinearTriDimFeatEdge, RectilinearBiDimFeatEdge and
RectilinearMonoDimFeatEdge.
oRevolObject
Revolved result
Parameters
  • i_object_to_extrude (Reference) –

  • i_offset_debut (float) –

  • i_offset_fin (float) –

  • i_axis (Reference) –

Returns

HybridShapeRevol

add_new_rotate(i_to_rotate, i_axis, i_angle)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewRotate(Reference iToRotate,
Reference iAxis,
double iAngle) As HybridShapeRotate

Creates a new Rotate within the current body.

Parameters:

iToRotate
point, curve, surface or solid to transform.
Sub-element(s) supported (see

Boundary object): see Face, TriDimFeatEdge, BiDimFeatEdge and Vertex.

iAxis
Rotation axis.
Sub-element(s) supported (see Boundary object): see
Edge.
iAngle
Rotation angle.
oRotate
Created rotation.
Parameters
Returns

HybridShapeRotate

add_new_section()

Note

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

Creates a new section.

Parameters:

oSection
Created Section
Returns

HybridShapeSection

add_new_sphere(i_center, i_axis, i_radius, i_begin_parallel_angle, i_end_parallel_angle, i_begin_meridian_angle, i_end_meridian_angle)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewSphere(Reference iCenter,
Reference iAxis,
double iRadius,
double iBeginParallelAngle,
double iEndParallelAngle,
double iBeginMeridianAngle,
double iEndMeridianAngle) As HybridShapeSphere

Creates a new Sphere within the current body.

Parameters:

iCenter
Sphere center.
Sub-element(s) supported (see

Boundary object): see Vertex.
iAxis
Sphere axis
iRadius
Radius
iBeginParallelAngle
Angle value
iEndParallelAngle
Angle value
iBeginMeridianAngle
Angle value
iEndMeridianAngle
Angle value
oSphereObject
Sphere result
Parameters
  • i_center (Reference) –

  • i_axis (Reference) –

  • i_radius (float) –

  • i_begin_parallel_angle (float) –

  • i_end_parallel_angle (float) –

  • i_begin_meridian_angle (float) –

  • i_end_meridian_angle (float) –

Returns

HybridShapeSphere

add_new_spine()

Note

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

Creates a new spine within the current body.

Parameters:

oExt
CATIAHybridShapeSpine created
Returns

HybridShapeSpine

add_new_spiral(i_type, i_support, i_center_point, i_axis, i_starting_radius, i_clockwise_revolution)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewSpiral(long iType,
Reference iSupport,
Reference iCenterPoint,
HybridShapeDirection iAxis,
double iStartingRadius,
boolean iClockwiseRevolution) As HybridShapeSpiral

Creates a new Spiral within the current body.

Parameters:

iType
Spiral is defined by AngleRadius, AnglePitch or PitchRadius.

iSupport
Spiral planar support.
iCenterPoint
Center point.
iAxis
Axis.
iStartingRadius
Defines the starting point: distance from the center point on the
axis.
iClockwiseRevolution
Revolutions are clockwise if TRUE, counterclockwise if FALSE.

oSpiral
The Spiral object if succeded
Parameters
Returns

HybridShapeSpiral

add_new_spline()

Note

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

Creates a new Spline within the current body.

Parameters:

oSpline
Created spline.
Returns

HybridShapeSpline

add_new_surface_datum(i_object)

Note

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

Creates a new datum of surface within the current body.

Parameters:

iObject
The object whose topological body will be duplicated and put into
created datum
oSurface
Created surface Note2: the object passed as parameter to create the
datum has to be in the current container. Otherwise, an error
occurs.
Parameters

i_object (Reference) –

Returns

HybridShapeSurfaceExplicit

add_new_sweep_circle(i_guide1)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewSweepCircle(Reference iGuide1) As
HybridShapeSweepCircle

Creates a new SweepCircle within the current body.

Parameters:

iGuide1
First guide or center curve.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

oExt
Created swept surface.
Parameters

i_guide1 (Reference) –

Returns

HybridShapeSweepCircle

add_new_sweep_conic(ip_ia_guide1)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewSweepConic(Reference ipIAGuide1) As
HybridShapeSweepConic

Creates a new SweepConic within the current body.

Parameters:

iGuide1
First guide curve.
opIASweepConic
Created swept surface.
Parameters

ip_ia_guide1 (Reference) –

Returns

HybridShapeSweepConic

add_new_sweep_explicit(i_profile, i_guide)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewSweepExplicit(Reference iProfile,
Reference iGuide) As HybridShapeSweepExplicit

Creates a new SweepExplicit within the current body.

Parameters:

iProfile
Profile.
Sub-element(s) supported (see

Boundary object): see TriDimFeatEdge and BiDimFeatEdge.

iGuide
First guide curve.
Sub-element(s) supported (see Boundary object): see TriDimFeatEdge and
BiDimFeatEdge.
oExt
Created swept surface.
Parameters
Returns

HybridShapeSweepExplicit

add_new_sweep_line(i_guide1)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewSweepLine(Reference iGuide1) As
HybridShapeSweepLine

Creates a new SweepLine within the current body.

Parameters:

iGuide1
First guide curve.
oExt
Created swept surface.
Parameters

i_guide1 (Reference) –

Returns

HybridShapeSweepLine

add_new_symmetry(i_object, i_reference)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewSymmetry(Reference iObject,
Reference iReference) As HybridShapeSymmetry

Creates a new Symmetry within the current body.

Parameters:

iObject
Point, curve, surface or solid to transform.
Sub-element(s) supported (see

Boundary object): see Face, TriDimFeatEdge, BiDimFeatEdge and Vertex.

iReference
Point, line or reference plane.
Sub-element(s) supported (see Boundary object): see PlanarFace, Edge
and Vertex.
oSymmetry
Created symmetry.
Parameters
Returns

HybridShapeSymmetry

add_new_transfer(i_element_to_transfer, i_type_of_transfer)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewTransfer(Reference iElementToTransfer,
long iTypeOfTransfer) As HybridShapeTransfer

Creates a new Transfer within the current body.
Note: require DL1 license.

Parameters:

iElementToTransfer
The element to transfer
iTypeOfTransfer
The type of transfer
oExt
Created Transfer operation.
Parameters
  • i_element_to_transfer (Reference) –

  • i_type_of_transfer (int) –

Returns

HybridShapeTransfer

add_new_translate(i_element, i_direction, i_distance)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewTranslate(Reference iElement,
HybridShapeDirection iDirection,
double iDistance) As HybridShapeTranslate

Creates a new Translate within the current body.

Parameters:

iElement
Point, curve, surface or solid to translate.
iDirection
Translation direction.
iDistance
Translation Distance.
oTranslate
Created translation
oTranslate
Created Translate (Empty feature)
Note: Then translate mode and inputs has to be initialized


See also:
HybridShapeTranslate
Parameters
Returns

HybridShapeTranslate

add_new_unfold()

Note

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

Creates a new Unfold within the current body.
Note: require DL1 license.

Parameters:

oExt
Created unfold operation.
Returns

HybridShapeUnfold

add_new_volume_datum(i_object)

Note

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

Creates a new datum of volume within the current body.
Note: requires GSO License

Parameters:

iObject
The object whose topological body will be duplicated and put into
created datum
oVolume
Created Volume Note2: the object passed as parameter to create the
datum has to be in the current container. Otherwise, an error
occurs.
Parameters

i_object (Reference) –

Returns

HybridShapeVolumeExplicit

add_new_wrap_curve()

Note

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

Creates a new Wrap Curve Surface within the current body.
Note: require GSO license.

Parameters:

oWrapCurve
The Wrap Curve object if succeded
Returns

HybridShapeWrapCurve

add_new_wrap_surface(i_body_to_deform)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func AddNewWrapSurface(Reference iBodyToDeform) As
HybridShapeWrapSurface

Creates a new Wrap Surface within the current body.
Note: require GSO license.

Parameters:

:
iBodyToDeform Body to deform with a Wrap Surface
oWrapSurface
The Wrap Surface object if succeded
Parameters

i_body_to_deform (Reference) –

Returns

HybridShapeWrapSurface

change_feature_name(i_elem, name)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ChangeFeatureName(Reference iElem,
CATBSTR Name)

Set display name for Shape Design Features.

Parameters:

iElem
Element to rename
Name
User name
Parameters
Returns

None

delete_object_for_datum(i_object)

Note

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

Deletes an object within the current body.

Parameters:

iObject
Object to delete
Parameters

i_object (Reference) –

Returns

None

get_geometrical_feature_type(i_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetGeometricalFeatureType(Reference iElem) As short

Returns type of “geometrical” shape Design feature .

Parameters:

iElem
Reference element
oType
Type of feature
= 0 , Unknown
= 1 , Point
= 2 , Curve
= 3 , Line
= 4 , Circle
= 5 , Surface
= 6 , Plane
= 7 , Solid, Volume
Level of availability = V5R14
Parameters

i_elem (Reference) –

Returns

enum

gsm_visibility(i_elem, show)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GSMVisibility(Reference iElem,
long Show)

Set Visibility attribut for Shape Design Features.

Parameters:

iElem
Element to show/NoShow
Show
= 0 NoShow , 1= Show
Parameters
Returns

None

hybrid_shape_fill

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.hybrid_shape_interfaces.hybrid_shape_fill.HybridShapeFill(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
HybridShapeFill

The Fill feature : an Fill is made up of a face to process and one Fill parameter.
add_bound(i_boundary)

Note

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

Adds an boundary to the hybrid shape fill feature object.

Parameters:

iBoundary
The boundary(curve) to be added to the hybrid shape fill feature
object.

Example:
The following example adds the iBoundary curve to the Fill
object.

Fill.AddBound iBoundary
Parameters

i_boundary (Reference) –

Returns

None

add_support_at_bound(i_boundary, i_support)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddSupportAtBound(Reference iBoundary,
Reference iSupport)

Inserts the support at specified boundary in the Fill.

Parameters:

iBoundary
Reference of the boundary object to which support has to be added.

iSupport
Reference of the support object to be added.

Example:
This example adds supports in the Fill feature Fill to
specified iBoundary boundary

Fill.AddSupportAtBound iBoundary,iSupport
Parameters
Returns

None

property advanced_tolerant_mode

Note

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

Returns or sets the tolerant mode taken into account during fill
construction.
Legal values:

0
Unknown tolerant mode.
1
None tolerant mode. Error thrown if maximum deviation exceeds CATIA
resolution.
2
Automatic tolerant mode. Error thrown if maximum deviation exceeds 100
times CATIA resolution.
3
Manual tolerant mode. Error thrown if maximum deviation exceeds input
user deviation.

Example:
This example retrieves in oMode the tolerant mode for the Fill hybrid
shape feature.

Dim oMode
Set oMode = Fill.AdvancedTolerantMode
Returns

int

append_constraint(i_constraint)

Note

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

Appends an constraint to the hybrid shape fill feature object. ========
ONLY USE IN FSS ==============

Parameters:

iConstraint
The constraint to be appended.

Example:
The following example appends the iConstraint constraint to the Fill
object.

Fill.AppendConstraint iConstraint
Parameters

i_constraint (Reference) –

Returns

None

property constraint

Note

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

Returns or sets the passing point for the Fill.

Example:
This example retrieves in Element the passing point for the Fill hybrid
shape feature.

Dim Element As Reference
Set Element = Fill.Constraint
Returns

Reference

property continuity

Note

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

Returns or sets the continuity between the support and
fill.
Legal values:

0
Continuity in point (C0)
1
Continuity in tangency (C1)
2
Continuity in curvature (C2)

Example:
This example retrieves in oContinuity the continuity type for the Fill
hybrid shape feature.

Dim oContinuity
Set oContinuity = Fill.Continuity
Returns

int

property detection

Note

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

Returns or sets the Canonical portion detection option.
Legal values:

0
No detection of canonical surface
2
Detection of canonical surfaces
Returns

enum

get_bound_at_position(i_pos)

Note

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

Retrieves the boundary at specified position in the hybrid shape fill
feature object.

Parameters:

iPos
The position of the boundary to retrieve.

Example:
The following example gets the oBoundary boundary of the Fill object at
the position iPos.

Dim oBoundary As Reference
Set oBoundary = Fill.GetBoundAtPosition (iPos).
Parameters

i_pos (int) –

Returns

Reference

get_bound_position(i_boundary)

Note

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

Retrieves the position of a boundary used by the hybrid shape fill feature
object.

Parameters:

iBoundary
The boundary whose position has to be retrieved.

Example:
The following example gets the oPos position of the iBoundary boundary
in the Fill object.

Dim oPos As long
oPos = Fill.GetBoundPosition (iBoundary).
Parameters

i_boundary (Reference) –

Returns

int

get_bound_size()

Note

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

Returns the number of boundaries in the Fill object.

Parameters:

oSize
Number of boundaries in the Fill.

Example:
This example retrieves the number of boundaries in the Fill
hybrid shape fill.

Dim oSize As long
oSize = Fill.GetBoundSize
Returns

int

get_boundary_continuity(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetBoundaryContinuity(long iPos) As long

Returns the continuity mode for a boundary at specified position in the
Fill.

Parameters:

iPos
Position at which the continuity should be retrieved.

oContinuity
Continuity retrieved between the support and the
fill.
Legal values:

0
Continuity in point (C0)
1
Continuity in tangency (C1)
2
Continuity in curvature (C2)

Example:
This example retrieves in oContinuity the continuity at the specified
position of Fill hybrid shape fill feature.

oContinuity = Fill.GetBoundaryContinuity iPos
Parameters

i_pos (int) –

Returns

int

get_constraint_at_position(i_pos)

Note

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

Retrieves the constraint at specified position in the hybrid shape fill
feature object. ======== ONLY USE IN FSS ==============

Parameters:

iPos
The position of the constraint to retrieve.

Example:
The following example gets the oConstraint constraint of the Fill
object at the position iPos.

Dim oConstraint As Reference
Set oConstraint = Fill.GetConstraintAtPosition (iPos).
Parameters

i_pos (int) –

Returns

Reference

get_constraints_size()

Note

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

Returns the number of constraints in the Fill object.

Parameters:

oSize
Number of constraints in the Fill.

Example:
This example retrieves the number of constraints in the Fill
hybrid shape fill.

Dim oSize As long
oSize = Fill.GetConstraintsSize
Returns

int

get_support_at_position(i_pos)

Note

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

Retrieves the support at specified position in the hybrid shape fill
feature object.

Parameters:

iPos
The position of the support to retrieve.

Example:
The following example gets the oSupport support of the Fill object at
the position iPos.

Dim oSupport As Reference
Set oSupport = Fill.GetSupportAtPosition (iPos).
Parameters

i_pos (int) –

Returns

Reference

insert_bound_after_position(i_boundary, i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InsertBoundAfterPosition(Reference iBoundary,
long iPos)

Inserts the boundary after specified position in the Fill.

Parameters:

iBoundary
Reference of the boundary object to be inserted.
iPos
Position after which the element should be
inserted.

Example:
This example inserts the boundary in the Fill feature Fill
after position iPos

Fill.InsertBoundAfterPosition iBoundary,iPos
Parameters
Returns

None

property maximum_deviation_value

Note

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

Sets or Gets the maximum deviation allowed for smoothing operation in fill
commnd. This value must be set in SI unit (m).

Example: This example retrieves in DeviationValue the maximum deviation
value for the Fill hybrid shape feature.

Dim DeviationValue As double
Set DeviationValue = Fill.MaximumDeviationValue
Returns

float

property plane_only_mode

Note

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

Returns or sets whether Planar Boundaries only should be considered during
fill operation.
Legal values:

TRUE
Planar boundaries are only considered during Fill
operation
FALSE
Non-Planar boundaries are also considered during Fill
operation
Returns

bool

remove_all_bound()

Note

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

Removes all boundaries of the hybrid shape fill feature object.


Example:
The following example removes all boundaries of the Fill
object.

Fill.RemoveAllBound
Returns

None

remove_all_constraints()

Note

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

Removes all constraints.
Returns

None

remove_bound_at_position(i_pos)

Note

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

Removes boundary at specified position in hybrid shape fill feature
object.

Parameters:

iPos
The position of the boundary to remove.

Example:
The following example removes the boundary object from the Fill object
at the position iPos.

Fill.RemoveBoundAtPosition iPos.
Parameters

i_pos (int) –

Returns

None

remove_constraint(i_pos)

Note

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

Removes constraint at specified position in hybrid shape fill feature
object. ======== ONLY USE IN FSS ==============

Parameters:

iPos
The position of the constraint to remove.

Example:
The following example removes the constraint object from the Fill
object at the position iPos.

Fill.RemoveConstraint iPos.
Parameters

i_pos (int) –

Returns

None

remove_support_at_position(i_pos)

Note

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

Removes support at specified position in hybrid shape fill feature
object.

Parameters:

iPos
The position of the support to remove.

Example:
The following example removes the support object from the Fill object
at the position iPos.

Fill.RemoveSupportAtPosition iPos.
Parameters

i_pos (int) –

Returns

None

replace_bound_at_position(i_boundary, i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ReplaceBoundAtPosition(Reference iBoundary,
long iPos)

Replaces the boundary at specified position in the Fill.

Parameters:

iBoundary
Reference of the boundary object to be replaced.
iPos
Position at which the boundary should be replaced.

Example:
This example replaces the boundary in the Fill feature Fill at
specified position iPos

Fill.ReplaceBoundAtPosition iBoundary,iPos
Parameters
Returns

None

replace_constraint(i_pos, i_constraint)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ReplaceConstraint(long iPos,
Reference iConstraint)

Replaces the constraint at specified position in the Fill.

Parameters:

iPos
Position at which the constraint should be replaced.

iConstraint
Reference of the constraint object to be replaced.

Example:
This example replaces the constraint in the Fill feature Fill
at specified position iPos

Fill.ReplaceConstraint iPos,iConstraint
Parameters
  • i_pos (int) –

  • i_constraint (Reference) –

Returns

None

replace_support_at_position(i_support, i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ReplaceSupportAtPosition(Reference iSupport,
long iPos)

Replaces the support at specified position in the Fill.

Parameters:

iSupport
Reference of the support object to be replaced.
iPos
Position at which the support should be replaced.

Example:
This example replaces the support in the Fill feature Fill at
specified position iPos

Fill.ReplaceSupportAtPosition iSupport,iPos
Parameters
Returns

None

set_boundary_continuity(i_continuity, i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetBoundaryContinuity(long iContinuity,
long iPos)

Sets the continuity mode for a boundary at specified position in the
Fill.

Parameters:

iContinuity
Continuity between the support and the fill.
Legal values:

0
Continuity in point (C0)
1
Continuity in tangency (C1)
2
Continuity in curvature (C2)

iPos
Position at which the continuity should be set.

Example:
This example sets the continuity in the Fill feature Fill at
specified position iPos

Fill.SetBoundaryContinuity iContinuity,iPos
Parameters
  • i_continuity (int) –

  • i_pos (int) –

Returns

None

property tolerant_mode

Note

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

Deprecated:
V5R26 Use HybridShapeFill.AdvancedTolerantMode Returns or sets the Tolerant mode option.
Role: To activate or not the tolerant mode option TRUE : Tolerant mode is active. Uses
deviation parameter to do tolerant fill. FALSE : Tolerant mode is not active.

Example: This example retrieves in tolMode the tolerant mode for the
Fill hybrid shape feature.

Dim tolMode As boolean
Set tolMode = Fill.TolerantMode
Returns

bool

hybrid_shape_fillet_bi_tangent

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.hybrid_shape_interfaces.hybrid_shape_fillet_bi_tangent.HybridShapeFilletBiTangent(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
HybridShapeFilletBiTangent

Fillet Bi-Tangent feature.
Role: Manipulation of Fillet Bi-Tangent feature Allows to access data of the
Fillet Bi-Tangent feature created by using two support surfaces, their
orientation, a radius, and options (supports trimming and fillet extremities
type)

See also:
HybridShapeFactory
append_new_face_to_keep(i_face)

Note

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

Append a new face to keep.

Parameters:

iFace
Parameters

i_face (Reference) –

Returns

None

property conical_section_parameter

Note

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

Returns or Sets parameter for conical section.
Returns

float

property first_elem

Note

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

Returns or Sets the first support surface feature.
Returns

Reference

property first_law_relimiter

Note

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

Gets or sets Law first relimiter for variable shape fillet with law
management.
Relimiters must be point on spine.
The input law will be mapped between first and second relimiters. This
example retrieves in HybLaw the first law relimiter for the Fillet hybrid shape
feature.

Dim HybLaw As Reference
HybLaw = Fillet.FirstLawRelimiter
Returns

Reference

property first_orientation

Note

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

Returns or Setsthe first orientation used to specify fillet center
position.
Orientation is same or inverse than the normal to the first surface support
Returns

int

get_face_to_keep(i_pos)

Note

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

Gets the face to keep for fillet operation.

Parameters:

oFace
The face to keep for fillet operation.
iPos
Position of the face to be retrieved.
Parameters

i_pos (int) –

Returns

Reference

property hold_curve

Note

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

Returns or Sets the Hold Curve feature.
Returns

Reference

property integrated_law

Note

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

Gets or sets Integrated Law to manage Variable Shape Fillet with
law.

Parameters:

oILaw
Integrated law This example retrieves in HybridIntegratedLaw the
IntegratedLaw for the Fillet hybrid shape feature.

Dim HybridIntegratedLaw
Set HybridIntegratedLaw = Fillet.IntegratedLaw
Returns

HybridShapeIntegratedLaw

invert_first_orientation()

Note

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

Inverts first orientation used to specify fillet center position.
Returns

None

invert_second_orientation()

Note

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

Inverts second orientation used to specify fillet center position.
Returns

None

property radius

Note

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

Returns fillet radius in a CATIALength.
Returns

Length

property radius_type

Note

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

Returns or Sets fillet radius type.
Fillet radius type :
- CATGSMRadiusDefault (0)
- CATGSMRadiusChordLength(1)
Returns

int

property radius_value

Note

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

Returns or Sets fillet radius value.
Returns

float

remove_all_faces_to_keep()

Note

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

Remove all the faces to keep.
Returns

None

remove_face_to_keep(i_face)

Note

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

Remove a face to keep.

Parameters:

iFace
Parameters

i_face (Reference) –

Returns

None

property ribbon_relimitation_mode

Note

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

Returns or Sets fillet ribbon relimitation mode (or fillet extremities
mode).
Fillet extremities mode :
- CATGSMSmooth (0)
- CATGSMStraight(1)
- CATGSMMaximum (2)
- CATGSMMinimum (3)
Returns

int

property second_elem

Note

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

Returns or sets the Second support surface feature.
Returns

Reference

property second_law_relimiter

Note

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

Gets or sets Law second relimiter for variable shape fillet with law
management.
Relimiters must be point on spine.
The input law will be mapped between first and second relimiters. This
example retrieves in HybLaw the second law relimiter for the Fillet hybrid
shape feature.

Dim HybLaw As Reference
HybLaw = Fillet.SecondLawRelimiter
Returns

Reference

property second_orientation

Note

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

Returns or Sets the Second orientation used to specify fillet center
position.
Orientation is same or inverse than the normal to the Second surface
support
Returns

int

property section_type

Note

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

Returns or Sets fillet section type.
Fillet radius type :
- CATGSMCircularSection(0)
- CATGSMConicalSection (1)
Returns

int

property spine

Note

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

Returns or Sets the spine feature.
Returns

Reference

property supports_trim_mode

Note

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

Returns or Sets whether support surfaces are trimmed or not.
Possible values of SupportsTrimMode = 0 : No trim of fillet supports. = 1 :
Trim of both fillet supports. = 2 : Trim of fillet support 1. = 3 : Trim of fillet support 2.
Returns

int

hybrid_shape_fillet_tri_tangent

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.hybrid_shape_interfaces.hybrid_shape_fillet_tri_tangent.HybridShapeFilletTriTangent(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
HybridShapeFilletTriTangent

Fillet Tri-Tangent feature.
Role: Manipulation of Fillet Tri-Tangent feature Allows to access data of the
Fillet Tri-Tangent feature created by using three support surfaces, their
orientation, and options (supports trimming and fillet extremities
type)

See also:
HybridShapeFactory
property first_elem

Note

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

Returns or sets the first support surface feature.

Example:
This example retrieves in FirstElem the first support element used by
the HybShpFilletTriTangent hybrid shape feature.

Dim FirstElem As Reference
Set FirstElem = HybShpFilletTriTangent.FirstElem
Returns

Reference

property first_orientation

Note

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

Returns or sets the first orientation used to specify fillet center
position.
Note; Orientation is same or inverse than the normal to the first surface
support
Returns

int

invert_first_orientation()

Note

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

Inverts first orientation used to specify fillet center position.
Returns

None

invert_remove_orientation()

Note

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

Inverts third orientation used to specify fillet center position.
Returns

None

invert_second_orientation()

Note

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

Inverts second orientation used to specify fillet center position.
Returns

None

property remove_elem

Note

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

Returns or sets the support surface to remove feature.
Returns

Reference

property remove_orientation

Note

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

Returns or sets the third orientation used to specify fillet center
position.
note: Orientation is same or inverse than the normal to the surface support
to remove
Returns

int

property ribbon_relimitation_mode

Note

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

Returns or sets fillet ribbon relimitation mode (or fillet extremities
mode).
note: Smooth(0) or Straight(1) or Maximum(2) or Minimum(3)
Returns

int

property second_elem

Note

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

Returns or sets the Second support surface feature.

Example:
This example retrieves in SecondElem the Second support element used by
the HybShpFilletTriTangent hybrid shape feature.

Dim SecondElem As Reference
Set SecondElem = HybShpFilletTriTangent.SecondElem


Parameters:

oElem
Second support surface feature.
Returns

Reference

property second_orientation

Note

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

Returns or sets the Second orientation used to specify fillet center
position.
note: Orientation is same or inverse than the normal to the Second surface
support
Returns

int

property supports_trim_mode

Note

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

Returns or sets whether support surfaces are trimmed or
not.
Trim (1) or NoTrim(0)
note: if “Trim” the 2 supports are trimmed and assembled with the fillet
ribbon.
Returns

int

hybrid_shape_healing

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.hybrid_shape_interfaces.hybrid_shape_healing.HybridShapeHealing(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
HybridShapeHealing

Represents the hybrid shape healing feature object.
Role: Allows to access to the body to process for a Healing feature. Use the
CATIAHybridShapeFactory to create HybridShapeFeature object.

See also:
HybridShapeFactory.AddNewHealing
add_body_to_heal(i_body)

Note

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

Adds the body to be healed to the list.

Parameters:

Body
Reference to the body to be added to the list.

Example:
This example adds the body to the list. of the HybShpHealing
hybrid shape healing.

HybShpHealing.AddBodyToHeal refBody
Parameters

i_body (Reference) –

Returns

None

add_edge_to_keep_sharp(i_edge)

Note

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

Adds the edge to be kept sharp while healing, to the list.

Parameters:

Edge
Reference to the Edge to be kept sharp

Example:
This example adds the Edge to the list of Edges to be kept
sharp. of the HybShpHealing hybrid shape
healing.

HybShpHealing.AddEdgeToKeepSharp refEdge
Parameters

i_edge (Reference) –

Returns

None

add_elements_to_freeze(i_element)

Note

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

Adds the body to be freezed while healing, to the list.

Parameters:

Element
Reference to the element to be freezed.

Example:
This example adds the body to the list of bodies to be freezed.
of the HybShpHealing hybrid shape healing.

HybShpHealing.AddElementsToFreeze refElement
Parameters

i_element (Reference) –

Returns

None

property canonic_free_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CanonicFreeMode(long iMode)

Returns or sets the Canonic Free Mode of the healing.

Parameters:

oMode
(For get_CanonicFreeMode) Long parameter for retrieving the
CanonicFreeMode.
iMode
(For set_CanonicFreeMode) Long parameter for settingthe
CanonicFreeMode.

Example:
This example sets and retrieves the CanonicFreeMode of the
healing of the HybShpHealing hybrid shape
healing.

Dim HybShpHealMode As Long
HybShpHealMode = ..set appropriate value
HybShpHealing.CanonicFreeMode = HybShpHealMode
HybShpHealCont = HybShpHealing.CanonicFreeMode
Returns

False

property continuity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Continuity(long iContinuity)

Returns or sets the continuity type of the healing.

Parameters:

Continuity
Parameter for the continuity. Legal values are 0 and
1

Example:
This example sets and retrieves the Continuity of the healing
of the HybShpHealing hybrid shape healing.

Dim HybShpHealCont As Long
HybShpHealCont = ..set appropriate value
HybShpHealing.Continuity = HybShpHealCont
HybShpHealCont = HybShpHealing.Continuity
Returns

False

property distance_objective

Note

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

Returns the Distance Objective of the healing.

Parameters:

DistanceObjective
Length parameter for retrieving the Distance
Objective.

Example:
This example retrieves the DistanceObjective of the healing of
the HybShpHealing hybrid shape healing.

Dim HybShpHealDistObjective As Length
Set HybShpHealDistObjective = HybShpHealing.DistanceObjective
Returns

Length

get_body_to_heal(i_position)

Note

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

Returns the body to be healed from the list at specified
position.

Parameters:

Position
Position at which the body is to be obtained
Body
Reference to the body obtained at specified
position.

Example:
This example gets the body from the list by specifying the
position. of the HybShpHealing hybrid shape
healing.

set refBody = HybShpHealing.GetBodyToHeal 1
Parameters

i_position (int) –

Returns

Reference

get_edge_to_keep_sharp(i_position)

Note

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

Returns the edge to be kept sharp from the list at specified
position.

Parameters:

Position
Position at which the element is to be obtained
Edge
Reference to the element obtained at specified
position.

Example:
This example gets the Edge from the list of Edges to be kept
sharp by specifying the position of the HybShpHealing hybrid shape
healing.

set refEdge = HybShpHealing.GetEdgeToKeepSharp 1
Parameters

i_position (int) –

Returns

Reference

get_element_to_freeze(i_position)

Note

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

Returns the element to be freezed from the list at specified
position.

Parameters:

Position
Position at which the element is to be obtained
Element
Reference to the element obtained at specified
position.

Example:
This example gets the element from the list of bodies to be
freezed by specifying the position of the HybShpHealing hybrid shape
healing.

set refElement = HybShpHealing.GetElementToFreeze 1
Parameters

i_position (int) –

Returns

Reference

property merging_distance

Note

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

Returns the Merging Distance of the healing.

Parameters:

MergingDistance
Length parameter for retrieving the Merging
Distance.

Example:
This example retrieves the MergingDistance of the healing of
the HybShpHealing hybrid shape healing.

Dim HybShpHealMergeDist As Length
Set HybShpHealMergeDist = HybShpHealing.MergingDistance
Returns

Length

property no_of_bodies_to_heal

Note

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

Returns the number of bodies to heal of the healing.

Parameters:

NumberOfbodies
Number of bodies to heal in the healing.

Example:
This example retrieves the number of bodies to heal of the
HybShpHealing hybrid shape Healing.

Dim NoOfBodiesToHeal As long
NoOfBodiesToHeal = HybShpHealing.NoOfBodiesToHeal
Returns

int

property no_of_edges_to_keep_sharp

Note

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

Returns the number of edges to keep sharp of the healing.

Parameters:

NumberOfEdges
Number of edges to keep sharp.

Example:
This example retrieves the number of edges to keep sharp of the
HybShpHealing hybrid shape Healing.

Dim NoOfEdges As long
NoOfEdges = HybShpHealing.NoOfEdgesToKeepSharp
Returns

int

property no_of_elements_to_freeze

Note

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

Returns the number of elements to heal of the healing.

Parameters:

NumberOfElements
Number of elements to freeze in the healing.

Example:
This example retrieves the number of elements to freeze of the
HybShpHealing hybrid shape Healing.

Dim NoOfElementsToFreeze As long
NoOfElementsToFreeze = HybShpHealing.NoOfElementsToFreeze
Returns

int

remove_body_to_heal(i_position)

Note

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

Removes the body to be healed from the list at specified
position.

Parameters:

iPosition
Position at which the body is to be removed

Example:
This example removes the body from the list at specifying the
position. of the HybShpHealing hybrid shape
healing.

HybShpHealing.RemoveBodyToHeal 1
Parameters

i_position (int) –

Returns

None

remove_edge_to_keep_sharp(i_position)

Note

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

Removes the edge from the list of edges to be kept sharp at specified
position.

Parameters:

iPosition
Position at which the edge is to be removed

Example:
This example removes the edge from the list at specified
position. of the HybShpHealing hybrid shape
healing.

HybShpHealing.RemoveEdgeToKeepSharp 1
Parameters

i_position (int) –

Returns

None

remove_element_to_freeze(i_position)

Note

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

Removes the element from the list of elements to be freezed at specified
position.

Parameters:

Position
Position at which the element is to be removed

Example:
This example removes the element from the list at specifying
the position. of the HybShpHealing hybrid shape
healing.

HybShpHealing.RemoveElementToFreeze 1
Parameters

i_position (int) –

Returns

None

replace_to_heal_element(i_index, i_new_heal)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ReplaceToHealElement(long iIndex,
Reference iNewHeal)

Replaces an element to heal.

Parameters:

iIndex
The position of the element to replace.
iNewHeal
The new element.
Parameters
  • i_index (int) –

  • i_new_heal (Reference) –

Returns

None

set_distance_objective(i_distance_objective)

Note

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

Sets the distance objective for healing entity.

Parameters:

DistanceObjective
Parameter containg the value of the distance objective to be
set.

Example:
This example sets the distance objective for the healing of the
HybShpHealing hybrid shape healing.

HybShpHealing.SetDistanceObjective 2.5
Parameters

i_distance_objective (float) –

Returns

None

set_merging_distance(i_merging_distance)

Note

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

Sets the Merging distance for healing entity.

Parameters:

MergingDistance
Parameter containg the value of the merging distance to be
set.

Example:
This example sets the merging distance for the healing of the
HybShpHealing hybrid shape healing.

HybShpHealing.SetMergingDistance 2.5
Parameters

i_merging_distance (float) –

Returns

None

set_sharpness_angle(i_sharpness_angle)

Note

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

Sets the Sharpness Angle for healing entity.

Parameters:

SharpnessAngle
Parameter containg the value of the Sharpness Angle to be
set.

Example:
This example sets the Sharpness Angle for the healing of the
HybShpHealing hybrid shape healing.

HybShpHealing.SetSharpnessAngle 2.5
Parameters

i_sharpness_angle (float) –

Returns

None

set_tangency_angle(i_tangency_angle)

Note

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

Sets the distance objective for healing entity.

Parameters:

TangencyAngle
Parameter containg the value of the Tangency Angle to be
set.

Example:
This example sets the Tangency Angle for the healing of the
HybShpHealing hybrid shape healing.

HybShpHealing.SetTangencyAngle 2.5
Parameters

i_tangency_angle (float) –

Returns

None

set_tangency_objective(i_tangency_objective)

Note

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

Sets the tangency objective for healing entity.

Parameters:

TangencyObjective
Parameter containg the value of the Tangency Objective to be
set.

Example:
This example sets the Tangency Objective for the healing of the
HybShpHealing hybrid shape healing.

HybShpHealing.SetTangencyObjective 2.5
Parameters

i_tangency_objective (float) –

Returns

None

property sharpness_angle

Note

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

Returns the Sharpness Angle of the healing.

Parameters:

SharpnessAngle
Angle parameter for retrieving the Sharpness
Angle.

Example:
This example retrieves the Sharpness Angle of the healing of
the HybShpHealing hybrid shape healing.

Dim HybShpHealSharpnessAngle As Angle
Set HybShpHealSharpnessAngle = HybShpHealing.SharpnessAngle
Returns

Angle

property tangency_angle

Note

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

Returns the Tangency Angle of the healing.

Parameters:

TangencyAngle
Angle parameter for retrieving the TangencyAngle.

Example:
This example retrieves the TangencyAngle of the healing of the
HybShpHealing hybrid shape healing.

Dim HybShpHealTangencyAngle As Angle
Set HybShpHealTangencyAngle = HybShpHealing.TangencyAngle
Returns

Angle

property tangency_objective

Note

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

Returns the Tangency Objective of the healing.

Parameters:

TangencyObjective
Length parameter for retrieving the Tangency
Objective.

Example:
This example retrieves the TangencyObjective of the healing of
the HybShpHealing hybrid shape healing.

Dim HybShpHealTangencyObjective As Length
Set HybShpHealTangencyObjective = HybShpHealing.TangencyObjective
Returns

Length

hybrid_shape_helix

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.hybrid_shape_interfaces.hybrid_shape_helix.HybridShapeHelix(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
HybridShapeHelix

Represents the hybrid shape helix feature object.
Role: Allows to access data of the Helix feature. This data
includes:

axis
a starting point
a pitch
a height
2 angle values

See also:
HybridShapeFactory
property axis

Note

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

Reads / Changes the Helix axis.

Parameters:

Axis
Helix axis.
Sub-element(s) supported (see

Boundary object): CATIARectlinearTriDimFeatEdge or
RectilinearBiDimFeatEdge.
Returns

Reference

property clockwise_revolution

Note

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

Reads / Modifies the sense of revolutions .

Parameters:

Clockwise
FALSE means that revolutions are counter-clockwise. TRUE means that
revolutions are clockwise.
Returns

bool

property height

Note

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

Reads the height of the Helix.

Parameters:

oHeight
Height.
Returns

Length

property invert_axis

Note

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

Reads / Modifies the orientation .

Parameters:

Invert
FALSE means that there is no invertion (natural orientation). TRUE
to invert this orientation.
Returns

bool

property pitch

Note

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

Reads the pitch of the Helix.

Parameters:

oPitch
Pitch.
Returns

Length

property pitch2

Note

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

Reads the Helix pitch2.

Parameters:

Pitch2
Pitch2 for Helix.
Returns

Length

property pitch_law_type

Note

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

Reads / Changes the Helix pitch law type.

Parameters:

LawType
LawType for Helix.
Returns

int

property profile

Note

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

Reads / Changes the Helix profile.

Parameters:

Profile
Profile for Helix.
Returns

Reference

property revol_number

Note

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

Reads the revolution number of the Helix.

Parameters:

oNbRevol
Revolutions.
Returns

RealParam

set_height(i_height)

Note

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

Sets the helix height.

Parameters:

iHeight
Height.
Parameters

i_height (float) –

Returns

None

set_pitch(i_pitch)

Note

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

Sets the helix pitch.

Parameters:

iPitch
Pitch.
Parameters

i_pitch (float) –

Returns

None

set_pitch2(i_pitch2)

Note

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

Changes the Helix pitch2 .

Parameters:

Pitch2
Pitch2 for Helix.
Parameters

i_pitch2 (float) –

Returns

None

set_revolution_number(i_nb_revol)

Note

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

Changes the Revolution Numbers.

Parameters:

NbRevol
Number of revolutions for Helix.
Parameters

i_nb_revol (float) –

Returns

None

set_starting_angle(i_starting_angle)

Note

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

Sets the helix starting angle.

Parameters:

oTaperAngle
Starting angle.
Parameters

i_starting_angle (float) –

Returns

None

set_taper_angle(i_taper_angle)

Note

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

Sets the helix taper angle.

Parameters:

iTaperAngle
Taper angle.
Parameters

i_taper_angle (float) –

Returns

None

property starting_angle

Note

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

Reads the helix starting angle.

Parameters:

oStartingAngle
Starting angle.
Returns

Angle

property starting_point

Note

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

Reads / Changes the starting point of the Helix. The starting point must
not be on the Helix axis.

Parameters:

StartingPoint
Starting point.
Sub-element(s) supported (see

Boundary object): Vertex.
Returns

Reference

property taper_angle

Note

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

Reads the helix taper angle.

Parameters:

oTaperAngle
Taper angle.
Returns

Angle

property taper_outward

Note

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

Reads / Modifies the taper angle sense of variation.

Parameters:

TaperOutward
FALSE means that helix radius decreases. TRUE means that helix
radius increases.
Returns

bool

hybrid_shape_integrated_law

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.hybrid_shape_interfaces.hybrid_shape_integrated_law.HybridShapeIntegratedLaw(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
HybridShapeIntegratedLaw

Represents the hybrid shape “integrated” law feature object.
Role: To access the data of the hybrid shape “integrated” law feature
object.

Use the CATIAHybridShapeFactory to create a HybridShapeIntegratedLaw
object.

See also:
HybridShapeFactory.AddNewIntegratedLaw
property advanced_law

Note

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

Gets or sets the external law.
Note: Used for law type = 4(Advanced)

Parameters:

AdvancedLaw
External Law This example retrieves in ALaw the external law for
the IntegratedLaw hybrid shape feature.

Dim ALaw
Set ALaw = IntegratedLaw.AdvancedLaw
Returns

Reference

append_new_point_and_param(i_point, i_param)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AppendNewPointAndParam(Reference iPoint,
long iParam)

Sets ‘Point on spine’ and associated parameter.
Note: Used for law type = 5(Implicit)

Parameters:

iPoint
Point on spine
iParam
Corresponding parameter
Parameters
Returns

None

property end_param

Note

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

Gets end parameter.
Note: Used for law type = 2(Linear) and 3(SType).

Parameters:

EndParam
Parameter This example retrieves in EParam the end parameter for
the IntegratedLaw hybrid shape feature.

Dim EParam
Set EParam = IntegratedLaw.EndParam
Returns

Length

get_point_and_param(i_pos, o_point, o_param)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetPointAndParam(long iPos,
Reference oPoint,
Reference oParam)

Gets the point on spine and associated parameter at a given
position.
Note: Used for law type = 5(Implicit)

Parameters:

iPos
given position
oPoint
point on spine
oParam
corresponding parameter
Parameters
Returns

None

get_size()

Note

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

Gets the size of the list in the law i.e. number of points in the list of
the law.

Parameters:

oSize
size of the list.
Returns

int

property implicit_law_interpolation_mode

Note

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

Gets or sets Interpolation mode for implicit law.
Note: Used for law type = 5(Implicit)

Parameters:

ImplicitLawInterpolationMode
Implicit law interpolation mode ImplicitLawInterpolationMode = 0 :
CATGSMImplicitLawInterpo_None = 1 : CATGSMImplicitLawInterpo_Linear = 2 :
CATGSMImplicitLawInterpo_Cubic This example retrieves in InterpolLawMode the
Interpolation mode for the IntegratedLaw hybrid shape feature.

Dim InterpolLawMode
Set InterpolLawMode = IntegratedLaw.ImplicitLawInterpolationMode
Returns

int

property invert_mapping_law

Note

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

Gets or sets the mapping orientation of the law.

Parameters:

InvertMappingLaw
False : Law is applied from the beginning to the end of the curve
(mapping is not inverted).
True : Law is applied from the end to the beginning of the curve (mapping is inverted).
This example retrieves in IMappingLaw the mapping orientation of the law for the
IntegratedLaw hybrid shape feature.

Dim IMappingLaw
Set IMappingLaw = IntegratedLaw.InvertMappingLaw
Returns

bool

property pitch_law_type

Note

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

Gets or sets pitch law type.

Parameters:

PitchLawType
Type of law PitchLawType = 0 : None = 1 : Constant = 2 : Linear = 3 : SType = 4 :
Advanced = 5 : Implicit This example retrieves in PLawType the pitch law type for the
IntegratedLaw hybrid shape feature.

Dim PLawType
Set PLawType = IntegratedLaw.PitchLawType
Returns

int

remove_all_points_and_params()

Note

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

Removes all the points and associated parameters.
Note: Used for law type = 5(Implicit)
Returns

None

remove_point_and_param(i_point)

Note

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

Removes a point and its parameter. for law type = 5(Implicit)

Parameters:

iSpecPoint
Point to remove
Parameters

i_point (Reference) –

Returns

None

set_end_param(i_end_param)

Note

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

Sets end parameter.
Note: Used for law type = 2(Linear) and 3(SType).

Parameters:

iEndParam
Parameter
Parameters

i_end_param (int) –

Returns

None

set_start_param(i_start_param)

Note

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

Sets start parameter.
Note: Used for law type = 1(Constant) ,2(Linear) and 3(SType).

Parameters:

iStartParam
Parameter
Parameters

i_start_param (int) –

Returns

None

property spine

Note

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

Gets or sets Spine for implicit law.
Note: Used for law type = 5 (Implicit)

Parameters:

Spine
Spine on which implicit law inputs points are defined This example
retrieves in Spine1 the spine for the IntegratedLaw hybrid shape
feature.

Dim Spine1
Set Spine1 = IntegratedLaw.Spine
Returns

Reference

property start_param

Note

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

Gets start parameter.
Note: Used for law type = 1(Constant) ,2(Linear) and 3(SType)

Parameters:

StartParam
Parameter This example retrieves in SParam the start parameter for
the IntegratedLaw hybrid shape feature.

Dim SParam
Set SParam = IntegratedLaw.StartParam
Returns

Length

hybrid_shape_intersection

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.hybrid_shape_interfaces.hybrid_shape_intersection.HybridShapeIntersection(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
HybridShapeIntersection

Represents the hybrid shape intersection feature object.
Role: To access the data of the hybrid shape intersection object. This data
includes:

The first element to intersect
The second element to intersect

Use the CATIAHybridShapeFactory to create HybridShapeFeature
object.

See also:
HybridShapeFactory
property element1

Note

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

Returns or sets the first element to intersect.
Sub-element(s) supported (see Boundary object): Face, TriDimFeatEdge or
BiDimFeatEdge.

Example:
This example retrieves in FirstElem the first element to intersect for
the Intersection hybrid shape feature.

Dim FirstElem As Reference
Set FirstElem = Intersection.Element1
Returns

Reference

property element2

Note

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

Returns or sets the second element to intersect.
Sub-element(s) supported (see Boundary object): Face, TriDimFeatEdge or
BiDimFeatEdge.

Example:
This example retrieves in SecondElem the second element to intersect
for the Intersection hybrid shape feature.

Dim SecondElem As Reference
Set SecondElem = Intersection.Element2
Returns

Reference

property extend_mode

Note

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

Returns or sets the ExtendMode flag for intersect.

Example:
This example retrieves in ExtendMode the ExtendMode to intersect for
the Intersection hybrid shape feature.

Dim ExtendMode As Reference
Set ExtendMode = Intersection.ExtendMode
ExtendMode is 0 when both “Extend Linear Supposr for intersection” are
unchecked
ExtendMode is 1 when “Extend Linear Supposr for intersection” for
First Element is checked and for Second Element is
unchecked
ExtendMode is 2 when “Extend Linear Supposr for intersection” for
First Element is unchecked and for Second Element is
checked
ExtendMode is 3 when both “Extend Linear Supposr for intersection” are
checked
Returns

int

property extrapolate_mode

Note

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

Returns or sets the ExtrapolateMode flag for intersect.

Example:
This example retrieves in ExtrapolateMode the ExtrapolateMode to
intersect for the Intersection hybrid shape feature.

Dim ExtrapolateMode As Reference
Set ExtrapolateMode = Intersection.ExtrapolateMode
Returns

bool

property intersect_mode

Note

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

Returns or sets the IntersectMode flag for intersect.

Example:
This example retrieves in IntersectMode the IntersectMode to intersect
for the Intersection hybrid shape feature.

Dim IntersectMode As Reference
Set IntersectMode = Intersection.IntersectMode
Returns

bool

property point_type

Note

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

Returns or sets the PointType flag for intersect.

Example:
This example retrieves in PointType the PointType to intersect for the
Intersection hybrid shape feature.

Dim PointType As Reference
Set PointType = Intersection.PointType
Returns

int

property solid_mode

Note

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

Returns or sets the SolidMode flag for intersect.

Example:
This example retrieves in SolidMode the SolidMode to intersect for the
Intersection hybrid shape feature.

Dim SolidMode As Reference
Set SolidMode = Intersection.SolidMode
Returns

bool

hybrid_shape_inverse

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.hybrid_shape_interfaces.hybrid_shape_inverse.HybridShapeInverse(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
HybridShapeInverse

The Inverse feature : an Inverse is made up of a face to process and one Inverse parameter.
property element

Note

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

Role: To get the element inverted.

Parameters:

oElem
Element inverted return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

property orientation

Note

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

Gets or sets the element’s orientation. Orientation = 1 : the element is not inverted. = -1 :
the element is inverted, = 2 : the element can not be inverted. Orientation can not be set to 2.
Returns

int

hybrid_shape_law_dist_proj

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.hybrid_shape_interfaces.hybrid_shape_law_dist_proj.HybridShapeLawDistProj(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
HybridShapeLawDistProj

Interface to law feature.
Role: Allows you to access data of a law feature created by using a reference
line and a definition curve.

See also:
HybridShapeFactory
property applied_unit_symbol

Note

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

Returns or sets the applied unit symbol for heterogeneous law.
Returns

False

property definition

Note

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

Returns or sets the definition curve of the law.
Sub-element(s) supported (see Boundary object): see TriDimFeatEdge or
BiDimFeatEdge.
Returns

Reference

get_applied_unit_symbol(o_symbol)

Note

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

Returns the applied unit symbol.

Parameters:

oSymbol
The symbol of applied unit

Example:
This example retrieves in oSymbol the applied unit symbol of the
hybridShapeLawDist hybrid shape law feature.

Dim oSymbol
hybridShapeLawDist.GetAppliedUnitSymboloSymbol
Parameters

o_symbol (str) –

Returns

None

get_measure_unit_symbol(o_symbol)

Note

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

Returns the measure unit symbol.

Parameters:

oSymbol
The symbol of measure unit

Example:
This example retrieves in oSymbol the measure unit symbol of the
hybridShapeLawDist hybrid shape law feature.

Dim oSymbol
hybridShapeLawDist.GetMeasureUnitSymboloSymbol
Parameters

o_symbol (str) –

Returns

None

get_plane_normal(o_normal)

Note

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

Retrieves the support plane normal.

Parameters:

oNormal
The support plane normal
Parameters

o_normal (tuple) –

Returns

None

is_heterogeneous_law()

Note

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

Queries whether Heterogeneous Law mode is active or not.

Parameters:

oHeterogeneousLaw
heterogeneous law mode = TRUE : Heterogeneous Law mode is active. = FALSE :
Heterogeneous Law mode is inactive.
Returns

bool

property measure_unit_symbol

Note

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

Returns or sets the measure unit symbol for heterogeneous law.
Returns

False

property parameter_on_definition

Note

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

Queries whether evolution parameter is on reference curve (default) or on definition curve,or
sets evolution parameter on reference curve or on definition curve. Possible values of
ParameterOnDefinition = TRUE : Parameter on definition curve. = FALSE : Parameter on
reference curve.

Example:
This example retrieves in ParOnDef the ParameterOnDefinition status of the
hybridShapeLawDist hybrid shape law feature.

Dim ParOnDef As boolean
ParOnDef = hybridShapeLawDist.ParameterOnDefinition
Returns

bool

property positive_direction_orientation

Note

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

Returns or sets the positive value direction.
Returns

int

put_plane_normal(i_normal)

Note

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

Sets the support plane normal.

Parameters:

iNormal
The support plane normal
Parameters

i_normal (tuple) –

Returns

None

property reference

Note

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

Returns or sets the reference line of the law.
Sub-element(s) supported (see Boundary object): see
RectilinearTriDimFeatEdge or RectilinearBiDimFeatEdge.
Returns

Reference

property scaling

Note

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

Returns or sets the scaling ratio of the law.
Returns

float

hybrid_shape_line_angle

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.hybrid_shape_interfaces.hybrid_shape_line_angle.HybridShapeLineAngle(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
CATGSMIDLItf.Line
HybridShapeLineAngle

Line defined from a reference curve, a plane or a surface, a point and an
angle.
Role: Allows to access data of the the line feature created with an angle to a
curve.
property angle

Note

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

Role: Get the angle to the reference curve of the line.

Parameters:

oAngle
angle
Returns

Angle

property begin_offset

Note

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

Role: Get the start length of the line.

Parameters:

oStart
start length
Returns

Length

property curve

Note

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

Role: Get the reference curve.

Parameters:

oCurve
reference curve.
Returns

Reference

property end_offset

Note

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

Role: Get the end length of the line.

Parameters:

oEnd
end length
Returns

Length

property geodesic

Note

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

Role: Get geodesic mode. If geodesic, the line lies on the support surface,
otherwise the surface is only used to compute the line
direction.

Parameters:

oGeod
Geodesic boolean
Returns

bool

get_length_type()

Note

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

Gets the length type Default is 0.

Parameters:

oType
The length type = 0 : length - the line is limited by its extremities = 1 :
infinite - the line is infinite = 2 : infinite start point - the line is infinite on the
side of the start point = 3 : infinite end point - the line is infinite on the side of
the end point
Returns

int

get_symmetrical_extension()

Note

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

Gets whether the symmetrical extension of the line is
active.

Parameters:

oSym
Symmetry flag
Returns

bool

property orientation

Note

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

Role: Get the line orientation. Orientation allows to reverse the line
direction from the reference point. For a line of L length, it is the same as
creating this line with -L length.

Parameters:

oOrientation
orientation : can be 1 or -1
Returns

int

property point

Note

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

Role: Get the starting point of the line.

Parameters:

oPoint
starting point.
Returns

Reference

set_length_type(i_type)

Note

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

Sets the length type Default is 0.

Parameters:

iType
The length type = 0 : length - the line is limited by its extremities = 1 : infinite -
the line is infinite = 2 : infinite start point - the line is infinite on the side of the
start point = 3 : infinite end point - the line is infinite on the side of the end point
Parameters

i_type (int) –

Returns

None

set_symmetrical_extension(i_sym)

Note

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

Sets the symmetrical extension of the line (start = -end).

Parameters:

iSym
Symmetry flag
Parameters

i_sym (bool) –

Returns

None

property surface

Note

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

Role: Get the support surface.

Parameters:

oSurface
support surface.
Returns

Reference

hybrid_shape_line_bi_tangent

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.hybrid_shape_interfaces.hybrid_shape_line_bi_tangent.HybridShapeLineBiTangent(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
CATGSMIDLItf.Line
HybridShapeLineBiTangent

Line tangent to a curve.
Role: To access data of the line feature created to be tangent to two
entities
property curve1

Note

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

Returns or Sets the first tangency curve lying on the support
surface.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.

Example:
This example retrieves in oCurve the first tangency curve for the
LineBiTangent hybrid shape feature.

Dim oCurve As Reference
Set oCurve = LineBiTangent.Curve1
Returns

Reference

property element2

Note

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

Returns or Sets the second tangency element (point, curve) lying on the
support surface.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge,
BiDimFeatEdge or Vertex.

Example:
This example retrieves in oElement the second tangency Element (point,
curve) for the LineBiTangent hybrid shape feature.

Dim oElement As Reference
Set oElement = LineBiTangent.Element2
Returns

Reference

get_choice_no(val1, val2, val3, val4, val5)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetChoiceNo(long val1,
long val2,
long val3,
long val4,
long val5)

Returns a sequence which identifies a solution among all
possibilities.

val1 = Solution number (from 1 to n).

val2 = oOriTgt1

This orientation allows to compute just the results that are tangent to a
specific region of the first curve.
It can take 3 values:

+1 : the result has the same orientation as the curve,
-1 : the result has the opposite orientation of the curve,
0 : no orientation is specified.

val3 = oOriCvt1

This orientation allows to compute just the results that are tangent to a
specific side of the first curve.
It can take 3 values:

+1 : curvature direction of curve and cross product of support normal and result direction
are in the same direction,
-1 : curvature direction of curve and cross product of support normal and result direction
are in opposite directions,
0 : no orientation is specified.

val4 = oOriTgt2

In case of curve/curve bitangent line, this orientation allows to compute
just the results that are tangent to a specific region of the second curve
.
It can take 3 values:

+1 : the result has the same orientation as the curve,
-1 : the result has the opposite orientation of the curve,
0 : no orientation is specified.

val5 = oOriCvt2

In case of curve/curve bitangent line this orientation allows to compute
just the results that are tangent to a specific side of the second
curve.
It can take 3 values:

+1 : curvature direction of curve and cross product of support normal and result direction
are in the same direction,
-1 : curvature direction of curve and cross product of support normal and result direction
are in opposite directions,
0 : no orientation is specified.

Example:
This example retrieves in vakl1,val2,val3,val4,val5 parameters for
solutions for the LineBiTangent hybrid shape feature.

Dim oVal1 As long
Dim oVal2 As long
Dim oVal3 As long
Dim oVal4 As long
Dim oVal5 As long
LineBiTangent.GetChoiceNo(ovla1, oVal2, oVal3, oVal4, oVal5)
Parameters
  • val1 (int) –

  • val2 (int) –

  • val3 (int) –

  • val4 (int) –

  • val5 (int) –

Returns

None

get_length_type()

Note

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

Gets the length type Default is 0.

Parameters:

oType
The length type = 0 : length - the line is limited by its extremities = 1 :
infinite - the line is infinite = 2 : infinite start point - the line is infinite on
the side of the start point = 3 : infinite end point - the line is infinite on the side
of the end point
Returns

int

set_choice_no(val1, val2, val3, val4, val5)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetChoiceNo(long val1,
long val2,
long val3,
long val4,
long val5)

Sets a sequence which identifies a solution among all
possibilities.

val1 = Solution number (from 1 to n).

val2 = oOriTgt1

This orientation allows to compute just the results that are tangent to a
specific region of the first curve.
It can take 3 values:

+1 : the result has the same orientation as the curve,
-1 : the result has the opposite orientation of the curve,
0 : no orientation is specified.

val3 = oOriCvt1

This orientation allows to compute just the results that are tangent to a
specific side of the first curve.
It can take 3 values:

+1 : curvature direction of curve and cross product of support normal and result direction
are in the same direction,
-1 : curvature direction of curve and cross product of support normal and result direction
are in opposite directions,
0 : no orientation is specified.

val4 = oOriTgt2

In case of curve/curve bitangent line, this orientation allows to compute
just the results that are tangent to a specific region of the second curve
.
It can take 3 values:

+1 : the result has the same orientation as the curve,
-1 : the result has the opposite orientation of the curve,
0 : no orientation is specified.

val5 = oOriCvt2

In case of curve/curve bitangent line this orientation allows to compute
just the results that are tangent to a specific side of the second
curve.
It can take 3 values:

+1 : curvature direction of curve and cross product of support normal and result direction
are in the same direction,
-1 : curvature direction of curve and cross product of support normal and result direction
are in opposite directions,
0 : no orientation is specified.

Example:
This example retrieves in vakl1,val2,val3,val4,val5 parameters for
solutions for the LineBiTangent hybrid shape feature.

Dim iVal1 As long
Dim iVal2 As long
Dim iVal3 As long
Dim iVal4 As long
Dim iVal5 As long
ival1 = 1
ival2 = 0
ival3 = 0
ival4 = 0
ival5 = 0
LineBiTangent.SetChoiceNo(ivla1, iVal2, iVal3, iVal4, iVal5)
Parameters
  • val1 (int) –

  • val2 (int) –

  • val3 (int) –

  • val4 (int) –

  • val5 (int) –

Returns

None

set_length_type(i_type)

Note

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

Sets the length type Default is 0.

Parameters:

iType
The length type = 0 : length - the line is limited by its extremities = 1 : infinite -
the line is infinite = 2 : infinite start point - the line is infinite on the side of
the start point = 3 : infinite end point - the line is infinite on the side of the end
point
Parameters

i_type (int) –

Returns

None

property support

Note

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

Returns or Sets the supporting surface.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in oSurface the surface for the LineBiTangent
hybrid shape feature.

Dim oSurface As Reference
Set oSurface = LineBiTangent.Surface
Returns

Reference

hybrid_shape_line_bisecting

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.hybrid_shape_interfaces.hybrid_shape_line_bisecting.HybridShapeLineBisecting(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
CATGSMIDLItf.Line
HybridShapeLineBisecting

Represents the hybrid shape bisecting line feature object.
Role: To access the data of the hybrid shape bisecting line feature object.
This data includes:

The two lines used to create the bisecting line
The reference point
The support
The start and end offsets
The orientation
The solution type

Use the CATIAHybridShapeFactory to create a HybridShapeAffinity
object.

See also:
HybridShapeFactory
property begin_offset

Note

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

Returns the start offset of the line.
Returns

Length

property elem1

Note

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

Returns or sets the first line used to create the bisecting
line.

Sub-element(s) supported (see Boundary object): see
RectilinearTriDimFeatEdge or RectilinearBiDimFeatEdge.
Returns

Reference

property elem2

Note

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

Returns or sets the second line used to create the bisecting
line.
Sub-element(s) supported (see Boundary object): see
RectilinearTriDimFeatEdge or RectilinearBiDimFeatEdge.
Returns

Reference

property end_offset

Note

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

Returns the end offset of the line.
Returns

Length

get_length_type()

Note

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

Gets the length type Default is 0.

Parameters:

oType
The length type = 0 : length - the line is limited by its extremities = 1 :
infinite - the line is infinite = 2 : infinite start point - the line is infinite on the
side of the start point = 3 : infinite end point - the line is infinite on the side of
the end point
Returns

int

get_symmetrical_extension()

Note

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

Gets whether the symmetrical extension of the line is
active.

Parameters:

oSym
Symmetry flag
Returns

bool

property orientation

Note

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

Returns or sets the orientation used to compute the bisecting
line.
Role: the orientation specifies bisecting line position
Legal values: The orientation can be the same(1) or the inverse(-1)
Returns

int

property ref_point

Note

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

Returns or sets the reference point used to create the bisecting
line.
Sub-element(s) supported (see Boundary object): see Vertex.
Returns

Reference

set_length_type(i_type)

Note

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

Sets the length type Default is 0.

Parameters:

iType
The length type = 0 : length - the line is limited by its extremities = 1 :
infinite - the line is infinite = 2 : infinite start point - the line is infinite on the
side of the start point = 3 : infinite end point - the line is infinite on the side of
the end point
Parameters

i_type (int) –

Returns

None

set_symmetrical_extension(i_sym)

Note

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

Sets the symmetrical extension of the line (start = -end).

Parameters:

iSym
Symmetry flag
Parameters

i_sym (bool) –

Returns

None

property solution_type

Note

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

Returns or sets the solution type.
Role: The solution type allows you to know where is the bisecting line.
Returns

bool

property support

Note

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

Returns or sets the support used to create the bisecting
line.

Parameters:

oElem
retrieve the support of the bisecting line.
Sub-element(s) supported (see

Boundary object): see Face.
Returns

Reference

hybrid_shape_line_explicit

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.hybrid_shape_interfaces.hybrid_shape_line_explicit.HybridShapeLineExplicit(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
CATGSMIDLItf.Line
HybridShapeLineExplicit

Represents the hybrid shape line explicit feature object.
Role: Declare hybrid shape line explicit feature object.

See also:
HybridShapeFactory.AddNewLineDatum

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

hybrid_shape_line_normal

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.hybrid_shape_interfaces.hybrid_shape_line_normal.HybridShapeLineNormal(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
CATGSMIDLItf.Line
HybridShapeLineNormal

Line defined by a point and a direction normal to a surface.
Role: To access data of the line feature created by using the normal direction
of a surface

Use the CATIAHybridShapeFactory to create a HybridShapeLineNormal
object.

See also:
Reference
See also:
Length
See also:
HybridShapeDirection
See also:
HybridShapeFactory
property begin_offset

Note

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

Returns the start length of the line.
Start length : extension of the line, beginning at the starting point

Example:
This example retrieves in oStart the beginning offset length for the
LineNormal hybrid shape feature.

Dim oStart As CATIALength
Set oStart = LineNormal.BeginOffset
Returns

Length

property end_offset

Note

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

Returns the end length of the line.
End length : extension of the line, beginning at the ending point

Example:
This example retrieves in oEnd the starting length for the LineNormal
hybrid shape feature.

Dim oEnd As CATIALength
Set oEnd = LineNormal.EndOffset
Returns

Length

get_length_type()

Note

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

Gets the length type Default is 0.

Parameters:

oType
The length type = 0 : length - the line is limited by its extremities = 1 :
infinite - the line is infinite = 2 : infinite start point - the line is infinite on the
side of the start point = 3 : infinite end point - the line is infinite on the side of
the end point
Returns

int

get_symmetrical_extension()

Note

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

Gets whether the symmetrical extension of the line is
active.

Parameters:

oSym
Symmetry flag
Returns

bool

property orientation

Note

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

Returns or Sets the line orientation.
Orientation allows to reverse the line direction from the reference
point.
For a line of L length, it is the same as creating this line with -L length : Orientation :
can be 1 or -1

Example:
This example retrieves in oOrientation the starting length for the
LineNormal hybrid shape feature.

Dim oOrientation As long
Set oOrientation = LineNormal.Orientation
Returns

int

property point

Note

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

Returns or Sets the starting point of the line.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in oPoint the starting point for the LineNormal
hybrid shape feature.

Dim oPoint As Reference
Set oPoint = LineNormal.Point
Returns

Reference

set_length_type(i_type)

Note

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

Sets the length type Default is 0.

Parameters:

iType
The length type = 0 : length - the line is limited by its extremities = 1 : infinite -
the line is infinite = 2 : infinite start point - the line is infinite on the side of the
start point = 3 : infinite end point - the line is infinite on the side of the end point
Parameters

i_type (int) –

Returns

None

set_symmetrical_extension(i_sym)

Note

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

Sets the symmetrical extension of the line (start = -end).

Parameters:

iSym
Symmetry flag
Parameters

i_sym (bool) –

Returns

None

property surface

Note

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

Returns or Sets the surface to which the line will be
normal.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in oSurface the surface for the LineNormal
hybrid shape feature.

Dim oSurface As Reference
Set oSurface = LineNormal.Surface
Returns

Reference

hybrid_shape_line_pt_dir

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.hybrid_shape_interfaces.hybrid_shape_line_pt_dir.HybridShapeLinePtDir(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
CATGSMIDLItf.Line
HybridShapeLinePtDir

Line defined by a point and a direction.
Role: To access data of the line feature created by using a passing point and a
direction.

Use the CATIAHybridShapeFactory to create a HybridShapeLinePtDir
object.

See also:
Reference
See also:
Length
See also:
HybridShapeDirection
See also:
HybridShapeFactory
property begin_offset

Note

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

Returns the start length of the line.
Start length : extension of the line, beginning at the starting point

Example:
This example retrieves in oStart the beginning offset length for the
LinePtDir hybrid shape feature.

Dim oStart As CATIALength
Set oStart = LinePtDir.BeginOffset
Returns

Length

property dir

Note

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

Returns or Sets the direction of the line.

Example:
This example retrieves in oDir the direction for the LinePtDir hybrid
shape feature.

Dim oDir As CATIAHybridShapeDirection
Set oDir = LinePtDir.Dir
Returns

HybridShapeDirection

property end_offset

Note

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

Returns the end length of the line.
End length : extension of the line, beginning at the ending point

Example:
This example retrieves in oEnd the starting length for the LinePtDir
hybrid shape feature.

Dim oEnd As CATIALength
Set oEnd = LinePtDir.EndOffset
Returns

Length

get_length_type()

Note

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

Gets the length type Default is 0.

Parameters:

oType
The length type = 0 : length - the line is limited by its extremities = 1 :
infinite - the line is infinite = 2 : infinite start point - the line is infinite on the
side of the start point = 3 : infinite end point - the line is infinite on the side of
the end point
Returns

int

get_symmetrical_extension()

Note

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

Gets whether the symmetrical extension of the line is
active.

Parameters:

oSym
Symmetry flag
Returns

bool

property orientation

Note

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

Returns or Sets the line orientation.
Orientation allows to reverse the line direction from the reference
point.
For a line of L length, it is the same as creating this line with -L length : Orientation :
can be 1 or -1

Example:
This example retrieves in oOrientation the starting length for the
LinePtDir hybrid shape feature.

Dim oOrientation As long
Set oOrientation = LinePtDir.Orientation
Returns

int

property point

Note

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

Returns or Sets the starting point of the line.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in oPoint the starting point for the LinePtDir
hybrid shape feature.

Dim oPoint As Reference
Set oPoint = LinePtDir.Point
Returns

Reference

remove_support()

Note

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

Removes the support surface.
Returns

None

set_length_type(i_type)

Note

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

Sets the length type Default is 0.

Parameters:

iType
The length type = 0 : length - the line is limited by its extremities = 1 :
infinite - the line is infinite = 2 :
infinite start point - the line is infinite on the side of the start point = 3 :
infinite end point - the line is infinite on the side of the end point
Parameters

i_type (int) –

Returns

None

set_symmetrical_extension(i_sym)

Note

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

Sets the symmetrical extension of the line (start = -end).

Parameters:

iSym
Symmetry flag
Parameters

i_sym (bool) –

Returns

None

property support

Note

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

Returns or Sets the supporting surface.
Note: the support surface is not mandatory for LinePtDir

Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in oSurface the supporting surface (if it exist)
for the LinePtDir hybrid shape feature.

Dim oSurface As Reference
Set oSurface = LinePtDir.Surface
Returns

Reference

hybrid_shape_line_pt_pt

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.hybrid_shape_interfaces.hybrid_shape_line_pt_pt.HybridShapeLinePtPt(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
CATGSMIDLItf.Line
HybridShapeLinePtPt

Represents the hybrid shape line between two points feature
object.
Role: To access the data of the line feature created between two
points.

Use the CATIAHybridShapeFactory to create a HybridShapeLinePtPt
object.

See also:
Reference
See also:
Length
See also:
HybridShapeFactory
property begin_offset

Note

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

Returns the start length of the line.
Start length : extension of the line, beginning at the starting point

Example:
This example retrieves in oStart the beginning offset length for the
LinePtPt hybrid shape feature.

Dim oStart As CATIALength
Set oStart = LinePtPt.BeginOffset
Returns

Length

property end_offset

Note

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

Returns the end length of the line.
End length : extension of the line, beginning at the ending point

Example:
This example retrieves in oEnd the starting length for the LinePtPt
hybrid shape feature.

Dim oEnd As CATIALength
Set oEnd = LinePtPt.EndOffset
Returns

Length

get_length_type()

Note

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

Gets the length type Default is 0.

Parameters:

oType
The length type = 0 : length - the line is limited by its extremities = 1 :
infinite - the line is infinite = 2 :
infinite start point - the line is infinite on the side of the start point = 3 :
infinite end point - the line is infinite on the side of the end point
Returns

int

get_symmetrical_extension()

Note

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

Gets whether the symmetrical extension of the line is
active.

Parameters:

oSym
Symmetry flag
Returns

bool

property pt_extremity

Note

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

Returns or Sets the extremity point of the LinePtPt(Second
Point).
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in oPtExtremity the ending point for the
LinePtPt hybrid shape feature.

Dim oPtExtremity As Reference
Set oPtExtremity = LinePtPt.PtExtremity
Returns

Reference

property pt_origine

Note

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

Returns or Sets the origin point of the LinePtPt(First
point).
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in oPtOrigine the initial point for the LinePtPt
hybrid shape feature.

Dim oPtOrigine As Reference
Set oPtOrigine = LinePtPt.PtOrigine
Returns

Reference

remove_support()

Note

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

Removes the support surface.
Returns

None

set_length_type(i_type)

Note

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

Sets the length type Default is 0.

Parameters:

iType
The length type = 0 : length - the line is limited by its extremities = 1 :
infinite - the line is infinite = 2 :
infinite start point - the line is infinite on the side of the start point = 3 :
infinite end point - the line is infinite on the side of the end point
Parameters

i_type (int) –

Returns

None

set_symmetrical_extension(i_sym)

Note

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

Sets the symmetrical extension of the line (start = -end).

Parameters:

iSym
Symmetry flag
Parameters

i_sym (bool) –

Returns

None

property support

Note

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

Returns or Sets the supporting surface.
Note: the support surface is not mandatory for LinePtPt

Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in oSurface the supporting surface (if it exist)
for the LinePtPt hybrid shape feature.

Dim oSurface As Reference
Set oSurface = LinePtPt.Surface
Returns

Reference

hybrid_shape_line_tangency

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.hybrid_shape_interfaces.hybrid_shape_line_tangency.HybridShapeLineTangency(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
CATGSMIDLItf.Line
HybridShapeLineTangency

Line tangent to a curve.
Role: To access data of the line feature created to be tangent to a curve at a
given point.

Use the CATIAHybridShapeFactory to create a HybridShapeLineTangency
object.

See also:
Reference
See also:
Length
See also:
HybridShapeFactory
property begin_offset

Note

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

Returns the start length of the line.
Start length : extension of the line, beginning at the starting point

Example:
This example retrieves in oStart the beginning offset length for the
LineTangency hybrid shape feature.

Dim oStart As CATIALength
Set oStart = LineTangency.BeginOffset
Returns

Length

property curve

Note

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

Returns or Sets the curve to which the line will be
tangent.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.

Example:
This example retrieves in oCurve the reference curve for the
LineTangency hybrid shape feature.

Dim oCurve As Reference
Set oCurve = LineTangency.Curve
Returns

Reference

property end_offset

Note

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

Returns the end length of the line.
End length : extension of the line, beginning at the ending point

Example:
This example retrieves in oEnd the starting length for the LineTangency
hybrid shape feature.

Dim oEnd As CATIALength
Set oEnd = LineTangency.EndOffset
Returns

Length

get_length_type()

Note

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

Gets the length type Default is 0.

Parameters:

oType
The length type = 0 : length - the line is limited by its extremities = 1 :
infinite - the line is infinite = 2 :
infinite start point - the line is infinite on the side of the start point = 3 :
infinite end point - the line is infinite on the side of the end point
Returns

int

get_symmetrical_extension()

Note

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

Gets whether the symmetrical extension of the line is
active.

Parameters:

oSym
Symmetry flag
Returns

bool

property orientation

Note

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

Returns or Sets the line orientation.
Orientation allows to reverse the line direction from the reference
point.
For a line of L length, it is the same as creating this line with -L length : Orientation :
can be 1 or -1

Example:
This example retrieves in oOrientation the starting length for the
LineTangency hybrid shape feature.

Dim oOrientation As long
Set oOrientation = LineTangency.Orientation
Returns

int

property point

Note

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

Returns or Sets the starting point of the line.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in oPoint the starting point for the
LineTangency hybrid shape feature.

Dim oPoint As Reference
Set oPoint = LineTangency.Point
Returns

Reference

remove_support()

Note

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

Removes the support surface.
Returns

None

set_length_type(i_type)

Note

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

Sets the length type Default is 0.

Parameters:

iType
The length type = 0 : length - the line is limited by its extremities = 1 :
infinite - the line is infinite = 2 :
infinite start point - the line is infinite on the side of the start point = 3 :
infinite end point - the line is infinite on the side of the end point
Parameters

i_type (int) –

Returns

None

set_symmetrical_extension(i_sym)

Note

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

Sets the symmetrical extension of the line (start = -end).

Parameters:

iSym
Symmetry flag
Parameters

i_sym (bool) –

Returns

None

property support

Note

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

Returns or Sets the support surface.
Note: Support surface is not mandatory

Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in oSurface the suupporting Surface (if exist)
for the LineTangency hybrid shape feature.

Dim oSurface As Reference
Set oSurface = LineTangency.Surface
Returns

Reference

hybrid_shape_loft

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.hybrid_shape_interfaces.hybrid_shape_loft.HybridShapeLoft(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
HybridShapeLoft

Represents the hybrid shape loft surface feature object.
Role: To access the data of the hybrid shape loft surface feature
object.
This data includes:

The spine
The tangent surfaces to the start and end sections
Guide curves, sections, and couplings

Use the CATIAHybridShapeFactory to create a HybridShapeLoft
object.

LICENSING INFORMATION: Creation of volume result requires GSO
License
if GSO License is not granted , setting of Volume context has not
effect

Use the CATIAHybridShapeFactory to create a HybridShapeLoft
object.

See also:
HybridShapeFactory
add_guide(i_guide)

Note

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

Adds a guide curve to the lofted surface.

Parameters:

iGuide
The guide curve to be added

Sub-element(s) supported (see

Boundary object): TriDimFeatEdge and BiDimFeatEdge.
Parameters

i_guide (Reference) –

Returns

None

add_guide_with_tangent(i_guide, i_tangent)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddGuideWithTangent(Reference iGuide,
Reference iTangent)

Adds a guide curve and a tangent surface to the lofted
surface.

Parameters:

iGuide
The guide curve to be added

Sub-element(s) supported (see

Boundary object): TriDimFeatEdge and BiDimFeatEdge.
iTangent
The tangent surface to be added. The guide curve must be layed on the
tangent

Sub-element(s) supported (see Boundary object): Face.
Parameters
Returns

None

add_section_to_loft(i_crv, i_ori, i_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddSectionToLoft(Reference iCrv,
long iOri,
Reference iPoint)

Retrieves a loft section.

Parameters:

iCrv
Reference to the curve
iOri
Orientation
iPoint
Reference to the Closing Point
Parameters
Returns

None

property area_law

Note

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

Gets or sets the optional area law for multi-sections element definition.
The law is a length law.
Returns

Reference

property area_law_tolerance

Note

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

Gets or sets the tolerance applied to area law. The value is in mm.
Returns

float

property boolean_operation

Note

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

Gets or sets the boolean operation for closed lofted surface. TO BE USED ONLY for Part Loft
(closed loft). BooleanOperation = 1 : No boolean operation. = 2 : Union boolean operation. = 3 :
Removal boolean operation. This example retrieves in BoolOp the type of boolean operation for the
Loft hybrid shape feature.

Dim BoolOp
BoolOp = Loft.BooleanOperation
Returns

int

property canonical_detection

Note

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

Returns or sets whether canonical surfaces of the lofted surface are
detected.
Legal values:

0
No detection of canonical surface is performed
1
Detection of planar surfaces only is performed
2
Detection of canonical surfaces is performed
Returns

int

property comp_end_section_tangent

Note

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

Returns or sets whether the tangent surface to the end section of the
lofted surface is computed.
Legal values:

1
The tangent to the end section is computed
2
The tangent to the end section is not computed
Returns

int

property comp_start_section_tangent

Note

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

Returns or sets whether the tangent surface to the start section of the
lofted surface is computed.
Legal values:

1
The tangent to the start section is computed
2
The tangent to the start section is not computed
Returns

int

property context

Note

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

Returns or sets the context on Loft feature.
Legal values:

0 This option creates Lofted surface.
1 This option creates Lofted volume.


Note: Setting volume result requires GSO License.

Example:
This example retrieves in oContext the context for the Loft hybrid
shape feature.

Dim oContext
Set oContext = Loft.Context
Returns

int

get_area_law_tolerance_parameter()

Note

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

Gets the tolerance parameter applied to area law.
Returns

Length

get_faces_for_closing(o_start_face, o_end_face)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetFacesForClosing(Reference oStartFace,
Reference oEndFace)

Gets start and end faces if the tangent is a computed tangent surface to
the start section or end section, from the lofted surface. The section must
have been set as a face.

Parameters:

oStartFace
start face used to close the loft.
oEndFace
end face used to close the loft.
Parameters
Returns

None

get_guide(i_pos, o_guide, o_guide_tangent)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetGuide(long iPos,
Reference oGuide,
Reference oGuideTangent)

Gets informations about the guide at a specified position in the list of
the lofted surface.

Parameters:

iPos
position of the guide in the list where the information is
retrieved.
oGuide
the guide curve.
oGuideTangent
the tangent corresponding to the guide curve.
Parameters
Returns

None

get_nb_of_guides()

Note

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

Returns the number of guides in the loft object.

Parameters:

oSize
Number of guides in the loft.

Example:
This example retrieves the number of guides in the hybShpLoft
hybrid shape Loft.

Dim oSize As long
oSize = hybShpLoft.GetNbOfGuides
Returns

int

get_section_from_loft(i_rank, o_crv, o_ori, o_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSectionFromLoft(long iRank,
Reference oCrv,
long oOri,
Reference oPoint)

Retrieves a loft section information.

Parameters:

iRank
The index of the section
oCrv
The reference to the curve
oOri
The orientation value
oPoint
The reference to the point
Parameters
Returns

None

get_spine(o_spine_type, o_spine)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSpine(long oSpineType,
Reference oSpine)

Gets the spine of the lofted surface.

Parameters:

oSpineType
type of spine = 1 : User defined spine. = 2 : Automatically computed spine.
oSpine
curve used as a spine, if the spine is user defined
one.
Parameters
  • o_spine_type (int) –

  • o_spine (Reference) –

Returns

None

get_start_and_end_section_tangent(o_start_section_tangent, o_end_section_tangent)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetStartAndEndSectionTangent(Reference
oStartSectionTangent,
Reference oEndSectionTangent)

Gets the start and end section tangents of the lofted
surface.

Parameters:

oStartSectionTangent
tangent surface at start section.
oEndSectionTangent
tangent surface at end section.
Parameters
Returns

None

insert_coupling(i_position)

Note

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

Inserts a coupling to the loft.

Parameters:

iPosition
The position of the coupling in the list of couplings. If 0 is
specified, the coupling is inserted at the end of the
list.
Sub-element(s) supported (see

Boundary object): Vertex.
Parameters

i_position (int) –

Returns

None

insert_coupling_point(i_coupling_index, i_position, i_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InsertCouplingPoint(long iCouplingIndex,
long iPosition,
Reference iPoint)

Inserts a coupling point to a coupling of the lofted
surface.

Parameters:

iCouplingIndex
The index of the coupling in the list of coupling where the point
wil be inserted.
iPosition
The position of the coupling point in the list of coupling points.
If 0 is specified, the coupling point is inserted at the end of the list.

iPoint
The point to be inserted. The point must be layed on the section
with the same position.
Sub-element(s) supported (see

Boundary object): ScVertex.
Parameters
  • i_coupling_index (int) –

  • i_position (int) –

  • i_point (Reference) –

Returns

None

insert_section_to_loft(i_type, i_crv, i_ori, i_point, i_section_ref)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InsertSectionToLoft(boolean iType,
Reference iCrv,
long iOri,
Reference iPoint,
Reference iSectionRef)

Inserts a loft section.

Parameters:

iType
iType if set to true section is added After and iType if set to
false section is added Before iSectionRef
iCrv
Reference to the curve
iOri
Orientation
iPoint
Reference to the Closing Point
iSectionRef
iSectionRef is the section before and after which section is
added.
Parameters
Returns

None

modify_guide_curve(i_guide, i_new_guide)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ModifyGuideCurve(Reference iGuide,
Reference iNewGuide)

Modifies the curve of a guide from the lofted surface.

Parameters:

iGuide
guide curve to be replaced.
iNewGuide
new guide curve, will replace iGuide.
Parameters
Returns

None

modify_section_curve(i_section, i_new_section, o_curve_section, o_closing_point, o_pt_diag)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub modifiesectionCurve(Reference iSection,
Reference iNewSection,
Reference oCurveSection,
Reference oClosingPoint,
long oPtDiag)

Modifies the curve of section from the lofted surface.

Parameters:

iSection
section curve to be replaced.
iNewSection
section will replace iSection, can be a curve or a face

oCurveSection
if iSection is a face, oCurveSection is the boundary of the face.
oCurveSection is used as section curve. if Part design, the face is used to
close the Loft.
oClosingPoint
if iSection is a closed curve, oClosingPoint is a new closing point
of iSection. if iSection is a face, oClosingPoint is a new closing point the
boundary of iSection.
oPtDiag
Information on closing point = 0 : No closing point has been created nor retrieved. = 1 :
A closing point has been created as a vertex. = 2 :
A closing point has been created as an extremum. = 3 :
A closing point has been retrieved as an extremum.
Parameters
Returns

None

modify_section_orient(i_section, i_orient)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub modifiesectionOrient(Reference iSection,
long iOrient)

Modifies the orientation of the curve of a section from the lofted
surface.

Parameters:

iSection
section curve to be modified.
iOrient
orientation of the section curve = 1 : same orientation. = -1 :
inverted orientation. = 2 : ko orientation.
Parameters
  • i_section (Reference) –

  • i_orient (int) –

Returns

None

property relimitation

Note

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

Returns or sets the relimitation type between sections of the
loft.
NOT YET IMPLEMENTED.
Legal values:

1
The loft will be swept along the spine, then relimited by the start
section and the end section
2
The loft will be swept along the spine.

If the spine is a user spine, then the loft is limited by the spine
extremities
If the spine is a computed spine, then the loft is
limited:
By the start section and the end section, if there is no
guide
By the guides extremities, if there are guides

3
The loft will be swept along the spine, then relimited by the first
section,

If the spine is a user spine, then the loft is limited by the spine
extremity opposite to the first section
If the spine is a computed spine, then the loft is
limited:
By the last section, if there is no guide
By the guides extremities opposite to the first section, if
there are guides

4
The loft will be swept along the spine, then relimited by the last
section,

If the spine is a user spine, then the loft is limited by the spine
extremity opposite to the last section
If the spine is a computed spine, then the loft is
limited:
By the first section, if there is no guide
By the guides extremities opposite to the last section, if
there are guides
Returns

int

remove_face_for_closing(i_section)

Note

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

Removes face used to close the lofted surface.

Parameters:

iSection
section curve.
Parameters

i_section (Reference) –

Returns

None

remove_guide(i_guide)

Note

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

Removes a guide curve from the lofted surface.

Parameters:

iGuide
The guide curve to be removed

Sub-element(s) supported (see

Boundary object): TriDimFeatEdge and BiDimFeatEdge.
Parameters

i_guide (Reference) –

Returns

None

remove_guide_tangent(i_guide)

Note

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

Removes a tangent surface of a guide from the lofted
surface.

Parameters:

iGuide
guide curve of the guide from which the tangent will be
removed.
Parameters

i_guide (Reference) –

Returns

None

remove_section(i_section)

Note

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

Removes a loft section from the lofted surface.

Parameters:

iSection
The loft section to remove

Sub-element(s) supported (see

Boundary object): TriDimFeatEdge and BiDimFeatEdge.
Parameters

i_section (Reference) –

Returns

None

remove_section_point(i_section)

Note

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

Removes a closing point of a section from the lofted surface. The curve
section must be closed curve.

Parameters:

iSection
section curve of the section from which the point will be
removed.
Parameters

i_section (Reference) –

Returns

None

remove_section_tangent(i_section)

Note

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

Removes the tangent surface of a section from the lofted surface. The
section must be the start section or the end section of the
loft.

Parameters:

iSection
section curve of the section from which the tangent will be
removed.
Parameters

i_section (Reference) –

Returns

None

property section_coupling

Note

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

Returns or sets the type of coupling between sections of the
loft.
Legal values:

1
The curves will be coupled according to the curvilinear abscissa
ratio
2
if each curve has the same number of tangency discontinuity points,
then these points will be coupled, otherwise an error message is
displayed
3
if each curve has the same number of tangency and curvature
discontinuity points, then tangency discontinuity points will be coupled, and
after curvature discontinuity points will be coupled, otherwise an error
message is displayed
4
if each curve has the same number of vertices, then these points will
be coupled, otherwise an error message is displayed
Returns

int

set_end_face_for_closing(i_face)

Note

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

Sets a face to the end section from the lofted surface.

Parameters:

iFace
The face to close the loft (Part design only).
Sub-element(s) supported (see

Boundary object): Face.
Parameters

i_face (Reference) –

Returns

None

set_end_section_tangent(i_tangent_section)

Note

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

Sets a tangent surface to the end section from the lofted
surface.

Parameters:

iTangentSection
The tangent surface to be added. The end curve section must lay on
the surface.
Sub-element(s) supported (see

Boundary object): Face.
Parameters

i_tangent_section (Reference) –

Returns

None

set_spine(i_spine)

Note

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

Sets the spine to the lofted surface.

Parameters:

iSpine
The curve to be added as a spine.
Sub-element(s) supported (see

Boundary object): TriDimFeatEdge and BiDimFeatEdge.
Parameters

i_spine (Reference) –

Returns

None

set_start_face_for_closing(i_face)

Note

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

Sets a face to the start section from the lofted surface.

Parameters:

iFace
The face to close the loft (Part design only).
Sub-element(s) supported (see

Boundary object): Face.
Parameters

i_face (Reference) –

Returns

None

set_start_section_tangent(i_tangent_section)

Note

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

Sets a tangent surface to the start section from the lofted
surface.

Parameters:

iTangentSection
The tangent surface to be added. The start curve section must lay
on the surface.
Sub-element(s) supported (see

Boundary object): Face.
Parameters

i_tangent_section (Reference) –

Returns

None

property smooth_angle_threshold

Note

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

Returns or sets the angular threshold under which discontinuities (moving
frame, tangency net on reference surface) will be smoothed.
Returns

float

property smooth_angle_threshold_activity

Note

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

Returns or sets whether a angular threshold is allowed or not during
lofting operation in order to smooth it.
Legal values:

TRUE
The angular threshold value is used during the lofting
operation
FALSE
The angular threshold value is not used during the lofting
operation
Returns

bool

property smooth_deviation

Note

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

Returns or sets the deviation value (length) allowed during lofting
operation in order to smooth it.
Returns

float

property smooth_deviation_activity

Note

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

Returns or sets whether a deviation is allowed or not during lofting
operation in order to smooth it.
Legal values:

TRUE
The deviation value is used during the lofting
operation
FALSE
The deviation value is not used during the lofting
operation
Returns

bool

hybrid_shape_mid_surface

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.hybrid_shape_interfaces.hybrid_shape_mid_surface.HybridShapeMidSurface(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
HybridShapeMidSurface

Represents the hybrid shape MidSurface feature object.
Role: To access the data of the hybrid shape MidSurface feature
object.
This data includes:

Support Body
Creation Mode
Threshold Thickness

Use the CATIAHybridShapeFactory to create a HybridShapeMidSurface
object.

See also:
HybridShapeFactory
property auto_thickness_threshold

Note

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

Returns or sets AutoThicknessThreshold. Automatic Thickmess Threshold Check Button ON :1, OFF :
0 (Only Automatic Creation Mode Available for Automation)
Returns

int

property creation_mode

Note

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

Returns or sets CreationMode. Face Pairs : 0, Faces To Offset : 1, Automatic :
2 (Only Automatic Creation Mode Available for Automation)
Returns

int

property support

Note

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

Returns or sets Support Body. Reference.
Returns

Reference

property threshold

Note

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

Returns or sets Threshold Thickness. Length.
Returns

Length

hybrid_shape_near

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.hybrid_shape_interfaces.hybrid_shape_near.HybridShapeNear(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
HybridShapeNear

The Near feature : an Near is made up of a face to process and one Near parameter.
property multiple_solution

Note

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

Role: To get_MultipleSolution on the object.

Parameters:

oMultipleSolution
multiple element return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

property reference_element

Note

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

Role: To get_ReferenceElement on the object.

Parameters:

oRefElem
reference element return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

hybrid_shape_offset

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.hybrid_shape_interfaces.hybrid_shape_offset.HybridShapeOffset(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
HybridShapeOffset

Represents the hybrid shape offset feature object.
Role: To access the data of the hybrid shape offset feature object. This data
includes:

The element to offset
The offset direction
The offset value

Use the CATIAHybridShapeFactory to create a HybridShapeOffset
object.

See also:
HybridShapeFactory
add_tricky_face(i_tricky_face)

Note

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

Adds a tricky face object on the object.
Parameters

i_tricky_face (Reference) –

Returns

None

get_tricky_face(i_rank)

Note

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

Returns the invalid face object on the object.
param : iRank =position of faces ionvalid for offset
Parameters

i_rank (int) –

Returns

Reference

property offset_direction

Note

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

Returns or sets whether the offset direction is to be
inverted.
True to invert the offset direction.
Returns

bool

property offset_value

Note

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

Returns or sets the offset value.
Returns

Length

property offseted_object

Note

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

Returns or sets the face to offset.
Sub-element(s) supported (see Boundary object): Face.
Returns

Reference

remove_tricky_face(i_rank)

Note

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

Remove the tricky face object on the object.
param : iRank =position of the face in the list of TrickyFaces
Parameters

i_rank (int) –

Returns

None

set_offset_value(i_offset)

Note

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

Set Offset value with input as double.
To be replace in further release by integration in the pragma put_xxx
Parameters

i_offset (float) –

Returns

None

property suppress_mode

Note

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

Returns or sets suppress mode.
True to activate suppress mode
Returns

bool

hybrid_shape_plane1_curve

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.hybrid_shape_interfaces.hybrid_shape_plane1_curve.HybridShapePlane1Curve(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
CATGSMIDLItf.Plane
HybridShapePlane1Curve

plane through a curve.
Role: Allows to access data of the plane feature passing though a planar
curve.
property curve

Note

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

Role: Get the planar curve.

Parameters:

oCurve
Curve.

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

hybrid_shape_plane1_line1_pt

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.hybrid_shape_interfaces.hybrid_shape_plane1_line1_pt.HybridShapePlane1Line1Pt(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
CATGSMIDLItf.Plane
HybridShapePlane1Line1Pt

Represents plane feature defined by a line and a point.
Role: Allows to access data of the plane feature passing though one line and
one point
property line

Note

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

Returns or sets the passing line.

Parameters:

oLine
Line.

See also:
Reference
See also:
HybridShapeFactory
Returns

Reference

property point

Note

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

Return or sets the passing point.

Parameters:

oPoint
Point.

See also:
Reference
See also:
HybridShapeFactory
Returns

Reference

hybrid_shape_plane2_lines

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.hybrid_shape_interfaces.hybrid_shape_plane2_lines.HybridShapePlane2Lines(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
CATGSMIDLItf.Plane
HybridShapePlane2Lines

plane defined by two lines.
Role: Allows to access data of the plane feature passing though two
lines.
property first

Note

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

Role: Get the first line.

Parameters:

oLine1
first line.

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

property forbid_non_coplanar_lines

Note

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

if ForbidNonCoplanarLines = TRUE, both lines have to be on the same plane.
if ForbidNonCoplanarLines = FALSE, both lines can be non coplanar.
Returns

False

property second

Note

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

Role: Get the second line.

Parameters:

oLine2
second line.

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

hybrid_shape_plane3_points

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.hybrid_shape_interfaces.hybrid_shape_plane3_points.HybridShapePlane3Points(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
CATGSMIDLItf.Plane
HybridShapePlane3Points

Represents the hybrid shape plane through three points feature
object.
Role: Allows to access data of the plane feature passing though three points.
This data includes:

The first point
The second point
The third point

Use the CATIAHybridShapeFactory to create HybridShapeFeature
object.

See also:
HybridShapeFactory
property first

Note

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

Returns or sets the first point.
Sub-element(s) supported (see Boundary object): Vertex.

Example: This example retrieves in FirstPoint the first point for the Plane
passing through three points hybrid shape feature.

Dim FirstPoint As Reference
Set FirstPoint = Plane3Points.First
Returns

Reference

property second

Note

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

Returns or sets the second point.
Sub-element(s) supported (see Boundary object): Vertex.

Example: This example retrieves in SecondPoint the second point for the
Plane passing through three points hybrid shape feature.

Dim SecondPoint As Reference
Set SecondPoint = Plane3Points.Second
Returns

Reference

property third

Note

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

Returns or sets the third point.
Sub-element(s) supported (see Boundary object): Vertex.

Example: This example retrieves in ThirdPoint the third point for the Plane
passing through three points hybrid shape feature.

Dim ThridPoint As Reference
Set ThirdPoint = Plane3Points.Third
Returns

Reference

hybrid_shape_plane_angle

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.hybrid_shape_interfaces.hybrid_shape_plane_angle.HybridShapePlaneAngle(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
CATGSMIDLItf.Plane
HybridShapePlaneAngle

Represents the hybrid shape plane angle feature object.
Role: To access the data of the hybrid shape plane angle feature object,
created with an angle to another plane. This data includes:

The rotation axis
The rotation angle
The reference plane

Use the CATIAHybridShapeFactory to create a HybridShapePlaneAngle
object.

See also:
HybridShapeFactory
property angle

Note

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

Returns the rotation angle.
Returns

Angle

property orientation

Note

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

Returns or sets the plane orientation.
Role: The orientation allows you to invert the plane from the reference
plane.
Legal values: the orientation is 1 if the plane orientation is not
inverted, and -1 otherwise.
Returns

int

property plane

Note

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

Returns or sets the reference plane.
Sub-element(s) supported (see Boundary object): PlanarFace.
Returns

Reference

property projection_mode

Note

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

Gets or sets the projection mode status. ProjectionMode = TRUE :
Rotation axis will be projected on to reference plane. = FALSE(default) :
Rotation axis will be as it is. This example retrieves in ProjMode the projection mode status
for the PlaneAngle hybrid shape feature.

Dim ProjMode As boolean
ProjMode = PlaneAngle.ProjectionMode
Returns

bool

property revol_axis

Note

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

Returns or sets the rotation axis.
Sub-element(s) supported (see Boundary object): RectilinearTriDimFeatEdge,
RectilinearBiDimFeatEdge or RectilinearMonoDimFeatEdge.
Returns

Reference

hybrid_shape_plane_equation

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.hybrid_shape_interfaces.hybrid_shape_plane_equation.HybridShapePlaneEquation(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
CATGSMIDLItf.Plane
HybridShapePlaneEquation

Plane define by an equation plane.
Role: Allows to access data of the plane feature created by its cartesian equation. Plane equation is
Ax+By+Cz = D.
property a

Note

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

Gets A coefficient for plane equation.

Parameters:

oA
A Coefficient of cartesian plane

See also:
RealParam
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

RealParam

property b

Note

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

Gets B coefficient for plane equation.

Parameters:

oB
B Coefficient of cartesian plane

See also:
RealParam
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

RealParam

property c

Note

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

Gets C coefficient for plane equation.

Parameters:

oC
C Coefficient of cartesian plane return value for CATScript
applications, with (IDLRETVAL) function type

See also:
RealParam
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

RealParam

property d

Note

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

Gets D coefficient for plane equation.

Parameters:

oD
D Coefficient of cartesian plane

See also:
Length
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Length

get_reference_point()

Note

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

Gets the reference point.

Parameters:

oReferencePoint
reference point
Returns

Reference

property ref_axis_system

Note

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

Returns or Sets the reference Axis System for PlaneEquation
feature.
This data is not mandatory, if element is null, the absolute axis system is
taken.
When an element is given, X, Y and Z are considered in this Axis
system.
If reference point is not specified, X,Y and Z are measured from origin of
this axis system.

Example
:
This example retrieves in oRefAxis the reference Axis System for
PlaneEquation feature.

Dim oRefAxis As CATIAReference
Set oRefAxis = PlaneEquation.RefAxisSystem
Returns

Reference

set_reference_point(i_reference_point)

Note

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

Sets the reference point.

Parameters:

iReferencePoint
reference point
Parameters

i_reference_point (Reference) –

Returns

None

hybrid_shape_plane_explicit

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.hybrid_shape_interfaces.hybrid_shape_plane_explicit.HybridShapePlaneExplicit(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
CATGSMIDLItf.Plane
HybridShapePlaneExplicit

Represents the hybrid shape Plane explicit feature object.
Role: Declare hybrid shape Plane explicit feature object.

See also:
HybridShapeFactory.AddNewPlaneDatum

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

hybrid_shape_plane_mean

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.hybrid_shape_interfaces.hybrid_shape_plane_mean.HybridShapePlaneMean(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
CATGSMIDLItf.Plane
HybridShapePlaneMean

Represents the hybrid shape mean plane feature object.
Role: To access the data of the hybrid shape mean plane feature object. This
data includes:

The list of points

Use the CATIAHybridShapeFactory to create a HybridShapePlaneMean
object.

See also:
HybridShapeFactory
add_point(i_passing_point)

Note

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

Adds a point to the mean plane.

Parameters:

iPassingPoint
The point to add

Sub-element(s) supported (see

Boundary object): Vertex.
Parameters

i_passing_point (Reference) –

Returns

None

get_point(i_rank, o_passing_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetPoint(long iRank,
Reference oPassingPoint)

Retrieves the point at a given position.

Parameters:

iRank
The rank of the point to retrieve
oPassingPoint
The point retrieved at this rank
Parameters
  • i_rank (int) –

  • o_passing_point (Reference) –

Returns

None

get_pos(i_point)

Note

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

Gets the position of an element in the list.

Parameters:

iPoint
point
oPos
position of point
Parameters

i_point (Reference) –

Returns

int

get_size()

Note

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

Gets the size of the list (number of points).

Parameters:

oSize
position of point
Returns

int

remove_all()

Note

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

Removes all elements in the list of points.
Returns

None

remove_element(i_rank)

Note

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

Removes a point in the list.

Parameters:

iRank
The rank of the point to remove
Parameters

i_rank (int) –

Returns

None

replace_point_at_position(i_point, i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ReplacePointAtPosition(Reference iPoint,
long iPos)

Replaces a point in the list at the given position.

Parameters:

oPoint
point
iPos
position of point
Parameters
Returns

None

hybrid_shape_plane_normal

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.hybrid_shape_interfaces.hybrid_shape_plane_normal.HybridShapePlaneNormal(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
CATGSMIDLItf.Plane
HybridShapePlaneNormal

Normal plane.
Role: Allows to access data of the plane feature normal to a curve at a given
point.
property curve

Note

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

Role: Get the curve to which the plane is to be normal.

Parameters:

oCurve
reference curve.

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

property point

Note

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

Role: Get the point where the plane is to be normal.

Parameters:

oPoint
point

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

hybrid_shape_plane_offset

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.hybrid_shape_interfaces.hybrid_shape_plane_offset.HybridShapePlaneOffset(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
CATGSMIDLItf.Plane
HybridShapePlaneOffset

Offset plane.
Role: Allows to access data of the plane feature created with an offset to
another plane.
property offset

Note

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

Returns the offset value.
Returns

Length

property orientation

Note

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

Returns or sets the plane orientation.
Role: The orientation allows you to invert the plane from the reference
plane.
Legal values: the orientation is 1 if the plane orientation is not
inverted, and -1 otherwise.
Returns

int

property plane

Note

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

Returns or sets the reference plane.
Sub-element(s) supported (see Boundary object): PlanarFace.
Returns

Reference

hybrid_shape_plane_offset_pt

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.hybrid_shape_interfaces.hybrid_shape_plane_offset_pt.HybridShapePlaneOffsetPt(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
CATGSMIDLItf.Plane
HybridShapePlaneOffsetPt

Offset plane with point reference.
Role: Allows to access data of the plane feature parallel to another plane and
passing through a Point.
property plane

Note

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

Role: Get the reference plane.

Parameters:

oPlane
reference Plane.

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

property point

Note

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

Role: Get the reference point.

Parameters:

oPoint
reference point.

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

hybrid_shape_plane_tangent

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.hybrid_shape_interfaces.hybrid_shape_plane_tangent.HybridShapePlaneTangent(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
CATGSMIDLItf.Plane
HybridShapePlaneTangent

Tangency plane.
Role: Allows to access data of the the plane feature tangent to a surface at a
given point.
property point

Note

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

Role: Get the tangency point.

Parameters:

oPoint
tangency point.

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

property surface

Note

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

Role: Get the surface to which the plane is to be tangent.

Parameters:

oSurface
reference surface.

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

hybrid_shape_point_between

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.hybrid_shape_interfaces.hybrid_shape_point_between.HybridShapePointBetween(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
CATGSMIDLItf.Point
HybridShapePointBetween

Represents the hybrid shape PointBetween feature object.
Role: To access the data of the hybrid shape PointBetween feature
object.
This data includes:

The first reference point
The second reference point

See also:
HybridShapeFactory
property first_point

Note

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

Returns or sets the first reference point.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in RefPoint1 the first reference point for the
PointBetween hybrid shape feature.

Dim RefPoint1 As Reference
Set RefPoint1 = PointBetween.FirstPoint
Returns

Reference

property orientation

Note

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

Returns or sets the orientation. Role:
Orientation = 1 means that distance is measured from the second point

Example:
This example retrieves in Orient the orientation for the PointBetween
hybrid shape feature.

Dim Orient As long
Set Orient = PointBetween.Orientation
Returns

int

property ratio

Note

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

Get the ratio. Role:
if d1 is the distance between the first point and the created point, and d2 is the distance
between the first point and the second point, then ratio = d1/d2.

Example:
This example retrieves in ratio the orientation for the PointBetween
hybrid shape feature.

Dim ratio As CATIARealParam
Get ratio = PointBetween.Ratio
Returns

RealParam

property second_point

Note

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

Returns or sets the second reference point.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in RefPoint2 the second reference point for the
PointBetween hybrid shape feature.

Dim RefPoint2 As Reference
Set RefPoint2 = PointBetween.SecondPoint
Returns

Reference

property support

Note

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

Returns or Sets the support.
Note: the support can be surface or curve. It is not
mandatory

Sub-element(s) supported (see Boundary object): Face and TriDimFeatEdge and
BiDimFeatEdge.

Example:
This example retrieves in oSupport the support(if it exist) for the
PointBetween hybrid shape feature.

Dim oSupport As Reference
Set oSupport = PointBetween.Support
Returns

Reference

hybrid_shape_point_center

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.hybrid_shape_interfaces.hybrid_shape_point_center.HybridShapePointCenter(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
CATGSMIDLItf.Point
HybridShapePointCenter

Represents the hybrid shape PointCenter feature object.
Role: To access the data of the hybrid shape PointCenter feature object. It has
been created by the CATIAHybridShapeFactory. This data
includes:

The circle, ellipsa element

See also:
HybridShapeFactory
property element

Note

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

Returns or sets the circle, ellipse or sphere.
Sub-element(s) supported (see Boundary object): Edge.

Example
:
This example retrieves in Ref_Circle the center point for the
PointCenter hybrid shape feature.

Dim Ref_Circle As Reference
Set Ref_Circle = PointCenter.Element
Returns

Reference

hybrid_shape_point_coord

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.hybrid_shape_interfaces.hybrid_shape_point_coord.HybridShapePointCoord(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
CATGSMIDLItf.Point
HybridShapePointCoord

Point defined by coordinates.
Role: To access data of the point feature created with its cartesian
coordinates.

See also:
Length
See also:
Reference
See also:
HybridShapeFactory
property pt_ref

Note

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

Returns or Sets the reference point for PointCoord
feature.
This data is not mandatory, if element is null, the origin point is
taken.
When an element is given, X, Y and Z are measured starting from this
point.
Sub-element(s) supported (see Boundary object): Vertex.

Example
:
This example retrieves in oPtRef the reference point for PointCoord
feature.

Dim oPtRef As CATIAReference
Set oPtRef = PointCoord.PtRef
Returns

Reference

property ref_axis_system

Note

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

Returns or Sets the reference Axis System for PointCoord
feature.
This data is not mandatory, if element is null, the absolute axis system is
taken.
When an element is given, X, Y and Z are considered in this Axis
system.
If reference point is not specified, X,Y and Z are measured from origin of
this axis system. *

Example
:
This example retrieves in oRefAxis the reference Axis System for
PointCoord feature.

Dim oRefAxis As CATIAReference
Set oRefAxis = PointCoord.RefAxisSystem
Returns

Reference

property x

Note

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

Returns X coordinate of the point.

Example
:
This example retrieves in oX the X coordinate for the PointCoord hybrid
shape feature.

Dim oX As CATIALength
Set oX = PointCoord.X
Returns

Length

property y

Note

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

Returns Y coordinate of the point.

Example
:
This example retrieves in oY the Y coordinate for the PointCoord hybrid
shape feature.

Dim oY As CATIALength
Set oY = PointCoord.Y
Returns

Length

property z

Note

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

Returns Z coordinate of the point.

Example
:
This example retrieves in oZ the Z coordinate for the PointCoord hybrid
shape feature.

Dim oZ As CATIALength
Set oZ = PointCoord.Z
Returns

Length

hybrid_shape_point_explicit

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.hybrid_shape_interfaces.hybrid_shape_point_explicit.HybridShapePointExplicit(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
CATGSMIDLItf.Point
HybridShapePointExplicit

Represents the hybrid shape point explicit feature object.
Role: Declare hybrid shape point explicit feature object.

See also:
HybridShapeFactory.AddNewPointDatum

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

hybrid_shape_point_on_curve

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.hybrid_shape_interfaces.hybrid_shape_point_on_curve.HybridShapePointOnCurve(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
CATGSMIDLItf.Point
HybridShapePointOnCurve

Represents the hybrid shape point on a curve.
Role: To access the data of the point object created on a curve. This data
includes:

The curve onto which the point is created
The reference point from which the point is created
The curvilinear distance from the reference point
The ratio of distance with respect to the curve length
The distance stored value type, either distance or ratio
The curve orientation
The distance type, either geodesic or euclidean.
The direction along which point is created with specified
distance.

Use the HybridShapeFactory to create a HybridShapePointOnCurve
object.
property curve

Note

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

Returns or sets the curve onto which the point is or should be
created.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge or
BiDimFeatEdge.

Example:

This example retrieves in oCurve the supporting curve
for
the pointOnCurve hybrid shape point.


Dim oCurve As CATIAReference
Set oCurve = pointOnCurve.Curve
Returns

Reference

property direction

Note

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

Returns or sets the direction along which the point is or should be
created.

Example
This example retrieves in Dir the direction for the PointOnCurve hybrid
shape feature.

Dim Dir As CATIAHybridShapeDirection
Set Dir=pointOnCurve.Direction
Returns

HybridShapeDirection

property distance_type

Note

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

Returns or sets the distance type.
Legal values: 1 for geodesic, -1 for euclidean.
Default is geodesic.

Geodesic means that the distance is measured with a curvilinear
abscissa
Euclidean means that the point is created as the intersection between
the reference curve and a circle whose radius is the length defined
above.

Example:

This example retrieves in oDistanceType the distance computation type
used
for the pointOnCurve hybrid shape object.


Dim oDistanceType As long
Set oDistanceType = pointOnCurve.DistanceType
Returns

int

property offset

Note

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

Returns the distance to the reference point.
This distance is a distance in a length unit, The distance can be null.In
this case, the reference point is the curve end point defined using the
Orientation parameter.

Example:

This example retrieves in oOffset the distance from the reference
point
on the supporting curve for the pointOnCurve hybrid shape
object.


Dim oOffset As CATIALength
Set oOffset = pointOnCurve.Offset
Returns

Length

property on_curve_type

Note

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

Returns or sets the OnCurve type for created point on
curve.
Legal values: 0 = Distance on curve 1 = Distance along direction 2 = Ratio of Curve length
Returns

int

property orientation

Note

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

Returns or sets the curve orientation.
Legal values: -1 means that the distance (length or ratio) is
measured:

in the other orientation of the curve, when a reference point has been
set
in the other orientation of the curve and from the other extremity,
when no reference point has been set.

Example:

This example retrieves in oOrientation curve Orientation use

for the pointOnCurve hybrid shape feature.


Dim oOrientation As long
Set oOrientation = pointOnCurve.Orientation
Returns

int

property point

Note

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

Returns or sets the reference point.

If the point does not lie on the curve, the point on the curve with the
smallest distance to this point is taken.

The reference point may not exist. In this case, the extremity of the curve
is taken as reference point.


Sub-element(s) supported (see Boundary object): Vertex.

Example:

This example retrieves in oRefPoint the reference
point
on the supporting curve for the pointOnCurve hybrid shape
object.


Dim oRefPoint As CATIAReference
Set oRefPoint = pointOnCurve.Point
Returns

Reference

property ratio

Note

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

Returns the distance ratio to the reference point.
This is a real parameter which corresponds to the ratio of the distance
from the reference point with respect to the length of the supporting curve.
The ratio can be null. In this case, the reference point is the curve end point
defined using the Orientation parameter.

Example:

This example retrieves in oRatio the distance ratio from the
reference point
on the supporting curve for the pointOnCurve hybrid shape
object.


Dim oRatio As CATIALength
Set oRatio = PointOnCurve.Ratio
Returns

RealParam

property type

Note

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

Returns the distance stored value type.
Legal values:

1 when the type of measure is the length
-1 when the type of measure is the distance ratio

Example:

This example retrieves in oType the distance type computation

for the pointOnCurve hybrid shape object.


Dim oType As long
Set oType = pointOnCurve.Type
Returns

int

hybrid_shape_point_on_plane

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.hybrid_shape_interfaces.hybrid_shape_point_on_plane.HybridShapePointOnPlane(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
CATGSMIDLItf.Point
HybridShapePointOnPlane

Point on a plane.
Role: Allows to access data of the point feature created on a plane with a
reference point or not.

See also:
Length, Reference, HybridShapeDirection, HybridShapeFactory
property first_direction

Note

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

Returns or sets the first direction on the plane to compute the point (for
stability).

Example
:
This example retrieves in oDirection the direction of the PointOnPlane
feature.

Dim oDirection As CATIAHybridShapeDirection
Set oDirection = PointOnPlane.FirstDirection
Returns

HybridShapeDirection

get_second_direction(o_dir_x, o_dir_y, o_dir_z)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSecondDirection(double oDirX,
double oDirY,
double oDirZ)

Gets the second direction on the plane to compute the point (for
stability).
This direction has to be kept perpendicular to the first
direction

Parameters:

oDir
second direction

See also:
HybridShapeDirection
Parameters
  • o_dir_x (float) –

  • o_dir_y (float) –

  • o_dir_z (float) –

Returns

None

property plane

Note

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

Returns or sets the support plane.
Sub-element(s) supported (see Boundary object):
PlanarFace.

Example
:
This example retrieves in oPlane the supporting Plane for PointOnPlane
feature.

Dim oPlane As CATIAReference
Set oPlane = PointOnPlane.Plane
Returns

Reference

property point

Note

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

Returns or sets the reference point.
This data is not mandatory, if Point is
null, the projection of the origin point on the plane is
taken.
Sub-element(s) supported (see Boundary object): Vertex.

Example
:
This example retrieves in oPoint the reference point for PointOnPlane
feature.

Dim oPoint As CATIAReference
Set oPoint = PointOnPlane.Point
Returns

Reference

property projection_surface

Note

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

Returns or sets the projection surface to compute the
point.

Example
:
This example retrieves in oProjSur the projection surface of the
PointOnPlane feature.

Dim oProjSur As CATIAReference
Set oProjSur = PointOnPlane.ProjectionSurface
Returns

Reference

set_second_direction(i_dir_x, i_dir_y, i_dir_z)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSecondDirection(double iDirX,
double iDirY,
double iDirZ)

Sets the second direction on the plane to compute the point (for
stability).
This direction has to be kept perpendicular to the first
direction

Parameters:

iDir
second direction

See also:
HybridShapeDirection
Parameters
  • i_dir_x (float) –

  • i_dir_y (float) –

  • i_dir_z (float) –

Returns

None

property x_offset

Note

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

Returns the X cartesian coordinate in the plane.

Example
:
This example retrieves in oX the X coordinate for PointOnPlane
feature.

Dim oX As CATIALength
Set oX = PointOnPlane.XOffset
Returns

Length

property y_offset

Note

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

Returns the Y cartesian coordinate in the plane.

Example
:
This example retrieves in oY the Y coordinate for PointOnPlane
feature.

Dim oY As CATIALength
Set oY = PointOnPlane.YOffset
Returns

Length

hybrid_shape_point_on_surface

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.hybrid_shape_interfaces.hybrid_shape_point_on_surface.HybridShapePointOnSurface(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
CATGSMIDLItf.Point
HybridShapePointOnSurface

Represents the Point on Surface feature objects.
Role: Allows to access data of the point feature created with a geodesic
distance in a direction to a reference point on a surface

See also:
Length
See also:
Reference
See also:
HybridShapeDirection
See also:
HybridShapeFactory
property direction

Note

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

Returns or Sets the direction from the reference point in which the point
is computed.

Example
:
This example retrieves in oDirection the direction from the reference
point for PointOnSurface feature.

Dim oDirection As CATIAHybridShapeDirection
Set oDirection = PointOnSurface.Direction
Returns

HybridShapeDirection

property offset

Note

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

Returns the geodesic length.

Example
:
This example retrieves in oGeodesicOffset the offset (Geodesic Length)
from the reference point for PointOnSurface feature.

Dim oGeodesicOffset As CATIAReference
Set oGeodesicOffset = PointOnSurface.GeodesicOffset
Returns

Length

property point

Note

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

Returns or Sets the reference point.
This data is not mandatory.
If no point is given, the middle point on the surface is
taken.
Sub-element(s) supported (see Boundary object): Vertex.

Example
:
This example retrieves in oPointRef the reference point for
PointOnSurface feature.

Dim oPointRef As CATIAReference
Set oPointRef = PointOnSurface.PointRef
Returns

Reference

property surface

Note

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

Returns or Sets the surface.
Sub-element(s) supported (see Boundary object): Face.

Example
:
This example retrieves in oSurface the supporting surface for
PointOnSurface feature.

Dim oSurface As CATIAReference
Set oSurface = PointOnSurface.Surface
Returns

Reference

hybrid_shape_point_tangent

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.hybrid_shape_interfaces.hybrid_shape_point_tangent.HybridShapePointTangent(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
CATGSMIDLItf.Point
HybridShapePointTangent

Point Tangent.
Role: Allows to access data of the point feature created as follow
:
The tangent to the curve at this point is colinear to a given
direction.
Note: The resulting feature can contain several points.

See also:
Length
See also:
Reference
See also:
HybridShapeDirection
See also:
HybridShapeFactory
property curve

Note

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

Returns or Gets the supporting curve.
Sub-element(s) supported (see Boundary object): Edge.

Example
:
This example retrieves in oCurve the supporting Curve for the
PointTangent feature.

Dim oCurve As CATIAReference
Set oCurve = PointTangent.Curve
Returns

Reference

property direction

Note

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

Returns or Sets the direction.

Example
:
This example retrieves in oDirection the tangent direction use to
compute on supporting curve the PointTangent feature.

Dim oDirection As CATIAHybridShapeDirection
Set oDirection = PointTangent.Direction
Returns

HybridShapeDirection

hybrid_shape_polyline

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.hybrid_shape_interfaces.hybrid_shape_polyline.HybridShapePolyline(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
HybridShapePolyline

Represents the hybrid shape polyline curve object.
Role: To access or set the data of the hybrid shape polyline object. This data
includes:

Elements
Radius
Closure

Use the HybridShapeFactory object to create a HybridShapePolyline
object.
property closure

Note

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

Returns or sets the flag to decide closure of the
polyline.

Parameters:

Closure
(For get_Closure) Returns or sets the closure
property

Example:
This example retrieves the closure property of the polyline of
the HybShpPolyline hybrid shape polyline.

Dim HybShpPolClosure As boolean
HybShpPolClosure = HybShpPolyline.Closure
Returns

bool

get_element(i_position, o_element, o_radius)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetElement(long iPosition,
Reference oElement,
Length oRadius)

Returns the element of the polyline.

Parameters:

iPosition
Position at which the element is to be retrieved.
oElement
Reference to the element.
ioRadius
Length to the radius.

Example:
This example retrieves the element and radius of the polyline
at specified position of the HybShpPolyline hybrid shape
polyline.

Dim HybShpPolylineElement As Reference
Dim HybShpPolylineRadius As Reference
HybShpPolyline.GetElement 1,
HybShpPolylineElement,HybShpPolylineRadius
Parameters
Returns

None

insert_element(i_point, i_position)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InsertElement(Reference iPoint,
long iPosition)

Inserts the element at a specified position in the
polyline.

Parameters:

iPoint
Reference of the point object to be inserted.
iPosition
Position at which the element should be inserted.

Example:
This example inserts the element in the polyline of the
HybShpPolyline hybrid shape polyline.

HybShpPolyline.InsertElement PointReference,1
Parameters
  • i_point (Reference) –

  • i_position (int) –

Returns

None

property number_of_elements

Note

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

Returns the number of elements of the polyline.

Parameters:

NumberOfElements
Number of elements in the polyline.

Example:
This example retrieves the number of elements in the polyline
of the HybShpPolyline hybrid shape polyline.

Dim HybShpPolNoOfEle As long
HybShpPolNoOfEle = HybShpPolyline.NumberOfElements
Returns

int

remove_element(i_position)

Note

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

Removes the element at a specified position in the
polyline.

Parameters:

iPosition
Position from which the element should be should be
removed.

Example:
This example removes the element in the polyline of the
HybShpPolyline hybrid shape polyline.

HybShpPolyline.RemoveElement 1
Parameters

i_position (int) –

Returns

None

replace_element(i_point, i_position)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ReplaceElement(Reference iPoint,
long iPosition)

Replaces the element at a specified position in the
polyline.

Parameters:

iPoint
Reference of the point object that will replace the old element.

iPosition
Position at which the element should be inserted.

Example:
This example replaces the element in the polyline of the
HybShpPolyline hybrid shape polyline.

HybShpPolyline.ReplaceElement PointReference, 1
Parameters
  • i_point (Reference) –

  • i_position (int) –

Returns

None

set_radius(i_position, i_radius)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRadius(long iPosition,
double iRadius)

Sets the radius at specified position of the polyline.

Parameters:

iPosition
Position at which radius should be set
iRadius
Value of the radius to be set.

Example:
This example sets the radius at the specific position of the
polyline of the HybShpPolyline hybrid shape
polyline.

HybShpPolyline.SetRadius 1, 10
Parameters
  • i_position (int) –

  • i_radius (float) –

Returns

None

hybrid_shape_position_transfo

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.hybrid_shape_interfaces.hybrid_shape_position_transfo.HybridShapePositionTransfo(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
HybridShapePositionTransfo

Represents the hybrid shape position transformation feature
object.
Role: To access the data of the hybrid shape position transformation feature
object. This data includes:

The positioning mode
The profile to be positioned
The initila and target planes

Use the CATIAHybridShapeFactory to create a HybridShapePositionTransfo
object.

See also:
HybridShapeFactory
get_nb_pos_angle()

Note

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

Gets the number of numerical positioning parameters : first axis direction angles.

Parameters:

oI
Number of parameters
Returns

int

get_nb_pos_coord()

Note

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

Gets the number of numerical positioning parameters : origin planar coordinates.

Parameters:

oI
Number of parameters
Returns

int

get_pos_angle(i_i)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPosAngle(long iI) As Angle

Returns angles of both initial and target coordinate systems from default
positions.

Parameters:

iI
The index of numerical positioning angles in initial (value 1) or
target (value 2) axis system.
oAngle
The angle value.
Parameters

i_i (int) –

Returns

Angle

get_pos_coord(ii)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPosCoord(long ii) As Length

Returns translation coordinates if both initial and target coordinate
systems from default positions.

Parameters:

iI
The iIndex of numerical positioning coordinates in initial (value 1
or 2) or target (value 3 or 4) coordinate system.
oCoordinate
The coordinate value
Parameters

ii (int) –

Returns

Length

get_pos_point(ii)

Note

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

Returns the points designated as the origins of the initial and target
planes.

Parameters:

iI
The plane index: 1 for initial one, 2 for target one

oElem
The origin point
Parameters

ii (int) –

Returns

Reference

get_pos_swap_axes(ii)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPosSwapAxes(long ii) As long

Returns axis inversion from previous definitions for both initial and
target planes.

Parameters:

iI
The coordinate system index: 1 for initial one, 2 for target one

oInversion
The inversion value:

CATGSMAxisInversionMode_None
No axis inverted
CATGSMAxisInversionMode_X
Only the X axis iq inverted
CATGSMAxisInversionMode_Y
Only the Y axis is inverted
CATGSMAxisInversionMode_Both
Both axes inverted
Parameters

ii (int) –

Returns

int

get_position_direction(i_i)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPositionDirection(long iI) As HybridShapeDirection

Returns the positioning directions.
The positioning direction can be initial or target plane X-axis
direction.

Parameters:

iI
The plane index: 1 for initial one, 2 for target one

oElem
The direction element
Parameters

i_i (int) –

Returns

HybridShapeDirection

property initial_direction_computation_mode

Note

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

Gets or sets the computation mode of the X axis (or direction) of the
initial axis system.

Parameters:

oDirCompMode
computation mode = 0 : no X axis specified = 1 : the X axis is implicitly the tangent of
the profile at the origin(the origin then HAS to be on the profile). = 2 : the X axis is
specified by a direction by SetPositionDirection(1,UserInputDirection).
Returns

int

property mode

Note

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

Returns or sets the positioning mode.
Legal values:

CATGSMPositionMode_NoneOrPositioned
No positioning
CATGSMPositionMode_ExplicitSweep
The explicit profile is to be moved from its initial plane to the first
sweep plane
CATGSMPositionMode_Develop
Returns

int

property profile

Note

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

Returns or sets the profile to be positioned.
Returns

Reference

remove_all_pos_angle()

Note

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

Removes all numerical positioning parameters : first axis direction angles.
Returns

None

remove_all_pos_coord()

Note

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

Removes all numerical positioning parameters : origin planar coordinates.
Returns

None

set_pos_angle(i_i, i_angle)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPosAngle(long iI,
Angle iAngle)

Sets angles of both initial and target coordinate systems.

Parameters:

iI
The index of numerical positioning angles in initial (value 1) or
target (value 2) axis system.
iAngle
The angle value.
Parameters
  • i_i (int) –

  • i_angle (Angle) –

Returns

None

set_pos_coord(i_i, i_coordinate)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPosCoord(long iI,
Length iCoordinate)

Sets translation coordinates of both initial and target coordinate
systems.

Parameters:

iI
The iIndex of numerical positioning coordinates in initial (value 1
or 2) or target (value 3 or 4) coordinate system.
iCoordinate
The coordinate value
Parameters
  • i_i (int) –

  • i_coordinate (Length) –

Returns

None

set_pos_point(i_i, i_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPosPoint(long iI,
Reference iElem)

Sets the points designated as the origins of the initial and target
planes.

Parameters:

iI
The plane index: 1 for initial one, 2 for target one

iElem
The origin point
Parameters
Returns

None

set_pos_swap_axes(ii, i_inversion)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPosSwapAxes(long ii,
long iInversion)

Sets axis inversion from previous definitions for both initial and target
planes.

Parameters:

iI
The coordinate system index: 1 for initial one, 2 for target one

iInversion
The inversion value:

CATGSMAxisInversionMode_None
No axis inverted
CATGSMAxisInversionMode_X
Only the X axis iq inverted
CATGSMAxisInversionMode_Y
Only the Y axis is inverted
CATGSMAxisInversionMode_Both
Both axes inverted
Parameters
  • ii (int) –

  • i_inversion (int) –

Returns

None

set_position_direction(i_i, i_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPositionDirection(long iI,
HybridShapeDirection iElem)

Sets the positioning directions.
The positioning direction can be initial or target plane X-axis
direction.

Parameters:

iI
The plane index: 1 for initial one, 2 for target one

iElem
The direction element
Parameters
Returns

None

hybrid_shape_project

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.hybrid_shape_interfaces.hybrid_shape_project.HybridShapeProject(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
HybridShapeProject

Represents the hybrid shape project feature object.
Role: To access data of the hybrid shape project feature. The data
includes:

The element to project which is a point or a curve
The support element which is a curve or a surface
The projection type ( normal or along a direction)
The projection direction if needed
The option to have either the nearest solution or all
solutions

Use the CATIAHybridShapeFactory to create HybridShapeFeatures
objects.

See also:
HybridShapeFactory
property direction

Note

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

Returns or sets the projection direction.

Example: This example retrieves in Dir the direction for the Project hybrid
shape feature.

Dim Dir As Reference
Set Dir = Project.Direction
Returns

HybridShapeDirection

property elem_to_project

Note

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

Returns or sets the element to project.This element can be a point or a
curve.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge,
BiDimFeatEdge or Vertex.

Example: This example retrieves in Elem the element to project for the
Project hybrid shape feature.

Dim Elem As Reference
Set Elem = Project.ElemToProject
Returns

Reference

property extrapolation_mode

Note

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

Returns or sets the extrapolation mode. The extrapolation mode is overriden
when the solution type is ‘Nearest solution’ (0) or when the extrapolation mode
being set is ‘None’ (0), otherwise the method fails. Role: None (0), Tangency
(1) or Curvature (2).

Example: This example retrieves in ExtrapolMode the solution type for the
Project hybrid shape feature.

Dim ExtrapolMode As long
Set ExtrapolMode = Project.ExtrapolationMode
Returns

int

property maximum_deviation_value

Note

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

Sets or Gets the maximum deviation allowed for smoothing
operation.
Sets in distance unit, it corresponds to the radius of a pipe around the
input curve in which the result is allowed to be. This value must be set in SI
unit (m).

Example: This example retrieves in DeviationValue the maximum deviation
value for the Project hybrid shape feature.

Dim DeviationValue As CATIALength
Set DeviationValue = Project.MaximumDeviationValue
Returns

float

property normal

Note

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

Returns or sets the direction option. Role: To define the type of
projection. Normal is set to TRUE if the projection is a normal
projection.Otherwise, the projection is defined along a specified
direction.

Example: This example retrieves in NormalOption the support for the Project
hybrid shape feature.

Dim NormalOption As boolean
Set NormalOption = Project.Normal
Returns

bool

property p3_d_smoothing

Note

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

Returns or sets the ‘3D Smoothing’ option. Role: To activate or not the 3D smoothing option
Available only for tangent or curvature smoothing type TRUE : Smoothing performed without
specifying support FALSE : Smoothing performed with specific support

Example: This example retrieves in 3DSmoothingOption the support for the
Project hybrid shape feature.

Dim 3DSmoothingOption As boolean
Set 3DSmoothingOption = Project.p3DSmoothing
Returns

bool

property smoothing_type

Note

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

Sets or Gets Smoothing Type.
Role: Smoothing type
: 0 -> No Smoothing
: 2 -> G1 Smoothing : Enhance current continuity to tangent continuity
: 3 -> G2 Smoothing : Enhance current continuity to curvature continuity

Example: This example retrieves in SType the smoothing type for the Project
hybrid shape feature.

Dim SType As long
Set SType = Project.SmoothingType
Returns

int

property solution_type

Note

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

Returns or sets the solution type. When the solution type being set is ‘All
solutions’ (1), the extrapolation mode gets overriden to ‘None’ (0). Role: All
solutions (1) or Nearest solution (0) (only nearest projection is kept when
more than one solution is possible).

Example: This example retrieves in SolType the solution type for the
Project hybrid shape feature.

Dim SolType As long
Set SolType = Project.SolutionType
Returns

int

property support

Note

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

Returns or sets the support element.This element can be a plane or a
surface.
Sub-element(s) supported (see Boundary object): Face, TriDimFeatEdge or
BiDimFeatEdge.

Example: This example retrieves in SupportElem the support for the Project
hybrid shape feature.

Dim SupportElem As Reference
Set SupportElem = Project.Support
Returns

Reference

hybrid_shape_reflect_line

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.hybrid_shape_interfaces.hybrid_shape_reflect_line.HybridShapeReflectLine(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
HybridShapeReflectLine

Represents the hybrid shape reflect line feature object.
Role: To access the data of the hybrid shape reflect line feature object. This
data includes:

The surface used to create the reflect line
The direction (cylindrical)
The origin (conical)
The angle value

Use the CATIAHybridShapeFactory to create a HybridShapeReflectLine
object.

See also:
HybridShapeFactory
property angle

Note

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

Returns or sets the angle used to create the reflectline.

Example:
This example retrieves in Ang the angle for the RelectLine hybrid shape
feature.

Dim Ang As CATIAAngle
Set Ang = ReflectLine.Angle
Returns

Angle

property direction

Note

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

Returns or sets the direction used to create the cylindrical
reflectline.

Example:
This example retrieves in Dir the direction for the cylindrical
RelectLine hybrid shape feature.

Dim Dir As CATIAHybridShapeDirection
Set Dir = ReflectLine.Direction
Returns

HybridShapeDirection

invert_orientation_direction()

Note

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

Inverts the orientation of direction. This example inverts the direction
orientation of hybRefLine hybrid shape reflect line
object.

hybRefLine.InvertOrientationDirection
Returns

None

invert_orientation_support()

Note

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

Inverts the orientation of support. This example inverts the support
orientation of hybRefLine hybrid shape reflect line
object.

hybRefLine.InvertOrientationSupport
Returns

None

property orientation_direction

Note

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

Returns or sets the direction orientation used to compute the reflect
line.
Role: The orientation is used to define the angle between the direction and
the normal to the support of the points on the result curve. The orientation is
the same than or the inverse of the result of the cross product:
Normal(support) ^ Tangent(FirstReferenceCurve).
Legal values: 1 for same orientation, and -1 for inverse
Returns

int

property orientation_support

Note

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

Returns or sets the support orientation used to compute the reflect
line.
Role: The orientation is used to define the angle between the direction and
the normal to the support of the points on the result curve. The orientation is
the same than or the inverse of the result of the cross product:
Normal(support) ^ Tangent(FirstReferenceCurve).
Legal values: 1 for same orientation, and -1 for inverse
Returns

int

property origin

Note

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

Returns or sets the origin point used to create the conical
reflectline.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in Point the origin point for the conical
ReflectLine hybrid shape feature.

Dim Point As Reference
Set Point = ReflectLine.Origin
Returns

Reference

property source_type

Note

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

Returns or sets whether the reflectline curve is or should be created with
infinite light source (cylindrical) or with finite point light source
(conical).
Role: The SourceType indicates whether the created reflectline curve is
compute with infinite light source for cylindrical type or with finite point
light source for conical type.
Legal values: 0 for cylindrical and 1 for conical.
Returns

int

property support

Note

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

Returns or sets the support surface used to create the
reflectline.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in Surface the support surface for the
RelectLine hybrid shape feature.

Dim Surface As Reference
Set Surface = ReflectLine.Support
Returns

Reference

property type_solution

Note

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

Returns or sets whether the reflectline curve is or should be created with
the normal to the support or the tangent plane to the
support.
Role: The TypeSolution indicates whether the created reflectline curve is
compute with the angle between the normale to the support and the direction or
with the angle between the tangent plane to the support and the
direction.
Legal values: 0 for the normal and 1 for the tangent plane.
Returns

int

hybrid_shape_revol

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.hybrid_shape_interfaces.hybrid_shape_revol.HybridShapeRevol(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
HybridShapeRevol

The Revol feature : an Revol is made up of a face to process and one Revol parameter.
Role: To access the data of the hybrid shape revol feature
object.

LICENSING INFORMATION: Creation of volume result requires GSO
License
if GSO License is not granted , setting of Volume context has not
effect
property axis

Note

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

Role: To get_Axis on the object.

Parameters:

oDir
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

property begin_angle

Note

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

Role: To get_BeginAngle on the object.

Parameters:

oAngle
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Angle
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Angle

property context

Note

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

Returns or sets the context on Revolve feature.
Legal values:

0 This option creates surface of revolution.
1 This option creates volume of revolution.


Note: Setting volume result requires GSO License.

Example:
This example retrieves in oContext the context for the Revol hybrid
shape feature.

Dim oContext
Set oContext = Revol.Context
Returns

int

property end_angle

Note

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

Role: To get_EndAngle on the object.

Parameters:

oAngle
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Angle
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Angle

property first_limit_type

Note

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

Returns or sets the First limit type.
Legal values:

0
Unknown Limit type.
1
Limit type is Dimension. It implies that limit is defined by
length
2
Limit type is UptoElement. It implies that limit is defined by a
geometrical element

Example:
This example retrieves in oLim1Type the first limit type for the Revolve
hybrid shape feature.

Dim oLim1Type
Set oLim1Type = Revolve.FirstLimitType
Returns

int

property first_upto_element

Note

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

Returns or sets the First up-to element used to limit
Revolution.

Example:
This example retrieves in Lim1Elem the First up-to element for the
Revolve hybrid shape feature.

Dim Lim1Elem As Reference
Set Lim1Elem = Revolve.FirstUptoElement
Returns

Reference

property orientation

Note

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

Gets or sets orientation of the revolution. Orientation = TRUE : The natural orientation of the
axis is taken. = FALSE : The opposite orientation is taken This example retrieves in IsInverted
orientation of the revolution for the Revol hybrid shape feature.

Dim IsInverted As boolean
IsInverted = Revol.Orientation
Returns

False

property profil

Note

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

Role: To get_Profil on the object.

Parameters:

oProfil
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

property second_limit_type

Note

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

Returns or sets the Second limit type.
Legal values:

0
Unknown Limit type.
1
Limit type is Dimension. It implies that limit is defined by
length
2
Limit type is UptoElement. It implies that limit is defined by a
geometrical element

Example:
This example retrieves in oLim2Type the second limit type for the Revolve
hybrid shape feature.

Dim oLim2Type
Set oLim2Type = RevolveSecondLimitType
Returns

int

property second_upto_element

Note

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

Returns or sets the Second up-to element used to limit
Revolution.

Example:
This example retrieves in Lim2Elem the Second up-to element for the
Revolve hybrid shape feature.

Dim Lim2Elem As Reference
Set Lim2Elem = Revolve.SecondUptoElement
Returns

Reference

hybrid_shape_rolling_offset

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.hybrid_shape_interfaces.hybrid_shape_rolling_offset.HybridShapeRollingOffset(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
HybridShapeRollingOffset

The RollingOffset feature
get_curve(i_pos)

Note

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

Role: To get_Curve on the object.

Parameters:

iPos
Position

See also:
long
oCurve
return value for CATScript applications, with (IDLRETVAL) function type

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Parameters

i_pos (int) –

Returns

Reference

get_nb_curve()

Note

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

Role: To get_NbCurve on the object.

Parameters:

CurvesNb
Number of curves

See also:
long
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

int

get_offset()

Note

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

Role: To getOffset on the object.

Parameters:

oOffset
offset value

See also:
double
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

float

property offset

Note

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

Role: To get_Offset on the object.

Parameters:

oOffset
offset value return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Length
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Length

put_curve(i_curve)

Note

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

Role: To add or remove a curve on the object.

Parameters:

iCurve
Curve to Add/Remove if not present in the list, or to remove.


Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Parameters

i_curve (Reference) –

Returns

None

put_offset(i_offset)

Note

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

Role: To put_Offset on the object.

Parameters:

iOffset
offset value

See also:
double
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Parameters

i_offset (float) –

Returns

None

property support

Note

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

Role: To manage the support on the object.

Parameters:

iSupport
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

hybrid_shape_rotate

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.hybrid_shape_interfaces.hybrid_shape_rotate.HybridShapeRotate(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
HybridShapeRotate

Represents the hybrid shape rotate feature object.
Role: To access the data of the hybrid shape rotate feature object. This data
includes:

The element to be rotated
The rotation axis
The angle and its value

LICENSING INFORMATION: Creation of volume result requires GSO
License
if GSO License is not granted , setting of Volume context has not
effect
Use the CATIAHybridShapeFactory to create HybridShapeFeature
object.

See also:
HybridShapeFactory
property angle

Note

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

Returns the rotation angle.
Returns

Angle

property angle_value

Note

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

Returns or sets the rotation angle value.

Example: This example retrieves in AngleValue the angle value for the
Rotate hybrid shape feature.

Dim AngleValue As double
Set AngleValue = Rotate.AngleValue
Returns

float

property axis

Note

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

Returns or sets the rotation axis.
Sub-element(s) supported (see Boundary object): Edge.

Example: This example retrieves in RotationAxis the rotation axis for the
Rotate hybrid shape feature.

Dim RotationAxis As Reference
Set RotationAxis = Rotate.Axis
Returns

Reference

property elem_to_rotate

Note

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

Returns or sets the element to be rotated.

Example: This example retrieves in Elem the element to be rotated for the
Rotate hybrid shape feature.

Dim Elem As Reference
Set Elem = Rotate.ElemToRotate
Returns

Reference

property first_element

Note

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

Returns or sets the first element defining the rotation angle.
Returns

Reference

property first_point

Note

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

Returns or sets the first point defining the rotation.
Returns

Reference

get_creation_mode()

Note

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

Gets the creation mode.
Legal values:

0
CATGSMTransfoModeUnset. Default behavior: creation mode by default for
all features, modification mode for axis system
1
CATGSMTransfoModeCreation. Creation mode.
2
CATGSMTransfoModeModification. Modification mode.

Example:
This example retrieves in oCreation the creation mode for the hybShpRotate
hybrid shape feature.

oCreation = hybShpRotate.GetCreationMode
Returns

int

property orientation_of_first_element

Note

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

Returns or sets the orientation of the first element defining the rotation
angle.
This applies in case of line or plane element.
Returns

bool

property orientation_of_second_element

Note

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

Returns or sets the orientation of the second element defining the rotation
angle.
This applies in case of line or plane element.
Returns

bool

property rotation_type

Note

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

Returns or sets the type of the rotation definition.

0= Axis + angle
1= Axis + two elements
2= Three Points
3= Unknown type
Returns

int

property second_element

Note

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

Returns or sets the second element defining the rotation angle.
Returns

Reference

property second_point

Note

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

Returns or sets the second point defining the rotation.
Returns

Reference

set_creation_mode(i_creation)

Note

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

Sets the creation mode(creation or modification).
Legal values: True if the result is a creation feature and False if the
result is a modification feature.

Example:

This example sets that the mode of
the hybShpRotate hybrid shape rotate to creation


hybShpRotate.SetCreationMode True
Parameters

i_creation (bool) –

Returns

None

property third_point

Note

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

Returns or sets the third point defining the rotation.
Returns

Reference

property volume_result

Note

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

Returns or sets the volume result.
Legal values: True if the result of Rotate is required as volume (option is
effective only in case of volumes,requires GSO License) and False if it is
needed as surface .

Example:

This example sets that the result of
the hybShpRotate hybrid shape rotate is volume.


hybShpRotate.VolumeResult = True
Returns

bool

hybrid_shape_scaling

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.hybrid_shape_interfaces.hybrid_shape_scaling.HybridShapeScaling(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
HybridShapeScaling

Represents the hybrid shape scaling feature object.
Role: To access the data of the hybrid shape feature object. This data
includes:

The element to be transformed using the scaling
The reference element for the scaling which is a point or a
plane
The ratio and its value

Use the CATIAHybridShapeFactory to create HybridShapeFeature
object.

LICENSING INFORMATION: Creation of volume result requires GSO
License
if GSO License is not granted , setting of Volume context has not
effect

See also:
HybridShapeFactory
property center

Note

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

Returns or sets the reference element.This element can be a point or a
plane.
Sub-element(s) supported (see Boundary object): PlanarFace or
Vertex.

Example:
This example retrieves in RefElem the reference element for the Scaling
hybrid shape feature.

Dim RefElem As Reference
Set RefElem = Scaling.Center
Returns

Reference

property creation_mode

Note

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

Returns or sets the creation mode(creation or
modification).
Legal values: True if the result is a creation feature and False if the
result is a modification feature.

Example:

This example sets that the mode of
the hybShpScaling hybrid shape scaling to creation


hybShpScaling.CreationMode = True
Returns

bool

property elem_to_scale

Note

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

Returns or sets the element to scale.

Example:
This example retrieves in Elem the element to scale for the Scaling
hybrid shape feature.

Dim Elem As Reference
Set Elem = Scaling.ElemToScale
Returns

Reference

property ratio

Note

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

Returns the scaling ratio.
Returns

RealParam

property ratio_value

Note

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

Returns or sets the scaling ratio value.

Example:
This example retrieves in Value the ratio value for the Scaling hybrid
shape feature.

Dim Value As double
Set Value = Scaling.RatioValue
Returns

float

property volume_result

Note

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

Returns or sets the volume result.
Legal values: True if the result of Scaling is required as volume (option
is effective only in case of volumes,requires GSO License) and False if it is
needed as surface .

Example:

This example sets that the result of
the hybShpScaling hybrid shape scaling is volume.


hybShpScaling.VolumeResult = True
Returns

bool

hybrid_shape_section

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.hybrid_shape_interfaces.hybrid_shape_section.HybridShapeSection(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
HybridShapeSection

Interface to hybrid shape section feature.
Role: Allows you to access data of the Hybrid Shape Section
feature.

See also:
HybridShapeFactory.AddNewSection
property section_plane

Note

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

Returns or sets the section plane..

Parameters:

oPlane
The section oPlane

Example:
This example retrieves in RefPlane the plane of the
section

Dim RefPlane As Reference
Set RefPlane = HybridShapeSection.SectionPlane
Returns

Reference

hybrid_shape_sphere

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.hybrid_shape_interfaces.hybrid_shape_sphere.HybridShapeSphere(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
HybridShapeSphere

Represents the hybrid shape sphere feature object.
Role: To access the data of the hybrid shape sphere explicit feature
object.
The Sphere feature : a Sphere is made up of 4 angles parameters.

See also:
HybridShapeFactory
property axis

Note

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

Returns or sets axis on the object.

Parameters:

oDir
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Reference
See also:
HybridShapeFactory
Returns

Reference

property begin_meridian_angle

Note

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

Returns BeginMeridianAngle on the object.

Parameters:

oAngle
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Angle
See also:
HybridShapeFactory
Returns

Angle

property begin_parallel_angle

Note

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

Returns BeginParallelAngle on the object.

Parameters:

oAngle
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Angle
See also:
HybridShapeFactory
Returns

Angle

property center

Note

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

Returns or sets the sphere center.
Sub-element(s) supported (see Boundary object): Vertex.

Example:
This example retrieves in HybShpSphereCenter the center of the
HybShpSphere hybrid shape sphere.

Dim HybShpSphereCenter As Reference
HybShpSphereCenter = HybShpSphere.Center
Returns

Reference

property end_meridian_angle

Note

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

Returns EndMeridianAngle on the object.

Parameters:

oAngle
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Angle
See also:
HybridShapeFactory
Returns

Angle

property end_parallel_angle

Note

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

Returns EndParallelAngle on the object.

Parameters:

oAngle
return value for CATScript applications, with (IDLRETVAL) function
type

See also:
Angle
See also:
HybridShapeFactory
Returns

Angle

property limitation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Limitation(long iLimitationType)

Returns whether the sphere is created as a whole sphere or
not.
Legal values: 0 for a sphere with angles and 1 for a whole
sphere.

Example:
Returns

False

property radius

Note

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

Role: Get sphere radius.

Parameters:

oRadius
Sphere radius return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Length
See also:
HybridShapeFactory
Returns

Length

set_begin_meridian_angle(i_angle)

Note

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

Sets BeginMeridianAngle on the object.

Parameters:

iAngle

See also:
Angle
See also:
HybridShapeFactory
Parameters

i_angle (float) –

Returns

None

set_begin_parallel_angle(i_angle)

Note

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

Sets BeginParallelAngle on the object.

Parameters:

iAngle

See also:
Angle
See also:
HybridShapeFactory
Parameters

i_angle (float) –

Returns

None

set_end_meridian_angle(i_angle)

Note

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

Sets EndMeridianAngle on the object.

Parameters:

iAngle

See also:
Angle
See also:
HybridShapeFactory
Parameters

i_angle (float) –

Returns

None

set_end_parallel_angle(i_angle)

Note

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

Sets EndParallelAngle on the object.

Parameters:

iAngle

See also:
Angle
See also:
HybridShapeFactory
Parameters

i_angle (float) –

Returns

None

set_radius(i_radius)

Note

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

Sets Radius on the object.

Parameters:

iAngle

See also:
Angle
See also:
HybridShapeFactory
Parameters

i_radius (float) –

Returns

None

hybrid_shape_spine

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.hybrid_shape_interfaces.hybrid_shape_spine.HybridShapeSpine(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
HybridShapeSpine

Represents the hybrid spine curve feature object.
Role:Use the CATIAHybridShapeFactory to create a HybridShapeSpine
object.

See also:
HybridShapeFactory
add_guide(i_guide)

Note

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

Adds a guide to the spine curve.

Parameters:

iGuide
The guide curve to be added
Parameters

i_guide (Reference) –

Returns

None

add_section(i_section)

Note

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

Adds a section or a plane to the spine curve.

Parameters:

iSection
The section curve or plane to be added

Sub-element(s) supported (see

Boundary object): PlanarFace.
Parameters

i_section (Reference) –

Returns

None

get_guide(i_idx, op_ia_guide)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetGuide(long iIdx,
Reference opIAGuide)

Retrieves a guide .

Parameters:

iIdx
The index of the guide
opIAGuide
The guide retrieved
Parameters
  • i_idx (int) –

  • op_ia_guide (Reference) –

Returns

None

get_number_of_guides()

Note

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

Retrieves number of guides in a spine curve.

Parameters:

oNbGuides
Number of guides in a spine curve
Returns

int

get_number_of_sections()

Note

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

Retrieves number of sections in a spine curve.

Parameters:

oNbSections
Number of sections in a spine curve
Returns

int

get_section(i_idx, o_section)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSection(long iIdx,
Reference oSection)

Retrieves a section or a plane.

Parameters:

iIdx
The index of the section
oSection
The section retrieved
Parameters
Returns

None

modify_guide_curve(ip_ia_guide, ip_ia_new_guide)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ModifyGuideCurve(Reference ipIAGuide,
Reference ipIANewGuide)

Modifies a guide from the spine curve.

Parameters:

ipIAGuide
The guide curve to be replaced.
ipIANewGuide
The new guide curve or plane which replaces the old
one.
Parameters
Returns

None

modify_section_curve(ip_ia_section, ip_ia_new_section)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub modifiesectionCurve(Reference ipIASection,
Reference ipIANewSection)

Modifies a section or a plane from the spine curve.

Parameters:

ipIASection
The section curve or plane to be replaced.
ipIANewSection
The new section curve or plane which replaces the old
one.
Parameters
Returns

None

property orientation

Note

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

Gets or Sets the orientation. Orientation by reference with the normal to
the first section/plane
Returns

int

remove_guide(i_guide)

Note

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

Removes a guide from the spine curve.

Parameters:

iGuide
The guide curve to be removed.
Parameters

i_guide (Reference) –

Returns

None

remove_section(i_section)

Note

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

Removes a section or a plane from the spine curve.

Parameters:

iSection
The section curve or plane to be removed.
Sub-element(s) supported (see

Boundary object): PlanarFace.
Parameters

i_section (Reference) –

Returns

None

set_start_point(i_point)

Note

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

Sets the start point of the spine curve.

Parameters:

iPoint
The point to be set as the spine curve start
point.
Sub-element(s) supported (see

Boundary object): Vertex.
Parameters

i_point (Reference) –

Returns

None

property start_point

Note

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

Returns or sets the start point of the spine.
Returns

Reference

hybrid_shape_spiral

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.hybrid_shape_interfaces.hybrid_shape_spiral.HybridShapeSpiral(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
HybridShapeSpiral

Represents the hybrid shape Spiral feature object.
Role: Allows to access data of the Spiral feature. This data
includes:

type
support
centre point
axis
starting radius
orientation
ending angle
ending radius
revolution
pitch

See also:
HybridShapeFactory
property axis

Note

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

Reads / Changes the Spiral axis (Reference direction).
Returns

HybridShapeDirection

property center_point

Note

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

Reads / Changes the center point of the Spiral.
Returns

Reference

property clockwise_revolution

Note

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

Reads / Modifies the sense of revolutions .
FALSE means that revolutions are counter-clockwise.
TRUE means that revolutions are clockwise.
Returns

bool

property ending_angle

Note

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

Reads / Changes the Ending Angle of the Spiral.
Returns

Angle

property ending_radius

Note

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

Reads / Changes the ending radius of the Spiral.
Returns

Length

property invert_axis

Note

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

Reads / Modifies the orientation .
FALSE means that there is no invertion (natural
orientation).
TRUE to invert this orientation.
Returns

bool

property pitch

Note

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

Reads / Changes the pitch of the Spiral.
Returns

Length

property revol_number

Note

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

Reads / Changes the revolution number of the Spiral.
Returns

RealParam

set_angle_pitch_param(i_end_angle, i_revol_number, i_pitch)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAnglePitchParam(double iEndAngle,
double iRevolNumber,
double iPitch)

Sets Angle pitch parameter.
Parameters
  • i_end_angle (float) –

  • i_revol_number (float) –

  • i_pitch (float) –

Returns

None

set_angle_radius_param(i_end_angle, i_revol_number, i_end_radius)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAngleRadiusParam(double iEndAngle,
double iRevolNumber,
double iEndRadius)

Sets Angle radius parameters.
Parameters
  • i_end_angle (float) –

  • i_revol_number (float) –

  • i_end_radius (float) –

Returns

None

set_radius_pitch_param(i_end_radius, i_pitch)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRadiusPitchParam(double iEndRadius,
double iPitch)

Sets Radius pitch parameter.
Parameters
  • i_end_radius (float) –

  • i_pitch (float) –

Returns

None

property starting_radius

Note

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

Reads / Changes the starting radius of the Spiral.
Returns

Length

property support

Note

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

Reads / Changes the spiral plane support.
Returns

Reference

property type

Note

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

Reads / Changes the spiral type.
Returns

int

hybrid_shape_spline

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.hybrid_shape_interfaces.hybrid_shape_spline.HybridShapeSpline(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
HybridShapeSpline

Represents the hybrid shape spline feature object.
Role: To access the data of the hybrid shape spline feature object. This data
includes:

The support surface
The control points
The tension at each control point
The curvature radius at each control point

Use the CATIAHybridShapeFactory to create a HybridShapeAffinity
object.

See also:
HybridShapeFactory
add_point(ip_ia_point)

Note

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

Add a new point .

Parameters:

iPoint
Point element.
Parameters

ip_ia_point (Reference) –

Returns

None

add_point_with_constraint_explicit(ip_ia_point, ip_ia_dir_tangency, i_tangency_norm, i_inverse_tangency, ip_ia_dir_curvature, i_curvature_radius)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddPointWithConstraintExplicit(Reference ipIAPoint,
HybridShapeDirection ipIADirTangency,
double iTangencyNorm,
long iInverseTangency,
HybridShapeDirection ipIADirCurvature,
double iCurvatureRadius)

Add a new point with explicit tangency and curvature.

Parameters:

ipIAPoint
Point element.
ipIADirTangency
Tangent direction.
iTangencyNorm
Tension.
iInverseTangency
Flag to reverse tangent direction (value can be 1 or -1).

ipIADirCurvature
Curvature direction.
iCurvatureRadius
Curvature radius value.
Parameters
Returns

None

add_point_with_constraint_from_curve(ip_ia_point, ip_ia_curve_cst, i_tangency_norm, i_invert_value, i_crv_cst_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddPointWithConstraintFromCurve(Reference ipIAPoint,
Reference ipIACurveCst,
double iTangencyNorm,
long iInvertValue,
long iCrvCstType)

Add a new point with tangency/curvature from a curve.

Parameters:

ipIAPoint
Point element.
ipIACurveCst
Curvature direction.
iTangencyNorm
tension factor for tangency.
iInvertValue
Orientation for tangent
iCrvCstType
Continuity type for Curve Constraint (1=Tangency , 2-=
Curvature).
Parameters
  • ip_ia_point (Reference) –

  • ip_ia_curve_cst (Reference) –

  • i_tangency_norm (float) –

  • i_invert_value (int) –

  • i_crv_cst_type (int) –

Returns

None

get_closure()

Note

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

Gets whether the curve is closed.

Parameters:

oClosed
Closing flag

1
for a closed curve
0
for an open curve
Returns

int

get_constraint_type(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetConstraintType(long iPos) As long

Returns the ControlPoint type at the given position.

Parameters:

iPos
The position of the point to retrieve
oCstType
Type of Control point
(CstType=0 : not defined / CstType=1 : Explicit / CstType=2 : FromCurve)
Parameters

i_pos (int) –

Returns

int

get_curvature_radius(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetCurvatureRadius(long iPos) As Length

Returns the curvature radius value for each point of the
spline.

Parameters:

iPos
The position of the point in the spline.
Legal values: first position is 1. The position cannot be 0.

oRadius
The curvature radius value at this point
Parameters

i_pos (int) –

Returns

Length

get_direction_inversion(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetDirectionInversion(long iPos) As long

Gets the orientation of the tangent direction .

Parameters:

oInvertFlag
invert flag = 1 No Inversion = -1 Invert
iPos
Position of point in spline First Position is 1 Position 0 return
E_FAIL
Parameters

i_pos (int) –

Returns

int

get_nb_control_point()

Note

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

Returns the number of control points.

Parameters:

oNbCtrPt
The number of control points.
Returns

int

get_point(i_pos)

Note

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

Returns the Point at the given position.

Parameters:

iPos
The position of the point to retrieve
opIAPoint
Type of Control point (TypeCtrPoint =1 : Explicit / TypeCtrPoint =2 : FromCurve)
Parameters

i_pos (int) –

Returns

Reference

get_point_constraint_explicit(i_pos, op_ia_dir_tangency, o_tangency_norm, o_inverse_tangency, op_ia_dir_curvature, o_curvature_radius)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetPointConstraintExplicit(long iPos,
HybridShapeDirection opIADirTangency,
double oTangencyNorm,
long oInverseTangency,
HybridShapeDirection opIADirCurvature,
double oCurvatureRadius)

Returns the Constraint of the point at iPos.
Available for Explicit Point Constraint type (CstType =1 from
GetContraintType)

Parameters:

iPos
The position of the point to retrieve
opIADirTangency
Tangent direction.
oTangencyNorm
Tension.
oInverseTangency
Flag to reverse tangent direction (value can be 1 or -1).

opIADirCurvature
Curvature direction.
oCurvatureRadius
Curvature radius value.
Parameters
Returns

None

get_point_constraint_from_curve(i_pos, op_ia_curve_cst, o_tangency_norm, o_invert_value, o_crv_cst_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetPointConstraintFromCurve(long iPos,
Reference opIACurveCst,
double oTangencyNorm,
long oInvertValue,
long oCrvCstType)

Returns the Constraint of the point at iPos.
Available for FromCurve Point Constraint type (CstType =2 from
GetContraintType)

Parameters:

iPos
The position of the point to retrieve
opIACurveCst
Curvature direction.
oTangencyNorm
tension factor for tangency.
oInvertValue
Orientation for tangent
oCrvCstType
Continuity type for Curve Constraint (1=Tangency , 2-=
Curvature).
Parameters
  • i_pos (int) –

  • op_ia_curve_cst (Reference) –

  • o_tangency_norm (float) –

  • o_invert_value (int) –

  • o_crv_cst_type (int) –

Returns

None

get_point_position(ip_ia_point)

Note

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

Returns the position of a given point.

Parameters:

ipIAPoint
Point
oPos
The position of the point (=0 Point Not in Spline)
Parameters

ip_ia_point (Reference) –

Returns

int

get_spline_type()

Note

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

Gets the spline type.

Parameters:

oType
= 0 : Cubic Type Spline. = 1 : WilsonFowler Type Spline.
Returns

int

get_support()

Note

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

Gets the support surface.

Parameters:

oSupport
Supporting surface for spline (if exist)
Returns

Reference

get_tangent_norm(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetTangentNorm(long iPos) As RealParam

Returns the tension for each point of the spline.
The tension is the tangent norm at the given point.

Parameters:

iPos
The position of the point in the spline.
Legal values: first position is 1. The position cannot be 0.

oTension
The tension at this point
Parameters

i_pos (int) –

Returns

RealParam

invert_direction(i_pos)

Note

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

Inverts the orientation of the tangent direction .

Parameters:

iPos
Position of point in spline First Position is 1 Position 0 return
E_FAIL
Parameters

i_pos (int) –

Returns

None

remove_all()

Note

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

Removes all elements in the list of points.
Returns

None

remove_control_point(i_pos)

Note

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

Removes a point at the given position.

Parameters:

iPos
The position of the point to remove
Parameters

i_pos (int) –

Returns

None

remove_curvature_radius_direction(i_pos)

Note

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

Removes Curvature Radius Direction for the given point of the
spline.

Parameters:

iPos
Position of point in spline First Position is 1 Position 0 return
E_FAIL
Parameters

i_pos (int) –

Returns

None

remove_curvature_radius_value(i_pos)

Note

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

Removes Curvature Radius Value for the given point of the
spline.

Parameters:

iPos
Position of point in spline First Position is 1 Position 0 return
E_FAIL
Parameters

i_pos (int) –

Returns

None

remove_support()

Note

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

Removes the support surface.
Returns

None

remove_tangent_direction(i_pos)

Note

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

Removes tangent Direction for the given point of the
spline.

Parameters:

iPos
Position of point in spline First Position is 1 Position 0 return
E_FAIL
Parameters

i_pos (int) –

Returns

None

remove_tension(i_pos)

Note

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

Removes the Tension for the given point of the spline.

Parameters:

iPos
Position of point in spline First Position is 1 Position 0 return
E_FAIL
Parameters

i_pos (int) –

Returns

None

replace_point_at_position(i_pos, i_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ReplacePointAtPosition(long iPos,
Reference iPoint)

Replaces a point in the list at the given position.

Parameters:

oPoint
Point
iPos
Replace position
Parameters
Returns

None

set_closing(i_closing_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetClosing(long iClosingType)

Activates the closing option of the spline.

Parameters:

iClosingType
The spline closing option
Parameters

i_closing_type (int) –

Returns

None

set_point_after(i_pos, ip_ia_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPointAfter(long iPos,
Reference ipIAPoint)

Sets the Point After a given position.

Parameters:

iPos
The position reference (0 < position < Nbpt)
ipIAPoint
Point
Parameters
  • i_pos (int) –

  • ip_ia_point (Reference) –

Returns

None

set_point_before(i_pos, ip_ia_point)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPointBefore(long iPos,
Reference ipIAPoint)

Sets the Point Before a given position.

Parameters:

iPos
The position reference (1 < position < Nbpt+1)
ipIAPoint
Point
Parameters
  • i_pos (int) –

  • ip_ia_point (Reference) –

Returns

None

set_point_constraint_explicit(i_pos, ip_ia_dir_tangency, i_tangency_norm, i_inverse_tangency, ip_ia_dir_curvature, i_curvature_radius)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPointConstraintExplicit(long iPos,
HybridShapeDirection ipIADirTangency,
double iTangencyNorm,
long iInverseTangency,
HybridShapeDirection ipIADirCurvature,
double iCurvatureRadius)

Sets the Constraint of the point at iPos.
Available for Explicit Point Constraint type (CstType =1 from
GetContraintType)

Parameters:

iPos
The position of the point to retrieve
ipIADirTangency
Tangent direction.
iTangencyNorm
Tension.
iInverseTangency
Flag to reverse tangent direction (value can be 1 or -1).

ipIADirCurvature
Curvature direction.
iCurvatureRadius
Curvature radius value.
Parameters
Returns

None

set_point_constraint_from_curve(i_pos, ip_ia_curve_cst, i_tangency_norm, i_invert_value, i_crv_cst_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPointConstraintFromCurve(long iPos,
Reference ipIACurveCst,
double iTangencyNorm,
long iInvertValue,
long iCrvCstType)

Sets the Constraint of the point at iPos.
Available for From Curve Point Constraint type (CstType =2 from
GetContraintType)

Parameters:

iPos
The position of the point to retrieve
ipIACurveCst
Curvature direction.
iTangencyNorm
tension factor for tangency.
iInvertValue
Orientation for tangent
iCrvCstType
Continuity type for Curve Constraint (1=Tangency , 2-=
Curvature).
Parameters
  • i_pos (int) –

  • ip_ia_curve_cst (Reference) –

  • i_tangency_norm (float) –

  • i_invert_value (int) –

  • i_crv_cst_type (int) –

Returns

None

set_spline_type(i_spline_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSplineType(long iSplineType)

Sets the spline type.

Parameters:

iSplineType
The spline type
Legal values: Cubic spline (0) or WilsonFowler (1)
Parameters

i_spline_type (int) –

Returns

None

set_support(i_support)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSupport(Reference iSupport)

Sets the spline support surface.
Have your “tangent direction” tangent to this support is
recommended.

Parameters:

iSupport
The spline support surface.
Sub-element(s) supported (see

Boundary object): Face.
Parameters

i_support (Reference) –

Returns

None

hybrid_shape_split

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.hybrid_shape_interfaces.hybrid_shape_split.HybridShapeSplit(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
HybridShapeSplit

Represents the hybrid shape split feature object.
Role: To access data of the hybrid shape split feature. This data
includes:

The element to be cut (surface or curve)
The cutting element ( surface, curve or point)
An orientation to specify which side has to be kept

LICENSING INFORMATION: Creation of volume result requires GSO
License
if GSO License is not granted , setting of Volume context has not
effect
Use the CATIAHybridShapeFactory to create HybridShapeFeature
object.

See also:
HybridShapeFactory
add_cutting_elem(i_elem, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddCuttingElem(Reference iElem,
long iOrientation)

Adds a cutting feature.

Parameters:

iElem
cutting feature
iOrientation
Orientation
iOrientation = 1 : SameOrientation = -1 : InvertOrientation = 2 : KoOrientation
Parameters
  • i_elem (Reference) –

  • i_orientation (int) –

Returns

None

add_element_to_keep(i_element)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddElementToKeep(Reference iElement)

Adds an element to specifications. This element will be
kept.

Parameters:

iElement
Element to keep.
Parameters

i_element (Reference) –

Returns

None

add_element_to_remove(i_element)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddElementToRemove(Reference iElement)

Adds an element to specifications. This element will be
removed.

Parameters:

iElement
Element to remove.
Parameters

i_element (Reference) –

Returns

None

property automatic_extrapolation_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AutomaticExtrapolationMode() As boolean

Gets or sets the automatic extrapolation mode status.
AutomaticExtrapolationMode = TRUE :
Automatic extrapolation mode is on. = FALSE :
Automatic extrapolation mode is off.
This example retrieves in AutoExtrapolMode the automatic extrapolation mode status for the
Split hybrid shape feature.

Dim AutoExtrapolMode As boolean
AutoExtrapolMode = Split.AutomaticExtrapolationMode
Returns

bool

property both_sides_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property BothSidesMode() As boolean

Gets or sets both sides computation mode.
BothSidesMode = TRUE :
Both sides are computed. = FALSE :
Both sides are not computed.
This example retrieves in BothSides the both sides computation mode for the Split hybrid shape
feature.

Dim BothSides As boolean
BothSides = Split.BothSidesMode
Returns

bool

property cutting_elem

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CuttingElem() As Reference

Returns or sets the cutting element.
Sub-element(s) supported (see Boundary object): Face, TriDimFeatEdge,
BiDimFeatEdge or Vertex.

Example:
This example retrieves in CuttingElement the cutting element for the
Split hybrid shape feature.

Dim CuttingElement As Reference
Set CuttingElement = Split.CuttingElem
Returns

Reference

property elem_to_cut

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ElemToCut() As Reference

Returns or sets the element to cut.

Example:
This example retrieves in Element the element to cut for the Split
hybrid shape feature.

Dim Element As Reference
Set Element = Split.ElemToCut
Returns

Reference

property extrapolation_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ExtrapolationType() As long

Gets or sets the extrapolation type.
ExtrapolationType = CATGSMExtrapolationType_None(0).
= CATGSMExtrapolationType_Tangent(1).
= CATGSMExtrapolationType_Curvature(2).
This example retrieves in ExtrapolateType the extrapolation type for the Split hybrid shape
feature.
Returns

int

get_cutting_elem(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetCuttingElem(long iRank) As Reference

Gets the cutting feature at a given index (a point, a curve or a
surface).

Parameters:

oElem
cutting feature
iRank
Index of one of the cutting features
Parameters

i_rank (int) –

Returns

Reference

get_intersection(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetIntersection(long iRank) As Reference

Gets the intersection at a given index.

Parameters:

oElem
Intersection
iRank
Index of one of the intersection features
Parameters

i_rank (int) –

Returns

Reference

get_kept_elem(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetKeptElem(long iRank) As Reference

Gets the kept feature at a given index.

Parameters:

oElem
Kept feature
iRank
Index of one of the kept features
Parameters

i_rank (int) –

Returns

Reference

get_nb_cutting_elem()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNbCuttingElem() As long

Gets the number of cutting features.

Parameters:

oNbCuttingElem
Number of cutting features
Returns

int

get_nb_elements_to_keep()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNbElementsToKeep() As long

Gets the number of elements to keep.

Parameters:

oNbElementsToKeep
Number of elements to keep
Returns

int

get_nb_elements_to_remove()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNbElementsToRemove() As long

Gets the number of elements to remove.

Parameters:

oNbElementsToRemove
Number of elements to remove
Returns

int

get_orientation(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOrientation(long iRank) As long

Gets Orientation used to compute the split.

Parameters:

oOrientation
Orientation
iRank
index of the cutting feature oOrientation = 1 : SameOrientation = -1 :
InvertOrientation = 2 : KoOrientation
Parameters

i_rank (int) –

Returns

int

get_other_side()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetOtherSide() As Reference

Gets the other side.

Parameters:

oElem
Other side
Returns

Reference

get_removed_elem(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRemovedElem(long iRank) As Reference

Gets the removed feature at a given index.

Parameters:

oElem
Removed feature
iRank
Index of one of the removed features
Parameters

i_rank (int) –

Returns

Reference

property intersection_computation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property IntersectionComputation() As boolean

Gets or sets Intersection computation mode.
IntersectionComputation
= TRUE : Intersection is computed.
= FALSE : Intersection is not computed.
This example retrieves in Intersection the Intersection computation mode for the Split hybrid
shape feature.

Dim Intersection As boolean
Intersection = Split.IntersectionComputation
Returns

bool

invert_orientation()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InvertOrientation()

Inverts the orientation used to compute the split.
Returns

None

property orientation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Orientation() As long

Returns or sets the orientation used to compute the split.
Role:
Orientation specifies kept parts of cut feature.

When splitting a surface by a surface :
- If orientation value is 1: kept parts are specified by the “natural”
normal to the cutting feature
- If orientation value -1: kept parts are specified by the inverse of the
“natural” normal to the cutting feature

When splitting a surface by a curve :
- If orientation value is 1: kept parts are specified by the result of the cross product :
normal(surface)^tangent(curve)
- If orientation value is -1: Kept parts are specified by the inverse of the result of the cross
product : normal(surface)^tangent(curve)

When splitting a curve by a point or a curve (without support specified)
:
- If orientation value is 1: Kept parts are from beginning of the curve to
the first intersection,
and, if there is one, from the second to the third intersection and so on
until the end of the curve.
- If orientation value is -1: Kept parts are from the first intersection to
the second (if there is one),
and, if there is one, from the third to the fourth and so on until the end
of the curve.

When splitting a curve on support:
- If orientation value is 1: Kept parts are specified by the result of the cross product :
normal(support surface)^tangent(cutting curve)
- If orientation value is -1: Kept parts are specified by the inverse of the result of the cross
product : normal(support surface)^tangent(cutting curve)

When splitting a curve by a surface:
- If orientation value is 1: Kept parts are specified by the inverse of the
normal to the surface
- If orientation value is -1: Kept parts are specified by the normal to the
surface

Example
This example retrieves in OrientValue the orientation value for the
Split hybrid shape feature.

Dim OrientValue As long
Set OrientValue = Split.Orientation
Returns

int

remove_cutting_elem(i_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveCuttingElem(Reference iElem)

Removes a cutting feature.

Parameters:

iElem
cutting feature
Parameters

i_elem (Reference) –

Returns

None

remove_element_to_keep(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveElementToKeep(long iRank)

Removes an element from specifications.

Parameters:

iRank
Index of the kept element.
Parameters

i_rank (int) –

Returns

None

remove_element_to_remove(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveElementToRemove(long iRank)

Removes an element from specifications.

Parameters:

iRank
Index of the removed element.
Parameters

i_rank (int) –

Returns

None

set_orientation(i_rank, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetOrientation(long iRank,
long iOrientation)

Sets the orientation used to compute the split.

Parameters:

iOrientation
Orientation
iRank
index of the cutting feature iOrientation = 1 : SameOrientation = -1 :
InvertOrientation = 2 : KoOrientation
Parameters
  • i_rank (int) –

  • i_orientation (int) –

Returns

None

property support

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Support() As Reference

Returns or sets the support element.
This support element may not exist.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in Element the support element for the Split
hybrid shape feature.

Dim Element As Reference
Set Element = Split.Support
Returns

Reference

property volume_result

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property VolumeResult() As long

Returns or sets the Result Type.
Result type:

: 0 -> Surface
: 1 -> Volume
, The resultant split will be volume. If input is element to cut is
volume.


Note: Setting volume result requires GSO License.

Example: This example retrieves in ResultType the result type for the Split
hybrid shape feature.

Dim RType As long
Set RType = Split.ResultType
Returns

int

hybrid_shape_surface_explicit

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.hybrid_shape_interfaces.hybrid_shape_surface_explicit.HybridShapeSurfaceExplicit(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
HybridShapeSurfaceExplicit

Represents the hybrid shape Surface explicit feature object.
Role: Declare hybrid shape Surface explicit feature object.

See also:
HybridShapeFactory.AddNewSurfaceDatum

Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

hybrid_shape_sweep

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.hybrid_shape_interfaces.hybrid_shape_sweep.HybridShapeSweep(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
HybridShapeSweep

Represents the hybrid shape Sweep feature object.
Role: Declare hybrid shape Sweep root feature object. All interfaces for
different type of sweep derives HybridShapeSweep.

Use the CATIAHybridShapeFactory to create a HybridShapeSweep
objects.

See also:
HybridShapeFactory
add_cut_points(i_element1, i_element2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddCutPoints(Reference iElement1,
Reference iElement2)

Sets two cut points on the master guide. These points define a zone to be
kept on the final swept surface.

Parameters:

iElement1
First / start cut point.
iElement2
Second / end cut point.
Parameters
Returns

None

add_fill_points(i_element1, i_element2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddFillPoints(Reference iElement1,
Reference iElement2)

Sets two fill points on the master guide. These points define a zone to be
filled on the final swept surface.

Parameters:

iElement1
First / start fill point.
iElement2
Second / end fill point.
Parameters
Returns

None

property c0_vertices_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property C0VerticesMode() As boolean

Returns or sets the management mode of C0 vertices as twisted
areas.
TRUE or FALSE.
Returns

bool

property fill_twisted_areas

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FillTwistedAreas() As long

Returns or sets the fill twisted areas mode.
Returns

int

get_cut_point(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetCutPoint(long iRank) As Reference
Parameters

i_rank (int) –

Returns

Reference

get_fill_point(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetFillPoint(long iRank) As Reference
Parameters

i_rank (int) –

Returns

Reference

remove_all_cut_points()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveAllCutPoints()

Removes all cut points.
Returns

None

remove_all_fill_points()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveAllFillPoints()

Removes all fill points.
Returns

None

property setback_value

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SetbackValue() As double

Returns or sets the setback value.
Returns

float

hybrid_shape_sweep_circle

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.hybrid_shape_interfaces.hybrid_shape_sweep_circle.HybridShapeSweepCircle(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
CATGSMIDLItf.HybridShapeSweep
HybridShapeSweepCircle

Represents the hybrid shape sweep circle feature object.
Role: To access the data of the hybrid shape sweep circle feature
object.

LICENSING INFORMATION: Creation of volume result requires GSO
License
if GSO License is not granted , setting of Volume context has not
effect

See also:
HybridShapeFactory
property canonical_detection

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CanonicalDetection() As long

Returns or sets whether canonical surfaces of the swept surface are
detected.
Legal values:
0 No detection of canonical surface is performed.
2 Detection of canonical surfaces is performed.
Returns

int

property choice_no

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ChoiceNo() As long

Returns or sets the choice number, which corresponds to each solution of a
given circular sweep case.
For example: a circular sweep with two guide curves and a radius leads to
four possible solutions.
Returns

int

property context

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Context() As long

Returns or sets the context on Sweep feature.

0 This option creates Swept surface.
1 This option creates Swept volume.


Note: Setting volume result requires GSO License.

Example:
This example retrieves in oContext the context for the Sweep hybrid
shape feature.

Dim oContext
Set oContext = Sweep.Context
Returns

int

property first_angle_law

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstAngleLaw() As Reference

Returns or sets the first angle law useful in some circular sweep types.
Returns

Reference

property first_angle_law_inversion

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstAngleLawInversion() As long

Returns or sets the first angle law inversion information.
Returns

int

property first_guide_crv

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstGuideCrv() As Reference

Returns or sets the sweep operation first guide curve.
Returns

Reference

get_angle(i_i)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAngle(long iI) As Angle

Returns the angle values useful in some circular sweep
types.

Parameters:

iI
The angle value index

Returns:
The angle value
Parameters

i_i (int) –

Returns

Angle

get_angle_law_types(o_first_type, o_second_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetAngleLawTypes(long oFirstType,
long oSecondType)

Retrieves angle law types.

Parameters:

oFirstType
The first type of law (from CATGSMBasicLawType
enumeration).
0 Undefined law type (CATGSMBasicLawType_None)
1 Constant law type (CATGSMBasicLawType_Constant)
2 Linear law type (CATGSMBasicLawType_Linear)
3 S law type (CATGSMBasicLawType_SType)
4 Law specified by a GSD law feature
(CATGSMBasicLawType_Advanced)
oSecondType
The second type of law (from CATGSMBasicLawType
enumeration).
Same legal values as oFirstType
Parameters
  • o_first_type (int) –

  • o_second_type (int) –

Returns

None

get_first_angle_law(o_elem1, o_elem2, ol_law_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetFirstAngleLaw(Angle oElem1,
Angle oElem2,
long olLawType)

Retrieves the first angle law useful in some circular sweep
types.

Parameters:

oElem1
The angle law start value
oElem2
The angle law end value
olLawType
The angle law type
Parameters
  • o_elem1 (Angle) –

  • o_elem2 (Angle) –

  • ol_law_type (int) –

Returns

None

get_longitudinal_relimiters(op_ia_elem1, op_ia_elem2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetLongitudinalRelimiters(Reference opIAElem1,
Reference opIAElem2)

Deprecated:
V5R16 CATHybridShapeSweepCircle#GetRelimiters Retrieves the elements
relimiting the spine (or the default spine).
Parameters:

opIAElem1
The first relimiting feature (plane or point)
opIAElem2
The second relimiting feature (plane or point)
Parameters
Returns

None

get_nb_angle(o_ang)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNbAngle(long oAng)

Retrieves the number of angles.

Parameters:

oAng
The number of angles
Parameters

o_ang (int) –

Returns

None

get_nb_guide(o_num)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNbGuide(long oNum)

Retrieves the number of guide curves.

Parameters:

oNum
The number of guide curves
Parameters

o_num (int) –

Returns

None

get_nb_radius(o_rad)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNbRadius(long oRad)

Retrieves the number of radii.

Parameters:

oRad
The number of radii
Parameters

o_rad (int) –

Returns

None

get_radius(i_i)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRadius(long iI) As Length

Returns the radius value useful in some circular sweep
types.

Parameters:

iI
The radius value index (1: start value, 2: end value)


Returns:
The radius value
Parameters

i_i (int) –

Returns

Length

get_relimiters(op_ia_elem1, op_orient1, op_ia_elem2, op_orient2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetRelimiters(Reference opIAElem1,
long opOrient1,
Reference opIAElem2,
long opOrient2)

Retrieves the elements relimiting the spine (or the default
spine).

Parameters:

opIAElem1
The first relimiting feature (plane or point)
opOrient1
Split direction for the first relimitation
0 means that the beginning of the spine (considering its
orientation) is removed, 1 means that the end of the spine is removed

opIAElem2
The second relimiting feature (plane or point)
opOrient2
Split direction for the second relimitation
Parameters
  • op_ia_elem1 (Reference) –

  • op_orient1 (int) –

  • op_ia_elem2 (Reference) –

  • op_orient2 (int) –

Returns

None

get_second_angle_law(o_elem1, o_elem2, ol_law_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSecondAngleLaw(Angle oElem1,
Angle oElem2,
long olLawType)

Retrieves the second angle law useful in some circular sweep
types.

Parameters:

oElem1
The angle law start value
oElem2
The angle law end value
olLawType
The angle law type
Parameters
  • o_elem1 (Angle) –

  • o_elem2 (Angle) –

  • ol_law_type (int) –

Returns

None

get_tangency_choice_no(o_no, o_shell_ori, o_guide_ori)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetTangencyChoiceNo(long oNo,
long oShellOri,
long oGuideOri)

Retrieves a sequence which identifies a solution among all possibilities of
a circular profile sweep tangent to a surface. (case
CATGSMCircularSweep_GuideAndTangencyAndRadius).

Parameters:

oNo
Given the orientations, solution number in a distance ordered list.

oShellOri
This orientation allows to compute just the results that are
tangent to a specific side of the shell. It can take three
values:
+1 The result is on the normal side of the shell
-1 The result is on the side of the shell opposite to the
normal
0 No orientation is specified
oGuideOri
This orientation allows to compute just the results that are on the
“left” or the “right” side of the shell, when looking in the guide direction.
It can take three values:
+1 The result is on the “left” side
-1 The result is on the “right” side
0 No orientation is specified
Parameters
  • o_no (int) –

  • o_shell_ori (int) –

  • o_guide_ori (int) –

Returns

None

property guide_deviation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property GuideDeviation() As Length (Read Only)

Returns the deviation value (length) from guide curves allowed during a
sweeping operation in order to smooth it.
Returns

Length

property guide_deviation_activity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property GuideDeviationActivity() As boolean

Returns or sets information whether a deviation from guide curves is
allowed or not.
Gives the information on performing smoothing during sweeping
operation.
TRUE if a deviation from guide curves is allowed, or FALSE otherwise (FALSE
if not specified).
Returns

bool

property mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Mode() As long

Returns or sets the circular sweep mode.
Legal mode values are:
0 Undefined circular profile swept surface
(CATGSMCircularSweep_None)
2 Circular profile swept surface defined by three guide curves (4
solutions) (CATGSMCircularSweep_ThreeGuides)
3 Circular profile swept surface defined by a center curve and a reference
curve (for angles and radius)
(CATGSMCircularSweep_TwoGuidesAndRadius)
5 Circular profile swept surface defined by a center curve and a reference
curve (for angles and radius)
(CATGSMCircularSweep_CenterAndAngleCurve)
6 Circular profile swept surface defined by a center curve and a radius
(CATGSMCircularSweep_CenterAndRadius)
7 Circular profile swept surface defined by two guide curves with a
tangency condition on the second one (with reference surface)
(CATGSMCircularSweep_TwoGuidesAndTangency)
8 Circular profile swept surface defined by a guide curve, a radius and a
tangency surface
(CATGSMCircularSweep_GuideAndTangencyAndRadius)
Returns

int

property radius_law

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RadiusLaw() As Reference

Returns or sets the radius law feature.
Returns

Reference

property radius_law_inversion

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RadiusLawInversion() As long

Returns or sets the radius law inversion information.
Returns

int

property radius_law_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RadiusLawType() As long

Returns or sets the radius law type.
Returns

int

property reference

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Reference() As Reference

Returns or sets the reference (functional curve or guide surface).
Returns

Reference

remove_angle()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveAngle()

Removes an angle.
Returns

None

remove_guide()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveGuide()

Removes a guide curve.
Returns

None

remove_radius()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveRadius()

Removes a radius.
Returns

None

property second_angle_law

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondAngleLaw() As Reference

Returns or sets the second angle law useful in some circular sweep types.
Returns

Reference

property second_angle_law_inversion

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondAngleLawInversion() As long

Returns or sets the second angle law inversion information.
Returns

int

property second_guide_crv

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondGuideCrv() As Reference

Returns or sets the sweep operation second guide curve.
Returns

Reference

set_angle(i_i, i_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAngle(long iI,
double iElem)

Sets the angle values useful in some circular sweep types.

Parameters:

iI
The angle value index
iElem
The angle value
Parameters
  • i_i (int) –

  • i_elem (float) –

Returns

None

set_angle_law_types(i_first_type, i_second_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAngleLawTypes(long iFirstType,
long iSecondType)

Sets angle law types.

Parameters:

iFirstType
The first type of law (from CATGSMBasicLawType
enumeration).
Legal values:
0 Undefined law type (CATGSMBasicLawType_None)
1 Constant law type (CATGSMBasicLawType_Constant)
2 Linear law type (CATGSMBasicLawType_Linear)
3 S law type (CATGSMBasicLawType_SType)
4 Law specified by a GSD law feature
(CATGSMBasicLawType_Advanced)
iSecondType
The second type of law (from CATGSMBasicLawType
enumeration).
Same legal values as iFirstType
Parameters
  • i_first_type (int) –

  • i_second_type (int) –

Returns

None

set_first_angle_law(i_elem1, i_elem2, il_law_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFirstAngleLaw(double iElem1,
double iElem2,
long ilLawType)

Sets the first angle law useful in some circular sweep
types.

Parameters:

iElem1
The angle law start value
iElem2
The angle law end value
ilLawType
The angle law type
Parameters
  • i_elem1 (float) –

  • i_elem2 (float) –

  • il_law_type (int) –

Returns

None

set_guide_deviation(i_length)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetGuideDeviation(double iLength)

Sets the deviation value (length) from guide curves allowed during sweeping
operation in order to smooth it.

Parameters:

iLength
The deviation value
Parameters

i_length (float) –

Returns

None

set_longitudinal_relimiters(ip_ia_elem1, ip_ia_elem2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLongitudinalRelimiters(Reference ipIAElem1,
Reference ipIAElem2)

Deprecated:
V5R16 CATHybridShapeSweepCircle#SetRelimiters Sets the elements
relimiting the spine (or the default spine).
Parameters:

ipIAElem1
The first relimiting feature (plane or point)
ipIAElem2
The second relimiting feature (plane or point)
Parameters
Returns

None

set_radius(i_i, i_radius)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRadius(long iI,
double iRadius)

Sets the radius value useful in some circular sweep types.

Parameters:

iI
The radius value index (1: start value, 2: end value)

iRadius
The radius value
Parameters
  • i_i (int) –

  • i_radius (float) –

Returns

None

set_relimiters(ip_ia_elem1, ip_orient1, ip_ia_elem2, ip_orient2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRelimiters(Reference ipIAElem1,
long ipOrient1,
Reference ipIAElem2,
long ipOrient2)

Sets the elements relimiting the spine (or the default
spine).

Parameters:

ipIAElem1
The first relimiting feature (plane or point)
ipOrient1
Split direction for the first relimitation
0 means that the beginning of the spine (considering its
orientation) is removed, 1 means that the end of the spine is removed

ipIAElem2
The second relimiting feature (plane or point)
ipOrient2
Split direction for the second relimitation
Parameters
  • ip_ia_elem1 (Reference) –

  • ip_orient1 (int) –

  • ip_ia_elem2 (Reference) –

  • ip_orient2 (int) –

Returns

None

set_second_angle_law(i_elem1, i_elem2, il_law_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSecondAngleLaw(double iElem1,
double iElem2,
long ilLawType)

Sets the second angle law useful in some circular sweep
types.

Parameters:

iElem1
The angle law start value
iElem2
The angle law end value
ilLawType
Tha angle law type
Parameters
  • i_elem1 (float) –

  • i_elem2 (float) –

  • il_law_type (int) –

Returns

None

set_smooth_angle_threshold(i_angle)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSmoothAngleThreshold(double iAngle)

Sets the angular threshold.

Parameters:

iAngle
The angular threshold
Parameters

i_angle (float) –

Returns

None

set_tangency_choice_no(i_shell_ori, i_guide_ori, i_no)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTangencyChoiceNo(long iShellOri,
long iGuideOri,
long iNo)

Sets a sequence which identifies a solution among all possibilities of a
circular profile sweep tangent to a surface.

Parameters:

iNo
Given the orientations, solution number in a distance ordered list.

iShellOri
This orientation allows to compute just the results that are
tangent to a specific side of the shell. It can take three
values:
+1 The result is on the normal side of the shell
-1 The result is on the side of the shell opposite to the
normal
0 No orientation is specified
iGuideOri
This orientation allows to compute just the results that are on the
“left” or the “right” side of the shell, when looking in the guide direction.
It can take three values:
+1 The result is on the “left” side
-1 The result is on the “right” side
0 No orientation is specified
Parameters
  • i_shell_ori (int) –

  • i_guide_ori (int) –

  • i_no (int) –

Returns

None

property smooth_activity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SmoothActivity() As boolean

Returns or sets information whether a sweeping operation is smoothed or
not.
TRUE if the sweeping operation is smoothed, or FALSE otherwise (FALSE if
not specified).
Returns

bool

property smooth_angle_threshold

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SmoothAngleThreshold() As Angle (Read Only)

Returns the angular threshold.
Returns

Angle

property spine

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Spine() As Reference

Returns or sets the sweep operation spine (optional).
Returns

Reference

property third_guide_crv

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ThirdGuideCrv() As Reference

Returns or sets the sweep operation third guide curve.
Returns

Reference

property trim_option

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TrimOption() As long

Returns or sets the trim option status.
The trim option status legal values are:
0 No trim computed or undefined
(CATGSMSweepTrimMode_None)
1 Trim computed (CATGSMSweepTrimMode_On)
Returns

int

hybrid_shape_sweep_conic

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.hybrid_shape_interfaces.hybrid_shape_sweep_conic.HybridShapeSweepConic(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
CATGSMIDLItf.HybridShapeSweep
HybridShapeSweepConic

Represents the hybrid shape conic sweep feature.
Role: To access the data of the conic sweep feature .

Use the HybridShapeFactory.AddNewSweepConic to create a HybridShapeConicSweep
object.
property canonical_detection

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CanonicalDetection() As long

Returns or sets whether canonical surfaces of the swept surface are
detected.
Legal values:
0 No detection of canonical surface is performed.
2 Detection of canonical surfaces is performed.
Returns

int

property fifth_guide_crv

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FifthGuideCrv() As Reference

Returns or sets the fifth guide curve.
Returns

Reference

property first_guide_crv

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstGuideCrv() As Reference

Returns or sets the first guide curve.
Returns

Reference

property fourth_guide_crv

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FourthGuideCrv() As Reference

Returns or sets the fourth guide curve.
Returns

Reference

get_longitudinal_relimiters(op_ia_elem1, op_ia_elem2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetLongitudinalRelimiters(Reference opIAElem1,
Reference opIAElem2)

Deprecated:
V5R16 CATHybridShapeSweepConic#GetRelimiters Gets the elements
relimiting the spine (or the default spine).
param : opIAElem1 First relimiting feature (plane or point)
param : opIAElem2 Second relimiting feature (plane or point)
Parameters
Returns

None

get_nb_guides(o_num)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNbGuides(long oNum)

Gets the number of guides.
param : oNum Number of guides curve.
Parameters

o_num (int) –

Returns

None

get_parameter_law(o_param_start, o_param_end, o_law_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetParameterLaw(double oParamStart,
double oParamEnd,
long oLawType)

Gets the parameter law used in conic sweep operation.
param : oParamStart Parameter law start value.
param : oParamEnd Parameter law end value.
param : oLawType Parameter law type.
Parameters
  • o_param_start (float) –

  • o_param_end (float) –

  • o_law_type (int) –

Returns

None

get_relimiters(op_ia_elem1, op_orient1, op_ia_elem2, op_orient2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetRelimiters(Reference opIAElem1,
long opOrient1,
Reference opIAElem2,
long opOrient2)

Retrieves the elements relimiting the spine (or the default
spine).

Parameters:

opIAElem1
The first relimiting feature (plane or point)
opOrient1
Split direction for the first relimitation
0 means that the beginning of the spine (considering its
orientation) is removed, 1 means that the end of the spine is removed

opIAElem2
The second relimiting feature (plane or point)
opOrient2
Split direction for the second relimitation
Parameters
  • op_ia_elem1 (Reference) –

  • op_orient1 (int) –

  • op_ia_elem2 (Reference) –

  • op_orient2 (int) –

Returns

None

get_tangency(op_ia_elem, op_ia_angle_start, op_ia_angle_end, o_law_type, i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetTangency(Reference opIAElem,
Angle opIAAngleStart,
Angle opIAAngleEnd,
long oLawType,
long iIndex)

Gets tangency surface or curve and its angle given the guide curve
index.
param : opIAElem
param : opIAAngleStart Start tangency angle from surface or curve reference.
param : opIAAngleEnd End tangency angle from surface or curve reference.
param : oLawType Type of law used for tangency angle from surface or curve reference.
param : iIndex Guide curve index : 1 to 5.
Parameters
  • op_ia_elem (Reference) –

  • op_ia_angle_start (Angle) –

  • op_ia_angle_end (Angle) –

  • o_law_type (int) –

  • i_index (int) –

Returns

None

get_tangency_angle_law_inversion(i_index, o_inversion)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetTangencyAngleLawInversion(long iIndex,
long oInversion)

Gets information whether tangency angle law has to be inverted or not for a
specified guide curve.
param : iIndex Guide curve index : 1 to 5
param : oInversion Non-Zero for TRUE and 0 for FALSE.
Parameters
  • i_index (int) –

  • o_inversion (int) –

Returns

None

get_tangency_law(op_ia_elem, op_ia_law, i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetTangencyLaw(Reference opIAElem,
Reference opIALaw,
long iIndex)

Gets tangency surface or curve and its angle given the guide curve
index.
param : opIAElem Tangency surface or curve feature.
param : opIALaw Start tangency angle from surface or curve reference.
param : iIndex Guide curve index : 1 to 5.
Parameters
Returns

None

property guide_deviation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property GuideDeviation() As Length (Read Only)

Returns deviation value (length) from guide curves allowed during sweeping
operation in order to smooth it.
Returns

Length

property guide_deviation_activity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property GuideDeviationActivity() As boolean

Returns or sets information whether a deviation from guide curves is
allowed or not.
Gives the information on performing smoothinh during sweeping
operation.
TRUE or FALSE (FALSE if not specified).
Returns

bool

property parameter

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Parameter() As double

Returns or sets the parameter for conic sweep operation.
if the parameter is a law, the method returns FALSE see
HybridShapeLawDistProj
Returns

float

property parameter_law

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParameterLaw() As Reference

Returns or sets the parameter law useful in conic sweep operation.
Returns

Reference

property parameter_law_inversion

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParameterLawInversion() As boolean

Returns or sets the parameter law inversion flag of conic sweep
operation.
TRUE if parameter law is inverted. Else it is FALSE. see
HybridShapeLawDistProj
Returns

bool

property parameter_law_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ParameterLawType() As long

Returns or sets the parameter law type in conic sweep operation.
Returns

int

remove_guide(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveGuide(long iIndex)

Removes a guide curve given its index.
it removes also tangency element if specified.
param : iIndex Guide curve index : 1 to 5. If 0, all guides are removed.
Parameters

i_index (int) –

Returns

None

remove_parameter()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveParameter()

Removes conical sweep parameter, whether it is a single value or a law.
Returns

None

remove_tangency(i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveTangency(long iIndex)

removes tangency surface or curve and its angle given the guide curve
index.
param : iIndex Guide curve index : 1 to 5.
Parameters

i_index (int) –

Returns

None

property second_guide_crv

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondGuideCrv() As Reference

Returns or sets the second guide curve.
Returns

Reference

set_guide_deviation(i_length)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetGuideDeviation(double iLength)

Sets deviation value (length) from guide curves allowed during sweeping
operation in order to smooth it.
param : iLength Numerical value.
Parameters

i_length (float) –

Returns

None

set_longitudinal_relimiters(ip_ia_elem1, ip_ia_elem2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLongitudinalRelimiters(Reference ipIAElem1,
Reference ipIAElem2)

Deprecated:
V5R16 CATHybridShapeSweepConic#SetRelimiters Sets the elements
relimiting the spine (or the default spine).
param : ipIAElem1 First relimiting feature (plane or point)
param : ipIAElem2 Second relimiting feature (plane or point)
Parameters
Returns

None

set_parameter_law(i_param_start, i_param_end, i_law_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetParameterLaw(double iParamStart,
double iParamEnd,
long iLawType)

Sets the parameter law that will be used in conic sweep
operation.
param : iParamStart Parameter law start value.
param : iParamEnd Parameter law end value.
param : iLawType Parameter law type.
Parameters
  • i_param_start (float) –

  • i_param_end (float) –

  • i_law_type (int) –

Returns

None

set_relimiters(ip_ia_elem1, ip_orient1, ip_ia_elem2, ip_orient2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRelimiters(Reference ipIAElem1,
long ipOrient1,
Reference ipIAElem2,
long ipOrient2)

Sets the elements relimiting the spine (or the default
spine).

Parameters:

ipIAElem1
The first relimiting feature (plane or point)
ipOrient1
Split direction for the first relimitation
0 means that the beginning of the spine (considering its
orientation) is removed, 1 means that the end of the spine is removed

ipIAElem2
The second relimiting feature (plane or point)
ipOrient2
Split direction for the second relimitation
Parameters
  • ip_ia_elem1 (Reference) –

  • ip_orient1 (int) –

  • ip_ia_elem2 (Reference) –

  • ip_orient2 (int) –

Returns

None

set_smooth_angle_threshold(i_angle)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSmoothAngleThreshold(double iAngle)

Sets angular threshold under which discontinuities.
note: moving frame,tangency net on reference surface will be smoothed when
sweeping.
param : iAngle Numerical value.
Parameters

i_angle (float) –

Returns

None

set_tangency(ip_ia_elem, i_angle_start, i_angle_end, ilaw_type, i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTangency(Reference ipIAElem,
double iAngleStart,
double iAngleEnd,
long ilawType,
long iIndex)

Sets tangency surface or curve and its angle given the guide curve
index.
param : ipIAElem Tangency surface or curve feature.
param : iAngleStart Start tangency angle from surface or curve reference.
param : iAngleEnd End tangency angle from surface or curve reference.
param : iAngleLawType Type of law used for tangency angle from surface or curve reference.
param : iIndex Guide curve index : 1 to 5.
Parameters
  • ip_ia_elem (Reference) –

  • i_angle_start (float) –

  • i_angle_end (float) –

  • ilaw_type (int) –

  • i_index (int) –

Returns

None

set_tangency_angle_law_inversion(i_index, i_inversion)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTangencyAngleLawInversion(long iIndex,
long iInversion)

Sets information whether tangency angle law has to be inverted or not for a
specified guide curve.
param : iIndex Guide curve index : 1 to 5
param : iInversion 1 for TRUE and 0 for FALSE.
Parameters
  • i_index (int) –

  • i_inversion (int) –

Returns

None

set_tangency_law(ip_ia_elem, ip_ia_law, i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetTangencyLaw(Reference ipIAElem,
Reference ipIALaw,
long iIndex)

Sets tangency surface or curve and its angle given the guide curve
index.
param : ipIAElem Tangency surface or curve feature.
param : ipIALaw Start tangency angle from surface or curve reference.
param : iIndex Guide curve index : 1 to 5.
Parameters
Returns

None

property smooth_activity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SmoothActivity() As boolean

Returns or sets information whether sweeping operation is smoothed or
not.
TRUE or FALSE (FALSE if not specified).
Returns

bool

property smooth_angle_threshold

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SmoothAngleThreshold() As Angle (Read Only)

Returns angular threshold under which discontinuities .
moving frame,tangency net on reference surface will be smoothed when
sweeping.
Returns

Angle

property spine

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Spine() As Reference

Returns or sets the spine (optional) for sweep operation.
param : oElem Spine curve.

See also:
Reference
Returns

Reference

property third_guide_crv

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ThirdGuideCrv() As Reference

Returns or sets the third guide curve.
Returns

Reference

hybrid_shape_sweep_explicit

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.hybrid_shape_interfaces.hybrid_shape_sweep_explicit.HybridShapeSweepExplicit(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
CATGSMIDLItf.HybridShapeSweep
HybridShapeSweepExplicit

Represents the hybrid shape Sweep explicit feature object.
Role: To access the data of the hybrid shape sweep explicit feature
object.

LICENSING INFORMATION: Creation of volume result requires GSO
License
if GSO License is not granted , setting of Volume context has not
effect

See also:
HybridShapeFactory
property angle_law

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AngleLaw() As Reference

Returns or sets the angle law feature associated to the reference
surface.

Parameters:

oElem
Angle law element. return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Reference
See also:
HybridShapeFactory
Returns

Reference

property angle_law_inversion

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AngleLawInversion() As long

Returns or sets the angle law inversion information.

Parameters:

oElem
Angle law inversion information.

See also:
HybridShapeFactory
Returns

int

property angle_law_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AngleLawType() As long

Returns or sets the angle law type associated to the reference
surface.

Parameters:

oElem
Angle law type.

See also:
HybridShapeFactory
Returns

int

property canonical_detection

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CanonicalDetection() As long

Returns or sets whether canonical surfaces of the swept surface are
detected.
Legal values:
0 No detection of canonical surface is performed.
2 Detection of canonical surfaces is performed.
Returns

int

property context

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Context() As long

Returns or sets the context on Sweep feature.

0 This option creates Swept surface.
1 This option creates Swept volume.


Note: Setting volume result requires GSO License.

Example:
This example retrieves in oContext the context for the Sweep hybrid
shape feature.

Dim oContext
Set oContext = Sweep.Context
Returns

int

property first_guide_crv

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstGuideCrv() As Reference

Gets the first guide curve.

Parameters:

oElem
Guide curve. return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

get_angle_ref(ii)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAngleRef(long ii) As Angle

Gets the angle value associated to the reference surface.

Parameters:

iI
Angle value index (1: start value, 2: end value).
oElem
Angle value. return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Angle
See also:
HybridShapeFactory
Parameters

ii (int) –

Returns

Angle

get_fitting_points(op_ia_elem_a, op_ia_elem_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetFittingPoints(Reference opIAElemA,
Reference opIAElemB)

Gets the fitting points : located in the profile plane, these points are used for two-guide swept
surfaces to determine guide intersection locations.
param opIAElem1 Fitting point associated to the first
guide
param opIAElem2 Fitting point associated to the second guide
Parameters
Returns

None

get_longitudinal_relimiters(op_ia_elem_a, op_ia_elem_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetLongitudinalRelimiters(Reference opIAElemA,
Reference opIAElemB)

Deprecated:
V5R16 CATHybridShapeSweepExplicit#GetRelimiters Returns the elements
relimiting the spine (or the default spine).
param : opIAElem1 First relimiting feature (plane or point)
param : opIAElem2 Second relimiting feature (plane or point)
Parameters
Returns

None

get_nb_angle(o_ang)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNbAngle(long oAng)

Returns the number of Angles.
param : oAng Number of Angle.
Parameters

o_ang (int) –

Returns

None

get_nb_guide(o_num)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNbGuide(long oNum)

Gets the number of guides curves.
param : oNum Number of guide curves.
Parameters

o_num (int) –

Returns

None

get_nb_pos_angle(o_pos_ang)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNbPosAngle(long oPosAng)

Gets the number of numerical positioning parameters corresponding to angles
from the default positions of the X axes.
param : oPosAng Number of parameters
Parameters

o_pos_ang (int) –

Returns

None

get_nb_pos_coord(o_pos_coord)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNbPosCoord(long oPosCoord)

Gets the number of numerical positioning parameters corresponding to
coordinates of the new axes systems origins.
param oPosCoord Number of parameters
Parameters

o_pos_coord (int) –

Returns

None

get_pos_angle(ii)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPosAngle(long ii) As Angle

Gets angles if both profile and first sweep plane axis systems from default
positions.

Parameters:

iI
Index of numerical positioning coordinates in profile (value 1) or
first sweep plane (value 2) axis system.
oElem
Angle value. return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Angle
See also:
HybridShapeFactory
Parameters

ii (int) –

Returns

Angle

get_pos_coord(ii)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPosCoord(long ii) As Length

Gets translations coordinates if both profile axis system and first sweep
plane axis system from default positions.

Parameters:

iI
Index of numerical positioning coordinates in profile (value 1 or
2) or first sweep plane (value 3 or 4) axis system.

oElem
Coordinate value. return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Length
See also:
HybridShapeFactory
Parameters

ii (int) –

Returns

Length

get_pos_direction(ii)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPosDirection(long ii) As Reference

Gets the positioning directions : profile plane or first sweep plane X-axis direction.

Parameters:

iI
Plane index : 1 for profile plane, 2 for first sweep plane.
oElem
Direction element. return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Reference
See also:
HybridShapeFactory
Parameters

ii (int) –

Returns

Reference

get_pos_point(ii)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPosPoint(long ii) As Reference

Gets the points designated as the origins of the profile plane and first
sweep plane.

Parameters:

iI
Plane index : 1 for profile plane, 2 for first sweep plane.
oElem
Origin point. return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Reference
See also:
HybridShapeFactory
Parameters

ii (int) –

Returns

Reference

get_pos_swap_axes(ii)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPosSwapAxes(long ii) As long

Gets axes inversion from previous definition for both profile plane and
first sweep plane.

Parameters:

iI
Axis system index (1 for profile plane, 2 for first sweep plane).

oElem
Inversion value:
Inversion values :
= 1 - CATGSMAxisInversionMode_None : no axis inverted.
= 2 - CATGSMAxisInversionMode_X : only X axis inverted.
= 3 - CATGSMAxisInversionMode_Y : only Y axis inverted.
= 4 - CATGSMAxisInversionMode_Both : both axes inverted.

See also:
HybridShapeFactory
Parameters

ii (int) –

Returns

int

get_relimiters(op_ia_elem1, op_orient1, op_ia_elem2, op_orient2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetRelimiters(Reference opIAElem1,
long opOrient1,
Reference opIAElem2,
long opOrient2)

Retrieves the elements relimiting the spine (or the default
spine).

Parameters:

opIAElem1
The first relimiting feature (plane or point)
opOrient1
Split direction for the first relimitation
0 means that the beginning of the spine (considering its
orientation) is removed, 1 means that the end of the spine is removed

opIAElem2
The second relimiting feature (plane or point)
opOrient2
Split direction for the second relimitation
Parameters
  • op_ia_elem1 (Reference) –

  • op_orient1 (int) –

  • op_ia_elem2 (Reference) –

  • op_orient2 (int) –

Returns

None

property guide_deviation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property GuideDeviation() As Length (Read Only)

Returns deviation value (length) from guide curves allowed during sweeping
operation in order to smooth it.
Returns

Length

property guide_deviation_activity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property GuideDeviationActivity() As boolean

Returns or sets information whether a deviation from guide curves is
allowed or not.
Gives the information on performing smoothing during sweeping
operation.
TRUE or FALSE (FALSE if not specified).
Returns

bool

property guide_projection

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property GuideProjection() As boolean

Returns or sets the projection of the guide curve onto the reference plane
in order to use it as spine, in pulling direction case only. Removes Spine if
GuideProjection is set to TRUE.
Legal values: True projection is required and False if not

Example:

This example sets that the GuideProjection mode of
the Sweep hybrid shape sweep explicit feature to
True.


Sweep.GuideProjection = True
Returns

bool

is_sketch_axis_used_as_default(o_boolean)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub IsSketchAxisUsedAsDefault(boolean oBoolean)

Queries status wherere Sketch axis used as default or not.
In case of a sketch profile, specify if the 2D sketch axis must be used as
default planar profile axis (for positioning purpose) or
not.
param oBoolean TRUE if the 2D sketch axis must be used, FALSE if not.
Parameters

o_boolean (bool) –

Returns

None

property mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Mode() As long

Returns or sets positioning mode used for the profile.

Parameters:

oElem

Values :
= 1 - CATGSMPositionMode_NoneOrPositioned : no positioning,

= 2 - CATGSMPositionMode_ExplicitSweep : the explicit profile is to be moved from its
initial plane to the first sweep plane,

= 3 - CATGSMPositionMode_Develop : === DO NOT USE IN THIS CASE ===

See also:
HybridShapeFactory
Returns

int

property position_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PositionMode() As long

Returns or sets positioning mode.
Legal values:

0
CATGSMPositionMode_NoneOrPositioned.
1
CATGSMPositionMode_ExplicitSweep. if a positioning operation is
done.

Example:
This example retrieves in oPosMode the position mode for the Sweep hybrid
shape feature.

oPosMode = Sweep.PositionMode
Returns

int

property positioned_profile

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PositionedProfile() As Reference

Returns or sets the positioning transformation associated to the explicit
swept surface and which result corresponds to the positioned
profile.

Parameters:

oElem
Positioning transformation / positioned profile. return value for
CATScript applications, with (IDLRETVAL) function type


See also:
Reference
See also:
HybridShapeFactory
Returns

Reference

property profile

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Profile() As Reference

Gets the profile to be swept out.

Parameters:

oElem
Profile element. return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

property profile_x_axis_computation_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ProfileXAxisComputationMode() As long

Returns or sets the computation mode of the X axis (or direction) of the
initial axis system (on the profile). Default value is
CATGSMPositionDirCompMode_None when PosDirection(OutputDirection) is not
specified and CATGSMPositionDirCompMode_User if OutputDirection is
specified.
Legal values:

0
CATGSMPositionDirCompMode_None. No X axis specified.
1
CATGSMPositionDirCompMode_Tangent: the X axis is implicitly the tangent
of the profile at the origin (the origin then HAS to be on the
profile)
2
CATGSMPositionDirCompMode_User: the X axis is specified by a direction
via SetPosDirection(UserInputDirection, 1)

Example:
This example retrieves in oDirCompMode the Profile X Axis ComputationMode
for the Sweep hybrid shape feature.

oDirCompMode = Sweep.ProfileXAxisComputationMode
Returns

int

property pulling_direction

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property PullingDirection() As HybridShapeDirection

Gets or sets the pulling direction
If the direction is specified, the plane normal to this direction is taken
as reference surface.

Example:
This example retrieves in ohDir the pulling direction feature for the
Sweep hybrid shape feature.

Dim ohDir As CATIAHybridShapeDirection
Set ohDir = Sweep.PullingDirection
Returns

HybridShapeDirection

property reference

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Reference() As Reference

Returns or sets the reference surface (optional).

Parameters:

oElem
Reference surface. return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Reference
Returns

Reference

remove_angle()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveAngle()

Removes an Angle.
Returns

None

remove_fitting_points()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveFittingPoints()

Removes the fitting points.
Returns

None

remove_guide()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveGuide()

Removes a guide curve.
Returns

None

property second_guide_crv

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondGuideCrv() As Reference

Gets the second guide curve (optional).

Parameters:

oElem
Guide curve. return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Reference
Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Returns

Reference

set_angle_ref(ii, elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAngleRef(long ii,
double Elem)

Sets the angle value associated to the reference surface.

Parameters:

iI
Angle value index (1: start value, 2: end value).
iElem
Angle value.

See also:
HybridShapeFactory
Parameters
  • ii (int) –

  • elem (float) –

Returns

None

set_fitting_points(ip_ia_elem_a, ip_ia_elem_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFittingPoints(Reference ipIAElemA,
Reference ipIAElemB)

Sets the fitting points.
Does not work with NULL_var values, Use RemoveFittingPoints() method
instead.
param ipIAElem1 Fitting point associated to the first guide (must not be
equal to NULL_var)
param ipIAElem2 Fitting point associated to the second guide (can be equal
to NULL_var)
Parameters
Returns

None

set_guide_deviation(i_length)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetGuideDeviation(double iLength)

Sets deviation value (length) from guide curves allowed during sweeping.
operation in order to smooth it.
param : iLength Numerical value.
Parameters

i_length (float) –

Returns

None

set_longitudinal_relimiters(ip_ia_elem_a, ip_ia_elem_b)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLongitudinalRelimiters(Reference ipIAElemA,
Reference ipIAElemB)

Deprecated:
V5R16 CATHybridShapeSweepExplicit#SetRelimiters Sets the elements
relimiting the spine (or the default spine).
param : ipIAElem1 First relimiting feature (plane or point)
param : ipIAElem2 Second relimiting feature (plane or point)
Parameters
Returns

None

set_pos_angle(ii, elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPosAngle(long ii,
double Elem)

Sets angles if both profile and first sweep plane axis systems from default
positions.

Parameters:

iI
Index of numerical positioning coordinates in profile (value 1) or
first sweep plane (value 2) axis system.
iElem
Angle value.

See also:
HybridShapeFactory
Parameters
  • ii (int) –

  • elem (float) –

Returns

None

set_pos_coord(ii, elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPosCoord(long ii,
double Elem)

Sets translations coordinates if both profile axis system and first sweep
plane axis system from default positions.

Parameters:

iI
Index of numerical positioning coordinates in profile (value 1 or
2) or first sweep plane (value 3 or 4) axis system.

iElem
Coordinate value.

See also:
HybridShapeFactory
Parameters
  • ii (int) –

  • elem (float) –

Returns

None

set_pos_direction(ii, elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPosDirection(long ii,
Reference Elem)

Sets the positioning directions : profile plane or first sweep plane X-axis direction.

Parameters:

iI
Plane index : 1 for profile plane, 2 for first sweep plane.
iElem
Direction element.

See also:
Reference
See also:
HybridShapeFactory
Parameters
Returns

None

set_pos_point(ii, elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPosPoint(long ii,
Reference Elem)

Sets the points designated as the origins of the profile plane and first
sweep plane.

Parameters:

iI
Plane index : 1 for profile plane, 2 for first sweep plane.
iElem
Origin point.

See also:
Reference
See also:
HybridShapeFactory
Parameters
Returns

None

set_pos_swap_axes(ii, elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPosSwapAxes(long ii,
long Elem)

Sets axes inversion from previous definition for both profile plane and
first sweep plane.

Parameters:

iI
Axis system index (1 for profile plane, 2 for first sweep plane).

iElem
Inversion value:

Inversion values :
= 1 - CATGSMAxisInversionMode_None : no axis inverted.
= 2 - CATGSMAxisInversionMode_X : only X axis inverted.
= 3 - CATGSMAxisInversionMode_Y : only Y axis inverted.
= 4 - CATGSMAxisInversionMode_Both : both axes inverted.

See also:
HybridShapeFactory
Parameters
  • ii (int) –

  • elem (int) –

Returns

None

set_relimiters(ip_ia_elem1, ip_orient1, ip_ia_elem2, ip_orient2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRelimiters(Reference ipIAElem1,
long ipOrient1,
Reference ipIAElem2,
long ipOrient2)

Sets the elements relimiting the spine (or the default
spine).

Parameters:

ipIAElem1
The first relimiting feature (plane or point)
ipOrient1
Split direction for the first relimitation
0 means that the beginning of the spine (considering its
orientation) is removed, 1 means that the end of the spine is removed

ipIAElem2
The second relimiting feature (plane or point)
ipOrient2
Split direction for the second relimitation
Parameters
  • ip_ia_elem1 (Reference) –

  • ip_orient1 (int) –

  • ip_ia_elem2 (Reference) –

  • ip_orient2 (int) –

Returns

None

set_smooth_angle_threshold(i_angle)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSmoothAngleThreshold(double iAngle)

Sets angular threshold.
param : iAngle Numerical value.
Parameters

i_angle (float) –

Returns

None

property smooth_activity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SmoothActivity() As boolean

Returns or sets information whether sweeping operation is smoothed or
not.
TRUE or FALSE (FALSE if not specified).
Returns

bool

property smooth_angle_threshold

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SmoothAngleThreshold() As Angle (Read Only)

Returns angular threshold.
Returns

Angle

property solution_no

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SolutionNo() As long

Returns or sets the choice number, which corresponds to each solution of a
given explicit sweep case.
For example: a explicit sweep with reference surface leads to four possible
solutions.
Returns

int

property spine

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Spine() As Reference

Returns or sets the spine (optional) for sweep operation.

Parameters:

oElem
Spine curve. return value for CATScript applications, with
(IDLRETVAL) function type

See also:
Reference
See also:
HybridShapeFactory
Returns

Reference

property sub_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SubType() As long

Returns or sets the explicit sweep subtype.
Legal subtype values are:
1 Explicit profile swept surface defined with reference
surface
2 Explicit profile swept surface defined with two guide
curves
3 Explicit profile swept surface defined with pulling
direction
Returns

int

use_sketch_axis_as_default(i_boolean)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub UseSketchAxisAsDefault(boolean iBoolean)

Uses Sketch Axis As Default.
In case of a sketch profile, specify if the 2D sketch axis must be used as
default planar profile axis (for positioning purpose) or
not.
param iBoolean TRUE if the 2D sketch axis must be used, FALSE if not.
Parameters

i_boolean (bool) –

Returns

None

hybrid_shape_sweep_line

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.hybrid_shape_interfaces.hybrid_shape_sweep_line.HybridShapeSweepLine(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
CATGSMIDLItf.HybridShapeSweep
HybridShapeSweepLine

Represents the sweep line object.
add_draft_angle_definition_location(ip_ia_loc_elem, i_ang)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddDraftAngleDefinitionLocation(Reference ipIALocElem,
double iAng)

Adds a draft angle location.

Parameters:

ipIALocElem
The geometric element where the draft angle applies

iAng
The draft angle
Parameters
  • ip_ia_loc_elem (Reference) –

  • i_ang (float) –

Returns

None

property angle_law

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AngleLaw() As Reference

Returns or sets the angular law.
Returns

Reference

property angle_law_inversion

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AngleLawInversion() As long

Returns or sets whether the angular law has to be
inverted.
Legal angular law inversion values are:
0 The angular law has NOT to be inverted
1 The angular law has to be inverted
Returns

int

property angle_law_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AngleLawType() As long

Returns or sets the angular law type.
Legal angular law type values are:
0 Undefined law type (CATGSMBasicLawType_None)
1 Constant law type (CATGSMBasicLawType_Constant)
2 Linear law type (CATGSMBasicLawType_Linear)
3 S law type (CATGSMBasicLawType_SType)
4 Law specified by a GSD law feature
(CATGSMBasicLawType_Advanced)
Returns

int

property canonical_detection

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CanonicalDetection() As long

Returns or sets whether canonical surfaces of the swept surface are
detected.
Legal values:
0 No detection of canonical surface is performed.
2 Detection of canonical surfaces is performed.
Returns

int

property context

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Context() As long

Returns or sets the context on Sweep feature.

0 This option creates Swept surface.
1 This option creates Swept volume.


Note: Setting volume result requires GSO License.

Example:
This example retrieves in oContext the context for the Sweep hybrid
shape feature.

Dim oContext
Set oContext = Sweep.Context
Returns

int

property draft_computation_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DraftComputationMode() As long

Returns or sets the draft computation mode.
Returns

int

property draft_direction

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DraftDirection() As HybridShapeDirection

Returns or sets the draft direction.

Example
:
This example retrieves in oDirection the direction of the LinearSweep
feature.

Dim oDirection As CATIAHybridShapeDirection
Set oDirection = LinearSweep.DraftDirection
Returns

HybridShapeDirection

property first_guide_crv

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstGuideCrv() As Reference

Returns or sets the sweep operation first guide curve.
Returns

Reference

property first_guide_surf

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstGuideSurf() As Reference

Returns or sets the sweep operation first guide surface.
Returns

Reference

property first_length_law

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstLengthLaw() As Reference

Returns or sets the first length law useful in some linear sweep types.
Returns

Reference

property first_length_law_inversion

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstLengthLawInversion() As long

Returns or sets whether the first length law has to be
inverted.
Legal length law inversion values are:
0 The length law has NOT to be inverted
1 The length law has to be inverted
Returns

int

get_angle(i_i)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetAngle(long iI) As Angle

Returns the angle values useful in some linear sweep
types.

Parameters:

iI
The angle value index

Returns:
The angle value
Parameters

i_i (int) –

Returns

Angle

get_angular_law(op_start_ang, op_end_ang, o_law_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetAngularLaw(Angle opStartAng,
Angle opEndAng,
long oLawType)

Retrieves the angular law useful in some linear sweep
types.

Parameters:

opStartAng
The angular law start value
opEndAng
The angular law end value
oLawType
The angular law type
Legal angular law type values are:
0 Undefined law type (CATGSMBasicLawType_None)
1 Constant law type (CATGSMBasicLawType_Constant)
2 Linear law type (CATGSMBasicLawType_Linear)
3 S law type (CATGSMBasicLawType_SType)
4 Law specified by a GSD law feature
(CATGSMBasicLawType_Advanced)
Parameters
  • op_start_ang (Angle) –

  • op_end_ang (Angle) –

  • o_law_type (int) –

Returns

None

get_choice_nb_surfaces(o_surf_ori1, o_surf_ori2, o_surf_coupl_ori1, o_surf_coupl_ori2, o_no)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetChoiceNbSurfaces(long oSurfOri1,
long oSurfOri2,
long oSurfCouplOri1,
long oSurfCouplOri2,
long oNo)

Gets a sequence which identifies a solution amongst all possibilities of a
line-profile swept surface, case
CATGSMLinearSweep_TwoTangencySurfaces.

Parameters:

oSurfOri1
This orientation determines the location of the results with regard
to the first surface. Possible values are:
* +1 : the result is in the semi-space defined by the normal to the surface,
* -1 : the result is in the semi-space defined by the opposite to the normal to the
surface,
* 0 : no orientation is specified, all the results are output,
* 2 : the result changes of semi-space along the spine.
oSurfOri2
This orientation determines the location of the results with regard
to the second surface. Possible values are as for oSurfOri1.

oSurfCouplOri1
This orientation determines the location of the results with regard
to the trihedron defined by the the spine, the normal to the first surface and
the tangent to the linear profile. Possible values
are:
* +1 : the output results are such that the triedron is counter clockwise,
* -1 : the output results are such that the triedron is clockwise,
* 0 : no orientation is specified, all the results are output,
* 2 : the orientation of the trihedron changes along the spine.
oSurfCouplOri2
This orientation determines the location of the results with regard
to the trihedron defined by the the spine, the normal to the second surface and
the tangent to the linear profile. Possible values are as for oSurfCouplOri1.

oNo
Given the previous orientations, solution number in a distance
ordered list.
Parameters
  • o_surf_ori1 (int) –

  • o_surf_ori2 (int) –

  • o_surf_coupl_ori1 (int) –

  • o_surf_coupl_ori2 (int) –

  • o_no (int) –

Returns

None

get_choice_no(o_val1, o_val2, o_val3)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetChoiceNo(long oVal1,
long oVal2,
long oVal3)

Retrieves the choice number associated with each solution of a given linear
sweep case.
Example: a linear sweep with one guide curve and a tangency surface may
lead to several possible solutions.

Parameters:

oVal1
The solution number (from 1 to n)
oVal2
In the example, the shell orientation : -1, +1 or 0 (both +1 and -1)
val3
In the example, the wire orientation : -1, +1 or 0 (both +1 and -1)
Parameters
  • o_val1 (int) –

  • o_val2 (int) –

  • o_val3 (int) –

Returns

None

get_draft_angle_definition_location(i_loc, op_ia_element, o_angle)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetDraftAngleDefinitionLocation(long iLoc,
Reference opIAElement,
Angle oAngle)

Retrieves the draft angle location element.

Parameters:

iLoc
The draft angle location position in the list
opIAElement
The geometric element at that location and where the draft angle
applies
oAngle
The draft angle
Parameters
Returns

None

get_draft_angle_definition_locations_nb(o_count)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetDraftAngleDefinitionLocationsNb(long oCount)

Retrieves the draft angle location list size.

Parameters:

oCount
The draft angle location list size
Parameters

o_count (int) –

Returns

None

get_first_length_definition_type(o_first_type, op_ia_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetFirstLengthDefinitionType(long oFirstType,
Reference opIAElem)

Retrieves the first length definition type.

Parameters:

oFirstType
The first length definition type
Legal length definition types are:
0 Undefined length type
(CATGSMLinearSweepLengthType_None)
1 Length of the swept line in the sweeping plane from the guide
curve (CATGSMLinearSweepLengthType_Standard)
2 No numerical value is required, equivalent to standard length at
zero (CATGSMLinearSweepLengthType_FromCurve)
3 Up to or from a geometrical reference (a surface)
(CATGSMLinearSweepLengthType_Reference)
4 Only for draft surfaces, the length is computed in the draft
direction from an extremum point on the guide curve
(CATGSMLinearSweepLengthType_FromExtremum)
5 Only for draft surfaces, the length will be used in a way
similar to euclidean parallel curve distance on the swept surface
(CATGSMLinearSweepLengthType_AlongSurface)
opIAElem
The geometric element where the first length definition type
applies
Parameters
  • o_first_type (int) –

  • op_ia_elem (Reference) –

Returns

None

get_first_length_law(o_length1, o_length2, o_law_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetFirstLengthLaw(Length oLength1,
Length oLength2,
long oLawType)

Retrieves the first length law useful in some linear sweep
types.

Parameters:

oLength1
The length law start value
oLength2
The length law end value
oLawType
The length law type
Legal length law type values are:
0 Undefined law type (CATGSMBasicLawType_None)
1 Constant law type (CATGSMBasicLawType_Constant)
2 Linear law type (CATGSMBasicLawType_Linear)
3 S law type (CATGSMBasicLawType_SType)
4 Law specified by a GSD law feature
(CATGSMBasicLawType_Advanced)
Parameters
  • o_length1 (Length) –

  • o_length2 (Length) –

  • o_law_type (int) –

Returns

None

get_length(i_i)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetLength(long iI) As Length

Returns the length values useful in some linear sweep
types.

Parameters:

iI
The length value index

Returns:
The length value
Parameters

i_i (int) –

Returns

Length

get_length_law_types(o_first_type, o_second_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetLengthLawTypes(long oFirstType,
long oSecondType)

Gets length law types.

Parameters:

oFirstType
First type of law.
oSecondType
Second type of law. oFirstType and oSecondType
= 0 : Undefined law type
= 1 : Constant law type
= 2 : Linear law type
= 3 : S law type
= 4 : Law specified by a GSD law feature
= 5 : Law specified by a set of points and parameters
Parameters
  • o_first_type (int) –

  • o_second_type (int) –

Returns

None

get_longitudinal_relimiters(op_ia_elem1, op_ia_elem2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetLongitudinalRelimiters(Reference opIAElem1,
Reference opIAElem2)

Deprecated:
V5R16 CATHybridShapeSweepLine#GetRelimiters Retrieves the elements
relimiting the spine (or the default spine).
Parameters:

opIAElem1
The first relimiting feature (plane or point)
opIAElem2
The second relimiting feature (plane or point)
Parameters
Returns

None

get_nb_angle(o_ang)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNbAngle(long oAng)

Retrieves the number of angles.

Parameters:

oAng
The number of angles
Parameters

o_ang (int) –

Returns

None

get_nb_guide_crv(o_num)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNbGuideCrv(long oNum)

Retrieves the number of guides curves.

Parameters:

oNum
The number of guide curves
Parameters

o_num (int) –

Returns

None

get_nb_guide_sur(o_num)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNbGuideSur(long oNum)

Retrieves the number of guide surfaces.

Parameters:

oNum
The number of guides surfaces
Parameters

o_num (int) –

Returns

None

get_nb_length(o_len)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetNbLength(long oLen)

Retrieves the number of lengths.

Parameters:

oLen
The number of lengths
Parameters

o_len (int) –

Returns

None

get_relimiters(op_ia_elem1, op_orient1, op_ia_elem2, op_orient2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetRelimiters(Reference opIAElem1,
long opOrient1,
Reference opIAElem2,
long opOrient2)

Retrieves the elements relimiting the spine (or the default
spine).

Parameters:

opIAElem1
The first relimiting feature (plane or point)
opOrient1
Split direction for the first relimitation
0 means that the beginning of the spine (considering its
orientation) is removed, 1 means that the end of the spine is removed

opIAElem2
The second relimiting feature (plane or point)
opOrient2
Split direction for the second relimitation
Parameters
  • op_ia_elem1 (Reference) –

  • op_orient1 (int) –

  • op_ia_elem2 (Reference) –

  • op_orient2 (int) –

Returns

None

get_second_length_definition_type(o_second_type, op_ia_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSecondLengthDefinitionType(long oSecondType,
Reference opIAElem)

Retrieves the second length definition type.

Parameters:

oSecondType
The second length definition type
Legal length definition types are:
0 Undefined length type
(CATGSMLinearSweepLengthType_None)
1 Length of the swept line in the sweeping plane from the guide
curve (CATGSMLinearSweepLengthType_Standard)
2 No numerical value is required, equivalent to standard length at
zero (CATGSMLinearSweepLengthType_FromCurve)
3 Up to or from a geometrical reference (a surface)
(CATGSMLinearSweepLengthType_Reference)
4 Only for draft surfaces, the length is computed in the draft
direction from an extremum point on the guide curve
(CATGSMLinearSweepLengthType_FromExtremum)
5 Only for draft surfaces, the length will be used in a way
similar to euclidean parallel curve distance on the swept surface
(CATGSMLinearSweepLengthType_AlongSurface)
opIAElem
The geometric element where the second length definition type
applies
Parameters
  • o_second_type (int) –

  • op_ia_elem (Reference) –

Returns

None

get_second_length_law(o_length1, o_length2, o_law_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSecondLengthLaw(Length oLength1,
Length oLength2,
long oLawType)

Retrieves the second length law useful in some linear sweep
types.

Parameters:

oLength1
The length law start value
oLength2
The length law end value
oLawType
The length law type
Legal length law type values are:
0 Undefined law type (CATGSMBasicLawType_None)
1 Constant law type (CATGSMBasicLawType_Constant)
2 Linear law type (CATGSMBasicLawType_Linear)
3 S law type (CATGSMBasicLawType_SType)
4 Law specified by a GSD law feature
(CATGSMBasicLawType_Advanced)
Parameters
  • o_length1 (Length) –

  • o_length2 (Length) –

  • o_law_type (int) –

Returns

None

property guide_deviation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property GuideDeviation() As Length (Read Only)

Returns the deviation value (length) from guide curves allowed during a
sweeping operation in order to smooth it.
Returns

Length

property guide_deviation_activity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property GuideDeviationActivity() As boolean

Returns or sets whether a deviation from guide curves is
allowed.
This property gives the information on performing smoothing during sweeping
operation.
TRUE if a deviation from guide curves is allowed, or FALSE otherwise (FALSE
if not specified).
Returns

bool

insert_draft_angle_definition_location(i_elem, i_angle, i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InsertDraftAngleDefinitionLocation(Reference iElem,
Angle iAngle,
long iPos)

Inserts a geometrical element and a value necessary for draft angle
definition after a given position in the lists.

Parameters:

iElem
Geometrical element
iAngle
Angular parameter
iPos
Position in lists. To insert in the beginning of the list put iPos = 0.
Parameters
Returns

None

property mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Mode() As long

Returns or sets the linear sweep mode.
Legal mode values are:
0 Undefined linear profile swept surface
(CATGSMLinearSweep_None)
1 Linear profile swept surface defined by two guide curves
(CATGSMLinearSweep_TwoGuides)
2 Linear profile swept surface defined by a guide curve and an angle
(CATGSMLinearSweep_GuideAndAngleCurve)
3 Linear profile swept surface defined by a guide curve and a middle curve
(CATGSMLinearSweep_GuideAndMiddle)
4 Linear profile swept surface defined by a guide curve and an angle from
a reference surface
(CATGSMLinearSweep_GuideAndRefSurfaceAngle)
5 Linear profile swept surface defined by a guide curve and a tangency
surface (CATGSMLinearSweep_GuideAndTangencySurface)
6 Linear profile swept surface defined by a guide curve and a draft
directio (CATGSMLinearSweep_GuideAndDraftDirection)
7 Linear profile swept surface defined by two tangency surfaces
(CATGSMLinearSweep_TwoTangencySurfaces)
Returns

int

remove_all_draft_angle_definition_locations()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveAllDraftAngleDefinitionLocations()

Removes all geometrical elements and values necessary for draft angle
definition.
Returns

None

remove_angle()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveAngle()

Removes an angle.
Returns

None

remove_draft_angle_definition_location_position(i_pos)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveDraftAngleDefinitionLocationPosition(long iPos)

Removes a draft angle location.

Parameters:

iPos
The position in the list of the draft angle location to
remove
Parameters

i_pos (int) –

Returns

None

remove_guide_crv()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveGuideCrv()

Removes a guide curve.
Returns

None

remove_guide_sur()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveGuideSur()

Removes a guide surface.
Returns

None

remove_length()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveLength()

Removes a length.
Returns

None

property second_guide_crv

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondGuideCrv() As Reference

Returns or sets the sweep operation second guide curve.
Returns

Reference

property second_guide_surf

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondGuideSurf() As Reference

Returns or sets the sweep operation second guide surface.
Returns

Reference

property second_length_law

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondLengthLaw() As Reference

Returns or sets second length law useful in some linear sweep types.
Returns

Reference

property second_length_law_inversion

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondLengthLawInversion() As long

Returns or sets whether the second length law has to be
inverted.
Legal length law inversion values are:
0 The length law has NOT to be inverted
1 The length law has to be inverted
Returns

int

property second_trim_option

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondTrimOption() As long

Returns or sets the trim option for the second tangency
surface.

Legal trim option values are:
0 No trim computed or trim undefined
(CATGSMSweepTrimMode_None)
1 Trim computed (CATGSMSweepTrimMode_On)
Returns

int

set_angle(i_i, i_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAngle(long iI,
double iElem)

Sets the angle values useful in some linear sweep types.

Parameters:

iI
The angle value index
iElem
The angle value
Parameters
  • i_i (int) –

  • i_elem (float) –

Returns

None

set_angular_law(i_start_ang, i_end_ang, i_law_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetAngularLaw(double iStartAng,
double iEndAng,
long iLawType)

Sets the angular law useful in some linear sweep types.

Parameters:

iStartAng
The angular law start value
iEndAng
The angular law end value
iLawType
The angular law type
Legal angular law type values are:
0 Undefined law type (CATGSMBasicLawType_None)
1 Constant law type (CATGSMBasicLawType_Constant)
2 Linear law type (CATGSMBasicLawType_Linear)
3 S law type (CATGSMBasicLawType_SType)
4 Law specified by a GSD law feature
(CATGSMBasicLawType_Advanced)
Parameters
  • i_start_ang (float) –

  • i_end_ang (float) –

  • i_law_type (int) –

Returns

None

set_choice_nb_surfaces(i_surf_ori1, i_surf_ori2, i_surf_coupl_ori1, i_surf_coupl_ori2, i_no)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetChoiceNbSurfaces(long iSurfOri1,
long iSurfOri2,
long iSurfCouplOri1,
long iSurfCouplOri2,
long iNo)

Sets a sequence which identifies a solution amongst all possibilities of a
line-profile swept surface, case
CATGSMLinearSweep_TwoTangencySurfaces.

Parameters:

iSurfOri1
This orientation determines the location of the results with regard
to the first surface. Possible values are:
* +1 : the result is in the semi-space defined by the normal to the surface,
* -1 : the result is in the semi-space defined by the opposite to the normal to the ,
* 0 : no orientation is specified, all the results are output,
* 2 : the result changes of semi-space along the spine.
iSurfOri2
This orientation determines the location of the results with regard
to the second surface. Possible values are as for iSurfOri1.

iSurfCouplOri1
This orientation determines the location of the results with regard
to the trihedron defined by the the spine, the normal to the first surface and
the tangent to the linear profile. Possible values
are:
* +1 : the output results are such that the triedron is counter clockwise,
* -1 : the output results are such that the triedron is clockwise,
* 0 : no orientation is specified, all the results are output,
* 2 : the orientation of the trihedron changes along the spine.
iSurfCouplOri2
This orientation determines the location of the results with regard
to the trihedron defined by the the spine, the normal to the second surface and
the tangent to the linear profile. Possible values are as for iSurfCouplOri2.

iNo
Given the previous orientations, solution number in a distance
ordered list.
Parameters
  • i_surf_ori1 (int) –

  • i_surf_ori2 (int) –

  • i_surf_coupl_ori1 (int) –

  • i_surf_coupl_ori2 (int) –

  • i_no (int) –

Returns

None

set_choice_no(i_val1, i_val2, i_val3)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetChoiceNo(long iVal1,
long iVal2,
long iVal3)

Sets the choice number associated with each solution of a given linear
sweep case.
Example: a linear sweep with one guide curve and a tangency surface may
lead to several possible solutions.

Parameters:

iVal1
The solution number (from 1 to n)
iVal2
In the example, the shell orientation : -1, +1 or 0 (both +1 and -1)
iVal3
In the example, the wire orientation : -1, +1 or 0 (both +1 and -1)
Parameters
  • i_val1 (int) –

  • i_val2 (int) –

  • i_val3 (int) –

Returns

None

set_first_length_definition_type(i_first_type, ip_ia_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFirstLengthDefinitionType(long iFirstType,
Reference ipIAElem)

Sets the first length definition type.

Parameters:

iFirstType
The first length definition type
Legal length definition types are:
0 Undefined length type
(CATGSMLinearSweepLengthType_None)
1 Length of the swept line in the sweeping plane from the guide
curve (CATGSMLinearSweepLengthType_Standard)
2 No numerical value is required, equivalent to standard length at
zero (CATGSMLinearSweepLengthType_FromCurve)
3 Up to or from a geometrical reference (a surface)
(CATGSMLinearSweepLengthType_Reference)
4 Only for draft surfaces, the length is computed in the draft
direction from an extremum point on the guide curve
(CATGSMLinearSweepLengthType_FromExtremum)
5 Only for draft surfaces, the length will be used in a way
similar to euclidean parallel curve distance on the swept surface
(CATGSMLinearSweepLengthType_AlongSurface)
ipIAElem
The geometric element where the first length definition type
applies
Parameters
  • i_first_type (int) –

  • ip_ia_elem (Reference) –

Returns

None

set_first_length_law(i_length1, i_length2, i_law_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetFirstLengthLaw(double iLength1,
double iLength2,
long iLawType)

Sets the first length law useful in some linear sweep
types.

Parameters:

iLength1
The length law start value
iLength2
The length law end value
iLawType
The length law type
Legal length law type values are:
0 Undefined law type (CATGSMBasicLawType_None)
1 Constant law type (CATGSMBasicLawType_Constant)
2 Linear law type (CATGSMBasicLawType_Linear)
3 S law type (CATGSMBasicLawType_SType)
4 Law specified by a GSD law feature
(CATGSMBasicLawType_Advanced)
Parameters
  • i_length1 (float) –

  • i_length2 (float) –

  • i_law_type (int) –

Returns

None

set_guide_deviation(i_length)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetGuideDeviation(double iLength)

Sets the deviation value (length) from guide curves allowed during sweeping
operation in order to smooth it.

Parameters:

iLength
The deviation value
Parameters

i_length (float) –

Returns

None

set_length(i_i, i_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLength(long iI,
double iElem)

Sets the linear values useful in some linear sweep types.

Parameters:

iI
The linear value index
iElem
The linear value
Parameters
  • i_i (int) –

  • i_elem (float) –

Returns

None

set_length_law_types(i_first_type, i_second_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLengthLawTypes(long iFirstType,
long iSecondType)

Sets length law types.

Parameters:

iFirstType
First type of law.
iSecondType
Second type of law. iFirstType and iSecondType
= 0 : Undefined law type
= 1 : Constant law type
= 2 : Linear law type
= 3 : S law type
= 4 : Law specified by a GSD law feature
= 5 : Law specified by a set of points and parameters
Parameters
  • i_first_type (int) –

  • i_second_type (int) –

Returns

None

set_longitudinal_relimiters(ip_ia_elem1, ip_ia_elem2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetLongitudinalRelimiters(Reference ipIAElem1,
Reference ipIAElem2)

Deprecated:
V5R16 CATHybridShapeSweepLine#SetRelimiters Sets the elements
relimiting the spine (or the default spine).
Parameters:

ipIAElem1
The first relimiting feature (plane or point)
ipIAElem2
The second relimiting feature (plane or point)
Parameters
Returns

None

set_relimiters(ip_ia_elem1, ip_orient1, ip_ia_elem2, ip_orient2)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetRelimiters(Reference ipIAElem1,
long ipOrient1,
Reference ipIAElem2,
long ipOrient2)

Sets the elements relimiting the spine (or the default
spine).

Parameters:

ipIAElem1
The first relimiting feature (plane or point)
ipOrient1
Split direction for the first relimitation
0 means that the beginning of the spine (considering its
orientation) is removed, 1 means that the end of the spine is removed

ipIAElem2
The second relimiting feature (plane or point)
ipOrient2
Split direction for the second relimitation
Parameters
  • ip_ia_elem1 (Reference) –

  • ip_orient1 (int) –

  • ip_ia_elem2 (Reference) –

  • ip_orient2 (int) –

Returns

None

set_second_length_definition_type(i_second_type, ip_ia_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSecondLengthDefinitionType(long iSecondType,
Reference ipIAElem)

Sets the second length definition type.

Parameters:

iSecondType
The second length definition type
Legal length definition types are:
0 Undefined length type
(CATGSMLinearSweepLengthType_None)
1 Length of the swept line in the sweeping plane from the guide
curve (CATGSMLinearSweepLengthType_Standard)
2 No numerical value is required, equivalent to standard length at
zero (CATGSMLinearSweepLengthType_FromCurve)
3 Up to or from a geometrical reference (a surface)
(CATGSMLinearSweepLengthType_Reference)
4 Only for draft surfaces, the length is computed in the draft
direction from an extremum point on the guide curve
(CATGSMLinearSweepLengthType_FromExtremum)
5 Only for draft surfaces, the length will be used in a way
similar to euclidean parallel curve distance on the swept surface
(CATGSMLinearSweepLengthType_AlongSurface)
ipIAElem
The geometric element where the second length definition type
applies
Parameters
  • i_second_type (int) –

  • ip_ia_elem (Reference) –

Returns

None

set_second_length_law(i_length1, i_length2, i_law_type)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSecondLengthLaw(double iLength1,
double iLength2,
long iLawType)

Sets the second length law useful in some linear sweep
types.

Parameters:

iLength1
The length law start value
iLength2
The length law end value
iLawType
The length law type
Legal length law type values are:
0 Undefined law type (CATGSMBasicLawType_None)
1 Constant law type (CATGSMBasicLawType_Constant)
2 Linear law type (CATGSMBasicLawType_Linear)
3 S law type (CATGSMBasicLawType_SType)
4 Law specified by a GSD law feature
(CATGSMBasicLawType_Advanced)
Parameters
  • i_length1 (float) –

  • i_length2 (float) –

  • i_law_type (int) –

Returns

None

set_smooth_angle_threshold(i_angle)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetSmoothAngleThreshold(double iAngle)

Sets the angular threshold.

Parameters:

iAngle
The angle numerical value
Parameters

i_angle (float) –

Returns

None

property smooth_activity

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SmoothActivity() As boolean

Returns whether the sweeping operation is smoothed.
TRUE if the sweeping operation is smoothed, or FALSE otherwise (FALSE if
not specified).
Returns

bool

property smooth_angle_threshold

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SmoothAngleThreshold() As Angle (Read Only)

Returns the angular threshold.
Returns

Angle

property solution_no

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SolutionNo() As long

Returns or sets the choice number, which corresponds to each solution of a
given linear sweep case.
For example: a linear sweep with reference surface leads to four possible
solutions.
Returns

int

property spine

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Spine() As Reference

Returns or sets the sweep operation spine (optional).
Returns

Reference

property trim_option

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TrimOption() As long

Returns or sets the trim option.

Legal trim option values are:
0 No trim computed or trim undefined
(CATGSMSweepTrimMode_None)
1 Trim computed (CATGSMSweepTrimMode_On)
Returns

int

hybrid_shape_symmetry

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.hybrid_shape_interfaces.hybrid_shape_symmetry.HybridShapeSymmetry(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
HybridShapeSymmetry

Represents the hybrid shape symmetry feature object.
Role: To access the data of the symmetry shape feature object. The data
includes:

The element to be transformed
The reference element which can be a point, a line or a
plane

LICENSING INFORMATION: Creation of volume result requires GSO
License
if GSO License is not granted , setting of Volume context has not
effect

Use the CATIAHybridShapeFactory to create HybridShapeFeature
object.

See also:
HybridShapeFactory
property creation_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CreationMode() As boolean

Returns or sets the creation mode(creation or
modification).
Legal values: True if the result is a creation feature and False if the
result is a modification feature.

Example:

This example sets that the mode of
the hybShpSymmetry hybrid shape symmetry to creation


hybShpSymmetry.CreationMode = True
Returns

bool

property elem_to_symmetry

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ElemToSymmetry() As Reference

Returns or sets the element to transform.

Example:
This example retrieves in Elem the element to transform for the
Symmetry hybrid shape feature.

Dim Elem As Reference
Set Elem = Symmetry.ElemToSymmetry
Returns

Reference

property reference

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Reference() As Reference

Returns or sets the reference element.This element can be a point, a line
or a plane.
Sub-element(s) supported (see Boundary object): PlanarFace, Edge or
Vertex.

Example:
This example retrieves in Ref the reference element for the Symmetry
hybrid shape feature.

Dim Ref As Reference
Set Ref = Symmetry.Reference
Returns

Reference

property volume_result

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property VolumeResult() As boolean

Returns or sets the volume result.
Legal values: True if the result of symmetry is required as volume (option
is effective only in case of volumes, requires GSO License) and False if it is
needed as surface .

Example:

This example sets that the result of
the hybShpSymmetry hybrid shape symmetry is volume.


hybShpSymmetry.VolumeResult = True
Returns

bool

hybrid_shape_thickness

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.hybrid_shape_interfaces.hybrid_shape_thickness.HybridShapeThickness(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
HybridShapeThickness

Represents the hybrid shape Thickness feature object.
Role: To access the data of the thickness on an hybrid shape feature object.
This data includes:

The thickness orientation
The thickness1 value
The thickness2 value
property orientation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Orientation() As long

Returns or sets the orientation.
Role:
Orientation
= 1 means that the first thickness is measured with the normal of the support Orientation
= -1 means that the first thickness is measured with the inverted normal of the support

Example:
This example retrieves in Orient the orientation for the Thickness1
hybrid shape feature.

Dim Orient As long
Set Orient = Thickness1.Orientation
Returns

int

property thickness1

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Thickness1() As double

Returns or sets the first thickness value in mm.

Example: This example retrieves in ThickVal1 the first thickness value for
the Thick hybrid shape feature.

Dim ThickVal1 As double
Set ThickVal1 = Thick.Thickness1
Returns

float

property thickness1_value

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Thickness1Value() As Length (Read Only)

Returns the first thickness value.

Example:
This example retrieves in ThickVal1 the first thickness value for the
Thick hybrid shape feature.

Dim ThickVal1 As Length
Set ThickVal1 = Thick.Thickness1Value
Returns

Length

property thickness2

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Thickness2() As double

Returns or sets the second thickness value in mm.

Example: This example retrieves in ThickVal2 the second thickness value for
the Thick hybrid shape feature.

Dim ThickVal2 As double
Set ThickVal2 = Thick.Thickness2
Returns

float

property thickness2_value

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Thickness2Value() As Length (Read Only)

Returns the second thickness value.

Example:
This example retrieves in ThickVal2 the second thickness value for the
Thick hybrid shape feature.

Dim ThickVal2 As Length
Set ThickVal2 = Thick.Thickness2Value
Returns

Length

hybrid_shape_transfer

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.hybrid_shape_interfaces.hybrid_shape_transfer.HybridShapeTransfer(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
HybridShapeTransfer

Represents the hybrid shape Transfer feature object.
Role: To access the data of the hybrid shape Transfer feature object. This data
includes:

The element to transfer
The surface to unfold
The unfolded surface

Use the CATIAHybridShapeFactory to create a HybridShapeTransfer
object.

See also:
HybridShapeFactory
property element_to_transfer

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ElementToTransfer() As Reference

Returns or sets the element to transfer.
Returns

Reference

property surface_to_unfold

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SurfaceToUnfold() As Reference

Returns or sets the surface to unfold.
Returns

Reference

property type_of_transfer

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TypeOfTransfer() As long

Returns or sets the type of transfer.

0= The type of surface is not defined
1= The type of transfer is folded to unfolded
2= The type of surface is unfolded to folded
Returns

int

property unfold_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UnfoldType() As long

Returns or sets the type of unfold to take into account during
transfer.

0= The type is undefined
1= The surface to unfold is ruled,
2= the surface to unfold is all
Returns

int

property unfolded_surface

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property UnfoldedSurface() As Reference

Returns or sets the unfolded surface.
Returns

Reference

hybrid_shape_translate

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.hybrid_shape_interfaces.hybrid_shape_translate.HybridShapeTranslate(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
HybridShapeTranslate

Represents the hybrid shape translate feature object.
Role: To access the data of the hybrid shape translate feature object. This
data includes:

The element to translate
The translation direction
The translation distance and its value

LICENSING INFORMATION: Creation of volume result requires GSO
License
if GSO License is not granted , setting of Volume context has not
effect

Use the CATIAHybridShapeFactory to create HybridShapeFeature
object.

See also:
HybridShapeFactory
property coord_x_value

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CoordXValue() As double

Returns or sets the translate X coordinate value.
Returns

float

property coord_y_value

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CoordYValue() As double

Returns or sets the translate Y coordinate value.
Returns

float

property coord_z_value

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property CoordZValue() As double

Returns or sets the translate Z coordinate value.
Returns

float

property direction

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Direction() As HybridShapeDirection

Returns or sets the translate direction.

Example
This example retrieves in Dir the translation direction for the
Translate hybrid shape feature.

Dim Dir As CATIAHybridShapeDirection
Set Dir=Translate.Direction
Returns

HybridShapeDirection

property distance

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Distance() As Length (Read Only)

Returns the translate distance.
Returns

Length

property distance_value

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DistanceValue() As double

Returns or sets the translate distance value.

Example
This example retrieves in DistVal the translation distance value for
the Translate hybrid shape feature.

Dim DistVal As double
Set DistVal =Translate.DistanceValue
Returns

float

property elem_to_translate

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ElemToTranslate() As Reference

Returns or sets the element to translate.

Example
This example retrieves in Element the element to be translated for the
Translate hybrid shape feature.

Dim Element As Reference
Set Element=Translate.ElemToTranslate
Returns

Reference

property first_point

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstPoint() As Reference

Returns or sets the first point defining the translation.
Returns

Reference

get_creation_mode()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetCreationMode() As long

Gets the creation mode.
Legal values:

0
CATGSMTransfoModeUnset. Default behavior: creation mode by default for
all features, modification mode for axis system
1
CATGSMTransfoModeCreation. Creation mode.
2
CATGSMTransfoModeModification. Modification mode.

Example:
This example retrieves in oCreation the creation mode for the
hybShpTranslate hybrid shape feature.

oCreation = hybShpTranslate.GetCreationMode
Returns

int

property ref_axis_system

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property RefAxisSystem() As Reference

Returns or Sets the reference Axis System for Translate
feature.
This data is not mandatory, if element is null, the absolute axis system is
taken.
When an element is given, X, Y and Z are considered in this Axis system.

Example
:
This example retrieves in oRefAxis the reference Axis System for Translate
feature.

Dim oRefAxis As CATIAReference
Set oRefAxis = Translate.RefAxisSystem
Returns

Reference

property second_point

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondPoint() As Reference

Returns or sets the second point defining the translation.
Returns

Reference

set_creation_mode(i_creation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetCreationMode(boolean iCreation)

Sets the creation mode(creation or modification).
Legal values: True if the result is a creation feature and False if the
result is a modification feature.

Example:

This example sets that the mode of
the hybShpTranslate hybrid shape translate to
creation


hybShpTranslate.SetCreationMode True
Parameters

i_creation (bool) –

Returns

None

property vector_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property VectorType() As long

Returns or sets the way the translation vector is defined.

0= Direction + distance
1= point + points
2= coordinates
3= Unknown type
Returns

int

property volume_result

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property VolumeResult() As boolean

Returns or sets the volume result.
Legal values: True if the result of translation is required as volume
(option is effective only in case of volumes,requires GSO License) and False if
it is needed as surface .

Example:

This example sets that the result of
the hybShpTranslate hybrid shape translate is volume.


hybShpTranslate.VolumeResult = True
Returns

bool

hybrid_shape_trim

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.hybrid_shape_interfaces.hybrid_shape_trim.HybridShapeTrim(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
HybridShapeTrim

Represents the hybrid shape trim object.
Role: To access the data of the hybrid shape trim object. This data
includes:

The first element (surface or curve) to be trimmed
The second element (surface or curve) to be trimmed
The orientation corresponding to the first element
The orientation corresponding to the second element

Use the CATIAHybridShapeFactory to create a HybridShapeTrim
object.

See also:
HybridShapeFactory
add_element_to_keep(i_element)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddElementToKeep(Reference iElement)

Adds an element to specifications. This element will be
kept.

Parameters:

iElement
Element to keep.
Parameters

i_element (Reference) –

Returns

None

add_element_to_remove(i_element)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddElementToRemove(Reference iElement)

Adds an element to specifications. This element will be
removed.

Parameters:

iElement
Element to remove.
Parameters

i_element (Reference) –

Returns

None

add_piece_cutter(i_rank, i_cutter_elem, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddPieceCutter(long iRank,
long iCutterElem,
long iOrientation)

Add piece Cutting element and its orientation. Used for trim pieces of
shells only

Parameters:

iRank
Index of the trimmed element (piece)
iCutterElemIdx
index is the index of input shell except in case of multiple intersection between
shells where Index=IndexInputShell+NbInputShells*(1-iw) (with iw=1… : wire index in
case of multiple intersection)
iOrientation
cutter element orientation
Parameters
  • i_rank (int) –

  • i_cutter_elem (int) –

  • i_orientation (int) –

Returns

None

property automatic_extrapolation_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property AutomaticExtrapolationMode() As boolean

Gets or sets the automatic extrapolation mode status.
AutomaticExtrapolationMode
= TRUE : Automatic extrapolation mode is on.
= FALSE : Automatic extrapolation mode is off.
This example retrieves in AutoExtrapolMode the automatic extrapolation mode status for the Trim
hybrid shape feature.

Dim AutoExtrapolMode As boolean
AutoExtrapolMode = Trim.AutomaticExtrapolationMode
Returns

bool

property connex

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Connex() As boolean

Gets or sets connected mode.
Connex = TRUE : the check of connexity is enable.
Connex = FALSE : the check of connexity is disable. This example retrieves in Connex the
connected mode for the Trim hybrid shape feature.

Dim Connex As boolean
Connex = Trim.Connex
Returns

bool

property first_elem

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstElem() As Reference

Deprecated:
V5R17 CATIAHybridShapeTrim#GetElem Returns or sets the first element to
be trimmed.
Example:

This example retrieves in Surface1 the first element to be trimmed

for the hybTrim hybrid shape feature.


Dim Surface1 As Reference
Set Surface1 = hybTrim.FirstElem
Returns

Reference

property first_orientation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstOrientation() As long

Deprecated:
V5R17 CATIAHybridShapeTrim#GetPreviousOrientation Returns or sets the
first orientation used to compute the trim.
Role: The orientation specifies the kept parts of the first element to
be trimmed.

When trimming surfaces:
If orientation value is 1: kept parts are specified by the
“natural” normal to the second object
If orientation value is -1: kept parts are specified by the
inverse of the “natural” normal to the second
object
When trimming curves:
If orientation value is 1: kept parts are from the beginning of
the curve to the first intersection, and, if there is one, from the second to
the third intersection and so on until the end of the
curve
If orientation value is -1: kept parts are from the first
intersection to the second (if there is one), and, if there is one, from the
third to the fourth and so on until the end of the
curve.

Example:

This example retrieves in firstOrient the orientation
of
the first element used by the hybTrim hybrid shape
feature.

Dim firstOrient As long
Set firstOrient = hybTrim.FirstOrientation
Returns

int

get_elem(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetElem(long iRank) As Reference

Gets the trimmed feature at a given index.

Parameters:

iRank
Index of one of the trimmed features
oElem
trimmed feature
Parameters

i_rank (int) –

Returns

Reference

get_kept_elem(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetKeptElem(long iRank) As Reference

Gets the kept feature at a given index.

Parameters:

oElem
Kept feature
iRank
Index of one of the kept features
Parameters

i_rank (int) –

Returns

Reference

get_nb_elem()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNbElem() As long

Gets the number of elements: couple(element, index of portion to keep on
element).

Parameters:

oNbElem
Number of elements
Returns

int

get_nb_elements_to_keep()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNbElementsToKeep() As long

Gets the number of elements to keep.

Parameters:

oNbElementsToKeep
Number of elements to keep
Returns

int

get_nb_elements_to_remove()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNbElementsToRemove() As long

Gets the number of elements to remove.

Parameters:

oNbElementsToRemove
Number of elements to remove
Returns

int

get_next_orientation(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNextOrientation(long iRank) As long

Gets Orientation used to compute the feature, referring to the next trimmed
element.

Parameters:

iRank
index (of one of the trimmed features) - 1 iRank must be greater
than 1 and lower than the number of elements - 1
oOrientation
Orientation
Parameters

i_rank (int) –

Returns

int

get_piece_cutter(i_rank, i_cutter_index, o_cutter_elem_idx, o_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetPieceCutter(long iRank,
long iCutterIndex,
long oCutterElemIdx,
long oOrientation)

Gets piece Cutting element and its orientation. Used for trim pieces of
shells only

Parameters:

iRank
Index of the trimmed element (piece)
oCutterElemIdx
index is the index of input shell except in case of multiple intersection between shells
where Index=IndexInputShell+NbInputShells*(1-iw)
(with iw=1… : wire index in case of multiple intersection)
oCutterElem
cutter element
oOrientation
cutter element orientation
Parameters
  • i_rank (int) –

  • i_cutter_index (int) –

  • o_cutter_elem_idx (int) –

  • o_orientation (int) –

Returns

None

get_piece_discrimination_index(i_rank, o_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetPieceDiscriminationIndex(long iRank,
long oIndex)

Gets the discrimination index. Used for the trim pieces of shells
only

Parameters:

iRank
Index of the trimmed element (piece)
oIndex
Discrimination Index Used to discrimine pieces when cutters
orientations are not enough
Parameters
  • i_rank (int) –

  • o_index (int) –

Returns

None

get_piece_nb_cutters(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPieceNbCutters(long iRank) As long

Gets the number of cutters of a piece. Used for trim pieces of shells
only

Parameters:

oNbCutters
Number of cutters (except in case of multiple intersection between
shells)
Parameters

i_rank (int) –

Returns

int

get_portion_to_keep(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPortionToKeep(long iRank) As long

Gets a portion to keep number, giving the index of the element. Used for
trim pieces of wires

Parameters:

oPortionNumber
Index of portion to keep on the element
iRank
Index of the trimmed element
Parameters

i_rank (int) –

Returns

int

get_previous_orientation(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetPreviousOrientation(long iRank) As long

Gets Orientation used to compute the feature, referring to the previous
trimmed element.

Parameters:

iRank
index (of one of the trimmed features) - 1 iRank must be greater
than 1 and lower than the number of elements - 1
oOrientation
Orientation
Parameters

i_rank (int) –

Returns

int

get_removed_elem(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetRemovedElem(long iRank) As Reference

Gets the removed feature at a given index.

Parameters:

oElem
Removed feature
iRank
Index of one of the removed features
Parameters

i_rank (int) –

Returns

Reference

property intersection_computation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property IntersectionComputation() As boolean

Gets or sets Intersection computation mode.
IntersectionComputation = TRUE :
Intersection is computed. = FALSE : Intersection is not computed.
This example retrieves in Intersection the Intersection computation mode for the Trim hybrid
shape feature.

Dim Intersection As boolean
Intersection = Trim.IntersectionComputation
Returns

bool

invert_first_orientation()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InvertFirstOrientation()

Deprecated:
V5R17 CATIAHybridShapeTrim#SetPreviousOrientation Inverts the first
orientation used to compute the trim.
Example:

This example inverts the first orientation to
compute
the hybTrim hybrid shape trim object.

hybTrim.InvertFirstOrientation
Returns

None

invert_second_orientation()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InvertSecondOrientation()

Deprecated:
V5R17 CATIAHybridShapeTrim#SetPreviousOrientation Inverts the second
orientation used to compute the trim. This example inverts the first
orientation to compute the hybTrim hybrid shape trim
object.

hybTrim.InvertSecondOrientation
Returns

None

property keep_all_pieces

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property KeepAllPieces() As boolean

Gets or Sets keep all pieces mode. Used for the trim pieces of shells only
KeepAllPieces=TRUE : all the pieces are kept during update,
KeepAllPieces=FALSE : only chosen pieces are kept during update (default).
This example retrieves in KeepAllPieces the Keep All Pieces mode for the Trim hybrid shape
feature.

Dim bKeepAllPieces As boolean
bKeepAllPieces = Trim.KeepAllPieces
Returns

bool

property manifold

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Manifold() As boolean

Gets or sets manifold mode.
Manifold = TRUE : the check of manifold is enable.
Manifold = FALSE : the check of manifold is disable.
This example retrieves in Manifold the manifold mode for the Trim hybrid shape feature.

Dim Manifold As boolean
Connex = Trim.Manifold
Returns

bool

property mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Mode() As long

Gets or sets Trim mode. Mode = 1 : Standard. = 2 : Pieces.
This example retrieves in Mode the mode for the Trim hybrid shape feature.

Dim Mode As long
Mode = Trim.Mode
Returns

int

remove_element_to_keep(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveElementToKeep(long iRank)

Removes an element from specifications.

Parameters:

iRank
Index of the kept element.
Parameters

i_rank (int) –

Returns

None

remove_element_to_remove(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveElementToRemove(long iRank)

Removes an element from specifications.

Parameters:

iRank
Index of the removed element.
Parameters

i_rank (int) –

Returns

None

remove_piece_cutter(i_rank, i_cutter_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemovePieceCutter(long iRank,
long iCutterIndex)

Remove piece Cutting element and its orientation. Used for trim pieces of
shells only

Parameters:

iRank
Index of the trimmed element (piece)
iCutterIndex
Index in cutters list
Parameters
  • i_rank (int) –

  • i_cutter_index (int) –

Returns

None

property second_elem

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondElem() As Reference

Deprecated:
V5R17 CATIAHybridShapeTrim#GetElem Returns or sets the second element
to be trimmed.
Example:

This example retrieves in Surface2 the second element to be trimmed

for the hybTrim hybrid shape trim object.


Dim Surface2 As Reference
Set Surface2 = hybTrim.SecondElem
Returns

Reference

property second_orientation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondOrientation() As long

Deprecated:
V5R17 CATIAHybridShapeTrim#GetPreviousOrientation Returns or sets the
second orientation used to compute the trim.
Role: The orientation specifies the kept parts of the second element to
be trimmed.

When trimming surfaces:
If orientation value is 1: kept parts are specified by the
“natural” normal to the first object
If orientation value is -1: kept parts are specified by the
inverse of the “natural” normal to the first
object
When trimming curves:
If orientation value is 1: kept parts are from the beginning of
the curve to the first intersection, and, if there is one, from the second to
the third intersection and so on until the end of the
curve
If orientation value is -1: kept parts are from the first
intersection to the second (if there is one), and, if there is one, from the
third to the fourth and so on until the end of the
curve.

Example:

This example retrieves in secondOrient the orientation
of
the second element used by the hybTrim hybrid shape trim
object.

Dim secondOrient As long
Set secondOrient = hybTrim.SecondOrientation
Returns

int

set_elem(i_rank, i_elem)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetElem(long iRank,
Reference iElem)

Modifies the trimmed feature at a given index. Use AddElem method to
specify a new trimmed element

Parameters:

iRank
Index of one of the trimmed features
iElem
trimmed feature
Parameters
Returns

None

set_next_orientation(i_rank, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetNextOrientation(long iRank,
long iOrientation)

Sets the orientation used to compute the feature, referring to the next
trimmed element.

Parameters:

iRank
index (of one of the trimmed features) - 1 iRank must be greater
than 1 and lower than the number of elements - 1
iOrientation
Orientation
Parameters
  • i_rank (int) –

  • i_orientation (int) –

Returns

None

set_piece_discrimination_index(i_rank, i_index)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPieceDiscriminationIndex(long iRank,
long iIndex)

Sets the discrimination index. Used for the trim pieces of shells
only

Parameters:

iRank
Index of the trimmed element (piece)
iIndex
Discrimination Index Used to discrimine pieces when cutters
orientations are not enough
Parameters
  • i_rank (int) –

  • i_index (int) –

Returns

None

set_portion_to_keep(i_rank, i_portion_number)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPortionToKeep(long iRank,
long iPortionNumber)

Sets a portion to keep number in Pieces mode. Used for trim pieces of
wires

Parameters:

iRank
Index of the trimmed element
iPortionNumber
Index of portion to keep on the element
Parameters
  • i_rank (int) –

  • i_portion_number (int) –

Returns

None

set_previous_orientation(i_rank, i_orientation)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPreviousOrientation(long iRank,
long iOrientation)

Sets the orientation used to compute the feature, referring to the previous
trimmed element.

Parameters:

iRank
index (of one of the trimmed features) - 1 iRank must be greater
than 1 and lower than the number of elements - 1
iOrientation
Orientation
Parameters
  • i_rank (int) –

  • i_orientation (int) –

Returns

None

property simplify

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Simplify() As boolean

Returns or sets whether the simplification of the resulting topology is or
should be activated.
Legal values: True to activate the simplification, and False
otherwise.

Example:

This example activates the simplification of the resulting topology
of
the hybTrim hybrid shape trim object.


hybTrim.Simplify = True
Returns

bool

property support

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Support() As Reference

Returns or sets the support element.
This support element may not exist.
Sub-element(s) supported (see Boundary object): Face.

Example:

This example retrieves in supportElement the support
element
of the hybTrim hybrid shape trim object.


Dim supportElement As Reference
Set supportElement = hybTrim.Support
Returns

Reference

hybrid_shape_unfold

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.hybrid_shape_interfaces.hybrid_shape_unfold.HybridShapeUnfold(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
HybridShapeUnfold

Represents the hybrid shape Unfold feature object.
Role: To access the data of the hybrid shape Unfold feature object. This data
includes:

The shell to unfold
The edges to tear

Use the CATIAHybridShapeFactory to create a HybridShapeUnfold
object.

See also:
HybridShapeFactory
add_edge_to_tear(i_element)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddEdgeToTear(Reference iElement)

Adds an edge to tear.

Parameters:

iEdge
The edge to tear to add to the hybrid shape feature
object.
Sub-element(s) supported (see

Boundary object): Edge

Examples:
The following example adds the iElement feature object to the
HybridShapeUnfold object.

HybridShapeUnfold.AddEdgeToTear iElement
Parameters

i_element (Reference) –

Returns

None

add_element_to_transfer(i_element, i_type_of_transfer)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub AddElementToTransfer(Reference iElement,
long iTypeOfTransfer)

Appends an element to transfer.

Parameters:

iElement
Specification to transfer
iTypeOfTransfer
type of tranfer

0= No transfer mode specified
1= Folded to unfolded
2= Unfolded to folded
Parameters
  • i_element (Reference) –

  • i_type_of_transfer (int) –

Returns

None

property direction_to_unfold

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DirectionToUnfold() As Reference

Returns or sets the direction to unfold.
Returns

Reference

property edge_to_tear_positioning_orientation

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property EdgeToTearPositioningOrientation() As long

Returns or sets the positioning orientation when the reference origin is
located on an edge to tear.

0= The orientation is undefined
1= The orientation is the default one
2= The orientation is inversed
Returns

int

get_edge_to_tear(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetEdgeToTear(long iRank) As Reference

Retrieves an element used by the hybrid shape unfold feature
object.

Parameters:

iRank
The rank of the element to read.

Examples:
The following example gets the oElement feature object of the
HybridShapeUnfold object at the position iRank.

Dim oElement As Reference
Set oElement = HybridShapeUnfold.GetEdgeToTear (iRank).
Parameters

i_rank (int) –

Returns

Reference

get_element_to_transfer(i_rank, op_element, o_type_of_transfer)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetElementToTransfer(long iRank,
Reference opElement,
long oTypeOfTransfer)

Gets an element to transfer.

Parameters:

iRank
the position of the specification to get
opElement
Specification to transfer
oTypeOfTransfer
type of tranfer

0= No transfer mode specified
1= Folded to unfolded
2= Unfolded to folded
Parameters
  • i_rank (int) –

  • op_element (Reference) –

  • o_type_of_transfer (int) –

Returns

None

property origin_to_unfold

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property OriginToUnfold() As Reference

Returns or sets the origin to unfold.
Returns

Reference

remove_edge_to_tear(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveEdgeToTear(long iRank)

Removes an element used by the hybrid shape unfold feature
object.

Parameters:

iRank
The rank of the element to remove.

Examples:
The following example removes the feature object from the
HybridShapeUnfold object at the position iRank.

HybridShapeUnfold.RemoveEdgeToTear iRank.
Parameters

i_rank (int) –

Returns

None

remove_element_to_transfer(i_rank)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveElementToTransfer(long iRank)

Remove an elements to transfer.

Parameters:

iRank
the position of the specification to remove
Parameters

i_rank (int) –

Returns

None

replace_elements_to_transfer(i_rank, i_element)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub ReplaceElementsToTransfer(long iRank,
Reference iElement)

Replace an elements to transfer.

Parameters:

iRank
the position of the specification to replace
iElement
the specification to transfer to append.
Parameters
Returns

None

property surface_to_unfold

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SurfaceToUnfold() As Reference

Returns or sets the surface to unfold.
Sub-element(s) supported (see Boundary object): Face, TriDimFeatEdge and
BiDimFeatEdge.
Returns

Reference

property surface_type

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SurfaceType() As long

Returns or sets the type of surface to unfold.

0= The type of surface is not defined
1= The type of surface is ruled
2= The type of surface is all
Returns

int

property target_orientation_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TargetOrientationMode() As long

Returns or sets the mode for target surface orientation.

0= No axis inversion
1= U inversion axis
2= V inversion axis
3= U inversion axis and V inversion axis
4= U inversion axis and swap U and V axis
5= V inversion axis and swap U and V axis
6= U inversion axis, V inversion axis and swap U and V
axis
7= Swap U and V axis
Returns

int

property target_plane

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TargetPlane() As Reference

Returns or sets the target plane.
Sub-element(s) supported (see Boundary object):
Returns

Reference

hybrid_shape_volume_explicit

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.hybrid_shape_interfaces.hybrid_shape_volume_explicit.HybridShapeVolumeExplicit(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
HybridShapeVolumeExplicit

Represents the hybrid shape Volume explicit feature object.
Role: Declare hybrid shape Volume explicit feature object.

See also:
HybridShapeFactory.AddNewVolumeDatum

Copyright © 1999-2011, Dassault Systèmes. All rights reserved.

hybrid_shape_wrap_curve

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.hybrid_shape_interfaces.hybrid_shape_wrap_curve.HybridShapeWrapCurve(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
HybridShapeWrapCurve

Represents the hybrid shape wrap curve surface object.
Role: To access the data of the hybrid shape wrap curve surface
object.

This data includes:

Two support surfaces, one at each limit of the wrap curve
surface
Two curves, one for each support surface
The curve closing points

Use the CATIAHybridShapeFactory to create a HybridShapeWrapCurve
object.

See also:
HybridShapeFactory
property first_curves_constraint

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstCurvesConstraint() As long

Returns or sets constraint at first curves of the
WrapCurve.
Legal values:
1 = no constraint,
2 = Deformed surface will have the same tangency and the same curvature as the original surface
at first curves.

Example:
This example retrieves in FirstCurvesConstraint the constraint at first
curves of the ShpWrapCurve hybrid shape WrapCurve feature.

Dim FirstCurvesConstraint As long
Set FirstCurvesConstraint = ShpWrapCurve.FirstCurvesConstraint
Returns

int

get_curves(i_position, o_reference_curve, o_target_curve)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetCurves(long iPosition,
Reference oReferenceCurve,
Reference oTargetCurve)

Returns a curve from the WrapCurve.

Parameters:

iPosition
The position of the curves in the list of curves.
oReferenceCurve
the reference curve.
oTargetCurve
the target curve.
Legal values: can be egal to Nothing. In this case, the associated
ref curve will be fixed.

Example:
This example retrieves in WrapCurveRefCurve the first reference
curve of the ShpWrapCurve hybrid shape WrapCurve feature and retrieves in
WrapCurveTargCurve the first target curve of the ShpWrapCurve hybrid shape
WrapCurve feature.

Dim WrapCurveRefCurve As Reference
Dim WrapCurveTargCurve As Reference
ShpWrapCurve.GetCurve(2)
Parameters
Returns

None

get_number_of_curves()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func GetNumberOfCurves() As long

Returns the number of couples of curves of the WrapCurve.

Returns:
The number of couples of curves
Legal values: positive or null.

Example:
This example retrieves in NumberOfCurves the number of couples of curves of
the ShpWrapCurve hybrid shape WrapCurve feature.

NumberOfCurves = ShpWrapCurve.GetNumberOfCurves(2)
Returns

int

get_reference_direction(o_direction_type, o_direction)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetReferenceDirection(long oDirectionType,
HybridShapeDirection oDirection)

Gets the reference direction projection of the wrap curve
feature.

Parameters:

oDirectionType
type of direction.
Legal values: 1 = reference direction is computed, and 2 = user direction.
oDirection
curve to be added as a direction, if oDirectionType = 2.
Example:
This example retrieves in RefDirection the reference direction of
the ShpWrapCurve hybrid shape WrapCurve feature and in RefDirectionType the
reference direction of the ShpWrapCurve hybrid shape
WrapCurve

Dim RefDirectionType As long
Dim RefDirection As CATIAHybridShapeDirection
ShpWrapCurve.SetReferenceDirection (RefDirectionType,
RefDirection)
Parameters
Returns

None

get_reference_spine(o_spine_type, o_spine)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetReferenceSpine(long oSpineType,
Reference oSpine)

Returns the reference spine of the wrap curve feature.

Parameters:

oSpineType
type of spine.
Legal values: 1 = Reference Spine is equal to the first reference curve, and 2 = user
spine.
oSpine
curve to be added as a spine, if iSpineType = 2.

Example:
This example retrieves in RefSpine the reference spine of the
ShpWrapCurve hybrid shape WrapCurve feature and in RefSpineType the reference
spine type.

Dim RefSpineType As long
Dim RefSpine As Reference
ShpWrapCurve.GetReferenceSpine (RefSpineType,
RefSpine)
Parameters
  • o_spine_type (int) –

  • o_spine (Reference) –

Returns

None

insert_curves(i_position, i_reference_curve, i_target_curve)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InsertCurves(long iPosition,
Reference iReferenceCurve,
Reference iTargetCurve)

Inserts a couple of reference curve and target curve to the wrap
curve.

Parameters:

iPosition
The position of the curves in the list of curves.
Legal values: 0 for the end of the list, or positive and not null.

iReferenceCurve
the reference curve.
Sub-element(s) supported (see

Boundary object): TriDimFeatEdge and BiDimFeatEdge.
iTargetCurve
the target curve.
Sub-element(s) supported (see Boundary object): TriDimFeatEdge and
BiDimFeatEdge.

Example:
This example sets the RefCurveForWrapCurve curve and the
TargCurveForWrapCurve curve at the end of the list to the ShpWrapCurve hybrid
shape WrapCurve feature.

ShpWrapCurve.InsertCurves (0, RefCurveForWrapCurve,
TargCurveForWrapCurve)
Parameters
Returns

None

insert_reference_curve(i_position, i_reference_curve)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub InsertReferenceCurve(long iPosition,
Reference iReferenceCurve)

Inserts a of reference curve to the wrap curve.

Parameters:

iPosition
The position of the curves in the list of curves.
Legal values: 0 for the end of the list, or positive and not null.

iReferenceCurve
the reference curve.
Sub-element(s) supported (see

Boundary object): TriDimFeatEdge and BiDimFeatEdge.
Example:
This example sets the RefCurveForWrapCurve curve at the end of the list
to the ShpWrapCurve hybrid shape WrapCurve feature.

ShpWrapCurve.InsertCurves (0, RefCurveForWrapCurve)
Parameters
  • i_position (int) –

  • i_reference_curve (Reference) –

Returns

None

property last_curves_constraint

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property LastCurvesConstraint() As long

Returns or sets constraint at last curves of the
WrapCurve.
Legal values: 1 = no constraint, 2 = Deformed surface will have the same tangency and the the
same curvatureas the original surface at last curves.

Example:
This example retrieves in LastCurvesConstraint the constraint at last
curves of the ShpWrapCurve hybrid shape WrapCurve feature.

Dim LastCurvesConstraint As long
Set LastCurvesConstraint = ShpWrapCurve.LastCurvesConstraint
Returns

int

remove_curves(i_position)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemoveCurves(long iPosition)

Removes a couple of reference curve and target curve from the
WrapCurve.

Parameters:

iPosition
The position of the curves in the list of curves.
Legal values: positive, not null and lower to numberOfCurves


Example:
This example removes the first couple of reference curve and target
curve of the ShpWrapCurve hybrid shape WrapCurve
feature.

ShpWrapCurve.RemoveCurves (1)
Parameters

i_position (int) –

Returns

None

set_reference_direction(i_direction)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetReferenceDirection(HybridShapeDirection iDirection)

Sets the reference direction projection to the wrap curve
feature.

Parameters:

iDirection
curve to be added as a direction, if iDirectionType = 2.
Example:
This example sets the RefDirection curve as the reference direction
of the ShpWrapCurve hybrid shape WrapCurve
feature.

ShpWrapCurve.SetReferenceDirection RefDirection
Parameters

i_direction (HybridShapeDirection) –

Returns

None

set_reference_spine(i_spine)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetReferenceSpine(Reference iSpine)

Sets the reference spine to the wrap curve feature.

Parameters:

iSpine
curve to be added as a spine.
Sub-element(s) supported (see

Boundary object): TriDimFeatEdge, BiDimFeatEdge.

Example:
This example sets the Curve10 curve as the reference Spine of the
ShpWrapCurve hybrid shape WrapCurve feature.

ShpWrapCurve.SetReferenceSpine Curve10
Parameters

i_spine (Reference) –

Returns

None

property surface

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Surface() As Reference

Returns or sets the surface to deform of the WrapCurve.
Sub-element(s) supported (see Boundary object): Face.

Example:
This example retrieves in SurfaceToDeform the surface to deform of the
ShpWrapCurve hybrid shape WrapCurve feature.

SurfaceToDeform = ShpWrapCurve.Surface
Returns

Reference

hybrid_shape_wrap_surface

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.hybrid_shape_interfaces.hybrid_shape_wrap_surface.HybridShapeWrapSurface(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
HybridShapeWrapSurface

Represents the hybrid shape wrap surface object.
Role: To access the data of the hybrid shape wrap surface
object.

This data includes:

Two definition surfaces (refrence and target), who define the
deformation

Use the CATIAHybridShapeFactory to create a HybridShapeWrapSurface
object.

See also:
HybridShapeFactory
property deformation_mode

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property DeformationMode() As long

Returns or sets whether the wrap surface is or should be created as
a”Normal” or with a “3D” deformation mode.
Legal values: 2 for the normal solution and 1 for 3D
solution.

Example:

This example sets the mode to create the wrap
surface
hybWrapSurface with a 3D deformation mode.


hybWrapSurface.3D deformation mode = 1
Returns

int

property reference_surface

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property ReferenceSurface() As Reference

Returns or sets the reference surface of the WrapSurface.

Example:
This example retrieves in ReferenceSurface the surface to deform of the
ShpWrapSurface hybrid shape WrapSurface feature.

ReferenceSurface = ShpWrapSurface.Surface
Returns

Reference

property surface

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property Surface() As Reference

Returns or sets the reference surface to deform of the WrapSurface.


Example:
This example retrieves in SurfaceToDeform the surface to deform of the
ShpWrapSurface hybrid shape WrapSurface feature.

SurfaceToDeform = ShpWrapSurface.Surface
Returns

Reference

property target_surface

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property TargetSurface() As Reference

Returns or sets the target surface of the WrapSurface.

Example:
This example retrieves in TargetSurface the surface to deform of the
ShpWrapSurface hybrid shape WrapSurface feature.

TargetSurface = ShpWrapSurface.Surface
Returns

Reference

line

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.hybrid_shape_interfaces.line.Line(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
Line

Represents the hybrid shape Line feature object.
Role: Declare hybrid shape Line root feature object. All interfaces for
different type of Line derives HybridShapeLine.

Use the CATIAHybridShapeFactory to create a HybridShapeLine
objects.

See also:
HybridShapeFactory
property first_upto_elem

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property FirstUptoElem() As Reference

Role: Gets the First upto element of the line.

Parameters:

oFirstUpto

Returns:
HRESULT S_OK if Ok E_FAIL else
Returns

Reference

get_direction(o_direction)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetDirection(CATSafeArrayVariant oDirection)

Role: Returns the unit-vector pointing in the direction of the
line.

Parameters:

oDirection
oDirection[0]
The X Coordinate of the unit vector pointing in the direction of
the line
oDirection[1]
The Y Coordinate of the unit vector pointing in the direction of
the line
oDirection[2]
The Z Coordinate of the unit vector pointing in the direction of
the line

Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Parameters

o_direction (tuple) –

Returns

None

get_origin(o_origin)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetOrigin(CATSafeArrayVariant oOrigin)

Role: Returns the origin of the line.

Parameters:

oOrigin
oOrigin[0]
The X Coordinate of a point lying on the line
oOrigin[1]
The Y Coordinate of a point lying on the line
oOrigin[2]
The Z Coordinate of a point lying on the line The Origin is
evaluated from the geometry of the line.

Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Parameters

o_origin (tuple) –

Returns

None

put_direction(i_direction)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutDirection(CATSafeArrayVariant iDirection)

Role: Sets the unit-vector pointing in the direction of the
line.

Parameters:

iDirection
iDirection[0]
The X Coordinate of the unit vector pointing in the direction of
the line
iDirection[1]
The Y Coordinate of the unit vector pointing in the direction of
the line
iDirection[2]
The Z Coordinate of the unit vector pointing in the direction of
the line

Returns:
HRESULT S_OK if Ok E_FAIL else return error code for C++
Implementations
See also:
HybridShapeFactory
Parameters

i_direction (tuple) –

Returns

None

property second_upto_elem

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
o Property SecondUptoElem() As Reference

Role: Gets the Second upto element of the line.

Parameters:

oSecondUpto

Returns:
HRESULT S_OK if Ok E_FAIL else
Returns

Reference

plane

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.hybrid_shape_interfaces.plane.Plane(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
Plane

Represents the hybrid shape Plane feature object.
Role: Declare hybrid shape Plane root feature object. All interfaces for
different type of Plane derives HybridShapePlane.

Use the CATIAHybridShapeFactory to create a HybridShapePlane
objects.

See also:
HybridShapeFactory
get_first_axis(o_first_axis)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetFirstAxis(CATSafeArrayVariant oFirstAxis)

Returns the coordinates of the first plane axis.

Parameters:

oFirstAxis[0]
The X Coordinate of the first plane axis
oFirstAxis[1]
The Y Coordinate of the first plane axis
oFirstAxis[2]
The Z Coordinate of the first plane axis

See also:
HybridShapeFactory
Parameters

o_first_axis (tuple) –

Returns

None

get_origin(o_origin)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetOrigin(CATSafeArrayVariant oOrigin)

Returns the origin of the plane.

Parameters:

oOrigin[0]
The X Coordinate of the plane origin
oOrigin[1]
The Y Coordinate of the plane origin
oOrigin[2]
The Z Coordinate of the plane origin

See also:
HybridShapeFactory
Parameters

o_origin (tuple) –

Returns

None

get_position(o_x, o_y, o_z)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetPosition(double oX,
double oY,
double oZ)

Gets the position where the plane is displayed.

Parameters:

oX
X coordinates
oY
Y coordinates
oZ
Z coordinates

Returns:
S_OK if the position has been set before, E_FAIL else.
Parameters
  • o_x (float) –

  • o_y (float) –

  • o_z (float) –

Returns

None

get_second_axis(o_second_axis)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetSecondAxis(CATSafeArrayVariant oSecondAxis)

Returns the coordinates of the second plane axis.

Parameters:

oSecondAxis[0]
The X Coordinate of the second plane axis
oSecondAxis[1]
The Y Coordinate of the second plane axis
oSecondAxis[2]
The Z Coordinate of the second plane axis

See also:
HybridShapeFactory
Parameters

o_second_axis (tuple) –

Returns

None

is_a_ref_plane()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Func IsARefPlane() As long

Queries whether the plane is a reference plane (fixed axis
plane).

Returns:
0 when the plane is a reference plane, 1 else.
Returns

int

put_first_axis(i_first_axis)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutFirstAxis(CATSafeArrayVariant iFirstAxis)

Sets the first axis. The first plane axis must be a point-direction
line.
Note: This method can only be used on CATIAHybridShapePlane2Lines
feature

Parameters:

iFirstAxis[0]
The X Coordinate of the first plane axis
iFirstAxis[1]
The Y Coordinate of the first plane axis
iFirstAxis[2]
The Z Coordinate of the first plane axis

See also:
HybridShapeFactory
Parameters

i_first_axis (tuple) –

Returns

None

put_origin(i_origin)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutOrigin(CATSafeArrayVariant iOrigin)

Sets the origin of the plane.
Note: This method can only be used on CATIAHybridShapePlane2Lines
feature

Parameters:

iOrigin[0]
The X Coordinate of the plane origin
iOrigin[1]
The Y Coordinate of the plane origin
iOrigin[2]
The Z Coordinate of the plane origin

See also:
HybridShapeFactory
Parameters

i_origin (tuple) –

Returns

None

put_second_axis(i_second_axis)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub PutSecondAxis(CATSafeArrayVariant iSecondAxis)

Sets the coordinates of the second plane axis. The second plane axis must
be a point-direction line
Note: This method can only be used on CATIAHybridShapePlane2Lines
feature

Parameters:

iSecondAxis[0]
The X Coordinate of the second plane axis
iSecondAxis[1]
The Y Coordinate of the second plane axis
iSecondAxis[2]
The Z Coordinate of the second plane axis

See also:
HybridShapeFactory
Parameters

i_second_axis (tuple) –

Returns

None

remove_position()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub RemovePosition()

Removes reference position of a plane.
Note: When removed, the plane is displayed at its default position.
Returns

None

set_position(i_x, i_y, i_z)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetPosition(double iX,
double iY,
double iZ)

Sets the position where the plane is displayed.

Parameters:

iX
X coordinates
iY
Y coordinates
iZ
Z coordinates
Parameters
  • i_x (float) –

  • i_y (float) –

  • i_z (float) –

Returns

None

point

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.hybrid_shape_interfaces.point.Point(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
Point

Represents the hybrid shape Point feature object.
Role: Declare hybrid shape Point root feature object. All interfaces for
different type of Point derives HybridShapePoint.

Use the CATIAHybridShapeFactory to create a HybridShapePoint
objects.

See also:
HybridShapeFactory
get_coordinates()

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub GetCoordinates(CATSafeArrayVariant oCoordinates)

Gets cartesian coordinates of the point.

Parameters:

oCoordinates
coordinates of the point.

See also:
HybridShapeFactory
Parameters

o_coordinates (tuple) –

Returns

None

set_coordinates(o_coordinates)

Note

CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445))
o Sub SetCoordinates(CATSafeArrayVariant oCoordinates)

Sets cartesian coordinates of the point.
Note: SetCoordinates can only be used on CATIAHybridShapePointCoord
feature

Parameters:

iCoordinates
coordinates of the point.

See also:
HybridShapeFactory
Parameters

o_coordinates (tuple) –

Returns

None