Local coordinate system for analytical walls

Hi

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?

Can you please post your DYN so we may see if there is an issue with that? Would be helpful.

Hi Tom

Here is an example where I don’t know how to see that the local wall coordinate system is different for the wall located at the top level:

@Ahejnfelt Try this …

2 Likes

Hi Vikram

I still get the same orientation for the walls

Hi @Ahejnfelt

Could please show your entire graph?

@Kulkul, here is the entire graph:

@Ahejnfelt You missed the lacing part.

Hi @Kulkul

I have set it to “level 2” which should give the same.

Corrected to lacing: longest

Hi

Thanks for finding time to look at my problem!

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:

Wait a minute, I found something anyway: http://www.revitapidocs.com/2017/56722ed1-4937-a206-b3ed-d3ce0524d2f2.htm
For some reason that one was not listen in 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()
3 Likes

Hi Einar

Thank you very much!

This works!!

@Ahejnfelt No problem! Just out of curiosity, is this a part of a larger workflow? I see you have asked questions about analytical models before.

@Einar_Raknes

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.

1 Like

Hello Einar and others,

It’s a very old thread. However, we are facing the same issue now.

Unfortunately, the method you suggested is no longer available in Revit2023.


image

Can anyone help me how to solve this in revit 2023