GetVisibility method

GetVisibility method

danielgijsbers
Contributor Contributor
402 Views
3 Replies
Message 1 of 4

GetVisibility method

danielgijsbers
Contributor
Contributor

Hi,

 

if I snoop the database in the family editor I can find geometry from which I can get the visibility settings for the detail levels of a view. See below.

2021-10-19_10h36_47.png

In a project environment I can't seem to get there.

 

My question: How can I get the visibility settings of geometry in a family?

 

0 Likes
403 Views
3 Replies
Replies (3)
Message 2 of 4

Omar_Amen
Advocate
Advocate

Hi @danielgijsbers ,
you just need to apply this on the FamilyDocument not the ProjectDocument,
you can retrieve the family document from the project document easily by selecting the family instance then access the family symbol then access the family prop from the family symbol then get the family document from it,
next step is to get all the family extrusions just as the lookup addin dose!
you can get the extrusions using the element category filter on the family document
now you have the family extrusions and you can retrieve whatever you want from them!

0 Likes
Message 3 of 4

danielgijsbers
Contributor
Contributor

I understand what you mean but is it correct that from the family document in snoop you can't do the next step in snoop? See image:

2021-10-19_12h22_08.png

 

0 Likes
Message 4 of 4

RPTHOMAS108
Mentor
Mentor

I believe such information attached to solids in the family is not available in the project.

 

You would have to edit family in background:

Document.EditFamily(Family) to obtain the document and see it's contents.

 

Certain aspects of visibility can be obtained via geometry in the project by setting Options class. It doesn't cover all the aspects noted above however (just the detail levels).

0 Likes