Creo Weblink: CheckIfIsFromFormat(int) not working
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
This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

