Categories ID

Categories ID

bimmatch
Participant Participant
1,072 Views
8 Replies
Message 1 of 9

Categories ID

bimmatch
Participant
Participant

Hi dear all, 

 

I'm looking for a list of Revit categories with IDs, can someone direct me to the right source?

I found this source, but I'm afraid it's not updated: http://bimology.blogspot.com/2010/01/revit-categories.html

 

And following this context: Do Revit and Forge use the same category IDs?

0 Likes
1,073 Views
8 Replies
Replies (8)
Message 2 of 9

ridaabderrahmane
Enthusiast
Enthusiast

Hi there,

you can use the BuiltInCategory enumeration instead of hard coding the category Id.

for example wallsCategoryId = (int)BuiltInCategory.OST_Walls

you can find the BuiltInCategory documentations from the Revit api official documentation : https://www.revitapidocs.com/2019/ba1c5b30-242f-5fdc-8ea9-ec3b61e6e722.htm

 

Best regards,

Message 3 of 9

Yien_Chao
Advisor
Advisor

well you can get the builintcategory here : https://www.revitapidocs.com/2022/c3334f01-3294-3214-8dbf-d4bb79bb54b1.htm

 

then use .Id to get the Id.

 

but what is the goal exactly?

Message 4 of 9

bimmatch
Participant
Participant

Thanks for the reply!
I was looking more for documentation of such a list with the ID attached for each category and a parent-child structure of it, rather than scrap it with a code. I need it more for research and mapping rather than runtime fetching. 
Any clue where we have it documented? 

Message 5 of 9

ridaabderrahmane
Enthusiast
Enthusiast

Hi,

you can check this spreadsheet, it contains what you need:

https://docs.google.com/spreadsheets/d/1uNa77XYLjeN-1c63gsX6C5D5Pvn_3ZB4B0QMgPeloTw/edit#gid=3210918...

Best regards,

Message 6 of 9

Yien_Chao
Advisor
Advisor

your best bet is the RevitAPI link i've posted

 

but if you dont want to code then check the addin by Jeremy Tammik (RevitLookup)  : https://github.com/jeremytammik/RevitLookup

 

 

Message 7 of 9

bimmatch
Participant
Participant
Thanks
Message 8 of 9

bimmatch
Participant
Participant
Thanks a million.
A question: does Forge works with the same IDs?
Message 9 of 9

jeremy_tammik
Alumni
Alumni

You can create your own lists of Revit built-in and RVT document categories using The Building Coder samples command CmdCategories:

  

https://github.com/jeremytammik/the_building_coder_samples/blob/master/BuildingCoder/CmdCategories.c...

   

The Forge categories are completely different. Or, to put it stronger still, I do not believe such a thing exists. Forge is domain agnostic and supports CAD models from all domains, e.g., architecture, mechanical engineering, etc., and from a large variety of CAD seed files, cf.

  

https://forge.autodesk.com/en/docs/model-derivative/v2/developers_guide/supported-translations/

  

Revit categories may propagate through to Forge somehow with the BIM, but I doubt you will find any such concept in an Inventor, AutoCAD or 3D Studio file.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open