几何尺寸与公差论坛

 找回密码
 注册
查看: 595|回复: 0

【转帖】api how to

[复制链接]
发表于 2009-4-13 08:58:46 | 显示全部楼层 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-24 01:28 , Processed in 0.034830 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表