Anuncios

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

yu85.info
413 Vistas, 2 Respuestas

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

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

pendean
en respuesta a: yu85.info

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.
JTBWorld
en respuesta a: yu85.info

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