Thank you for your responce.
Just to clarify my difficulty with FAMILYTYPE shared parameters.
When creating a shared parameter, in the Parameter Properties dialog there is a drop down box titled Type of Parameter. The last item of the selection is <Family Type…>.
After selecting this <Family Type ..> the select Category dialog opens. For this example I will select Furniture and name the parameter FurnitureType.
When examining the Shared Parameter file the following shared parameter definition data is created:
PARAM c291575d-ffd8-4e4d-a871-a4b7c2dd1098 FurnitureType FAMILYTYPE -2000080 1 1 1
As I understand it -2000080 represents the BuiltinCategory.OST_Furniture which I selected from the Category dialog.
Question
There would appear to be no way of reading BuiltinCategory.OST_Furniture number -2000080 when you open the shared parameter file using the API.
Typical code for reading shared parameter file
………
parafile = application.OpenSharedParameterFile();
……….
foreach (DefinitionGroup myGroup in parafile.Groups)
{
// iterate the difinitions
foreach (ExternalDefinition definition in myGroup.Definitions)
The definition exposes, Name, GUID, ParameterType, UserModifiable,Visible,UnitType etc but nowhere does it appear to expose the BuiltInCategory “-2000080”. Is there any way of getting this information from the shared parameters using the API?
Once the parameter is bound either in a Family of Project document I am able using the API to extract all the data for the FurnitureType shared Parameter with the exception of the BuiltInCategoryType. In this case Furniture. The result is:
PARAM c291575d-ffd8-4e4d-a871-a4b7c2dd1098 FurnitureType FAMILYTYPE -1 1 1 1
Any suggestions on how I can identify the BuiltInCategoryType for the FurnitureType shared parameter using the API?
Once the parameter is bound to a Family or project document Is there a way of distinguishing this type of shared parameters from any other within the document?