|
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 |
|