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
- See also:
Properties
- Property Direction() As
-
Returns or sets the projection direction.
- Example:
This example retrieves in
Dirthe direction for theProjecthybrid shape feature.Dim Dir As Reference Set Dir = Project.Direction
- Example:
This example retrieves in
- Property ElemToProject() As
-
Returns or sets the element to project.This element can be a point or a curve.
Sub-element(s) supported (see object): , or .- Example:
This example retrieves in
Elemthe element to project for theProjecthybrid shape feature.Dim Elem As Reference Set Elem = Project.ElemToProject
- Example:
This example retrieves in
- Property ExtrapolationMode() As
-
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
ExtrapolModethe solution type for theProjecthybrid shape feature.Dim ExtrapolMode As long Set ExtrapolMode = Project.ExtrapolationMode
- Example:
This example retrieves in
- Property MaximumDeviationValue() As
-
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
DeviationValuethe maximum deviation value for theProjecthybrid shape feature.Dim DeviationValue As CATIALength Set DeviationValue = Project.MaximumDeviationValue
- Example:
This example retrieves in
- Property Normal() As
-
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
NormalOptionthe support for theProjecthybrid shape feature.Dim NormalOption As boolean Set NormalOption = Project.Normal
- Example:
This example retrieves in
- Property SmoothingType() As
-
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
STypethe smoothing type for theProjecthybrid shape feature.Dim SType As long Set SType = Project.SmoothingType
- Example:
This example retrieves in
- Property SolutionType() As
-
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
SolTypethe solution type for theProjecthybrid shape feature.Dim SolType As long Set SolType = Project.SolutionType
- Example:
This example retrieves in
- Property Support() As
-
Returns or sets the support element.This element can be a plane or a surface.
Sub-element(s) supported (see object): , or .- Example:
This example retrieves in
SupportElemthe support for theProjecthybrid shape feature.Dim SupportElem As Reference Set SupportElem = Project.Support
- Example:
This example retrieves in
- Property p3DSmoothing() As
-
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
3DSmoothingOptionthe support for theProjecthybrid shape feature.Dim 3DSmoothingOption As boolean Set 3DSmoothingOption = Project.p3DSmoothing
- Example:
This example retrieves in