Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am adding some constraints with iLogic. However, what I do not understand is:
a) This does not work:
Constraints.AddInsert("Part Insert:" & 1, "Part:" & number_1, "Connection_A", "Part:" & number_2, "Connection_A", axesOpposed := True)
The problem here is, I think, that I am using the string "Part:" and concatenating it with an integer ( & number_1) inside the method "AddInsert" when defining the component As ComponentArgument.
I can use though:
"Part:1", "Connection_A"
b) This work as well:
Dim oPart1 = "Part:" & 1
Dim oPart3 = "Part:" & 3
Constraints.AddInsert("Part Insert:" & 1, "oPart1, "Connection_A", oPart3,"Connection_B", axesOpposed := True)
Does anybody know why is first way wrong? What hinders this way of running method?
Tom
Solved! Go to Solution.