Catia VBA - how to determine if an object is hidden
Catia VBA - how to determine if an object is hidden
(OP)
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





RE: Catia VBA - how to determine if an object is hidden
Recorded CATScript, selecting all hidden objects.
Language="VBSCRIPT"
CODE --> CATScript
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: Catia VBA - how to determine if an object is hidden
indocti discant et ament meminisse periti
RE: Catia VBA - how to determine if an object is hidden
CODE -->
______
Alex ,