OFFSET command with metric input but imperial output
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
All of our drawings are set up in Imperial units. However, sometimes we receive asbuilt drawings with metric measurements.
I'm trying to figure out how to create a new OFFSET command so that I can enter an offset distance in metric units. The command will convert that distance into imperial units so that the resulting offset distance is correct for an imperial drawing.
I thought I could find the raw lisp code for the default OFFSET command, so that I can do the conversion on the input number, but all I can find is this:
(command "OFFSET")
This doesn't work because I need to dig into this command so that I can make the calculation after the offset distance is entered.
So for example, if I need to offset a line by 15 meters, I would run my new command and enter "15". At that point, the command will multiply that number by 3.28084, then finish the command by offsetting the line 49.2126 FEET. I'm pretty sure this would be relatively easy but I need the raw code for OFFSET to give me something to work with.