Force block insertion from block definition within another drawing file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello all,
I have a lisp from way back that I am trying to bring current with some necessary changes.
I am trying to update my old lisp to utilize block definitions that are contained in a single .DWG. My old company had a library of individual .DWGs of each block so "-insert" worked fine.
My new company has a single .DWG that contains all of their blocks.
I'm trying to force an insert of the block from the library drawing regardless of if the block already exists in the current drawing, and even if its already been inserted and currently in use.
It looks like its very depended on whether or not the block contained in the library drawing has been updated or not, or differs form the one already defined in the current drawing.
I want to simply insert the block from the library drawing regardless. That way if its changed, it gets redefined, if it hasn't changed, it probably will still get redefined, but I don't care. I always want what is in the library drawing to be used.
I have attached the lisp I have currently but its just not doing all the necessary checks and conditionally inserting the block. I would appreciate a fresh set of eyes that may have a different approach to my logic.