leilei4908 发表于 2016-6-14 14:31:31

请问,零件的Value怎么获取?

用查询function可以获取到零件的device value值,用skill怎么获得呢???

wintonlee 发表于 2016-6-14 22:02:51

其他网站粘过来的,将就看下
procedure(LeeGetInfor(cv)
      let((cdfgDate cdfInfor instName name type value cdfL)
         foreach(inst cv~>instances
                cdfgDate=cdfGetInstCDF(inst)
             cdfInfor=cdfgDate~>parameters
             instName=inst~>cellName
             printf("Instance %L :\n" instName)
                foreach(cdf cdfInfor
               name=cdf~>name
               type=cdf~>paramType
               value=cdf~>value
               cdfL=list(name type value)
               printf("   %L\n" cdfL)
             ); foreach cdf
      ) ; foreach inst
   ) ; let
) ; LeeGetInfor

cv=geGetEditCellView()
LeeGetInfor(cv)

leilei4908 发表于 2016-6-15 08:54:08

wintonlee 发表于 2016-6-14 22:02
其他网站粘过来的,将就看下
procedure(LeeGetInfor(cv)
      let((cdfgDate cdfInfor instName name ty ...

你这种根本不能用
cdfGetInstCDF
geGetEditCellView
并不是系统自带的,没有这两个函数没法用

我现在是用sym->component->compdef->prop->VALUE获取的

wintonlee 发表于 2016-6-15 23:25:38

leilei4908 发表于 2016-6-15 08:54
你这种根本不能用
cdfGetInstCDF
geGetEditCellView


嗯,dbid读取是可以的,实在不行就文件读取:lol
页: [1]
查看完整版本: 请问,零件的Value怎么获取?