Hide all UCS and Work Feature in every component from Top assembly

Hide all UCS and Work Feature in every component from Top assembly

tim11_manhhieu
Advocate Advocate
1,188 Views
8 Replies
Message 1 of 9

Hide all UCS and Work Feature in every component from Top assembly

tim11_manhhieu
Advocate
Advocate

Hi all,  like as title, i want to hide all User Coordinate System and work feature sketch, axis, plane, point in sub assembly, part in sub assembly, every component.

 

tim11_manhhieu_0-1743049542808.png

 

0 Likes
Accepted solutions (1)
1,189 Views
8 Replies
Replies (8)
Message 2 of 9

Stakin
Collaborator
Collaborator
Accepted solution

AssemblyDocument.ObjectVisibility Property

Parent Object: AssemblyDocument

Description

Property that returns the ObjectVisibility object providing override visibility controls for objects in the document. Changes are not saved with the document.

Syntax

AssemblyDocument.ObjectVisibility() As ObjectVisibility

Property Value

This is a read only property whose value is an ObjectVisibility.

AssemblyDocument.ObjectVisibility.AllWorkFeatures=False

AssemblyDocument.ObjectVisibility.UCSTriads=False

0 Likes
Message 3 of 9

tim11_manhhieu
Advocate
Advocate

amazing, many thanks.

 

AssemblyDocument.ObjectVisibility.AllWorkFeatures=False
AssemblyDocument.ObjectVisibility.UCSTriads=False

 

 

0 Likes
Message 4 of 9

tim11_manhhieu
Advocate
Advocate

Sorry, how can I turn on UCS, WorkFeatures manually?

Even though I have checked Visibility, the icon on the model tree still does not light up.

 

tim11_manhhieu_0-1744161888619.png

 

0 Likes
Message 5 of 9

Stakin
Collaborator
Collaborator

ObjectVisibility Object

 

Description Properties

NameDescription
AllWorkFeaturesGets and sets whether all work features should be visible.
Annotations3DGets and sets whether 3d annotations should be visible.
ApplicationReturns the top-level parent application object. When used the context of Inventor, an Application object is returned. When used in the context of Apprentice, an ApprenticeServer object is returned.
ComponentAnnotations3DGets and sets whether component 3d annotations should be visible.
ConstructionSurfacesGets and sets whether construction work surfaces should be visible.
GroupDiagnosticsGets and sets whether group diagnostics should be visible in the construction environment of parts.
GroupSolidsGets and sets whether group solids should be visible in the construction environment of parts.
GroupSurfacesGets and sets whether group surfaces should be visible in the construction environment of parts.
GroupWiresGets and sets whether group wires should be visible in the construction environment of parts.
OriginWorkAxesGets and sets whether origin work axes should be visible.
OriginWorkPlanesGets and sets whether origin work planes should be visible.
OriginWorkPointsGets and sets whether origin work points should be visible.
ParentProperty that returns the parent Document object.
SketchDimensionsGets and sets whether sketch (2D/3D) dimensions should be visible.
SketchesGets and sets whether 2d sketches should be visible.
Sketches3DGets and sets whether 3d sketches should be visible.
TypeReturns an ObjectTypeEnum indicating this object's type.
UCSTriadsGets and sets whether user coordinate system triads should be visible.
UCSWorkAxesGets and sets whether user coordinate system work axes should be visible.
UCSWorkPlanesGets and sets whether user coordinate system work planes should be visible.
UCSWorkPointsGets and sets whether user coordinate system work points should be visible.
UserWorkAxesGets and sets whether user work axes should be visible.
UserWorkPlanesGets and sets whether user work planes should be visible.
UserWorkPointsGets and sets whether user work points should be visible.
WeldmentSymbolsGets and sets whether weldment symbols should be visible.
WeldsGets and sets whether welds should be visible.
Message 6 of 9

tim11_manhhieu
Advocate
Advocate

thank you

0 Likes
Message 7 of 9

WCrihfield
Mentor
Mentor

Just to add some additional context...the ObjectVisibility object mentioned here coincides with a tool you can manually access from Inventor's ribbon.  On the 'View' tab, within the 'Visibility' panel, is a button with a drop-down control named 'Object Visibility'.  When you click that drop-down, you will see all these same object types, with checkboxes next to them.  Even though these settings are accessed from the main ribbon, they only effect the document that is 'active' when you set them.  And as already mentioned, I don't believe those settings get saved to that document's file.

WCrihfield_0-1744205408939.png

On the other hand, when you right-click on a UCS in the model browser tree of an assembly, and choose the 'Visibility' control, that is actually changing its visibility in a way that will be saved by the currently active view representation (DesignViewRepresentation ), in the assembly, and possibly in the referenced model document also.

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 8 of 9

tim11_manhhieu
Advocate
Advocate

thanks for explaining.

0 Likes