Jump to content

AttDefault.vlx on multiple blocks


VAC

Recommended Posts

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 ?

Link to comment
Share on other sites

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 by VAC
Link to comment
Share on other sites

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 by ronjonp
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...