Dump the Contents of a BOM Header - Siemens PLM

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

The arguments -maxLevel 0 mean to dump just this object, the BOM header in this case. -traceIds. Normally the dump methods do not trace IDs even if ID ... DumptheContentsofaBOMHeaderPrerequisites:FindtheHeaderofaBillofMaterial(BOM)Example:tpwith $BomHeader dumptplet dumpOutput $BomHeader dumpToStringtplet dumpOutputHeaderOnly $BomHeader dumpToString -maxLevel 0Thisisthefirsttimeweusethetpwithcommand.Itissimilartothetpletcommandinthatitinvokesmethodsontheobjectserver.Itdoeshowevernotsetavariable.Insteaditreturnstheresultofthemethodcall.Formethodsthatdon'treturnavalue(voidmethods)anemptystringisreturned.Formethodsthatreturnanarrayalistofkeyvaluepairsisreturnedtobeusedasinputtothearraysetcommand.Herewecallthedumpmethodusingthetpwithcommand.Everyobjectsupportsthismethod.Itcanbeusedtosendtheobject'sstatetothelogserver.Itdoesnotreturnanything.ThereisalsothedumpToStringmethodthatreturnsthecharactersthatdumpwouldsendtothelogserverasastring.Bothmethodssupportthefollowingoptions:-maxLevelWhenrecursivelycollectinginformationfromanobjectthedepthoftherecursioncanbelimitedbysettingthisoptiontoapositiveintegervalue.Ifthisoptionisnotsetthedepthisunlimited.Thearguments-maxLevel0meantodumpjustthisobject,theBOMheaderinthiscase.-traceIdsNormallythedumpmethodsdonottraceIDsevenifIDtracingisenabled.IfthisflagissetthentheydotraceIDs.SeeEnableIDTracingformoreonIDtracing.



請為這篇文章評分?