0

I'm trying to read BuiltInParameter, Parameter Name, Parameter Type etc from a list of FamilyParameter instance. The code I'm using to read the FamilyParameter is written here on the GitHub. The output of the code is here. As you can see, there are a lot of INVALID values in BuiltInParameter Column. But when I cross check the value of BuiltInParameter, it is not INVALID.

I'm wondering if someone could explain, how could I get the valid BuiltInParameter data from the list FamilyParameter. Appreciate any help. Thank you.

Original Source

Ali Asad
  • 1,235
  • 1
  • 18
  • 33
  • You mention that when you cross check the value of BuiltInParameter (BIP) it does not show as INVALID, at what point are you performing this check? Because from my experience working with the Revit API, what you are getting makes sense. Check the value of the BuiltInParameter object you're performing the ToString() on at this line - `BuiltinParameter = ((InternalDefinition)familyparam.Definition).BuiltInParameter.ToString()` I am willing to bet that will be coming in as INVALID. – Deleted Feb 01 '18 at 02:21

1 Answers1

0

You should probably take a look at BipChecker, the built-in parameter checker. Looking at the output you are generating, it probably already does all you require.

Jeremy Tammik
  • 7,333
  • 2
  • 12
  • 17