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

yang686526 2009-04-13 08:58 AM

【转帖】api how to
 
api how to?
using api functions how do you emulate the gui isolate command?
haven't found it yet. doesn't appear to be part of published api (sw2007).
me neither i'm pretty sure there isn't one in there
yeah, i agree. this is one of those solidworks functions that is simply an automation of simple tasks. you'd need to do something like the following...
get a list of un-selected components (use their persisten reference ids from getpersistreference to use later)
select all unselected components
hide
when user finishes...
select all components except your original selection again using their reference id
show
mike spens
"automating solidworks using macros"
leap frog leap pad x64
this is the answer from solidworks!
dear sam,
currently there is no direct way of achieving this. we already have spr on this in our book.
spr 452785 : customer would like an api for the assembly isolate command
this spr is at medium priority now. please let us know how big a problem is this for you.
as an workaround you may use the following api's.
modeldoc2::viewdisplaywireframe
modeldoc2::hidecomponent2
assemblydoc::setcomponenttransparent
service request number: [sr:1-1011239866]
quick


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