vla-get-activeucs error when tilemode is 0

vla-get-activeucs error when tilemode is 0

SAPER59
Advocate Advocate
852 Views
1 Reply
Message 1 of 2

vla-get-activeucs error when tilemode is 0

SAPER59
Advocate
Advocate

When I use  vla-get-activeucs in model space with Tilemode set as 1 there's no problem, but if I'm in paper spacer or model when Tilemode is set to 0 allway crash with this message  error: Automation Error. Null object ID

What could be the reason or how to fix it

Thanks

0 Likes
Accepted solutions (1)
853 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Accepted solution

Hi,

If you try to get the active UCS value when the current UCS is unsaved, an error will occur. It is recommended that you confirm that the value of the UCSNAME system variable is not empty before you get the active UCS value. Alternatively, you can add a new UCS object and set it to active before getting the active UCS value.

 

It is applicable for both Model and Paper space. This error is not depends on "TILEMODE".

 

Command:  UCS

Current ucs name:  *WORLD*
Specify origin of UCS or [Face/NAmed/OBject/Previous/View/World/X/Y/Z/ZAxis] <World>: NA

Enter an option [Restore/Save/Delete/?]: S

Enter name to save current UCS or [?]: A

 

It may help you.

 

STM

0 Likes