Hi, I’m building a Wall Window Ratio script. I have a code block calculating the Facing Angle, Facing Direction, and Cardinal Direction. However, when I run the script, Dynamo is saying that the "Warning: Method FindFacingDirection() is not found. Any ideas on how to resolve this?
not going in to light calculation here but if you just want the wall/window ratio wouldnt it be easier to select walls, and get host elments from selected elements, filter out windows and get the nececary parameters (rought width,roughthieght,sill hieght etc)? or am i mistaken?
if thats the case there is no need for directions unless you are doing light/energy calculations in the script aswell?
But can you show us specifically where those methods are coming from? They are not from the core library so we can’t help you without more information.
You could also use the Revit API to get the built-in orientation properties of your elements.
You need to define the functions for FindFacingDirection() and FindFacingCardinalDirection() somewhere. Currently you’re trying to call a function that’s undefined.
Thank you for the reply Hamish. I have the definitions to the top left here. But I’m unsure how of how to include them into my code block? Or if I should define them elsewhere in the script?