Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drafting Tables Automation

Status
Not open for further replies.

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
 
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
NX8.5 with TC9.1
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top