pycatia.hybrid_shape_interfaces.hybrid_shape_translate¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-07-06 14:02:20.222384
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-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectMecModInterfaces.HybridShapeHybridShapeTranslateRepresents the hybrid shape translate feature object.Role: To access the data of the hybrid shape translate feature object. Thisdata includes:The element to translateThe translation directionThe translation distance and its valueLICENSING INFORMATION: Creation of volume result requires GSOLicenseif GSO License is not granted , setting of Volume context has noteffectUse the CATIAHybridShapeFactory to create HybridShapeFeatureobject.See also:HybridShapeFactory- property coord_x_value: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property CoordXValue() As doubleReturns or sets the translate X coordinate value.
- Return type:
float
- property coord_y_value: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property CoordYValue() As doubleReturns or sets the translate Y coordinate value.
- Return type:
float
- property coord_z_value: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property CoordZValue() As doubleReturns or sets the translate Z coordinate value.
- Return type:
float
- property direction: HybridShapeDirection¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Direction() As HybridShapeDirectionReturns or sets the translate direction.ExampleThis example retrieves in Dir the translation direction for theTranslate hybrid shape feature.Dim Dir As CATIAHybridShapeDirectionSet Dir=Translate.Direction
- Return type:
- property distance: Length¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property Distance() As Length (Read Only)Returns the translate distance.
- Return type:
- property distance_value: float¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property DistanceValue() As doubleReturns or sets the translate distance value.ExampleThis example retrieves in DistVal the translation distance value forthe Translate hybrid shape feature.Dim DistVal As doubleSet DistVal =Translate.DistanceValue
- Return type:
float
- property elem_to_translate: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property ElemToTranslate() As ReferenceReturns or sets the element to translate.ExampleThis example retrieves in Element the element to be translated for theTranslate hybrid shape feature.Dim Element As ReferenceSet Element=Translate.ElemToTranslate
- Return type:
- property first_point: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FirstPoint() As ReferenceReturns or sets the first point defining the translation.
- Return type:
- get_creation_mode() int ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetCreationMode() As longGets the creation mode.Legal values:0CATGSMTransfoModeUnset. Default behavior: creation mode by default forall features, modification mode for axis system1CATGSMTransfoModeCreation. Creation mode.2CATGSMTransfoModeModification. Modification mode.Example:This example retrieves in oCreation the creation mode for thehybShpTranslate hybrid shape feature.oCreation = hybShpTranslate.GetCreationMode
- Return type:
int
- property ref_axis_system: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property RefAxisSystem() As ReferenceReturns or Sets the reference Axis System for Translatefeature.This data is not mandatory, if element is null, the absolute axis system istaken.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 Translatefeature.Dim oRefAxis As CATIAReferenceSet oRefAxis = Translate.RefAxisSystem
- Return type:
- property second_point: Reference¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property SecondPoint() As ReferenceReturns or sets the second point defining the translation.
- Return type:
- set_creation_mode(i_creation: bool) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- 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 theresult is a modification feature.Example:This example sets that the mode ofthe hybShpTranslate hybrid shape translate tocreationhybShpTranslate.SetCreationMode True
- Parameters:
i_creation (bool) –
- Return type:
None
- property vector_type: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property VectorType() As longReturns or sets the way the translation vector is defined.0= Direction + distance1= point + points2= coordinates3= Unknown type
- Return type:
int
- property volume_result: bool¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property VolumeResult() As booleanReturns 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 ifit is needed as surface .Example:This example sets that the result ofthe hybShpTranslate hybrid shape translate is volume.hybShpTranslate.VolumeResult = True
- Return type:
bool