Versions Compared

Key

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

General Program Information

Basics - Layers

*layernew - a function that creates a new layer in AutoCAD
layernew(title,color) :=

  • one <-- concat("-layer",sp,"m",sp,title)
  • two <-- concat("c",sp,"t",sp,pointnonunits(color<0>))
  • three <-- concat(title)
  • four <-- concat(sp,sp)
  • tot <-- stack(one,two,three,four)
  • return tot

layerset - a function that selects the layer you are currently working in
layerset(title) :=

  • one <-- concat("-layer",sp,"s",sp,title)
  • two <-- concat(sp,sp)
  • tot <-- stack(one,two)
  • return tot