ana_cedillo Posted November 26, 2014 Share Posted November 26, 2014 I am working on a simple script to extract to Excel the results for a Wind Farm in WAsP 11.I am trying to access the air density value for the Project, but I can’t find the Parameter ID or index for the air density.Is there a parameter dictionary I could look up? Link to comment
Ray Posted November 26, 2014 Share Posted November 26, 2014 Hi there,there is indeed a parameter dictionary, here is some code which will list all the parameters of the project:Set Configuration = Project.AsIRveaConfigurable.ConfigurationSet Rv68ObjectFactory = CreateObject("Rvea0068.ObjectFactory")Set ParameterDictionary = Rv68ObjectFactory.CreateParameterDictionary ' Project level parametersSet Configuration = Project.AsIRveaConfigurable.ConfigurationEditReport = "Project parameters shown below (ID - Description - Value)" & vbcrlfEditReport = EditReport & "------------------" & vbcrlf & vbcrlfFor ParameterIndex = 1 To Configuration.NumberOfParameters Set Parameter = Configuration.ParameterByIndex(ParameterIndex) Description = ParameterDictionary.Description(Parameter.ID, "unknown") EditReport = EditReport & Parameter.ID & " - " & Description & " - " & Parameter.Value & vbCrLfNextMsgbox EditReportYou can access individual parameters using the parameter ID and change it's value:' Change the standard height #1 parameter valueSet Parameter = Configuration.ParameterByID("STDH1")Parameter.Value = 17The parameter ID for air density is ROHFORPD so you can access it with:Set Parameter = Configuration.ParameterByID("ROHFORPD")Hope that helps.Cheers,Ray Link to comment
ana_cedillo Posted November 26, 2014 Share Posted November 26, 2014 Thank you for the info.It worked! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now