Revit API 2022 - how to find equivalent BuiltInParameters

Revit API 2022 - how to find equivalent BuiltInParameters

jaymee.manglicmot
Contributor Contributor
522 Views
2 Replies
Message 1 of 3

Revit API 2022 - how to find equivalent BuiltInParameters

jaymee.manglicmot
Contributor
Contributor

Hello, Good day, we are preparing for our Revit tools upgrade to 2022 and I tried changing the BuiltInParameter to its equivalent ParameterTypeId, but I could not find the ones for the following:

  • BuiltInParameter.ALL_MODEL_TYPE_NAME
  • BuiltInParameter.ALL_MODEL_MARK

Can anyone help how to find this? Thanks.

0 Likes
Accepted solutions (1)
523 Views
2 Replies
Replies (2)
Message 2 of 3

manuel.solis.lopez
Contributor
Contributor
Accepted solution

Some values of the BuiltInParameter enum are repeated. In your case: 

DOOR_NUMBER = -1001203,
ALL_MODEL_MARK = -1001203,

SYMBOL_NAME_PARAM = -1002001,
ALL_MODEL_TYPE_NAME = -1002001,

Then the corresponding ParameterTypeId uses the name of the other BuiltInParameter : 

ParameterTypeId.DoorNumber;
ParameterTypeId.SymbolNameParam;

Rregards.

Message 3 of 3

jaymee.manglicmot
Contributor
Contributor
Thank you! Didn't notice that at first.
0 Likes