Documentation for Substance Automation Toolkit is now included in the SAT package. You can access the documentation by opening html-doc.zip inside your downloaded SAT package.
sbswriter
class sbswriter.SBSWriter(aXmlRootNode, aPackagePath, aContext)
Bases: object
Class used to provide useful functions when writing a .sbs (=xml) file from a SBSDocument
setXmlElementAttribValue(aXmlElementParent, aAttribute, aAttribName)
setXmlElementVAttribValue(aXmlElementParent, aAttribute, aChildName) Write the given attribute as a child of the given XmlParent, using the format
setXmlElementVAttribValue(aXmlElementParent, aAttribute, aChildName)
Write the given attribute as a child of the given XmlParent, using the format
setXmlFilePathValue(aXmlElementParent, aAttribute, aChildName)
Convert attribute path before as a absolute path. Write the given attribute as a child of the given XmlParent, using the format
writeAllSBSNodesIn(aXmlNode, aObject, aTagName)
Write the given list of SBSObject using its proper writing method, and its XML description directly to the given XmlNode ………
writeListOfSBSNode(aXmlNode, aSBSObject, aTagName, aChildTagName)
Write the given list of SBSObject using their proper writing method, and add its hierarchical XML description to the given XmlNode ………
writeOnDisk(aFileAbsPath, aFormatDoc=False, aIncludeXMLHeader=True)
Write on disk the XmlRootNode, with the appropriate header, at the given path
writeSBSNode(aXmlNode, aSBSObject, aTagName)
Write the given SBSObject using its proper writing method, and add its XML description to the given XmlNode …