Assembly: VMOpCore.dll The utility class for the constraints creation.
Inheritance
object ← CreateConstraintExtension Methods
LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)Constructors
CreateConstraint()
Methods
CreateBush(Document, IConnectable, IConnectable, PointBase, OMatrix, string)
Create the bushing.Parameters
document Document
baseConnectable IConnectable
actionConnectable IConnectable
position PointBase
direction OMatrix
strPrefixName string
Returns
GeneralCreateBush(Document, IConnectable, IConnectable, PointBase, DirectionBase, string, bool)
Create the bushing.Parameters
document Document
baseConnectable IConnectable
actionConnectable IConnectable
position PointBase
dirZ DirectionBase
strPrefixName string
getNewEntityName bool
Flag for creating a new entity if there is already an entity with the same name
Returns
GeneralCreateBush(Document, IConnectable, IConnectable, TMatrix, TMatrix, string, bool, bool)
Create the bushing.Parameters
document Document
baseConnectable IConnectable
actionConnectable IConnectable
baseTransform TMatrix
The base transform.
actionTransform TMatrix
The action transform.
name string
The fixed joint name.
isPrefix bool
addToDocument bool
Flag for add created element to document.
Returns
GeneralCreateFixed(Document3D, IConnectable, IConnectable, PointBase, string)
Create the fixed joint.Parameters
activeDocument Document3D
The active document.
baseConnectable IConnectable
The base connectable.
actionConnectable IConnectable
The action connectable.
ptOrigin PointBase
The location of fixed joint.
strPrefixName string
The fixed joint prefix name.
Returns
Fixed The new fixed joint.CreateFixed(Document, IConnectable, IConnectable, PointBase, OMatrix, string, bool, bool)
Create the fixed joint.Parameters
document Document
The active document.
baseConnectable IConnectable
The base connectable.
actionConnectable IConnectable
The action connectable.
ptOrigin PointBase
The location of fixed joint.
matO OMatrix
The orientation matrix.
name string
The fixed joint name.
isPrefix bool
addToDocument bool
Flag for add created element to document.
Returns
General The new fixed joint.CreateFixed(Document, IConnectable, IConnectable, TMatrix, TMatrix, string, bool, bool)
Create the fixed joint.Parameters
document Document
The active document.
baseConnectable IConnectable
The base connectable.
actionConnectable IConnectable
The action connectable.
baseTransform TMatrix
The base transform.
actionTransform TMatrix
The action transform.
name string
The fixed joint name.
isPrefix bool
addToDocument bool
Flag for add created element to document.
Returns
General The new fixed joint.CreateFixedToGround(Document3D, IConnectable, PointBase, string)
Create the fixed joint to ground.Parameters
activeDocument Document3D
The active document.
actionConnectable IConnectable
The action connectable.
ptOrigin PointBase
The location of fixed joint.
strPrefixName string
The fixed joint prefix name.
Returns
Fixed The new fixed joint.CreateGeneralConnector(Document3D, string, IConnectable, IConnectable, ConnectorType, bool, double)
Create general connectorParameters
doc Document3D
The document
strName string
The name
connectableFirst IConnectable
The base connectable
connectableSecond IConnectable
The action connectable
type PropertyGeneral.ConnectorType
The connector type
bAuto bool
The auto flag
dTolerance double
The tolerance
Returns
GeneralCreateGeneralConnector(Document3D, string, Body, Body, ConnectorType, bool, double)
Create general connectorParameters
doc Document3D
The document
strName string
The name
bodyFirst Body
The base connectable
bodySecond Body
The action connectable
type PropertyGeneral.ConnectorType
The connector type
bAuto bool
The auto flag
dTolerance double
The tolerance
Returns
GeneralCreateGeneralConnector(Document3D, IConnectable, IConnectable, PointBase, DirectionBase, string, ConnectorType, bool)
Create the general connector.Parameters
activeDocument Document3D
The active document.
baseConnectable IConnectable
The base connectable.
actionConnectable IConnectable
The action connectable.
ptOrigin PointBase
The location of revolute joint.
dirZ DirectionBase
The z-direction of revolute joint.
name string
The revolute joint prefix name.
connectorType PropertyGeneral.ConnectorType
The connector type
getNewEntityName bool
Flag for creating a new entity if there is already an entity with the same name
Returns
General The new revolute joint.CreateGeneralFixedToGround(Document3D, IConnectable, PointBase, string, bool)
Create the fixed joint to ground.Parameters
activeDocument Document3D
The active document.
actionConnectable IConnectable
The action connectable.
ptOrigin PointBase
The location of fixed joint.
name string
The fixed joint prefix name.
isPrefix bool
Returns
General The new fixed joint.CreateGeneralRevolute(Document, IConnectable, IConnectable, PointBase, DirectionBase, string, DriverFunction, bool)
Create the revolute joint.Parameters
document Document
The active document.
baseConnectable IConnectable
The base connectable.
actionConnectable IConnectable
The action connectable.
ptOrigin PointBase
The location of revolute joint.
dirZ DirectionBase
The z-direction of revolute joint.
name string
The revolute joint prefix name.
driverFunction DriverFunction
getNewEntityName bool
Flag for creating a new entity if there is already an entity with the same name
Returns
General The new revolute joint.CreateGeneralRevolute(Document, IConnectable, IConnectable, TMatrix, TMatrix, string, DriverFunction, bool, bool)
Create the revolute joint.Parameters
document Document
The active document.
baseConnectable IConnectable
The base connectable.
actionConnectable IConnectable
The action connectable.
baseTransform TMatrix
The base transform.
actionTransform TMatrix
The action transform.
name string
The fixed joint name.
driverFunction DriverFunction
isPrefix bool
addToDocument bool
Flag for add created element to document.
Returns
General The new revolute joint.CreateGeneralRevolute(SubSystemDocument, IObjectBase, IObjectBase, PointBase, DirectionBase, string, bool, Function, MotionType)
Create the revolute joint.Parameters
subSystemDocument SubSystemDocument
baseBody IObjectBase
actionBody IObjectBase
pointBase PointBase
direction DirectionBase
name string
getNewEntityName bool
Flag for creating a new entity if there is already an entity with the same name
function Function
motionType DriverFunction.MotionType
Returns
GeneralCreateGeneralTranslational(Document3D, IConnectable, IConnectable, PointBase, DirectionBase, string, bool)
Create the translational joint.Parameters
activeDocument Document3D
The active document.
baseConnectable IConnectable
The base connectable.
actionConnectable IConnectable
The action connectable.
ptOrigin PointBase
The location of translational joint.
dirZ DirectionBase
The z-direction of translational joint.
name string
The translational joint prefix name.
getNewEntityName bool
Flag for creating a new entity if there is already an entity with the same name
Returns
General The new translational joint.CreateRevolute(Document3D, IConnectable, IConnectable, PointBase, DirectionBase, string)
Create the revolute joint.Parameters
activeDocument Document3D
The active document.
baseConnectable IConnectable
The base connectable.
actionConnectable IConnectable
The action connectable.
ptOrigin PointBase
The location of revolute joint.
dirZ DirectionBase
The z-direction of revolute joint.
strPrefixName string
The revolute joint prefix name.
Returns
Revolute The new revolute joint.CreateTranslational(Document3D, IConnectable, IConnectable, PointBase, DirectionBase, string)
Create the translational joint.Parameters
activeDocument Document3D
The active document.
baseConnectable IConnectable
The base connectable.
actionConnectable IConnectable
The action connectable.
ptOrigin PointBase
The location of translational joint.
dirZ DirectionBase
The z-direction of translational joint.
strPrefixName string
The translational joint prefix name.
Returns
Translational The new translational joint.CreateTranslational(SubSystemDocument, IObjectBase, IObjectBase, PointBase, DirectionBase, string, DesignVariable, Function, DesignVariable, DesignVariable, bool, bool)
Create the translational joint.Parameters
subSystemDocument SubSystemDocument
baseBody IObjectBase
actionBody IObjectBase
pointBase PointBase
direction DirectionBase
name string
functionValue DesignVariable
functionZero Function
restrict_k DesignVariable
restrict_c DesignVariable
usePlus bool
getNewEntityName bool
Flag for creating a new entity if there is already an entity with the same name
Returns
GeneralGetConnectorParameter(IDocument, string, IConnectable, IConnectable, ParameterType, double, ref object[])
Gets connector parameter.Parameters
doc IDocument
strName string
connectableFirst IConnectable
connectableSecond IConnectable
parameterType CreateConstraint.ParameterType
dTolerance double
pickedResults object[]
Returns
boolGetConnectorParameter(IDocument, string, Body, Body, ParameterType, double, ref object[])
Gets connector parameter.Parameters
doc IDocument
strName string
bodyFirst Body
bodySecond Body
parameterType CreateConstraint.ParameterType
dTolerance double
pickedResults object[]