Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to assign formules to attribute tag strings

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
E.S.7.9
515 Views, 2 Replies

how to assign formules to attribute tag strings

hi ,

 

i have 4 text string in my attribute block and i wanna assign some formules some of them ..

 

i wrote one example belowe

 

1th text string [ A ]  ;  500

2nd text string [ B ] will be ;  [ A ] +1250

3th text string [ C ] will be :  [ B ] / 2

4th text string [ D ] will be : [ B ] + [ C ]

 

all strings will change when i change to 1th string

 

somebody can write me a routine code for this example ?

2 REPLIES 2
Message 2 of 3
phanaem
in reply to: E.S.7.9

Insert your block.

Double click to edit attributes

In "Value" field, right click and pick "Insert Field..."

From "Field names", pick "Formula"

Type in your formula; when you want to insert another att value, right clik again (in formula field) and pick "Insert Field.."

From the new dialog, pick "objects", select your block, select attribute name from list, press OK on every dialog box.

Repeat for every attribute.

 

You may need to regen dwg several times to make sure avery field display the correct value.

You have to do this everytime you insert a new block, but if you copy a block these settings are keept.

 

See attachment.

Message 3 of 3
3wood
in reply to: E.S.7.9

Please try attached block example.

You only need REGEN or UPDATEFIELD once after changing the first attribute value

4 att.png

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost