VAC Posted October 15, 2021 Share Posted October 15, 2021 Hi, is there way, how to run this vlx script (resets attributes in selected block to default values) on multiple selected block with attributes? For ex. with another lisp that will execute this? https://www.cadforum.cz/en/download.asp?fileID=2904attdefault.vlx Many thanks. Quote Link to comment Share on other sites More sharing options...
ronjonp Posted October 19, 2021 Share Posted October 19, 2021 On 10/15/2021 at 3:13 AM, VAC said: Hi, is there way, how to run this vlx script (resets attributes in selected block to default values) on multiple selected block with attributes? For ex. with another lisp that will execute this? https://www.cadforum.cz/en/download.asp?fileID=2904 attdefault.vlx 15.46 kB · 0 downloads Many thanks. How is this different than ATTSYNC ? Quote Link to comment Share on other sites More sharing options...
VAC Posted October 20, 2021 Author Share Posted October 20, 2021 (edited) Hi, thank you for your reaction. This script resets attribute values to their default setting (recover even field definitions used in attributes - when user rewrites that to simple text). Attsync only updates instances of blocks containing attributes that were redefined using the BLOCK or BEDIT commands. I think, it is (maybe) not important what does this script. This script works: A.command attdefault: 1. select only 1 block 2. recovers all attributes values in all attributes in that block B.command attdefault1: 1. select 1 attribute 2. recovers attribute value My idea is to run a new script that will: A. 1. asks me for selecting blocks 2. on every selected block will use "attdefault" command that will recover values and (or) B. 1. asks me for selecting blocks 2. asks me for the specific name of attribute 3. on every selected block that have that specific attribute inside (blocks without that attribute will be skipped) will use "attdefault1" command (to recover only specified attribute) Or can anybody edit attdefault.vlx to work like that? Edited October 20, 2021 by VAC Quote Link to comment Share on other sites More sharing options...
ronjonp Posted October 20, 2021 Share Posted October 20, 2021 (edited) This sounds a bit like a modified "attin" "attout" command .. you want to store values of attributes in certain blocks to apply later after these vales have been trashed? I don't know what "attdefault" command is because I do not run compiled code. Edited October 20, 2021 by ronjonp Quote Link to comment Share on other sites More sharing options...
Mugna101 Posted October 26, 2021 Share Posted October 26, 2021 is it a good idea to replace the block with altered attributes with a fresh same block? thus ull get the default attributes and the code could be very simple. Quote Link to comment Share on other sites More sharing options...
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.