Unable to enter Design - (46,87) PML:Object definition for HXSN could not be found. - In line 218 of PML function appdefn.OBJECT - !this.object[1] = object $!objName()
我定义了一个pmlobj 放在pdmslib根目录下,文件内容
define object HXSN
endobject
-------------------------------------------------------------------------------------------------------
define method .modifyForm()
endmethod
-------------------------------------------------------------------------------------------------------
define method .barMenu()
!bmenu = object APPBARMENU()
!bmenu.add('HXST','HTOOL')
!!appmenuCntrl.addbarmenu(!bmenu,'GEN')
!!appmenuCntrl.addbarmenu(!bmenu,'PIPE')
!!appmenuCntrl.addbarmenu(!bmenu,'EQUI')
endmethod
-------------------------------------------------------------------------------------------------------
define method .menus()
!menu = object APPMENU('HTOOL')
!menu.add('CALLBACK','ADDCREF','!!HXSADDCREF()')
!menu.add('CALLBACK','REMOVE ALL','!!HXSREMOVEALL()')
!!appMenuCntrl.addMenu(!menu,'GEN')
!!appMenuCntrl.addMenu(!menu,'PIPE')
!!appMenuCntrl.addMenu(!menu,'EQUI')
endmethod
-------------------------------------------------------------------------------------------------------
define method .deletemenu()
endmethod
define method .modifyMenus()
!this.barMenu()
!this.menus()
!this.deletemenu()
endmethod
用pml rehash all 这样就把菜单加载了
可是我想卸载掉,就先删除文件,再调用pml rehash all
再进入pdms时就提示那样的错误了
请教下楼主 |