j.smith
03.12.2010, 17:08
What I’m trying to accomplish with my limited knowledge of Lisp:
I have a section plane already inserted in my drawing with the proper settings selected to generate and replace an existing 2D block. The section plane is on layer “W-SECT-LOW”.
I’m trying to make a shortcut lisp that will bring up the Generate Section/Elevation Dialog Box and automatically select the section plane on this layer, and then execute “C” for create.
This is what I have so far:
(command "sectionplanetoblock" (ssget "_X" '((8 . "W-SECT-LOW"))))
It brings up the Dialog Box with the “select section plane” button highlighted. After I press the spacebar it recognizes my section plane has already been selected, then I press “C” and it creates the 2D block.
Can anyone help me add to this so I won’t have to press “spacebar” and “C”??
-Thank you
I have a section plane already inserted in my drawing with the proper settings selected to generate and replace an existing 2D block. The section plane is on layer “W-SECT-LOW”.
I’m trying to make a shortcut lisp that will bring up the Generate Section/Elevation Dialog Box and automatically select the section plane on this layer, and then execute “C” for create.
This is what I have so far:
(command "sectionplanetoblock" (ssget "_X" '((8 . "W-SECT-LOW"))))
It brings up the Dialog Box with the “select section plane” button highlighted. After I press the spacebar it recognizes my section plane has already been selected, then I press “C” and it creates the 2D block.
Can anyone help me add to this so I won’t have to press “spacebar” and “C”??
-Thank you