几何尺寸与公差论坛

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

【转帖】cannot read ibomtable.getheadertext9i0

[复制链接]
发表于 2009-4-12 17:43:44 | 显示全部楼层 |阅读模式
cannot read ibomtable.getheadertext(i)
hi
dont know where to ask, so here it goes. redirect me to a proper place
if needed.
i am updating some software talking to solidworks 2008, and there
seems to be some change to previous versions.
say (in delphi):
var
view: iview;
bom: ibomtable;
begin
(swpart as idrawingdoc).activatesheet(sheetname);
view := (swpart as idrawingdoc).igetfirstview;
while (view <> nil) and (view.get_name <> viewname) do
view := view.igetnextview;
if view <> nil then begin
bom := view.igetbomtable;
if bom.attach3 then
try
m := bom.gettotalcolumncount;
n := bom.gettotalrowcount;
// everything works well until here...
for i := 0 to m - 1 do begin
colname:= uppercase(trim(bom.getheadertext(i)));
// this is always empty and there are no data to read.
they claim, that it worked in 2006.
any ideas anyone?
wbr
sonnich
answer i found the answer in this group, have to use excel, by ole automation.
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 01:23 , Processed in 0.035697 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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