G.G. Posted July 24, 2024 Posted July 24, 2024 Hello, is there a way to update block with new attribute, I look for some ways but only find "ATTSYNC" but I don't want to use this. My idea is to have only 1 block with 1 or 2 base attributes for each file, and when I want to add more attributes to this block, if it possible with "entmod" because I want to search if the attribute misses to add it and continue with the function. Than you :) Quote
mhupp Posted July 25, 2024 Posted July 25, 2024 if your adding an attribute it would be added to all other blocks of the same name. You would have to create a copy of the block and rename it for it to have different number of attributes. So just add the attribute but have the default as blank so only shows up in blocks when you add values to it. Quote
BIGAL Posted July 25, 2024 Posted July 25, 2024 (edited) Like @mhupp just Google there are many add attribute programs out there. A recent one was add attribute and move it in display order. Edited July 25, 2024 by BIGAL Quote
G.G. Posted July 25, 2024 Author Posted July 25, 2024 Thank you for your replays, I will have only 1 block for dwg, and I want to store some stuff in the block data like scale, or base text height, or something like that, and when I have something new to add, just to update the block, because I don't want to have a 1 block with 100 attributes for each case, just these whores are needed. I probably will try to store current block data and endmake it with the new attributes. And before the change i will rename current block. Quote
BIGAL Posted July 25, 2024 Posted July 25, 2024 Did you Google it does exist that is why I posted. A check, instant like 50 answers. Quote
mhupp Posted July 26, 2024 Posted July 26, 2024 (edited) 22 hours ago, G.G. said: because I don't want to have a 1 block with 100 attributes for each case look into xdata Edited July 26, 2024 by mhupp Quote
BIGAL Posted July 27, 2024 Posted July 27, 2024 (edited) Maybe Ldata also a little easier to use than Xdata. It lives in the dwg so could have 100 items in one data set. (vlax-ldata-put "GG" "Scale" sc) (setq sc (vlax-ldata-get "GG" "Scale")) Edited July 27, 2024 by BIGAL Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.