几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】addmenupopupitem2 (http://www.dimcax.com/hust/showthread.php?t=5050)

yang686526 2009-04-13 08:49 AM

【转帖】addmenupopupitem2
 
addmenupopupitem2
hi everyone,
can someone explain to me how exactly the menuenablemethod works as seen in the addmenupopupitem2 function.
sldworks::addmenupopupitem2
i read the explanation given in the api but its still a bit unclear to me. it says that:
solidworks calls this function before displaying the menu ...
so is it only called once and thats it or is it repeatedly called once something changes in sw?
additionally if i want to implement this method where do i add it?
i am writting a sw addin using vb.net.
cheers,
--stav.
in this world i am nobody...
and nobody is perfect ;) !!!
---------
solidworks office 2008 sp4.0
dell precision pws390
nvidia quadro fx 3450/4000 sdi
edited: 09/08/2008 at 05:59 am by stavros antoniou
hi stav,
i am pretty sure that this function is for the in-context menus that appear when a user right-clicks. so it is a way to add your own custom menu item to the menu. so it is called each time a user right clicks.
to add it, it would probably be something you call in the initialization that your add-in must do when registering itself when loaded (vbaddin.init?)
have fun!
quick


所有的时间均为北京时间。 现在的时间是 02:11 AM.