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

yang686526 2009-04-12 10:33 PM

【转帖】sw commands
 
sw commands
is there a way in sw api add-in to get call back commands that are firing in sw so i can see what commands i want to call to myself through add-in - sw does does things i assume through its own commands that i can't figure out - ideally would be event call back for every command and i could watch in vs bugger to see what command(s) are firing.. thanks! scott
hey scott,
did you try recording a macro?
--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
the best you can do is record a macro. macro recording will miss things, and will structure some things (like selections) in a way that one would not wish to replicate in a macro.
yep - i did - my problem is when you insert a component via sw user interface after open dialog, the component is anchored to the mouse and you then click where you want to locate it - the macro does not record whatever the command(s) are to move the component in this - just shows me the addcomponent with the final coordinates - i would like to run the command that had the component attached to the mouse - any idea what it is or how to do it? thanks scott
quick


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