Hi
Dont know where to ask, so here it goes. Redirect me to a properplace
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
SonnichSolidworksApi macros
Dont know where to ask, so here it goes. Redirect me to a properplace
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
SonnichSolidworksApi macros
