Hi there,
I am running a little script to replace drawing formats.
tables = drawing.ListTables(); for (var i=0; i<tables.Count; i++) { var table = tables.Item(i); if (table.CheckIfIsFromFormat(cur_sheet) == true) { var table_sel = drawing.GetTable(i); // table is from format, delete it drawing.DeleteTable(table, false); } }
As it turns out since Creo 2.0 M100 the function CheckIfIsFromFormat(cur_sheet) always returns a "true".
Can anyone confirm this behavior?
I see two ways to fix this:
Option A: PTC imediatly fixes this bug (But I guess this is going to happen in Creo 3.0 at the earliest.)
Option B: finding a way to get the position of the current table (like: "table.IsfromSheet").
Does anyone know, how to get the postion of a table?
Cheers
Matthias