Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ForgeTypeId Enumeration

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
esatis
215 Views, 2 Replies

ForgeTypeId Enumeration

Hi, 

I cannot find any enumeration or 'List' of all the ForgeTypeId parameters so that I can for example filter out parameters that I don't want from my list.  The only way to use ForgeTypeId Operators I have figured out is to create ForgeTypeId parameter with hardcoded string value which seems rather unsafe. For example:

			List<ForgeTypeId> filterOutForgeTypeIds = new List<ForgeTypeId>
				{
					new ForgeTypeId("autodesk.revit.parameter:allModelDescription-1.0.0"),
					new ForgeTypeId("autodesk.revit.parameter:doorCost-1.0.0")
				};

			if (_groupParameters.Any(param => filterOutForgeTypeIds.Any(forgeTypeId => forgeTypeId == param.GetTypeId())))
			{

 Is this the only way to get ForgeTypeId parameters? 

2 REPLIES 2
Message 2 of 3
Moustafa_K
in reply to: esatis

I think you can access the static ParameterTypeId ... 

 

ParameterTypeId.AllModelDescription

 

ParameterTypeId is a static class that has all ForgTypeIds for ParameterTypes... 

 

Is that what you are looking for? 

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
Message 3 of 3
esatis
in reply to: Moustafa_K

YES! Exactly! Thank you, this was a mystery for me for quite some time now!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report