ajayjain831
Computer
Hello,
In my vba macro, I need to take screen shot of the geometry of all bodies present inside a CATPart and show it an excel sheet.
But my search results shows all bodies, even if they are hidden.
Input to my method is the "Body"
MySelection.Search "(((((((((((CATStFreeStyleSearch.OpenBodyFeature + CATPrtSearch.OpenBodyFeature) + CATGmoSearch.OpenBodyFeature) + CATSpdSearch.OpenBodyFeature) + CATStFreeStyleSearch.Plane) + CATPrtSearch.Plane) + CATGmoSearch.Plane) + CATSpdSearch.Plane) + CATStFreeStyleSearch.AxisSystem) + CATPrtSearch.AxisSystem) + CATGmoSearch.AxisSystem) + CATSpdSearch.AxisSystem),all"
visPropertySet2.SetShow 1
So either I need to change my search or from the search result filter out those bodies which are hidden.
I don't want to take screen shot of the bodies which are hidden.
Can anyone please tell me the code for the same, to identify whether the given body is hidden or not OR to search only bodies which are visible?
Thanks,
Ajay
In my vba macro, I need to take screen shot of the geometry of all bodies present inside a CATPart and show it an excel sheet.
But my search results shows all bodies, even if they are hidden.
Input to my method is the "Body"
MySelection.Search "(((((((((((CATStFreeStyleSearch.OpenBodyFeature + CATPrtSearch.OpenBodyFeature) + CATGmoSearch.OpenBodyFeature) + CATSpdSearch.OpenBodyFeature) + CATStFreeStyleSearch.Plane) + CATPrtSearch.Plane) + CATGmoSearch.Plane) + CATSpdSearch.Plane) + CATStFreeStyleSearch.AxisSystem) + CATPrtSearch.AxisSystem) + CATGmoSearch.AxisSystem) + CATSpdSearch.AxisSystem),all"
visPropertySet2.SetShow 1
So either I need to change my search or from the search result filter out those bodies which are hidden.
I don't want to take screen shot of the bodies which are hidden.
Can anyone please tell me the code for the same, to identify whether the given body is hidden or not OR to search only bodies which are visible?
Thanks,
Ajay