I'm not having luck getting it to work. Can you help. Red are the items I'm thinking I need to update to match my plot settings and block names, etc. but I'm not sure if should be updating others or if I should not be changing something I'm changing.
Also not quite sure what info of mine is suppose to replace "INSERT" "8.5x11,11x17,22x34" "Model"
As is it is giving me the following error...
; error: misplaced dot on input
(defun c:pltalot (/ ss bbox name x minpt maxpt)
(if (setq ss
(ssget "[color=red]_x[/color]"
'((0 . "[color=red]INSERT[/color]") (2 . "[color=red]8.5x11,11x17,22x34[/color]") (410 . "[color=red]Model[/color]"))
)
)
(progn
(setq
ss (mapcar 'vlax-ename->vla-object
(vl-remove-if 'listp (mapcar 'cadr (ssnamex ss)))
)
)
(mapcar
'(lambda (x)
(setq bbox (vla-getboundingbox x 'minpt 'maxpt)
bbox (mapcar 'vlax-safearray->list (list minpt maxpt))
name (vla-get-name x)
)
(cond ((= name "[color=red]8.5x11[/color]")
(command "-plot" "y" "[color=red]go through prompts and plot window and use bbox for values[/color]". . . . . . .)
)
((= name "[color=red]11x17[/color]")
(command "-plot" "y" "[color=red]go through prompts and plot window and use bbox for values[/color]". . . . . . .)
)
((= name "[color=red]22x34[/color]")
(command "-plot" "y" "[color=red]go through prompts and plot window and use bbox for values[/color]". . . . . . .)
)
)
)
ss
)
)
)
)
Posted on: January 11, 2008, 03:50:08 pmPosted by: Matt W
Insert Quote
You don't actually plot "by block" - you get the coordinates of the block and use that as your window for