Jump to content

Script for changing units and saving DXF files


Recommended Posts

Posted

I have multiple DXF files for a map. I want to change the units to meters for all and save them as .dwg files. Can it be done together with the help script and scriptpro? Can anyone help me with that?

Posted (edited)

Are the dxf files set to metres or unitless ? 

 

Why would you not insert or dxfin to a dwg with units set to metres.

 

A script that opens a dxf resets units and saves no problem. Could do a hundred dxf's. 

 

Do you know how to write a script ?

 

Can you post 1 dxf ?

 

Edited by BIGAL
Posted
On 1/6/2021 at 5:13 PM, Shivani said:

I have multiple DXF files for a map. I want to change the units to meters for all and save them as .dwg files. Can it be done together with the help script and scriptpro? Can anyone help me with that?

If objects inside the drawing are blocks, you cant modify the units without modify and insert again it with measuring changes.

No problem for DXF, you can save all file name in txt file, create a VBA procedure which open file and save as dxf.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...