Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Variables within this section of basics provide numbers for constants within AutoCAD or specify AutoCAD versions. Additionally, this section includes functions which limit the significant figures for numbers used in AutoCAD programs.

sp - a variable that provides a space in AutoCAD code
sp := " "

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

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

  • num2str(round(x/m,5))

stringitnonunits - a function which takes in a number without units and rounds it to 5 significant digits
stringitnonunits( x ) :=

  • num2str(round(x,5))

...