SELE
pdms sele.jpg (37.36 KB, 下載次數(shù): 363)
下載附件
保存到相冊(cè)
pdms sele
2017-2-28 09:53 上傳
左圖命名:(對(duì)符合規(guī)則的元件進(jìn)行命名) !namOptRule =object NAMOPTRULE() !namOptRule.key =|Selector answer eq 0| !namOptRule.description = |Naming rule for SELEs answer eq 0| !namOptRule.rule = |All SELEctors answer eq 0| !namOptRule.scan =|SPEC| !namOptRule.format = |!!CE.owner.namn & '/' & !!CE.Tanswer| !namOptRule.indices =|000| !tempArray.append(!namOptRule)
右圖命名:(對(duì)符合規(guī)則的元件進(jìn)行命名) !namOptRule =object NAMOPTRULE() !namOptRule.key =|Selector Name| !namOptRule.description = |Naming rule for SELEs| !namOptRule.rule = |All SELEctors| !namOptRule.scan =|SPEC| !namOptRule.format = |!!CE.owner.namn & '/' & !!CE.Answer| !namOptRule.indices = |000| !tempArray.append(!namOptRule)
NOTE: 代碼在前的優(yōu)先級(jí)高,出現(xiàn)沖突按照優(yōu)先級(jí)高的執(zhí)行 ---------------------------------------------------------------------------------------------------------- 左圖規(guī)則:(篩選出符合條件的SELE元件) !rule = objectRULE() !rule.name = |All SELEctors answer eq 0| !rule.rule = |Answer of CE eq 0| !rule.types = |SELE| !rule.description = |Rule for Selectors answer eq 0| !!tmpRuleArray.append(!rule)
右圖規(guī)則:(篩選出符合條件的SELE元件) !rule = objectRULE() !rule.name = |All SELEctors| !rule.rule = || !rule.types = |SELE| !rule.description = |Rule for Selectors Level| !!tmpRuleArray.append(!rule)
Note: !namOptRule.rule 與 !rule.name 相對(duì)應(yīng) SPCO SPEC NAME, TYPE, STYPE,PBOR, SHOP均不允許出現(xiàn)空格 SPCO名字中只要包括SPEC NAME, TYPE, STYPE, PBOR, SHOP這五要素,那么SPCO就不可能出現(xiàn)重復(fù)。 雙尺寸SPCO
pdms spco2.jpg (8.61 KB, 下載次數(shù): 365)
下載附件
保存到相冊(cè)
pdms spco1
2017-2-28 08:48 上傳
!namOptRule = object NAMOPTRULE() !namOptRule.key = |SPCO of REDU| !namOptRule.description =|Naming rule for all SPCOs| !namOptRule.rule = |All SPecCOmponents of REDU| !namOptRule.scan = |SPEC| !namOptRule.format = |!!CE.prmown.namn & '/' &!!CE.catref.gtype & '/' & !!CE.OWNER.Tanswer & '/' & !!CE.Tanswer & '/' &!!CE.catref.PARAM[1] & '×' & !!CE.catref.PARAM[2]| !tempArray.append(!namOptRule)
----------------------------對(duì)應(yīng)的rule規(guī)則:------------------------------------------------- !rule = object RULE() !rule.name = |All SPecCOmponents of REDU| !rule.rule = |Gtype of Catref eq 'REDU'| !rule.types = |SPCO| !rule.description = |Rulefor Specification Components of REDU| !!tmpRuleArray.append(!rule)
NOTE: !!CE.prmown.Tanswer的值是TYPE !!CE.OWNER.Tanswer的值是STYPE
除了REDU,雙尺寸的還有TEEOLET需要設(shè)置: !namOptRule = object NAMOPTRULE() !namOptRule.key = |SPCO of TEE| !namOptRule.description =|Naming rule for TEE SPCOs| !namOptRule.rule = |All SPecCOmponents of TEE| !namOptRule.scan = |SPEC| !namOptRule.format = |!!CE.prmown.namn & '/' &!!CE.catref.gtype & '/' & !!CE.OWNER.Tanswer & '/' & !!CE.Tanswer & '/' &!!CE.catref.PARAM[1] & '×' & !!CE.catref.PARAM[2]| !namOptRule.indices = |000| !tempArray.append(!namOptRule)
!namOptRule = object NAMOPTRULE() !namOptRule.key = |SPCO of OLET| !namOptRule.description =|Naming rule for OLET SPCOs| !namOptRule.rule = |All SPecCOmponents of OLET| !namOptRule.scan = |SPEC| !namOptRule.format = |!!CE.prmown.namn & '/' &!!CE.catref.gtype & '/' & !!CE.OWNER.Tanswer & '/' & !!CE.Tanswer & '/' &!!CE.catref.PARAM[1] & '×' & !!CE.catref.PARAM[2]| !namOptRule.indices = |000| !tempArray.append(!namOptRule) ---------------------------對(duì)應(yīng)的rule規(guī)則:----------------------------------------------
!rule = object RULE() !rule.name = |All SPecCOmponents of OLET| !rule.rule = |Gtype of Catref eq 'OLET'| !rule.types = |SPCO| !rule.description = |Rulefor Specification Components of OLET| !!tmpRuleArray.append(!rule)
!rule = object RULE() !rule.name = |All SPecCOmponents of REDU| !rule.rule = |Gtype of Catref eq 'REDU'| !rule.types = |SPCO| !rule.description = |Rulefor Specification Components of REDU| !!tmpRuleArray.append(!rule)
!rule = object RULE() !rule.name = |All SPecCOmponents of TEE| !rule.rule = |Gtype of Catref eq 'TEE'| !rule.types = |SPCO| !rule.description = |Rulefor Specification Components of TEE| !!tmpRuleArray.append(!rule)
單尺寸SPCO
pdms spco1.jpg (11 KB, 下載次數(shù): 384)
下載附件
保存到相冊(cè)
pdms spco2
2017-2-28 08:48 上傳
!namOptRule =object NAMOPTRULE() !namOptRule.key =|Specification Component Name| !namOptRule.description = |Naming rule for all SPCOs| !namOptRule.rule = |All SPecCOmponents| !namOptRule.scan =|SPEC| !namOptRule.format = |!!CE.prmown.namn & '/' &!!CE.catref.gtype & '/' & !!CE.OWNER.Tanswer & '/' & !!CE.Tanswer & '/' &!!CE.catref.PARAM[1]| !namOptRule.indices =|000| !tempArray.append(!namOptRule) ---------------------------------------------------------------------------------------------------------- !rule = objectRULE() !rule.name = |AllSPecCOmponents| !rule.rule = || !rule.types = |SPCO| !rule.description = |Rule for Specification Components| !!tmpRuleArray.append(!rule)
PDMS paragon的批量autonaming自動(dòng)重命名視頻教程 autonaming運(yùn)行的前提是:元件沒有名字
所以,第一步,把要自動(dòng)重命名的的元件進(jìn)行 unname操作,方法是使用list添加需要重命名的元件,然后action里執(zhí)行unname;
autonaming.png (81.52 KB, 下載次數(shù): 371)
下載附件
保存到相冊(cè)
list
2017-2-28 08:48 上傳
第二步,autonaming;
|