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 , settting of Volume context has not effect
Use the CATIAHybridShapeFactory to create a HybridShapeAffinity object.
- See also:
Properties
- Property AxisFirstDirection() As
-
Returns or sets the first direction of the reference coordinate system.
Sub-element(s) supported (see object): , or .- Example:
-
This example retrieves in
FirstDirthe first direction of the reference coordinate system used by theAffinityhybrid shape feature.Dim FirstDir As Reference Set FirstDir = Affinity.AxisFirstDirection
- Property AxisOrigin() As
-
Returns or sets the origin of the reference coordinate system.
Sub-element(s) supported (see object): .- Example:
-
This example retrieves in
Originthe origin of the reference coordinate system used by theAffinityhybrid shape feature.Dim Origin As Reference Set Origin = Affinity.AxisOrigin
- Property AxisPlane() As
-
Returns or sets the reference plane of the reference coordinate system.
Sub-element(s) supported (see object): .- Example:
-
This example retrieves in
RefPlanethe reference plane of the reference coordinate system used by theAffinityhybrid shape feature.Dim RefPlane As Reference Set RefPlane = Affinity.AxisPlane
- Property CreationMode() As
-
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
hybShpAffinityhybrid shape affinity to creationhybShpAffinity.CreationMode = True
- Property ElemToTransform() As
-
Returns or sets the element to transform using the affinity.
- Example:
-
This example retrieves in
ElementToTransformthe element to transform for theAffinityhybrid shape feature.Dim ElementToTransform As Reference Set ElementToTransform = Affinity.ElemToTransform
- Property VolumeResult() As
-
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
hybShpAffinityhybrid shape affinity is volume.hybShpAffinity.VolumeResult = True
- Property XRatios() As (Read Only)
-
Returns the affinity ratio along the X Direction of the reference coordinate system.
- Example:
-
This example retrieves in
Xthe ratio of the affinity along the X Direction of the reference coordinate system used by theAffinityhybrid shape feature.Dim X As RealParam Set X = Affinity.XRatios
- Property YRatios() As (Read Only)
-
Returns the affinity ratio along the Y Direction of the reference coordinate system.
- Example:
-
This example retrieves in
Ythe ratio of the affinity along the Y Direction of the reference coordinate system used by theAffinityhybrid shape feature.Dim Y As RealParam Set Y = Affinity.YRatios
- Property ZRatios() As (Read Only)
-
Returns the affinity ratio along the Z Direction of the reference coordinate system.
- Example:
-
This example retrieves in
Zthe ratio of the affinity along the Z Direction of the reference coordinate system used by theAffinityhybrid shape feature.Dim Z As RealParam Set Z = Affinity.ZRatios