Find the Header of a Bill of Material (BOM) - Siemens PLM

文章推薦指數: 80 %
投票人數:10人

Example: Copy. tplet BomHeader $BomDocument findHeader "MEProductContext" if {$BomHeader == "null"} { error "Could not find the BOM Header" } ... FindtheHeaderofaBillofMaterial(BOM)Prerequisites:LoadaPLMXMLFileExample:tplet BomHeader $BomDocument findHeader "MEProductContext"if {$BomHeader == "null"} {  error "Could not find the BOM Header"}Wealreadymentionedextensions.Someoftheseimplementmethodswecallshortcuts.TheyarejusttheretoprovideashorterandmoreconvenientwaytoachieveataskthanwouldbepossiblewiththeSDKalone.ThefindHeadermethodisashortcuttonavigatetotherootofastructuremadeupofoccurrenceelements.ThereareseveralflavorsofoccurrencesforBillOfMaterialstructures,Plantstructures,BillofProcessstructuresetc.ThecontextTypeargumentofthefindHeadermethodismatchedagainstthesubTypeattributeofaStructureContextelementinthecourseofsearchingtheoccurrencethatrepresentstheheaderofthestructure:contextTypetypeofstuctureMEProductContextBillofMaterialMEPlantContextPlantMEProcessContextBillofProcessesIfthefindHeadershortcutisnotabletofindtheheaderoftheBOMstructureitreturnsthespecialnullobjecthandle.Allmethodsthatreturnobjecthandleswillreturnthenullobjecthandletoindicatethefactthatthereisnosuchobject.



請為這篇文章評分?