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

  • Teacher (Bronze)
    anryanhas earned the badge Teacher (Bronze)
  • FME Form Basic Training
    petebarneyhas earned the badge FME Form Basic Training
  • Online Training
    cole1980has earned the badge Online Training
  • Online Training
    areederhas earned the badge Online Training
  • Online Training
    kneffhas earned the badge Online Training
Show all badges

Community Stats

32,514
Posts
123,487
Replies
40,730
Members