Anonymous
621 Views, 3 Replies
01-25-2019
02:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-25-2019
02:28 PM
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.
01-27-2019
09:02 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-27-2019
09:02 PM
@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

01-28-2019
07:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-28-2019
07:50 AM
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.
01-28-2019
07:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
01-28-2019
07:56 AM
Look at Application.DisplayOptions.Show3DIndicator, and ShowXYZAxisLabels, and other options to be found.
jvj