Here’s an issue I’ve been struggling with for DAYS (aaghhh!!!) - any help would be hugely appreciated
I have a piece of script I’ve found online and fiddled with - essentially there are two variables; a “Roof Shape Code” and a “Roof Shape Name”. I’m trying to ask Dynamo to check the Sheet Properties of a given sheet for it’s “Roof Shape Code” parameter, and return a value to its “Roof Shape Name”.
If I “hard code” these answers, then there is no problem (i.e., if Roof Shape Code = R3, then return = “This works”); the problem occurs when I want to return a variable (i.e., if Roof Shape Code = R1, then return = r1Ans - whereby “r1Ans” is a property of the Revit Project).
The three small watch windows on the right prove that the script is finding the Project Information parameters I’m looking for; however the large watch on the far right illustrates the problems highlighted with red (null). Similarly, the highlighted box above shows that the “Roof Shape Name” is not being set correctly.
I’ve purposely set the last one (R3) to a fixed value “This works”, to show that this does work - it’s the variables I’m having trouble with (i.e., r1Ans, r2Ans and r3Ans).
(The areas highlighted with blue pen are supposed to be blank, so this is fine )
Can anyone help??