What I would like to do: determine if an object is "hidden" or not.
I cannot seem to find the correct property for an object that specifies whether or not it is "hidden". As you can see below, there is a property available under .Application.Visible but that value is always true...
Is there a "visibility" property for objects that can be used? For example if I search in catia, specifying the attribute of visibility = hidden, this performs exactly as I desire.
code:
Dim part As part
Set part = partDocument.part
Dim myBodiesList As hybridBodies
Set myBodiesList = part.hybridBodies
For Each myBody In myBodiesList
If myBody.hybridBodies.Count = 0 Then
Set myShapesList = myBody.HybridShapes
GetShapes myShapesList
ElseIf myBody.Application.Visible Then
GetMyHybridBodies_PutInList myBody
End If
Next myBody
I cannot seem to find the correct property for an object that specifies whether or not it is "hidden". As you can see below, there is a property available under .Application.Visible but that value is always true...
Is there a "visibility" property for objects that can be used? For example if I search in catia, specifying the attribute of visibility = hidden, this performs exactly as I desire.
code:
Dim part As part
Set part = partDocument.part
Dim myBodiesList As hybridBodies
Set myBodiesList = part.hybridBodies
For Each myBody In myBodiesList
If myBody.hybridBodies.Count = 0 Then
Set myShapesList = myBody.HybridShapes
GetShapes myShapesList
ElseIf myBody.Application.Visible Then
GetMyHybridBodies_PutInList myBody
End If
Next myBody