def RegisterObjectTypes(self): step.SetResPath(self.cad_dir) step.SetApp(cad.GetApp()) App.RegisterObjectTypes(self) cad.RegisterOnEndXmlWrite(step.WriteSolids) step.SetStepFileObjectType( cad.RegisterObjectType("STEP_file", step.CreateStepFileObject, add_to_filter=False)) step.SetSolidType(cad.RegisterObjectType("Solid", None)) step.SetFaceType(cad.RegisterObjectType("Face", None)) step.SetEdgeType(cad.RegisterObjectType("Edge", None)) step.SetEllipseType( cad.RegisterObjectType("Ellipse", step.CreateEllipse)) step.SetSplineType(cad.RegisterObjectType("Spline", step.CreateSpline)) self.RegisterImportFileTypes(['step', 'stp'], 'STEP Files', ImportSolidsFile) self.RegisterImportFileTypes(['iges', 'igs'], 'IGES Files', ImportSolidsFile) self.RegisterExportFileTypes(['step', 'stp'], 'STEP Files', ExportSolidsFile) self.RegisterExportFileTypes(['iges', 'igs'], 'IGES Files', ExportSolidsFile)
def RegisterObjectTypes(self): App.RegisterObjectTypes(self) wing.type = cad.RegisterObjectType("Wing", CreateWing)