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

yang686526 2009-04-13 10:28 AM

【转帖】docevent question 1
 
docevent question !
i have this simple code in a form and the swdocevents does not fire each time i change the active doc
what am i doing wrong here
thx, chris
dim withevents swdocevents as sldworks.sldworks
private function swdocevents_activemodeldocchangenotify() as long
msgbox "active model change " & me.name
end function
solidworks 2007 (office pro.) sp5.0
testing solidworks 2009 (pro) sp0.0
dell precision t3400
2 cpu (8500) 3.16 ghz, 3.25 gb of ram
window xp pro sp2
nvidia fx 570 6.14.11.6262
edited: 08/08/2008 at 01:30 pm by chris ch
how is the swdocevents object set? it starts as nothing when dim'd, but i don't see where it connects to the sw application.
thx, roland
i forgot to set it connected to sw
get it working now
chris
solidworks 2007 (office pro.) sp5.0
testing solidworks 2009 (pro) sp0.0
dell precision t3400
2 cpu (8500) 3.16 ghz, 3.25 gb of ram
window xp pro sp2
nvidia fx 570 6.14.11.6262
quick


所有的时间均为北京时间。 现在的时间是 09:08 PM.