Community
In Inventor, I want to look for a table called "MS6 Report". If the table exists, I want to get its coordinates, and delete the table. If it doesn't exist, I'd just like to let the user place a table. How can I check if a customtable by this name already exists in the document? Here is what I have so far...
if (aDoc.ActiveSheet.CustomTables.Equals("MS6 Report")) { //get table coordinates //delete table } else { userInteract = m_inventorApplication.CommandManager.CreateInteractionEvents(); keySelect = userInteract.KeyboardEvents; keySelect.OnKeyDown += new KeyboardEventsSink_OnKeyDownEventHandler(keySelect_OnKeyDown); mouseSelect = userInteract.MouseEvents; mouseSelect.OnMouseDown += new MouseEventsSink_OnMouseDownEventHandler(Table_Update_Placement); }
The else statement works great. No problems there. How can I find, get coordinates of, and delete a custom table by the name of "MS6 Report"?
Something like this..
For Each oCustomTable As CustomTable In oDrawDoc.ActiveSheet.CustomTables If oCustomTable.Title = "MS6 Report" Then Return oCustomTable.Position() End If Next