TransitionalConstraintProxy.ConvertToMateConstraint2 Method
Parent Object: TransitionalConstraintProxyDescription
Converts the constraint to a mate constraint, and returns the MateConstraint object.
Syntax
TransitionalConstraintProxy.ConvertToMateConstraint2( EntityOne As Object, EntityTwo As Object, Offset As Variant, [EntityOneInferredType] As InferredTypeEnum, [EntityTwoInferredType] As InferredTypeEnum, [SolutionType] As MateConstraintSolutionTypeEnum, [BiasPointOne] As Variant, [BiasPointTwo] As Variant ) As MateConstraintParameters
Name | Type | Description |
EntityOne | Object | Input object that defines the first geometry. |
EntityTwo | Object | Input object that defines the second geometry |
Offset | Variant | Input Variant that defines the offset between the two input entities. This can be either a numeric value or a string. A parameter for this value is created and the supplied string or value is assigned to the parameter. If a value is input, the units are centimeters. If a string is input the units can be specified as part of the string or will default to the current length units of the document. |
EntityOneInferredType | InferredTypeEnum | Optional input enum that specifies how the geometry of entity one is to be interpreted. Depending on the geometry of the entity one, different options are possible.
If entity one is a cylinder this can be either kNoInferrence or kInferredLine. For kNoInferrence to be valid for a cylinder, entity two must also be a cylinder and they must be the same radius.
If entity one is a sphere this can be either kNoInferrence or kInferredPoint. For kNoInferrence to be valid for a sphere, entity two must also be a sphere and they must be the same radius.
If entity one is a cone this can be either kNoInferrence or kInferredLine. For kNoInferrence to be valid for a cone, entity two must also be a cone and they must have the same taper angle.
If entity one is a torus this can be either kInferredLine or kInferredPoint.
For a plane, only kNoInferrence is valid. This is an optional argument whose default value is 24833. |
EntityTwoInferredType | InferredTypeEnum | Optional input enum that specifies how the geometry of entity two is to be interpreted. Depending on the geometry of the entity two, different options are possible.
If entity two is a cylinder this can be either kNoInferrence or kInferredLine. For kNoInferrence to be valid for a cylinder, entity one must also be a cylinder and they must be the same radius.
If entity two is a sphere this can be either kNoInferrence or kInferredPoint. For kNoInferrence to be valid for a sphere, entity one must also be a sphere and they must be the same radius.
If entity two is a cone this can be either kNoInferrence or kInferredLine. For kNoInferrence to be valid for a cone, entity one must also be a cone and they must have the same taper angle.
If entity two is a torus this can be either kInferredLine or kInferredPoint.
For a plane, only kNoInferrence is valid. This is an optional argument whose default value is 24833. |
SolutionType | MateConstraintSolutionTypeEnum | Optional input MateConstraintSolutionTypeEnum that specifies the solution type for the mate constraint. If not provided this defaults to kOpposedSolutionType. This is an optional argument whose default value is 115457. |
BiasPointOne | Variant | Optional input Point object that is used help in determining the initial position of the occurrence. The occurrences are repositioned in an attempt to make the two bias points coincident. This provides some general control over the position of the occurrence when it isn’t being controlled by another constraint.
An example of when the bias points are useful is the case when the first constraint on a part is a mate constraint. In the case where the mate is between two planes, the parts can be positioned anywhere along the infinite plane that defines their mating contact. Using the bias points you can define the position of the two occurrences, relative to each other.
If a bias point is not given, one is calculated that is at the center of the parameter range of the input entity. This is an optional argument whose default value is null. |
BiasPointTwo | Variant | Optional input Point object that is used help in determining the initial position of the occurrence. The occurrences are repositioned in an attempt to make the two bias points coincident. This provides some general control over the position of the occurrence when it isn’t being controlled by another constraint.
An example of when the bias points are useful is the case when the first constraint on a part is a mate constraint. In the case where the mate is between two planes, the parts can be positioned anywhere along the infinite plane that defines their mating contact. Using the bias points you can define the position of the two occurrences, relative to each other.
If a bias point is not given, one is calculated that is at the center of the parameter range of the input entity. This is an optional argument whose default value is null. |