Extracting a large number of dimensions

Extracting a large number of dimensions

siddhartha_d
Community Visitor Community Visitor
443 Views
2 Replies
Message 1 of 3

Extracting a large number of dimensions

siddhartha_d
Community Visitor
Community Visitor

Hi everyone,

I am trying to import the dimensions from an AutoCAD drawing to an excel file such that specific dimensions from the AutoCAD drawing gets populated into the specific cells of the excel sheet automatically. Is there any VBA of LISP code available to do that?

Also is it possible to do the same thing even if there is no dimension in the AutoCAD drawing? What I mean to say, is there any way to access the dimensional properties of geometric entities of the drawing without putting the dimension? In that way my job will be even shorter for repetitive work.

I have attached a sample AutoCAD file which contains both dimensioned and Un-dimensioned drawing for reference.

Any help is appreciated.

Thanks in advance.

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

Ed__Jobe
Mentor
Mentor

I doubt that anyone has written code that will work for you. Computers can't read your mind. As a programmer, you have to give it exact instructions and rules to work with. Your first task is to see if you can look at your drawing and define some rules for dimensioning. Once you can auto dimension your part, you can then define which dimensions go where. Another way might work if all your parts are similar and the dimensions only vary in size. Assign an id to each dim and then assign a rule as to where it belongs in your spreadsheet. Then you only have to record the dim's size. It would help if your model consisted of 3D parts that can be given an id. There's no way to duplicate the human mind that can see some lines and associate that with an object. At least not very easily.

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

grobnik
Collaborator
Collaborator

@siddhartha_d Just to have an idea of how you can select all "dimensions" in your drawing here an old post on this forum (dated 2006)

https://forums.autodesk.com/t5/vba/select-all-model-space-dimensions/td-p/1722740 

I don't know how you can use all dimensions without any entities reference but have a look perhaps could helps you more.

0 Likes