几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】property manager page and persistent data (http://www.dimcax.com/hust/showthread.php?t=5652)

yang686526 2009-04-13 01:41 PM

【转帖】property manager page and persistent data
 
property manager page and persistent data
is there a way to show the property manager page, and have macro code wait for the user to close the pm page before continuing, as if using an input box or form? i am trying to keep some arrays filled with data while this occurs, for reuse in a looping procedure.
there is, i will be writing it in the book i am releasing. basically you want to handle the close event of the pm, and call your function in there.
hey marc,
your property manager page should have a class that "implements propertymanagerpage2handler2".
one of the default functions of this class is:
sub afterclose() implements propertymanagerpage2handler2.afterclose
. if you insert the code you want to execute in this sub it will be executed after you close your pmp.
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
thanks for the help!
i am able to trigger code after the close event, however i am looking for a way for this code to use data that had been stored in memory as arrays and record sets before the pm page finished initializing and showing. i am able to do this with a dialog box or input form, as it "pauses" the code awaiting user input.
showing the pm page runs similar to a modeless form, executing all code after 'show' is called. i have tried trapping this with a loop that runs until the pm is closed, that makes the interface unusable though.
quick


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