几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】how to replicate the functionality of the extrude and revolve buttons (http://www.dimcax.com/hust/showthread.php?t=5415)

yang686526 2009-04-13 12:01 PM

【转帖】how to replicate the functionality of the extrude and revolve buttons
 
how to replicate the functionality of the extrude and revolve buttons?
i would like to create a macro that replicates the extruded/revolved boss/cut commands, but followed by a normal to command to orient the resulting sketch. unfortunately, i haven't been able to find a function that does the same thing as the built-in commands, which is:
1) create a sketch on a preselected surface
2) automatically start the respective feature creation dialog once the sketch has been closed
there might be a way to just sit there and loop the macro until the sketch is closed, but i still don't know how to bring up the feature creation dialog. the api help only lists methods for outright creation of features... no way to just start the dialog. thanks for any help.
mahir abrahim, cswp/core. cswp/smtl
mechanical design engineer
sw 2009 sp2.1
proe wf3/4
edited: 06/16/2008 at 12:17 am by mahir abrahim
bump
mahir abrahim, cswp/core. cswp/smtl
mechanical design engineer
sw 2009 sp2.1
proe wf3/4
quick


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