How to Get All Disciplines

How to Get All Disciplines

nitinjambhale
Advocate Advocate
1,528 Views
1 Reply
Message 1 of 2

How to Get All Disciplines

nitinjambhale
Advocate
Advocate

Hello guys,

I m searching for getting Discipline as per attached screenshot in Revit API 2015.

But currently i m getting only "ViewDiscipline" enum...and it having values other than what i m expecting..

 

Please suggest something on this.

 

Thank you,

Nitin.

 

 

0 Likes
Accepted solutions (1)
1,529 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Nitin,

 

I searched the Revit API help file RevitAPI.chm for some of the enumeration members listed in the dropdown combo box that you show in your screen snapshot.

 

That led me to discover the UnitGroup enumeration.

 

So, actually, you are not asking for disciplines, but unit groups.

 

The Revit user interface just happens to label that selection 'Discipline'.

 

I hope this helps.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder