Jump to content
Shivani

Script for changing units and saving DXF files

Recommended Posts

Shivani

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?

Share this post


Link to post
Share on other sites
BIGAL
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

Share this post


Link to post
Share on other sites
PeterPan9720
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.

Share this post


Link to post
Share on other sites

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...