Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
621 Views, 3 Replies

Is there a way to turn off visibility of the UCS with ilogic or the API

The question is in the title - I wasn't able to find an easy way - I'm doing it for screenshots, so I need to toggle it off and on as needed.

chandra.shekar.g
in reply to: Anonymous

@Anonymous ,

 

Yes, it is possible. Try below iLogic code.

 

Dim oDoc As PartDocument 
oDoc = ThisApplication.ActiveDocument 

Dim oDef As PartComponentDefinition 
oDef = oDoc.ComponentDefinition 

Dim oUCS As UserCoordinateSystem 
For Each oUCS In oDef.UserCoordinateSystems 
	If oUCS.Visible = False Then
		oUCS.Visible = True 'Turn on 	
	Else
		oUCS.Visible = False 'Turn off
	End If 
Next

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



Anonymous
in reply to: chandra.shekar.g

The UCS did not change with that code - I'm talking about the UCS in the bottom left corner...

 

It's turned off in application options by the "Show Origin 3D Indicator" under "Display"

 

Currently I do it manually before taking a series of screenshots with some iLogic code - but it would be nice to toggle it in the macro.

JamieVJohnson2
in reply to: Anonymous

Look at Application.DisplayOptions.Show3DIndicator, and ShowXYZAxisLabels, and other options to be found.

jvj