Skip to main content
10000+ Posts
Using Python Caller for Multiple Features and Feature Types?

I am working on a script that uses the OpenIfcShell library to create IFC files as a workaround for the IFCWriter's gap in functionality.  So far so good:  I can create the basics of an IFC file using one feature.  Now the challenge is to scale up with a dataset that has many features and feature types.  Here is the code I have so far:import fmeimport fmeobjectsimport uuidimport timeimport calendarimport tempfileimport ifcopenshell class FeatureProcessor(object):     def __init__(self):        pass     def input(self, feature):                # Create FME Log File object name called logger        logger = fmeobjects.FMELogFile()         # Call logMessageString method to add custom text and set WARN severity level        logger.logMessageString("Testing the mud",1)                        ifc = ifcopenshell.file(schema='IFC4')

Badge Winners

  • Integrate Spatial Data
    psohas earned the badge Integrate Spatial Data
  • Welcome Back
    kaye.bottomleyhas earned the badge Welcome Back
  • Online Training
    joachim.boerjanhas earned the badge Online Training
  • FME Form Basic Training
    psohas earned the badge FME Form Basic Training
  • Online Training
    saqibmehdihas earned the badge Online Training
Show all badges

Community Stats

32,413
Posts
122,930
Replies
40,133
Members

Latest FME