MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / export

Method export

src/Tools/bindings/model/generateModel_Module.py:1405–1412  ·  view source on GitHub ↗
(self, outfile, level, name_="Module")

Source from the content-addressed store, hash-verified

1403 self.Name = Name
1404
1405 def export(self, outfile, level, name_="Module"):
1406 showIndent(outfile, level)
1407 outfile.write("<%s" % (name_,))
1408 self.exportAttributes(outfile, level, name_="Module")
1409 outfile.write(">\n")
1410 self.exportChildren(outfile, level + 1, name_)
1411 showIndent(outfile, level)
1412 outfile.write("</%s>\n" % name_)
1413
1414 def exportAttributes(self, outfile, level, name_="Module"):
1415 outfile.write(' Name="%s"' % (self.getName(),))

Callers 15

exerciseFunction · 0.45
exportMethod · 0.45
exportChildrenMethod · 0.45
exportChildrenMethod · 0.45
exportChildrenMethod · 0.45
exportChildrenMethod · 0.45
exportChildrenMethod · 0.45
exportChildrenMethod · 0.45
exportChildrenMethod · 0.45
exportChildrenMethod · 0.45
exportChildrenMethod · 0.45
exportChildrenMethod · 0.45

Calls 4

exportAttributesMethod · 0.95
exportChildrenMethod · 0.95
showIndentFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected