AutoCAD - How to default UCS not on the origin?
I am sick of everytime clicking view and display and UCS.... Can someone show me a way to default the UCS position?
SUMMARY
--------------
UCSICON is what sets where the UCS icon is displayed. The default setting is to display the icon at the origin and this is a drawing specific variable.
So to change this in a new drawing you can change the setting in the template (eg. acadiso.dwt) that you use. For every other drawing which is not new it must be changed when first opened.
HOWEVER you can automate this by adding this line to the end of the file acaddoc.lsp located in the support folder of AutoCAd (see detailed instructions below):
(command "SETVAR" "UCSICON" "1")
DETAILED EXPLANATION
---------------------------------------
UCSICON it is both a Command AND a System Variable in the English version of AutoCAD. In other versions the command has a separate name (eg. Spanish = SIMBSCP) which is a little less confusing and makes it easier to access the System Variable.
The System Variable is great as with only one number (0,1,2 or 3) you can set what you want. You can change this manually by the following commands (English AutoCAD):
SETVAR
UCSICON
1
SETVAR gives you access to UCSICON as system variable which makes if easier to set your prefered value. UCSICON then selects the variables we are changing. And finally the number is shorthand for setting both visibility and position of the icon together:
0 No icon displayed
1 On; icon is displayed
2 Origin; if icon is displayed, the icon floats to the UCS origin if possible
3 On and displayed at origin
Remember that this is saved in each drawing on a viewport specific basis.
This can be made into a personalised button to save time. Right click on the toolbar and select personalise, then:
(1) create a new command
(2) change its name, macro and icon. Place the following into the macro section of the new command to be used in the button:
^C^CSETVAR;UCSICON;1;
(3) drag that command into a CUSTOM toolbar.
Apply and close and you should see your new button. I've uploaded an image of the button personalisation screen so you can see the simple three steps to creating a button with this command (my version is Spanish but its the same in all versions...).:
http://img204.imageshack.us/img204/4807/ucstooriginyt7.png
However as mentioned in the summary the best way to achieve a smooth and reliable change on every drawing is to place the same commands into the LISP file which loads with every drawing. Add the following line to the end of the file acaddoc.lsp:
(command "SETVAR" "UCSICON" "1")
The file is located in the support folder of AutoCAD and varies slightly with each version eg. AutoCAD 2006 it is called acad2006doc.lsp. For further ideas check out this oficial discussion:
http://discussion.autodesk.com/thread.jspa?threadID=654343
Note from this discussion:
"Acad.lsp" only loads at application startup.
"Acaddoc.lsp" loads each time a drawing is opened.
(unless you change ACADLSPASDOC from its default setting of
zero [0])
Saludos,
Mike
Dynamic UCS in AutoCAD 2009
[simpleaffiliate source="amazon" results="10"]autocad ucs[/simpleaffiliate]
[simpleaffiliate source="cj" results="10"]autocad ucs[/simpleaffiliate]
[simpleaffiliate source="clickbank" results="10"]autocad ucs[/simpleaffiliate]
No comments:
Post a Comment