Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

zc - a variable representing the zoom constant distance in AutoCAD code with the value of .01m
zc := .01m

zcpoint - a variable representing the zoom constant dimension in AutoCAD code.
zcpoint :=

  • x = 0m
  • y = .1m
  • z = 0m

stringit - a function which takes in a number with units, makes it non-dimensional, and rounds it to 5 significant digits
stringit( x ) :=

...

point - a variable containing numerical coordinates in an array and the units associated with those coordinates. It then converts the array into one line of code where the coordinates are separated by commas (ie. x,y,z where the coordinates are x,y,z are specified by numbers).
point(pointarray) :=

  • temp <-- ""
  • for i of 0..(rows(pointarray) - 1)
    • temp <-- concat(temp,stringit(pointarrayi))
    • temp <-- concat(temp,",") if i < (rows(pointarray) - 1)
  • temp

pointnonunits - a variable containing numerical coordinates in an array without units. It then converts the array into one line of code where the coordinates are separated by numbers.
pointnonunits(pointarray)

...