Skip to main content
Question

Revit Wall Location Curves: Can They be Accessed In FME Using Python, or at all?

  • November 12, 2021
  • 0 replies
  • 171 views

lorenrouth
Contributor
Forum|alt.badge.img+8

I am trying to get the location curve property for walls using FME and Revit Reader.  To be clear, this is not the geometry of the wall, but the line Revit uses to create the wall.  From what I can tell, the property is not in the actual file itself, but the result of a Revit API method:  

wall.Location as LocationCurve

 

I use Python scripts in Dynamo, but this is unknown territory for me.  Is it possible to install Revit API modules and do something like this?

import fme
import fmeobjects
from Autodesk.Revit.DB import *
 
 
def locLine(feature):        
    line = feature.Location.Curve
    if isinstance(line, fmeobjects.FMELine):
        cLine = line.getAsLine()

Any insight is appreciated.  For now, I will get the lines in Dynamo, export to Excel, and then merge in FME.  Not very elegant!

 

Thanks,

@lorenrouth

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings