Extract unit of measurement from multiple CAD files

Extract unit of measurement from multiple CAD files

marius.wolke
Participant Participant
662 Views
5 Replies
Message 1 of 6

Extract unit of measurement from multiple CAD files

marius.wolke
Participant
Participant

Hi everybody,

 

I have a customer that needs to upload 4500+ CAD files to a database where it is necessary to know the unit of measurement (Meters, Millimeters,, Inches, Feet, etc.) for every CAD file that is used. Is there an easy way to do this instead of opening every CAD file seperatly?

 

Thnx!

0 Likes
663 Views
5 Replies
Replies (5)
Message 2 of 6

Simon_Weel
Advisor
Advisor

What kind of database might that be? Sure, you can set the type of units with units or lunits but that doesn't mean much. Like - in drawings we make, a drafting unit is 1 mm. But for drawings of a surveyor, a drafting unit is 1 meter. There's no way to figure that out without opening the drawing.

0 Likes
Message 3 of 6

marius.wolke
Participant
Participant

Hi Simon,

 

Thanks for you reply! I also can't think of anything else, but was hoping that there was some Autodesk tool which we could use to check this.

0 Likes
Message 4 of 6

tramber
Advisor
Advisor

Easy througth programming. Why don't you ask in the Vlisp Forum ? There are techniques to treat your need with or without opening documents. A script may be necessary anyway.

The point is to navigate in your folders or to make a program navigating...

This is the point.

Because knowing (and writing somewhere) the value of INSUNITS or MEASUREMENT of any dwg is the easy part.


EESignature

0 Likes
Message 5 of 6

marius.wolke
Participant
Participant

Thnx, I've asked it on the VLisp forum now.

 

The 4500+ files are all located in the same folder if that helps?

So basically the action that needs to be done is:

 

1. Open the CAD file.

2. Check the UNITS

3. Wright it to a txt, csv, etc. file

4. Close the CAD file.

5. Open the next CAD file.

 

Thnx again for you answer anyway!

0 Likes
Message 6 of 6

tramber
Advisor
Advisor

Yes it does helps !!!

You gave us the right process wich make me think that you are not far.

You can declare the folder as a support file in the first tab of the option box. What you think ? It gonna help you to open with no path 

Don't forget the " when the file nam contains space.

I can help whenever needed, if I am online and not busy 😉

And my mates too


EESignature

0 Likes