General InformationThe
If you use a custom output:
Input ObjectsInput objects must be of the following types:
Output Objects
Example of Usage
/* DELNCDocumentation_ID
* BL script to generate NC documentation in PDF format
*/
// Uncomment these lines to force user to generate documentation in PDF format
let iOutputType(Integer)
//iOutputType = 2
//Parameters.SetAttributeInteger("OutputType", iOutputType)
// Option to specifiy logo image to use in the NC documentation
// Can be a internet address or a file path
Parameters.SetAttributeString("LogoImage", "https://www.3ds.com/templates/images/_logo/logo_3DS_dassault.png")
// fop.bat file path
let sExternalCmdPath(String)
sExternalCmdPath = GetEnvVariableValue("NC_FOP_EXE")
Parameters.SetAttributeString("CustomCmdPath", sExternalCmdPath)
// PDF File Path (here we use name of selected program or part operation)
let sXmlFilePath(String)
sXmlFilePath = Parameters.GetAttributeString("XmlFilePath")
let sPdfFileName(String)
sPdfFileName = ThisObject.Name + ".pdf"
let sCustomOutputFilePath(String)
sCustomOutputFilePath = ReplaceSubText(sXmlFilePath,"data.xml",sPdfFileName)
Parameters.SetAttributeString("CustomOutputFilePath", sCustomOutputFilePath)
// Arguments to launch executable
let sXSLTFilePath(String)
sXSLTFilePath = GetEnvVariableValue("NC_FOP_XSL")
let sExternalCmdArgs(String)
sExternalCmdArgs = " -xml " + "\"" + sXmlFilePath +"\""
sExternalCmdArgs = sExternalCmdArgs + " -xsl " + "\"" + sXSLTFilePath +"\""
sExternalCmdArgs = sExternalCmdArgs + " -pdf " + "\"" + sCustomOutputFilePath +"\""
Parameters.SetAttributeString("CustomCmdArgs", sExternalCmdArgs)
| |||||||||||||||||||||||||||||||