Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Block - Automated attribute values - add/subtract

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
toganivalu.graham
4507 Views, 4 Replies

Block - Automated attribute values - add/subtract

Hello all,

 

This may be a long-shot and one for the CAD guru's out there and any assistance would be greatly appreciated.

 

Background - I am working on multple civil earthworks plans that depict cut and fill set-out data. So far I have started labelling these with a use of a label block that has attributes - which i fill in as i place the blocks. See attached screen dump. N for natural surface, F for final design surface and a value "X" which is the difference of the two - which is either going to be +ve or -ve depending on whether its in cut of fill.

 

Issue - seeing as there are so many points to label, i would liike to 'automate' the "X" similar to excel where it will give me the answer as opposed to calculating and tryping them in manually.

 

Hope that made sense and i look forward to receiving any ideas.

 

Cheers!

GT 

GT
Adelaide - SA
Australia
4 REPLIES 4
Message 2 of 5

Hi, I haven't tried it but I think you could insert a simple table in your block and use that to do the math for you.

Message 3 of 5

Hi,

this can most likely be done using fields and a custom field expression, the field will read the value of the first attribute and then subtract it with the second attribute value, however this field expression does not exist as standard so you'll have to make it yourself, my knowledge in field expression is limited and I don't have the time to try it out for the moment,

maybe someone with more experience will pick up on this.

PS: It also needs to read the value of the attribute as numbers and not as a text string.

 

Good luck!

Signature, sincerely... //Adam
AutoCad LT 2016
Give Kudos where credit is due, Mark "accepted as solution" if the post solved your question.
Message 4 of 5

Hi, I tried my idea of using a table in a block and couldn't get it to work. Not sure if I was doing something wrong or if you just can't use tables in blocks. Anyway,  I made a simple table that you could just copy and paste where you need. Hope this helps. 

Message 5 of 5
steven-g
in reply to: sthompson1021

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

Post to forums  

Autodesk Design & Make Report

”Boost