I downloaded a model off a website, it is, (excuse my electrical background ignorance) a jumper for terminal blocks.
Our electricians use these and cut them down to size as needed.
Is there a way to use iLogic and a form or message box, to prompt upon opening the part as to how many jumpers are needed for the current assembly?
It comes stock with 10, but they sometimes only use 2, 3 4 etc. etc..
I didn't model the part, but I can if it will make the rule easier to write.
My idea I suppose was to have the part modeled with 2 jumpers and then use ilogic to create more if necessary.
I am looking for snippets or previous ilogic to use as a reference as ilogic is still new to me.
Thanks
Thanks!
Solved! Go to Solution.
Solved by jdkriek. Go to Solution.
Very simple in your case (see attached part).
1. Create a parameter called QTY with UL type, enter 1 for it's value
2. Change all pattern quantities to the parameter QTY
3. Create a rule with this code:
QTY = InputBox("Enter QTY", "QTY", QTY) RuleParametersOutput() iLogicVb.UpdateWhenDone = True
4. Run the rule!
Additional: You could set it's event trigger for "New Document" and save as template 😉
Hope this helps!
The only thing missing at that point is the orginal Extrusion1 for the back plate.
You can add a simple formula to it driven by the new QTY parameter (see attached part)
(Driven off the center of the first hole to the end line)
Length = 6.1 mm * QTY - 3.6 mm
I knew it wasn't going to be that tough of a rule, but WOW, haha
3 short lines, I set up a trigger and it works perfect!
Thanks,
I was thinking about this last night though, and I am not sure exactly how this is going to work now with assemblies and qty's for parts lists.
Example, on a control board we used 3 sets of two jumpers and 4 sets of six jumpers.
So 7 total parts, but 2 different sizes. Is there a way to differentiate the 2 different sets in a part lists? (even though they will share a part number?)
I am going to make a test assembly and see what results I get.
EDIT:
I figured this would happen, I can only use one size in the assembly. If I place 2 sets of six jumpers and try an add a eight jumper part, they all change to 8.
I think simplist solution is to create a part number for each size, 2,3,4,5, jumpers etc etc..
Thanks for the iLogic help though!!