Message 1 of 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone.
I'm referencing this to store all the value I want and send them to sql server. But I can't get color temperature inside inital color.
Then I'm referencing this to get color temperature individually. But I don't know how to get element id for Element e since I open rfa file from the start.
Here is my code.
UIApplication app = commandData.Application;
UIDocument uidoc = app.ActiveUIDocument;
Document doc = uidoc.Document;
FamilyManager mgr = doc.FamilyManager;
Element e = doc.GetElement();
ElementType ET = doc.GetElement(e.GetTypeId()) as ElementType;
Parameter initailColor = ET.get_Parameter(BuiltInParameter.FBX_LIGHT_INITIAL_COLOR_TEMPERATURE);
string colorTemperature = initailColor.AsValueString();
Hope someone can help.
Solved! Go to Solution.