IPART CHANGE ROW

IPART CHANGE ROW

dcmorgan
Advocate Advocate
1,256 Views
2 Replies
Message 1 of 3

IPART CHANGE ROW

dcmorgan
Advocate
Advocate

Can Somebody please help me with my code. I am trying to switch component rows within my assembly file but can't seem to do so. All of the files are generated, yet and still I am not able to change component rows based on user parameters. Please help. Files are attached.

My code is as follow in Ilogic

 

MultiValue.Setlist("Material", "1", "2")

If Material = "2"

iPart.ChangeRow("RING", "RING-03:1")

End If

0 Likes
1,257 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

Inventor version?

0 Likes
Message 3 of 3

xiaoyan.qi
Alumni
Alumni

Hi

 

 I tried to open your attached assembly files, there are unresolve files. so i created a simple assmbly, see attached for details(you need to open the iPart file and generate the files firstly)

 

in your case, we should use the iLogic Statement ChangeRow (use parent filename): iPart.ChangeRow("iParentFileName:1", "rowName")

 for your statement : iPart.ChangeRow("RING", "RING-03:1")

"RING" should be "RING:1", it stands for the iPart file

"RING-03:1" should be "RING-03", it stands for the row name of the iPart

 

let me know if it works

Thanks

Mick

0 Likes