Hallo,
danke für deine rasche Rückmeldung.
Auch nach Einarbeitung deiner Vorschläge bleibt die Ausgabe noch ohne Resultat.
        base_path = AllplanGeo.Path3D()
        base_path += AllplanGeo.Line3D(AllplanGeo.Point3D(0,0,0), AllplanGeo.Point3D(100,0,0))
        base_path += AllplanGeo.Line3D(AllplanGeo.Point3D(100,0,0), AllplanGeo.Point3D(100,100,0))
        base_path += AllplanGeo.Line3D(AllplanGeo.Point3D(100,100,0), AllplanGeo.Point3D(0,100,0))
        base_path += AllplanGeo.Line3D(AllplanGeo.Point3D(0,100,0), AllplanGeo.Point3D(0,0,0))
        axis = AllplanGeo.Vector3D(0,0,100)
        path = AllplanGeo.Path3D()
        path += AllplanGeo.Line3D(AllplanGeo.Point3D(0,0,0), AllplanGeo.Point3D(0,0,100))
        railrotation = False
        closegaps = False
        brep = AllplanGeo.CreateSweptBRep3D(base_path, path, railrotation, axis)
        print(brep)
        com_prop = AllplanBaseElements.CommonProperties()
        com_prop.GetGlobalProperties()
        return AllplanBasisElements.ModelElement3D(com_prop, brep)
Gibt es evtl. noch Fehler?
Testweise habe ich mal ein Polyhedron (Polyhedron3D.CreateCuboid) aus der Methode übergeben, dass hat auf Anhieb funktioniert...
Gruß
Marcus