Description

Creates a single point entity defined by X,Y,Z positions.


BobCAD API supports 2 different table key definition formats for flexibility in coding.

Keys

The following Keys can be created inside a table to form a point entity:

Format 1 Keys

  • X – double value representing the X coordinate of the point
  • Y – double value representing the Y coordinate of the point
  • Z – double value representing the Z coordinate of the point

Format 2 Keys

  • Point - a table consisting of 3 double positions representing X,Y,Z coordinates

Keys in both Format 1 and 2

  • Type="Point" - Defines this table as a point type entity
  • PointStyle - Sets the point style attribute 
    • If excluded the point style of the BobCAD system will be used
    • Possible values range from 1-16 for each of the BobCAD point styles
  • PointSize - Size of the point drawn in the screen 
    • Only applied to point styles 2 thru 16 
    • If excluded the PointSize of the BobCAD system will be utilized


Example

Format 1


--Minimal definition

myPoint = { Type="Point", X=1.0, Y=1.0, Z=1.0 }


--Complete definition

myPoint = { CmdName="My Point", Type="Point", X=1.0, Y=1.0, Z=1.0, Layer="Layer Name", Color="Blue", PointStyle=1, PointSize=0.05 }

Format 2


--Minimal definition

myPoint = { Type="Point", Point={1.0,1.0,1.0} }


--Complete definition

myPoint = { CmdName="My Point", Type="Point", Point={1.0,1.0,1.0}, Layer="Layer Name", Color="Blue", PointStyle=1, PointSize=0.05 }