几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » SolidWorks二次开发
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-04-12, 11:04 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】api hooks for new bom reorganization functionality

api hooks for new bom reorganization functionality?
hi folks,
we were looking forward to the new bom reorganization features in sw 2009, such as combining like items, rearranging, dissolving assemblies, etc. unfortunately the ui is extremely slow and crashes often with our fairly large boms (1000+ components in indented view), even on fairly hefty 64 bit workstations.
what i've been trying to do is to use the api to process the bom programmatically, for instance by hiding/deleting rows based on custom properties in order to reduce the size. however, in looking through the api docs i can't find any hooks into any but the most basic bom functionality. for example, the bomtableannotation class doesn't appear to have methods for expanding and collapsing levels, rearranging things, combining like items, etc. so my first question is, am i just out of luck here because solidworks doesn't expose this functionality in the api, or am i looking in the wrong place? (btw i'm a software engineer but this is my first foray into the solidworks api specifically)
also, i did have some luck traversing the bom and hinding all but rows of interest with the rowhidden member. however, once i try to manually manipulate the bom further, all the rows that were hidden suddenly become un-hidden. is there another method call necessary to make the hidden state "stick", or is this expected functionality?
finally, one more question: what's the best resource for an experienced software engineer to get help on api topics such as this? the sample code included with solidworks is helpful, but i'm looking for something more interactive. is this forum the best place?
thanks
- rdo
firstly, the bom api is not exposed well at all i have similar problems when using to to do such things so i am afraid we are stuck in the same boat.
second, for info and the api you can use this forum,
answer luke,
thanks for the info. i'll definitely check out your book as well as the other resources you mentioned.
we're really getting frustrated with solidworks' bom functionality for large assemblies. we'd been hoping that the 2009 improvements would allow us to do what we need, but it looks like neither the ui or the api are going to allow that.
- rdo
if you require certain functionality from a bom you can create a program to create boms using general tables instead and analysing the assembly structure yourself to make the decisions, thats effectively all sw does anyway so you could write your own api. the only restriction you may have there is how much control you have on creating general tables for rows and layouts etc...
if you struggle with that or have a specific need i can quote you on some bespoke software to fill you needs, but at the moment i am fully booked in with other companies work until after christmas but i'd be happy to give you a quote.
luke,
using general tables to do what we want is an interesting idea... perhaps i'll spend some time looking down that path. i'd be concerned about getting item number balloon callouts to work (that's one of the requirements) but i haven't looked into the api for that yet.
thanks
- rdo
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭



所有的时间均为北京时间。 现在的时间是 07:13 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多