Hi all,
I'm looking for an API function that would allow me to change the active (or default?) row in the table of an iPartFactory model. I was hoping that such a function would be member or property of the iPartFactory object, but I’m not finding that to be the case. I can’t find any documentation on this - can you please point me in the right direction? Thanks!
use .defaultrow to change active row.
I use it to create dxf for all sheetmetal parts
'Select row & create dxf of each
Dim oRow As iPartTableRow
For Each oRow In oFactory.TableRows
'Set row as Default row
oFactory.DefaultRow = oRow
Thank you for the reply. Unfortunately I'm not very familiar with VB - my program is in C/C++. Do you know how I can obtain a particular row from the table in C/C++? Thanks again!
I was looking for a little more detail, especially for how this is done in C/C++, but I was able to get help elsewhere. The solution (that worked for me) was to specify the row that I want to make default via the get_Item member of the iPartTableRows object, and then use the put_Default member of the iPartFactory object. Thanks again for your help!
Can't find what you're looking for? Ask the community or share your knowledge.