Skip to main content
Namespace: VM.API.Pre.Links
Assembly: VM.API.Pre.Links.dll
This class implements APIs for ball placing.

Inheritance

object ← BallPlacingAPI

Extension Methods

LinkPropertyItemCache.GetLinkProperties(object, LinkPropertyType), LinkPropertyItemCache.GetLinkPropertiesAndValues(object, LinkPropertyType), LinkPropertyItemCache.GetLinkedObjects<T>(object, LinkPropertyType)

Methods

Create ball.

Parameters

ballInfo BallInfo The ball information to create ball.

Returns

Obj The new SolidBody object that is created by this API.

Exceptions

ArgumentException Will be thrown if the Name of ‘ballInfo’ is null. ArgumentException Will be thrown if the Radius of ‘ballInfo’ is equal to or less than 0. Create ball placing BallPlacing.

Parameters

document SubSystemDocument The document to create the ball placing. path string The path to create the ball placing. pathType PathType The path type. The default value is Closed. name string The name of the BallPlacing. If empty, default name starts with ‘BallPlacing_’ will be generated and used. ballRadius ExpressionValueVariable? The ball radius. The default value is 2. numberOfBall ExpressionValueVariable? The number of ball. The default value is 25. color Color? The color. The default value is ‘0xAAAABF’

Returns

Obj The new BallPlacing object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’, ‘body’ are null. FileNotFoundException Will be thrown if ‘path’ file path does not exist. ArgumentException Will be thrown if the extension of ‘path’ is not ‘csv’. ArgumentOutOfRangeException Will be thrown if ‘ballRadius’ value equal to or less than 0. ArgumentOutOfRangeException Will be thrown if ‘numberOfBall’ is less than 2 or greater than 999. Create ball placing contact BallPlacingContact.

Parameters

document SubSystemDocument The document to create the ball placing contact. baseGeometries IEnumerable<Obj> The base geometries. ballPlacing Obj The ball placing. name string The name of the BallPlacingContact. If empty, default name starts with ‘BallPlacingContact_’ will be generated and used.

Returns

Obj The new BallPlacingContact object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’, ‘baseGeometries’, ‘ballPlacing’, ‘ballPlacing’ are null. ArgumentException Will be thrown if item type of ‘baseGeometries’ is not IContactable.

Parameters

document SubSystemDocument shaftReferencePosition Vector axisZ Vector axisX Vector shaftLength ExpressionValueVariable? shaftScrewStartAngle ExpressionValueVariable? shaftScrewStartPosition ExpressionValueVariable? shaftScrewEndPosition ExpressionValueVariable? nutLength ExpressionValueVariable? nutOD ExpressionValueVariable? nutStartPosition ExpressionValueVariable? nutScrewStartPosition ExpressionValueVariable? nutScrewEndPosition ExpressionValueVariable? handOfScrew ScrewHandType lead ExpressionValueVariable? shaftPCD ExpressionValueVariable? nutPCD ExpressionValueVariable? ballDiameter ExpressionValueVariable? name string

Returns

Obj Create surface with curvesets SurfaceWithCurvesets.

Parameters

document SubSystemDocument The document to create the surface with curvesets. path string The path to create the surface with curvesets. faceSet Obj The face set. startCurveSet Obj The start curveset. endCurveSet Obj The end curveset. numberOfSlice ExpressionValueVariable? The number of slice. The default value is 19. cuttingPlaneRadius ExpressionValueVariable? The radius of cutting plane. The default value is 10. name string The name of the SurfaceWithCurvesets. If empty, default name starts with ‘Surface_With_Curvesets_’ will be generated and used.

Returns

Obj The new SurfaceWithCurvesets object that is created by this API.

Exceptions

ArgumentNullException Will be thrown if ‘document’, ‘faceSet’, ‘startCurveSet’, ‘endCurveSet’ are null. FileNotFoundException Will be thrown if ‘path’ file path does not exist. ArgumentException Will be thrown if the extension of ‘path’ is not ‘csv’. ArgumentException Will be thrown if Object of ‘startCurveSet’ and Object of ‘endCurveSet’ are the same. ArgumentException Will be thrown if item type of ‘faceSet’ is not SetFace. ArgumentException Will be thrown if item type of ‘startCurveSet’ is not SetCurveForEdges. ArgumentException Will be thrown if item type of ‘endCurveSet’ is not SetCurveForEdges. ArgumentOutOfRangeException Will be thrown if ‘numberOfSlice’, ‘cuttingPlaneRadius’ values equal to or less than 0. Delete ball.

Parameters

ball Obj The ball to delete ball.

Exceptions

ArgumentNullException Will be thrown if ‘ball’ is null. ArgumentException Will be thrown if item type of ‘ball’ is not SolidBody. Update ball.

Parameters

ball Obj The ball to update ball. ballInfo BallInfo The ball information to update ball.

Exceptions

ArgumentNullException Will be thrown if ‘ball’ is null. ArgumentException Will be thrown if item type of ‘ball’ is not SolidBody. ArgumentException Will be thrown if the Name of ‘ballInfo’ is null. ArgumentException Will be thrown if the Radius of ‘ballInfo’ is equal to or less than 0. Update faceset.

Parameters

faceset Obj The faceset to update ball. maximumPenetration ExpressionValueVariable The maximum penetration. offset ExpressionValueVariable The offset.

Exceptions

ArgumentNullException Will be thrown if ‘faceset’ is null. ArgumentException Will be thrown if item type of ‘faceset’ is not SetFace. Update surface with curvesets.

Parameters

surfaceWithCurvesets Obj The surface with curvesets to update ball. maximumPenetration ExpressionValueVariable The maximum penetration. offset ExpressionValueVariable The offset. isUp bool The flag for up or down. slice ExpressionValueVariable The slice.

Exceptions

ArgumentNullException Will be thrown if ‘surfaceWithCurvesets’ is null. ArgumentException Will be thrown if item type of ‘surfaceWithCurvesets’ is not SurfaceWithCurvesets.