Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

scaling dwgs from Imperial to metric and back again

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Migumby
591 Views, 3 Replies

scaling dwgs from Imperial to metric and back again

Hello,

I'm looking for a routine that I can choose to scale by 25.4 (Imperial to Metric) or .039370079 (Metric to Imperial).

We just got a CNC Machine that works with metric and people keep asking me to make changes in bothe formats.

I'm using CAD 2014.

Any help is greatly appriciated

thanks

3 REPLIES 3
Message 2 of 4
devitg
in reply to: Migumby

Please send offline a sample dwg 

Message 3 of 4
Kent1Cooper
in reply to: Migumby


@Migumby wrote:

....

I'm looking for a routine that I can choose to scale by 25.4 (Imperial to Metric) or .039370079 (Metric to Imperial).

....


Assuming you only care about model-space content, try these [untested and very basic]:

 

(defun IMS (sf); = Imperial vs. Metric Switch sub-routine [sf is scale-factor argument]

  (command

    "_.model"

    "_.scale" "_all" "" "0,0" sf

  )

)

 

(defun C:I2M (); = Imperial to Metric

  (IMS 25.4)

)

 

(defun C:M2I (); = Metric to Imperial

  (IMS (/ 1 25.4))

)

 

They assume that 0,0 is an appropriate base point for Scaling things around.  They could be made to use the middle of the drawing extents, if that seems more appropriate, or other possibilities.  They could also be made to do things like unlock and thaw and turn on all Layers, make sure you're in the World Coordinate System, and other sophistications.

Kent Cooper, AIA
Message 4 of 4
Migumby
in reply to: Kent1Cooper

thank you Kent.

that exactly what I'm looking for.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost