Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

How to create a field in an attribute inside a block with autmatic caluclation

yu85.info
Advocate

How to create a field in an attribute inside a block with autmatic caluclation

yu85.info
Advocate
Advocate

Hi, I have a block with two attributes - "A" & "B". I want to create another one - "C". I want the value of "C" to be - "A-B"

(A minus B). I want to insert menually the values of "A" and "B" and get the result automaticly in "C".

Can you help me please. I could not find an anwer in the web.

Thank you very much

0 Me gusta
Responder
Soluciones aceptadas (1)
415 Vistas
2 Respuestas
Respuestas (2)

pendean
Community Legend
Community Legend
Most likely non-exist but... post a DWG file, point to A and B in the file so we can see what you are trying to do exactly.
0 Me gusta

JTBWorld
Advisor
Advisor
Solución aceptada

Add a field in C and use Object, select the block and the the A attribute. Copy the field expression that might look like this:

%<\AcObjProp Object(%<\_ObjId 2002115822928>%).TextString>%

Then do the same for the B attribute.

%<\AcObjProp Object(%<\_ObjId 2002115822912>%).TextString>%

Finally select Formula and paste it like this with - between:

%<\AcObjProp Object(%<\_ObjId 2002115822912>%).TextString>%-%<\AcObjProp Object(%<\_ObjId 2002115822928>%).TextString>%


Jimmy Bergmark
JTB World - Software development and consulting for CAD and license usage reports
https://jtbworld.com

0 Me gusta