PDA

View Full Version : Block update


mikecook-cadman1
2008-07-03, 10:34 PM
I know this can be done I just do not know how to do it.

I have created a library of window drawings that are placed in one file. The updated individual blocks are placed in the path of AutoCad and Now I want to update my main library file.

I would like to update my blocks with a window or crossing type selection.

I have a routine that will update a single block at a time, just not one that I can select more than one block.

Attached is the original code that I am using to update my blocks with.
Just Looking for a faster way to get it done.
Any help would be appreciated.

Mikec

irneb
2008-07-04, 02:47 PM
Maybe try this. It simply goes through a selection set of blocks, then runs that RIB custom command.(defun c:RIB2 (/ ss en n)
(princ "\nSelect blocks to redefine: ")
(setq ss (ssget '((0 . "INSERT"))) n 0)
(while (< n (sslength ss))
(setq en (ssname ss n))
(command "RIB" en)
(setq n (1+ n))
)
(princ)
)

mikecook-cadman1
2008-07-14, 04:18 PM
thank you I will give this a try.
Mikec