User`s guide
mlreportgen.dom.OPCPart class
12-217
mlreportgen.dom.OPCPart class
Package: mlreportgen.dom
Document part to include in OPC package
Description
Document part to include in an OPC package.
Construction
opcPartObj = OPCPart() creates an empty OPC part.
opcPartObj = OPCPart(name,sourcePath) creates a part having the specified name
whose source file is located at the specified path. Appending the part to a document using
the Document.package method causes a copy of the source file to be inserted in the
document package at the location specified by the part name.
Input Arguments
name — Name of part
string
Name of part, specified as a string.
sourcePath — Path of source file for part
string
Path of source file for part, specified as a string.
Output Arguments
opcPartObj — OPC part
mlreportgen.dom.OPCPart object
OPC part, represented by an mlreportgen.dom.OPCPart object.