Print Page | Close Window

OM command

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=9745
Printed Date: 22.Apr.2026 at 05:04


Topic: OM command
Posted By: IMGrumpy
Subject: OM command
Date Posted: 23.Oct.2013 at 21:26
At sometime in the past when using 2008 I came across the OM command, but I don't remember where.  What this command does is as follows.  OM enter returns in the command line OFFSET DISTANCE if you enter a distance and then enter it reurns SELECT OBJECT TO OFFSET then you select an object and enter which returns SELECT SIDE once a side is selected and entered it will ask how many times entering a number and then enter will offset the object by the distance the number of times requested.  It is very handy and I use it a lot.  Again I do not remember where I came up with this.  For some reason this only works on my machine none of the other 14 in the office recognize the command, it worked on 2008 and when I upgraded to 2011 it still works, I am hoping that with the pending upgrade to 2013 or 2014 that it will continue.  I have searched appload and cannot see where I have ever loaded it.  Where does this command come from?  Where did I get it?
 
Thanks



Replies:
Posted By: John Connor
Date Posted: 24.Oct.2013 at 00:47
Maybe it is a lisp routine?


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: heinsite
Date Posted: 24.Oct.2013 at 09:59
John may be on to something.  Run a search on your system from the root directory for OM.LSP and see what you find.  If you do come up with a hit open the file with a word processor and have a look at it.  If only you have it then it's a file on your system in an AutoCAD common directory, so it won't matter what version you're using... it will still work.

Dave.


-------------
Dave Hein, P.E.
Hawaii District Engineer
Kona International Airport
AutoCAD Certified Professional
Autodesk Expert Elite


Posted By: John Connor
Date Posted: 24.Oct.2013 at 11:41
I'm guessing the the OM is short for Offset Multiple.


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: IMGrumpy
Date Posted: 24.Oct.2013 at 12:27
Yes OM is Offset Multiple, but it seems to work different as I can select the object, enter the offset distance and them enter how many times to offset the object.  Kinda like a modified array.


Posted By: John Connor
Date Posted: 24.Oct.2013 at 14:56
So did you search for OM.lsp on your hard drive?  Or just do a general search for all lisps routines as in many cases the file itself has a different name then the command used to invoke it.


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: John Connor
Date Posted: 24.Oct.2013 at 15:07
For the time being you could use the Offset > Multiple option.  Every time you pick with your mouse another line is created offset from the last the distance specified.

Command: OFFSET

Current settings: Erase source=No  Layer=Source  OFFSETGAPTYPE=0
Specify offset distance or [Through/Erase/Layer] <0.2500>: .5

Select object to offset or [Exit/Undo] <Exit>:
Specify point on side to offset or [Exit/Multiple/Undo] <Exit>: M

Specify point on side to offset or [Exit/Undo] <next object>:
Specify point on side to offset or [Exit/Undo] <next object>:
Specify point on side to offset or [Exit/Undo] <next object>:
Specify point on side to offset or [Exit/Undo] <next object>:
Specify point on side to offset or [Exit/Undo] <next object>:
Specify point on side to offset or [Exit/Undo] <next object>:
Specify point on side to offset or [Exit/Undo] <next object>:
Specify point on side to offset or [Exit/Undo] <next object>:
Specify point on side to offset or [Exit/Undo] <next object>:
Specify point on side to offset or [Exit/Undo] <next object>:
Specify point on side to offset or [Exit/Undo] <next object>:


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: John Connor
Date Posted: 24.Oct.2013 at 15:22
Here is another option.  It is a custom lisp routine by Lee Mac called Dynamic Offset.  Check it out...

http://lee-mac.com/dynamicoffset.html


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: Kent Cooper
Date Posted: 24.Oct.2013 at 16:44
>> ... Run a search on your system from the root directory for OM.LSP ....
 
It might not be a file called OM.lsp.  If it were me, I would probably call the file something like OffsetMultiple.lsp, so I'd know what it was about when looking at file names, with the command name defined inside it as OM for short.  But even that would only apply if it's defined in a file devoted to only the one command.  It might rather be in the acaddoc.lsp file, or some other .lsp file that contains definitions of multiple commands -- looking at the APPLOAD history will show the file name, but not the names of commands defined within it.
 
What you really should try to find is a file containing C:OM in it, because if it's an AutoLISP-(defun)'d command, that will necessarily be the command-name designation.  The basic Windows Explorer Search function won't search for content within .lsp files as it will in .txt or .doc or some other file types, but there may be a way to add that file type to those that it will search within, or other means of searching for content inside files.
 
Then there's also the possibility that it's in some kind of compiled file format, such as .arx or .fas, that may not be searchable in that way at all (I haven't tried such a thing).



Print Page | Close Window