Problem in getting visibilty status of the visible parts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We are trying to export attached model "E3D V6 Hotend 1,75mm universal v6.f3d" while exporting we are getting isVisible status incorrect and it is working fine for other models.
We are using following code snippet :
adsk::core::Ptr<adsk::fusion::BRepBodies> bBodies = rootComponent->bRepBodies();
for (int j = 0; j < bodyCount; j++)
{
...
adsk::core::Ptr<adsk::fusion::BRepBody> body1 = bBodies->item(j);
bool isTransientBody = body1->isTransient();
if(isTransientBody)
continue;
adsk::core::Ptr<adsk::fusion::BRepFaces> bfaces = body1->faces();
if(body1->isVisible())
partData.m_isVisible = body1->isVisible();
...
}
Here the isVisible API is always returning false although some of the parts are visible in model space.
As per our investigation the isVisible API returning values depending on isTransient status. While debugging the above model we observed that isVisible API returns false although isTransient API returns false for the part which is visible in the model space. We have also found that isVisible API works fine if we delete the sub assembly "Single Parts" from the model.
Please guide us to understand isVisible API and its working and allow us to export only visible model from the attached "E3D V6 Hotend 1,75mm universal v6.f3d" Fusion360 model.