Changing start cell with ilogic

Changing start cell with ilogic

Anonymous
Not applicable
508 Views
4 Replies
Message 1 of 5

Changing start cell with ilogic

Anonymous
Not applicable

Hello is it possible to use ilogic to change the "start cell" of a Excel parameters link?  If so can you help me out?

start cell.JPG

0 Likes
Accepted solutions (1)
509 Views
4 Replies
Replies (4)
Message 2 of 5

JamieVJohnson2
Collaborator
Collaborator

Excel based parameters are in an object called ParameterTables.  If you access the parent object of the known parameter it gives you the ParameterTable object, or you can get to it from Parameters.ParameterTables(indexvalue)

once you have the ParameterTable, use .StartCell and set to what you want.

 

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes
Message 3 of 5

Anonymous
Not applicable

Thank you. I am still learning; can you tell me if I am getting close?

Dim oPartDoc As Inventor.PartDocument
oPartDoc = ThisApplication.ActiveDocument
Dim oParams As Parameters
oParams = oPartDoc.ComponentDefinition.Parameters
oParameterTable = oParams.ParameterTables
oParameterTables=oParameterTables.ParameterTables
oStartCell=oParameterTables.StartCell()As String = ("A1")

  

0 Likes
Message 4 of 5

JamieVJohnson2
Collaborator
Collaborator
Accepted solution

Dim oPartDoc As Inventor.PartDocument
oPartDoc = ThisApplication.ActiveDocument
Dim oParams As Parameters
oParams = oPartDoc.ComponentDefinition.Parameters
oParameterTable = oParams.ParameterTables(1)
'oParameterTables=oParameterTables.ParameterTables
oParameterTable.StartCell = ("A1")

 

 

change as so.

 

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes
Message 5 of 5

Anonymous
Not applicable

Thank you Sir!