Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"SpatialFieldManager" change "Analysis Configuration" Help

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
m.p.diker
701 Views, 3 Replies

"SpatialFieldManager" change "Analysis Configuration" Help

I have an Analysis Result Object with many Analysis Configuration.

I'd like to animate the view by switching them in a sequence.

 

I can change this parameter by value(which I have no idea where it comes from):

 

sfm.get_Parameter(BuiltInParameter.SPATIAL_FIELD_MGR_CURRENT_NAME).Set(8);

 

But can't change by Value String(which is more meaningful):


sfm.get_Parameter(BuiltInParameter.SPATIAL_FIELD_MGR_CURRENT_NAME).SetValueString("1407250901");

 

Is there a way to change it or find the available values?

3 REPLIES 3
Message 2 of 4

In fact the SpatialFieldManager.CurrentMeasurement property should be used instead the direct parameter...

 

According to the help file, it "Must be in the range from 0 to (numberOfMeasurements - 1)".

 

Does that help?

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
Message 3 of 4

Thank you Augusto!

Also note that when I've tried to get it through parameters the integer value was not sequential.

By sfm.CurrentMeasurement it is perfect!
Message 4 of 4
m.p.diker
in reply to: m.p.diker

Here's an update on my Night Time Project.

I've pretty figured out the software side thanks to Tammik, Mattison for online documents and Goncalves for instant help.

Now I have a lot of soldering and fighting with XBees a head of me..

 

http://www.redhotbim.com/2014/08/140811-update-bim-iot-occupancy-comfort.html

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community