Anuncios

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

Write Mass Properties to MText

Anonymous

Write Mass Properties to MText

Anonymous
No aplicable

Is there a way to write the value from Mass Properties to MText or an Attribute?

 

What I would like to do is have mass properties calculate the volume of a 3D solid and at a minimum display the cubic inches in a text string. Ultimately I would like to use this value to calculate the material weight of a 3D object.

 

Does anyone know an out-of-box solution?

0 Me gusta
Responder
Soluciones aceptadas (1)
1.742 Vistas
7 Respuestas
Respuestas (7)

john.vellek
Alumni
Alumni
Solución aceptada

Hi @Anonymous,

 

The only way I have ever been able to do this is by running MASSPROP and saving the results to an MPR file. Then I open that file in notepad, copy, and then paste into Mtext in AutoCAD.

 

This can be a lot of steps. Perhaps a post in the Customization Forum will give you a better solution.

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback

vladimir_michl
Advisor
Advisor

Not out-of-the-box but you can use fVolume or fArea>Object (free) to make a dynamic field reflecting the object's volume. See

 

http://www.cadforum.cz/cadforum_en/qaID.asp?tip=4861

http://www.cadforum.cz/cadforum_en/dynamically-display-any-object-property-as-a-field-tip9482

 

Vladimir Michl, www.cadstudio.cz

 

braudpat
Mentor
Mentor

Hello

If I remember well, you can use a field with the VOLUME property which is NOT available !

So you Will use for example thé AREA property, copy /paste expression to the Notepad.exe, replace AREA with VOLUME, copy /paste expression again to a NEW MText...

 

Then with à Formula based on the VOLUME + Density,  you Will get Mas... 

 

Regards, Patrice 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


wispoxy
Advisor
Advisor

Hello @Anonymous,

 

Might be easier having a field linking to an excel cell that has the equal value needed. With excel you should be able to setup a formula as @braudpat mentioned.

0 Me gusta

john.vellek
Alumni
Alumni

Hi @Anonymous,

 

I am checking back to see if my post or others helped you with your problem.
Please add a post with how you decide to proceed and your results so other Community members may benefit.

Please select the Accept as Solution button if a post or posts fully solved your issue or answered your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Me gusta

john.vellek
Alumni
Alumni

Hi @Anonymous,

 

Did you get an answer that fit your workflow in this thread? Please post your status.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Me gusta

Anonymous
No aplicable

I used a variation of this; utilizing excel to display multiple values and run my formula for weight. My issue is still running this through another program, but I can work around for now. I am looking at lisp routines for a solution that will output to text directly in autocad.

Thank you for your suggestion and help.

0 Me gusta