Is this property not available in Revit 2025? AllowsVisibilityControl Property

Is this property not available in Revit 2025? AllowsVisibilityControl Property

XARMA
Advocate Advocate
103 Views
2 Replies
Message 1 of 3

Is this property not available in Revit 2025? AllowsVisibilityControl Property

XARMA
Advocate
Advocate

I can't use AllowsVisibilityControl property.

How do I use it?

XARMA_0-1757989936527.png

 

 

0 Likes
104 Views
2 Replies
Replies (2)
Message 2 of 3

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @XARMA ,


Yes, it looks like an issue. I found that category.get_AllowsVisibilityControl(doc.ActiveView) determines whether the visibility of a category can be controlled by the user in the current view. I will check why the AllowsVisibilityControl property is mentioned in the documentation.

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 3

GaryOrrMBI
Collaborator
Collaborator

The answer is in the screenshot message:

 

The programming language used has bearing on which is the correct call.

In Visual Basic the call would be category.AllowsVisibilityControl(doc.ActiveView)

In C# the call would be category.get_AllowsVisibilityControl(doc.ActiveView)

 

A lot of C# object property calls have this requirement (I'm not a C# developer so I don't know the full details of how, why, when, where, etc)

 

-G

Gary J. Orr
GaryOrrMBI (MBI Companies 2014-Current)
aka (past user names):
Gary_J_Orr (GOMO Stuff 2008-2014);
OrrG (Forum Studio 2005-2008);
Gary J. Orr (LHB Inc 2002-2005);
Orr, Gary J. (Gossen Livingston 1997-2002)
0 Likes