« CADopia - Drawing Circles | Main | CADopia - Creating Splines »

Monday, September 24, 2007

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

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment