Topsolid online Help Index
Driving TopSolid often involves sending or receiving points or vectors (to define directions or axes), using (x, y, z) Cartesian coordinates.
By convention, these coordinates are always expressed in length program units, and are relative to the current coordinate system (or current draft view for draft documents) of the involved document.
For instance, the following code will create a point on the X axis of the current coordinate system of the document, at 20mm from the origin :
Dim TopDoc As TopSolid.DocumentDesign
Dim TopPnt As TopSolid.Point
...
TopDoc.Document.ProgramUnitLength = "mm"
TopPnt = TopDoc.Points.AddBasic(20, 0, 0)
...
Topsolid online Help Index