May 7, 2015 #1 EngProgrammer Aerospace Joined Jan 14, 2015 Messages 150 Location US Does anyone have any code snippets for the automation of tables on a drawing sheet? I haven't done any tables inside drafting and was wondering if anyone has any ideas. Thanks
Does anyone have any code snippets for the automation of tables on a drawing sheet? I haven't done any tables inside drafting and was wondering if anyone has any ideas. Thanks
May 8, 2015 #2 MikeHyde Automotive Joined Aug 18, 2013 Messages 91 Location GB You need to collect a load of tags to get anywhere with tables. First you need to get the tag of the table:- Code: ufs.Tabnot.AskTabularNoteOfSection(titleBlock1.Tag, tabular_note)] Then you need to get the tags of the column and row you are interested in:- Code: ufs.Tabnot.AskNthRow(tabular_note, 0, row0)] ufs.Tabnot.AskNthColumn(tabular_note, 6, col6) Then you can get the tag of the cell:- Code: ufs.Tabnot.AskCellAtRowCol(row0, col6, sizeCell)] Now you can get the contents of the cell:- Code: ufs.Tabnot.AskCellText(sizeCell, sizetext)] Set the contents using SetCellText. Mike Hyde http://www.astonmartin.comNX8.5 with TC9.1 Upvote 0 Downvote
You need to collect a load of tags to get anywhere with tables. First you need to get the tag of the table:- Code: ufs.Tabnot.AskTabularNoteOfSection(titleBlock1.Tag, tabular_note)] Then you need to get the tags of the column and row you are interested in:- Code: ufs.Tabnot.AskNthRow(tabular_note, 0, row0)] ufs.Tabnot.AskNthColumn(tabular_note, 6, col6) Then you can get the tag of the cell:- Code: ufs.Tabnot.AskCellAtRowCol(row0, col6, sizeCell)] Now you can get the contents of the cell:- Code: ufs.Tabnot.AskCellText(sizeCell, sizetext)] Set the contents using SetCellText. Mike Hyde http://www.astonmartin.comNX8.5 with TC9.1