Question

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

  • 12 November 2021
  • 0 replies
  • 50 views

Badge +1

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!

Reply