Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Could somebody please help me out with this conversion from Deprecated ParameterType to ForgeTypeId for Revit 2022 Api? I have read the documentation with the SDK but I am no doubt missing something very obvious
The 'old' code snippets I am having difficulty converting are:
ParameterType spParmType = spFamilyListItem.DataType;
ParameterType spFamilyParmType = spFamilyListItem.DataType;
ExternalDefinitionCreationOptions option = new ExternalDefinitionCreationOptions(spNameAmend, spFamilyParmType);
ParameterType spParamTypeNoFamily = definition.ParameterType;
DataType = familyParameter.Definition.ParameterType,
if (ParameterType.YesNo == fp.Definition.ParameterType)What would be the 2022 equivalent for it?
It seems like I need to substitute ParameterType for ForgeTypeId and GetDataType() for DataType but this doesn’t work?
There must be something very obvious I am overlooking.
Thanks in advance.
Solved! Go to Solution.
Developer Advocacy and Support +