Jump to content

Set UCS Origin in Model + All layouts


3dwannab

Recommended Posts

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?

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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

Link to comment
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...