CADopia - Creating Points
A point is a location in space specified by its x, y, and z coordinates. A CADopia point entity consists of a single x-, y-, and z-coordinate location, and is represented by one of several symbols . You can create both Point objects -- which are not visible on screen -- and PointEntity objects -- which are visible on screen. To create points and point entities, use one of the following methods:
CreatePoint |
Creates a Point object. |
AddPointEntity |
Creates a PointEntity object and adds it to the drawing. |
To change the appearance of point entities, change the PDMODE and PDSIZE system variables using the SetVariable method.
CreatePoint method
Creates a new Point object.
NOTE: The CreatePoint method should not be confused with either the CreatePoints method, which is used to create a new Points collection object, or the AddPointEntity method, which is used to create a point that is visible on the screen.
Syntax
objectVariable = Library.CreatePoint (X, Y, Z)
Where:
objectVariable is a variable representing a Point object.
X, Y, and Z are double-precision variables representing the x, y, and z coordinates of the point.
AddPointEntity method
Creates a point entity and adds it to the drawing.
Syntax
objectVariable = object.AddPointEntity(Point)
Where:
objectVariable is a PointEntity object;
object is one of the ModelSpace or PaperSpace collection objects or a Block object;
Point is a Point object representing the location to insert the PointEntity.
Comments