- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Apologies in advance if there is an obvious answer but I have been trying to resolve this for some time but appear to have a complete block on how to code the solution.
A little background before I start, I am using Revit 2016 and my code is C#. The aim of the code is to ascertain all the information on the bound Shared Parameters and export it to an Excel file.
I have code to obtain just about everything I require with the following exceptions:
Are the Parameters Type or Instance bound?
The value of the Type parameters?
The bases for retrieving this information is the code below:
foreach (Element elem in elementSet)
{
Parameter parameter = elem.get_Parameter(spGuid);
From searching the internet I believe that once I have the Parameter. Element (elem) that I need to ascertain if this is derived from the ElementType base class. If so then it is a Type bound parameter, else an instance one? Is this correct and what am I missing with my code?
Any code sample would be much appreciated.
Also when I use
parameter.AsValueString();
I can obtain the value of the Instance bound parameters but for Type bound parameters it is blank?
Any Assistance would be much appreciated.
Solved! Go to Solution.