I have a problem with getting the local coordinate system of my analytical wall elements into Dynamo. I have tried with the wall.orientation node, but I get wrong directions for some walls.
Is there a node or a way to get the direction of the coordinate system?
On my project it works on 95 % of the walls - which using the wall orientation method also does. I can not figure out what is wrong with the last once, but I guess I have to find another way to solve my problem.
OK, I have no idea. The API does not seem to offer any methods or properties that can help us here. A screenshot of all available information from Revit Lookup:
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
from Autodesk.Revit.DB.Structure import *
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.ImportExtensions(Revit.Elements)
#Preparing input from dynamo to revit
element = UnwrapElement(IN[0])
point = IN[1].ToXyz(True)
transform = element.GetLocalCoordinateSystem(point)
OUT = transform.BasisZ.ToVector()
Yes I am doing my master thesis about automated design through Dynamo and FEM-software.
As an example I am working with analytical model correction through Dynamo and applying loads automatically.