AfmIns, AfmInsc, and AfmInsx
AfmIns, AfmInsc, and AfmInsx
Syntax
(AfmIns strPath strBlock strLayer [strStdCode]
[xScale] [yScale] [pExplode?])
(AfmInsc strPath strBlock strLayer [strStdCode]
[xScale] [yScale] [pExplode?])
(AfmInsx strPath strBlock strLayer [strStdCode]
[xScale] [yScale] [pExplode?])
Comments
-
(
AfmIns
) inserts a block on a particular layer. -
(
AfmInsc)
inserts the block, scaling it to the current plotted scale of the drawing. -
(
AfmInsx
) inserts the block, then explodes it. This is useful for furniture arrangements and for polylines nested in room bubble blocks. - The arguments to all of the lisp functions are: path, block name, and layer.
- All of the lisp functions have the optional arguments: xdata standard code, xscale, yscale, and a Boolean explode? argument.
- A "nil" value for xdata standard code acts as a placeholder when you do not wish to use a standard code.
-
In the case of (
AfmInsc
) and (AfmInsx
), the xscale, yscale, and explode arguments can override the default behavior of the functions. These common options are provided as functions of their own to simplify the menu structure.
Examples
(AfmIns P_DR "C3" "FN" ) ; insert on
layer FN
(AfmIns P_DR "FILE30" "FN" "FILE1" ) ; assign
a std code of "FILE1"
(AfmInsc P_DR "ARCH-DSG" "PL-DSG" ) ; insert at plotted
scale
(AfmInsx P_DR "EXECARR" "FT" ) ; insert and explode
; Insert the unit block scaled to 10 x 12 feet (with 1 unit = 1")
; explode it so we get the nested polyline not the block, and assign
; this polyline the xdata standard code of "EXEC".
(AfmIns P_DR "UNIT" "RM" "EXEC" 120 144 T)
; The same, but do not add the xdata.
(AfmIns P_DR "UNIT" "RM" nil 120 144 T)