3dwannab Posted March 21, 2019 Posted March 21, 2019 Hi all. I've looked pretty much everywhere for a solution. I basically what to show the UCS at its origin, just like the command UCSICON>OR>ENTER but for all spaces. I can go this route but this means iterating through all the layouts. (foreach itm (append '("Model") (layoutlist)) (setvar "ctab" itm) (command "._ucsicon" "ORIGIN") ) Would there be a vla-put method for this? Quote
ronjonp Posted March 21, 2019 Posted March 21, 2019 (edited) 5 hours ago, 3dwannab said: Hi all. I've looked pretty much everywhere for a solution. I basically what to show the UCS at its origin, just like the command UCSICON>OR>ENTER but for all spaces. I can go this route but this means iterating through all the layouts. (foreach itm (append '("Model") (layoutlist)) (setvar "ctab" itm) (command "._ucsicon" "ORIGIN") ) Would there be a vla-put method for this? In the vlide type in vla-put-ucs then hit CNTRL+SHIFT+SPACE and you will get a list of available commands. Then HERE is an example of how to use it and a thread HERE to refer to .. I'd think you'd still have to iterate all the layouts though. Edited March 21, 2019 by ronjonp Quote
3dwannab Posted March 22, 2019 Author Posted March 22, 2019 9 hours ago, ronjonp said: In the vlide type in vla-put-ucs then hit CNTRL+SHIFT+SPACE and you will get a list of available commands. Then HERE is an example of how to use it and a thread HERE to refer to .. I'd think you'd still have to iterate all the layouts though. Thanks @ronjonp, When I run that EXAMPLE_UCSICONATORIGIN I get an ERROR. Quote error: Automation Error. No active viewport in paperspace Also, I did pop by that other thread but never got it to work. Maybe it's connected to the error I'm getting. I've attached a file that I'm testing on where the UCS is not at 0,0. UCS not at origin.dwg Quote
BIGAL Posted March 22, 2019 Posted March 22, 2019 (edited) (foreach itm (append '("Model") (layoutlist)) (setvar "ctab" itm) (command "mspace") (command "._ucsicon" "ORIGIN") ) Edited March 22, 2019 by BIGAL Quote
BIGAL Posted March 22, 2019 Posted March 22, 2019 (edited) At a guess to use the vl method need to get currentspace. the second or 2 v's time to test code ?? Edited March 22, 2019 by BIGAL Quote
3dwannab Posted March 22, 2019 Author Posted March 22, 2019 7 hours ago, BIGAL said: (foreach itm (append '("Model") (layoutlist)) (setvar "ctab" itm) (command "mspace") (command "._ucsicon" "ORIGIN") ) Think you're referring to the Viewports in the layout tabs. It's the layout tab UCS I'm referring to. See attached. Quote
Recommended Posts
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.