iAssembly and iParts in iLogic

iAssembly and iParts in iLogic

atomic.lex
Enthusiast Enthusiast
591 Views
1 Reply
Message 1 of 2

iAssembly and iParts in iLogic

atomic.lex
Enthusiast
Enthusiast

Hello here,

 

i want to Change a value in iAssembly table  (user Parameter), but i cann't find a comand for it.

 

All that I have is:

 

iPart.ChangeRow("iComponentName:1", "RowMemberName")
i = iPart.FindRow("iComponentName:1", "columnName", "<=", 0.2, "columnName", "<=", 4.1)

 

but i don't need a to Change a iPart in "iComponentName:1", but in the assembly itself...

 

Any ideas????

 

Best regards,

 

Alex

 

0 Likes
Accepted solutions (1)
592 Views
1 Reply
Reply (1)
Message 2 of 2

clutsa
Collaborator
Collaborator
Accepted solution
doc = ThisDoc.Document
compDef = doc.ComponentDefinition
factory = compDef.iAssemblyFactory
table = factory.TableRows 'or factory.TableColumns if that works better
tableRow = table.Item(1) 'row 1
tableCell = tableRow.Item(2) 'column 2
MessageBox.Show(tableCell.Value, "Title")
tableCell.Value = "Your Data Here"
tableCell = tableRow.Item(2) 'You shouldn't need this line but _ 
'I got an error if I just tried to display the cell right after _
'I changed the cell... it changed just didn't want to display message
MessageBox.Show(tableCell.Value, "Title")
If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State

Custom Glyph Icon for iMates