Hello,
I was trying to define a new view type on libMgr, that should be use for gds file. the file should be open with a graphical tool wrraper called run_ic_workB
quick search on the forum gave me everything I need, i made the required customization... but somehow it fail.
i doubled checked myself few times - but it seems that this "gdsLay" type would not go in to the view drop box.
I was wonder if any of the gentlemen here can see the issue .
DataFormat run_ic_workB {
Pattern = block.gds;
Default_Editor = run_ic_workB;
dfII_ViewType = gdsLay;
Co_Managed = block.gds master.tag prop.xx;
}
ViewAlias {
gdsLay=run_ic_workB;
}
Tool run_ic_workB {}
I also define the required trigger , and trigger reg:
procedure( CCSOOoAppDataTrig(argList)
let( (mode(getq(argList accessMode)) libName(getq(argList libName))
cellName(getq(argList cellName)) viewName(getq(argList viewName))
fileId fileName)
if(fileId=ddGetObj(libName cellName viewName "*") then
when(fileId
fileName=ddGetObjWritePath(fileId)
system(sprintf(nil "run_icw %s" fileName))
);when
else
fileId = ddGetObj( libName cellName viewName "block.gds" nil "r" )
fileName=strcat(ddGetObjWritePath(fileId) )
system(sprintf(nil "run_icw %s" fileName))
) ;if
t
) ;let
) ;procedure CCSOOoAppDataTrig
;
; Dummy triggers
;
procedure( CCSOOoAppTrig(argL) t )
procedure( CCSOOoEnableTrig(@optional argL) t )
;
procedure( CCSOOoRegister()
deRegApp(
?appName "run_ic_workB"
?appTrigger 'CCSOOoAppTrig ; Dummy function
?dataTrigger 'CCSOOoAppDataTrig
?enableTrigger 'CCSOOoEnableTrig ; Dummy function
?viewType "gdsLay"
?widgetType "none"
)
);procedure CCSOOoRegister
;
; Register the triggers
;
CCSOOoRegister()
envSetVal("graphic" "viewNameToTypeList" 'string "document pdf, gdsLay gds" )