Jump to content
3dwannab

Set UCS Origin in Model + All layouts

Recommended Posts

3dwannab

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?

Share this post


Link to post
Share on other sites
ronjonp
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.

 

 

2019-03-21_8-51-29.png

Edited by ronjonp

Share this post


Link to post
Share on other sites
3dwannab
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.

 

 

2019-03-21_8-51-29.png

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

Share this post


Link to post
Share on other sites
BIGAL
(foreach
	itm
		(append '("Model") (layoutlist))
		(setvar "ctab" itm)
(command "mspace")
		(command "._ucsicon" "ORIGIN")
		)
Edited by BIGAL

Share this post


Link to post
Share on other sites
BIGAL

At a guess to use the vl method need to get currentspace. the second or 2 v's time to test code ??

Edited by BIGAL

Share this post


Link to post
Share on other sites
3dwannab
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.

PS origin.png

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...