Jump to content

lisp to convert drawing from mm to metres - help please


Least

Recommended Posts

Hi

For the last while I have been working on a lisp to automatically convert a drawing from mm to metres and vice versa.

 

Attached is what I have so far, which seems to work fine for drawings with single viewports, single layouts and no dims.

 

The routine:

Saves an original copy of the drawing with prefix (mm)

scales all objects in model space from 0,0 by 1000

changes the linetype scale of all polylines so they display correctly.

Finds the centre of the existing viewport.

modifies the zxp of the existing viewport and then re-centres the viewport.

 

I don't really know how to modify the routine to take into account dimensions, multiple viewports and multiple layouts.

 

I would really aprreciate some help.

 

Thanks

Patrick

mm2m.lsp

Link to comment
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
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...