Is there a lisp to run battman or attsync for ALL blocks in a dwg?

Is there a lisp to run battman or attsync for ALL blocks in a dwg?

ntroutmanRXPYE
Explorer Explorer
970 Views
3 Replies
Message 1 of 4

Is there a lisp to run battman or attsync for ALL blocks in a dwg?

ntroutmanRXPYE
Explorer
Explorer

I constantly have to run battman or attsynce for most of my blocks that I insert for utilities etc. Instead of doing one by one is there a lisp or way to have CAD automatically sync all of the blocks within a dwg? 

0 Likes
971 Views
3 Replies
Replies (3)
Message 2 of 4

3wood
Advisor
Advisor

You can try ATTSYNCALL.

 

0 Likes
Message 3 of 4

ntroutmanRXPYE
Explorer
Explorer

Thanks! Do you know where I could find this in text form? 

0 Likes
Message 4 of 4

ronjonp
Advisor
Advisor

@ntroutmanRXPYE 

Something like this?

(if (ssget "_X" '((0 . "INSERT")(66 . 1)))
  (command "_.attsync" "Name" "*")
)

 

0 Likes