PSI-CAD
Computer
- Feb 13, 2009
- 997
Hi,
In the below code, I didn't succeed to test the solid visibility. Something is wrong in the syntax NXOpen.SmartObject.VisibilityOption.Visible....
Thanks in advance to help me
For Each body In bodies
If body.name = solide1 Then
objects1(0) = body
If NXOpen.SmartObject.VisibilityOption.Visible(solide1) Then
'
s.DisplayManager.BlankObjects(objects1)
Else
'
s.DisplayManager.ShowObjects(objects1, DisplayManager.LayerSetting.ChangeLayerToSelectable)
End If
End If
Next body
Regards
Didier Psaltopoulos
In the below code, I didn't succeed to test the solid visibility. Something is wrong in the syntax NXOpen.SmartObject.VisibilityOption.Visible....
Thanks in advance to help me
For Each body In bodies
If body.name = solide1 Then
objects1(0) = body
If NXOpen.SmartObject.VisibilityOption.Visible(solide1) Then
'
s.DisplayManager.BlankObjects(objects1)
Else
'
s.DisplayManager.ShowObjects(objects1, DisplayManager.LayerSetting.ChangeLayerToSelectable)
End If
End If
Next body
Regards
Didier Psaltopoulos