How to make connection between part name in assembly to its name in a block and a connection for its dimension?

How to make connection between part name in assembly to its name in a block and a connection for its dimension?

igorfe8F2BN
Observer Observer
277 Views
2 Replies
Message 1 of 3

How to make connection between part name in assembly to its name in a block and a connection for its dimension?

igorfe8F2BN
Observer
Observer

Hi guys,

I don't have the background how things like this work in Autocad but I really want to make things "automatic".

I want to give a name to a part in the assembly, the name supposed to be connected to a block with the same name, is there a way to do this? (1)

In the same way, I guess more complicated, I want the bounding box dims of the part: length and width, to be automatically retrieved to the block attribute that later, I would be able to extract to excel. is it possible? (2)

Screenshot 2023-03-22 213539.png

 

Screenshot 2023-03-22 213636.png

Any ideas how should a begin? 

 

0 Likes
278 Views
2 Replies
Replies (2)
Message 2 of 3

chrismunt
Advocate
Advocate

Hello,

 

Yes you can do all that without even making a macro. Simply:

-> Create an Mtext box

-> Right click within MTEXT

-> Insert Field

-> Field Category should be set to "object"

-> Next to "object type" is a button that allows you to select object (block)

-> Select desired block from drawing

-> "Property" should be set to "Object Name"

-> Format (however you want the text to be displayed).

You can then repeat this process as many times as you like to extract multiple data from within your block. Note, you can have more than one field in the same MTEXT box. The difference would be when you get to the stage of selecting what "property" of the block you wish to display you chose the dimensions (or whatever properties you want).

Note: You need to add dimension parameters within your block in order to display them as a property. To do this go to the block editor and using the block palette within add the required "parameters" to your block. These provide the "property" information which you can then extract using the system above. Just make sure you name your parameters (like dimensions) something you can remember.

Hope this helps. 


Please select the "Accept as Solution" button if my post solves your issue or answers your question.
0 Likes
Message 3 of 3

Ed__Jobe
Mentor
Mentor

Your workflow is backwards. Your part file would have all the necessary info, as @chrismunt mentioned. Then save the part file named using the part name. When you insert the part into your assembly, the block will be named with the part number. If you are using solids for your parts, I would recommend using Inventor instead. It has a lot of this stuff built in, such as a bill of materials and properties. You could also try the Mechanical toolset.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes