You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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
  • No labels