Update Block Definition without ATTSYNC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have the need to change the layers of the genometry inside a block definitions in order for the blocks to work with vpFreeze. The provided code works but I have to run ATTSYNC, which I can not do because all, or most, at least in my case, attributes will be returned to the orginal position which creates a way to big of a problem. How can I, if it is even possible, update the Block Definiton via the code so I dont have to use ATTSYNC?
Im using AutoCAD Lt 2024, and the blocks that are subject for this code contains attributes and visiblity states. An example block is providede in the attached dwg file. To clearify I am a noob in terms of AutoLisp but half decent AutoCAD user.
Update 2025-10-30:
Doing the same thing by going into the block editor for each Block Def. and changing the genometry layer works just fine without ATTSYNC