- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Please note: I'm new to iLogic but have some previous experience of coding (PHP & JS, mainly), but wouldn't call myself a programmer of any sort. đ
I have this rather simple script that does what it's supposed to, but there's this annoying behavior that I don't understand how to get rid of.
It's an assembly where you can choose between some values (defined in Parameters "PapersizePosition") to change the constraint between two components. It's a rule which I have also added to a modal form. In the form the options are radio buttons, which is perfect for this, but before the actual change is done, another modal/popup shows requiring me to re-do the same thing I just did.
If the rule is run by itself only the second modal is opened. Is that where the issue is?
Can I somehow keep 2 but get rid of 3 in this screen-shot?
The code:
PaperSelect = InputListBox("VĂ€lj pappersstorlek",
MultiValue.List("PapersizePosition"), _
PapersizePosition,
Title := "Pappersstorlek",
ListName := "TillgÀngliga storlekar"
)
If PaperSelect = "" Then
ActiveWP = "WP Constrain " & PapersizePosition
Else
ActiveWP = "WP Constrain " & PaperSelect
End If
Constraints.AddMate("MatePapersizePosition:1",
"MÄttpinne:1", ActiveWP,
"MÄttspÀrr:1", "WP Constrain Block",
offset := 0.0, e1InferredType := InferredTypeEnum.kNoInference,
e2InferredType := InferredTypeEnum.kNoInference,
solutionType := MateConstraintSolutionTypeEnum.kNoSolutionType,
biasPoint1 := Nothing, biasPoint2 := Nothing)
See my CAD creations on Instagram
Solved! Go to Solution.