Community
I have a small snippet of iLogic, however, I am getting an error on line 4 with the two parameters after the "=" about them not being a string... not sure how to fix it
If FcType = "FLAT FACE" Then Parameter("d0") = "Base_O" Parameter("d4") = "Base_T" - "Face_Off" Else If FcType = "RAISED FACE" Then Parameter("d0") = "Base_R" Parameter("d4") = "Base_T" End If iLogicVb.UpdateWhenDone = True InventorVb.DocumentUpdate()
Hi @chris
Assuming that Base_T is a variable defined in your code you can just remove the quotes enclosing the name.
If FcType = "FLAT FACE" Then Parameter("d0") = Base_O Parameter("d4") = Base_T - Face_Off Else If FcType = "RAISED FACE" Then Parameter("d0") = Base_R Parameter("d4") = Base_T End If iLogicVb.UpdateWhenDone = True InventorVb.DocumentUpdate()
oh... lol... figured I'd miss something so simple, Thank you, I have no idea why I had quotes around any of those... where is the "hit myself in the forehead" emoji
Can't find what you're looking for? Ask the community or share your knowledge.