pdms教程 - autonaming自动命名原理规则解析
SELE左图命名:(对符合规则的元件进行命名)!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)
右图命名:(对符合规则的元件进行命名)!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: 代码在前的优先级高,出现冲突按照优先级高的执行----------------------------------------------------------------------------------------------------------左图规则:(筛选出符合条件的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)
右图规则:(筛选出符合条件的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 相对应SPCO SPEC NAME, TYPE, STYPE,PBOR, SHOP均不允许出现空格SPCO名字中只要包括SPEC NAME, TYPE, STYPE, PBOR, SHOP这五要素,那么SPCO就不可能出现重复。双尺寸SPCO
!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 & '×' & !!CE.catref.PARAM|!tempArray.append(!namOptRule)
----------------------------对应的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)
NOTE:!!CE.prmown.Tanswer的值是TYPE!!CE.OWNER.Tanswer的值是STYPE
除了REDU,双尺寸的还有TEEOLET需要设置:!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 & '×' & !!CE.catref.PARAM|!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 & '×' & !!CE.catref.PARAM|!namOptRule.indices = |000|!tempArray.append(!namOptRule)---------------------------对应的rule规则:----------------------------------------------
!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!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|!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自动重命名视频教程 autonaming运行的前提是:元件没有名字
所以,第一步,把要自动重命名的的元件进行 unname操作,方法是使用list添加需要重命名的元件,然后action里执行unname;第二步,autonaming;
视频地址见: http://www.youqichuyun.com/thread-32831-1-1.html
pdf附件显示的很好请下载
--------------------
pdms自带的重命名文件(自带的不太好用,需要按照帖子方法修改才好)
这是我根据帖子方法改好的pdms自动重命名文件,本地测试没问题:
pdms很详细的资料正好不会 再看看其他教程 学习下 pdms 软件 做的很精细啊 pdms资料 方便了pdms重命名 我要按照教程试试 终于明白了pdms autonaming的原理 多谢楼主提点 pdms命名教程 写的很详细仔细 我来学习下 没明白这个是哪里用的自动命名,pdms很详细的资料正好不会 再看看其他教程