Share

IManagedConstraints.AddSymmetry Method

Adds or modifies a symmetry assembly constraint.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 29.0

Syntax

VB

Function AddSymmetry ( 
	constraintName As String,
	component1 As ComponentArgument,
	entityName1 As String,
	component2 As ComponentArgument,
	entityName2 As String,
	symmetryPlaneComponent As ComponentArgument,
	symmetryPlane As String,
	Optional normalsOpposed As Boolean = true,
	Optional e1InferredType As InferredTypeEnum = InferredTypeEnum.kNoInference,
	Optional e2InferredType As InferredTypeEnum = InferredTypeEnum.kNoInference
) As IManagedConstraint

C#

IManagedConstraint AddSymmetry(
	string constraintName,
	ComponentArgument component1,
	string entityName1,
	ComponentArgument component2,
	string entityName2,
	ComponentArgument symmetryPlaneComponent,
	string symmetryPlane,
	bool normalsOpposed = true,
	InferredTypeEnum e1InferredType = InferredTypeEnum.kNoInference,
	InferredTypeEnum e2InferredType = InferredTypeEnum.kNoInference
)

Parameters

constraintName
Type: System.String
component1
Type: Autodesk.iLogic.Types.ComponentArgument
The occurrence that contains the first entity. Examples: "Part:1" or {"Subassembly:1", "Part:1"}.
entityName1
Type: System.String
The first entity name. This can be named or work geometry.
component2
Type: Autodesk.iLogic.Types.ComponentArgument
The occurrence that contains the second entity. Examples: "Part:2" or {"Subassembly:2", "Part:2"}.
entityName2
Type: System.String
The second entity name. This can be named or work geometry.
symmetryPlaneComponent
Type: Autodesk.iLogic.Types.ComponentArgument
The occurrence that contains the symmetry plane.
symmetryPlane
Type: System.String
The symmetry plane name. This can be a planar face or a work plane.
normalsOpposed (Optional)
Type: System.Boolean
This argument only applies when the two entities are planar (planar face or work plane) and defines if the normal of the planar entities are oriented so they are opposed or aligned.
e1InferredType (Optional)
Type: InferredTypeEnum
Optional input constant that specifies how the geometry of the first entity is to be interpreted.
e2InferredType (Optional)
Type: InferredTypeEnum
Optional input constant that specifies how the geometry of the second entity is to be interpreted.

Return Value

Type: IManagedConstraint
The constraint.

See Also

Reference

Was this information helpful?