Message 1 of 4
TableCommandInput .getPosition() method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, I have a table that has 1 column and 3 rows. On the 3rd row there is a commandInput whose ID is 'Text3'. I got stuck in creating a def that returns me the position of that ID.
def Show_ro(tbl: adsk.core.TableCommandInput):
input_List=adsk.core.CommandInputs.cast(tbl.commandInputs)
input_ID='Text3'
cmd_input=?#STUCKED HERE
row_number=tbl.getPosition(cmd_input)
return row_number
I need some advice on how to define a cmd_input variable as a commandInput using its ID so that it can go to get its position using the .getPosition() method.
Thank you so much for any advice I've been trying this all night and it's driving me crazy that I can't figure out how