Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
I am working on a program toreplace the drawingformat. As part of this program, I copy data from the old format tables to the new one. I have this working for simple text. However if there is a symbol in the cell, the user is prompted to enter the variable text. I am looking for a method to capture the detailed instructions for the original symbol and apply to the new instance created in the new table. However, I have not found a method to get a handle on the symbol instance(s) in the table cell. Any pointers would be appreciated.
In Reply to Mark Bohannon:
I am working on a program toreplace the drawingformat. As part of this program, I copy data from the old format tables to the new one. I have this working for simple text. However if there is a symbol in the cell, the user is prompted to enter the variable text. I am looking for a method to capture the detailed instructions for the original symbol and apply to the new instance created in the new table. However, I have not found a method to get a handle on the symbol instance(s) in the table cell. Any pointers would be appreciated.
I know I can query all detail items and cast them to the DetailSymbolInstItem however I do not know how to find ones from table cells andhow toknow which table cell they are associated with.
1. Call DetailItemOwner.ListDetailItems(DetailType.DETAIL_SYM_INSTANCE)
and get all the symbol instances that are present in the drawing.
2. Type cast each DetailItem in the list to DetailSymbolInstItem and
call GetInstructions() to get the DetailSymbolInstInstructions.
How do I know which ones came from tables and where they are?
Thanks,
Mark Bohannon