Jump to content

Recommended Posts

Posted (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 by VAC
Posted (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 by ronjonp
Posted

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.

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...