Description

An arc defined by start and end angles


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 an arc entity with start and end angles:


Format 1 Keys

  • xCenter - double value representing the X coordinate of the arc center
  • yCenter - double value representing the Y coordinate of the arc center
  • zCenter  - double value representing the Z coordinate of the arc center

Format 2 Keys

  • Center - a table consisting of 3 double positions representing X,Y,Z coordinates of the arc center

Keys in both Format 1 and 2

  • Type="ArcFromAngles" - Defines this table as an arc type entity defined by start and end angles
  • Radius - double value representing the radius of the arc
  • StartAngle - double value representing the angle in degrees of the start of the arc
  • EndAngle - double value representing the angle in degrees of the end of the arc
  • IsClockwise - Boolean value of the arc direction
    • true - clockwise
    • false - counterclockwise
  • LineStyle – The entity line style used.  Possible values can be:
    • None – This will utilize the active document linestyle – Same as omitting this parameter
    • Solid
    • Dash
    • Dot
    • DashDot
    • DashDotDot

Example

Format 1


--Minimal definition

myArc = { Type="ArcFromAngles", xCenter=1.0, yCenter=1.0, zCenter=1.0, Radius=0.5, StartAngle=30.0, EndAngle=90.0, IsClockwise=false }


--Complete definition

myArc = { CmdName="My Arc", Type="ArcFromAngles", xCenter=1.0, yCenter=1.0, zCenter=1.0, Radius=0.5, StartAngle=30.0, EndAngle=90.0, IsClockwise=false, Layer="Layer Name", Color="Blue", LineStyle="Solid" }


Format 2


--Minimal definition

myArc = { Type="ArcFromAngles", Center={1.0,1.0,1.0}, Radius=0.5, StartAngle=30.0, EndAngle=90.0, IsClockwise=false }


--Complete definition

myArc = { CmdName="My Arc", Type="ArcFromAngles", Center={1.0,1.0,1.0}, Radius=0.5, StartAngle=30.0, EndAngle=90.0, IsClockwise=false, Layer="Layer Name", Color="Blue", LineStyle="Solid" }