Get 3D part length

Get 3D part length

Anonymous
Not applicable
1,066 Views
2 Replies
Message 1 of 3

Get 3D part length

Anonymous
Not applicable

Can someone please help me?

Attached is a 3D beam.

Is it possible to create a code (VBA) to get the length of this part?

For conferencing, the attached piece has a length of 948cm (you can use command dist to conference).

Attention: I need a code that takes the length of the automatic part without having to turn the part or click something. The end use is to take the length of a project full of 3D parts.

 

Thank you all.

0 Likes
1,067 Views
2 Replies
Replies (2)
Message 2 of 3

Ed__Jobe
Mentor
Mentor

Custom 3D objects do not have a length property assigned as AutoCAD does not know what you would consider length, e.g. what two points define the length? There are several to choose from. You could attach some data to the object when you create it and then read that back.

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
Message 3 of 3

Anonymous
Not applicable

I need the distance shown below.

image.png

0 Likes