iLogic Dimensions pulldown selection list + variable input

iLogic Dimensions pulldown selection list + variable input

frank5838S
Contributor Contributor
428 Views
10 Replies
Message 1 of 11

iLogic Dimensions pulldown selection list + variable input

frank5838S
Contributor
Contributor

Hi,

 

I'm working on an iLogic (standard) Part of a weather louvre.

I can adjust the width and height with iLogic Form and it changes the  pattern (qty) of the blades.

 

Now I'd like to add some other dimension criteria as well but I'm struggling how to do so.

 

- Adding manufacturer standard selection of widths and standard heights.

  W= 200, 400, 600, 800, 1000, steps up to 2400mm.

  H=165, 330, 495, 660, 825, steps up to 2310 etc.

 

- Besides these standard dimension, any other dimensions (in between) can be ordered as well so manual input needs to be an option as well.

 

- Limit size selection as per supplier information (restrict height and width combinations due to max 4m²). For example W=1800 has a maximum H= 2145)

frank5838S_1-1745321023891.pngfrank5838S_2-1745321097887.png

 

Any help will be much appreciated.

Hopefully with some helping steps I can create more parts on my own.

0 Likes
Accepted solutions (1)
429 Views
10 Replies
Replies (10)
Message 2 of 11

frank5838S
Contributor
Contributor

I managed to achieve most of it with the use of ChatGPT,

I added Multi-Value Parameters and created the iLogic Form and now I can select certain sizes + added a "Custom" dimension as well.

 

This part is a standard part . IPT  and I'd like to change materials but I'm having problems with updating the actual material of the part.

Made a Multi-Value parameter with 2 materials (SV and AlMg3) in the part.

Added this to the iLogic Form as well.

Materials are present in my own Material database.

Tried multiple iLogic rules link the selected option to the correct material but can't get the rule to work to change the material.

 

frank5838S_0-1745330423721.png

 

0 Likes
Message 3 of 11

jwingateRJECD
Enthusiast
Enthusiast

So when you click done in your form it is running the rules that you say you were using to try and change the material? The line you need in that rule should just be

 

iProperties.Material = Parameter("Material")

 

Replacing the Parameter("Material") with the actual name of your material parameter.  

0 Likes
Message 4 of 11

frank5838S
Contributor
Contributor

I think I have that but the material of the part doesn't change.

In the Part iProperties I can change the material manually.

Materials are present in my personal material library.

 

' ******* Materiaalkeuze *******
' Get the value of the MaterialType parameter

Dim matType As String
matType = Parameter("Rooster_Materiaal")

' Set material based on parameter
If matType = "SV" Then
    ' Ensure this matches exactly what’s in your material library
    iProperties.Material = "SV"

ElseIf matType = "AlMg3" Then
    iProperties.Material = "AlMg3"

Else
    MessageBox.Show("Unknown material type: " & matType, "Material Error")
End If

    Return
End If

 

0 Likes
Message 5 of 11

jwingateRJECD
Enthusiast
Enthusiast

After you run your form, even though the material doesn't update, does the multi value parameter update if you go to the parameters after? Can you also share a snip of your form editor?

0 Likes
Message 6 of 11

frank5838S
Contributor
Contributor

Yes, the multi-value parameter changes to the new material.

In the iProperties of the part the material doesn't change and above the ribbon the material and appearance don't change either.

 

frank5838S_0-1745414162368.png

frank5838S_1-1745414316487.png

 

 

0 Likes
Message 7 of 11

jwingateRJECD
Enthusiast
Enthusiast

It looks like you're using the predefined 'done' button. You'll want to disable that, and instead drag the rule you posted earlier into the bottom of your form set the on click action to 'Apply and then Close and the Run Rule', so that when you click it it saves the values in the form and then runs the rule using those values. 

 

jwingateRJECD_0-1745415036660.png

 

0 Likes
Message 8 of 11

frank5838S
Contributor
Contributor

Disabled the Done button and dragged the rule into the Form and changed the behaviour.

Multi-Value parameter is changing but still not the actual material and appearance of the part.

 

 

frank5838S_0-1745415968741.png

 

0 Likes
Message 9 of 11

jwingateRJECD
Enthusiast
Enthusiast

I'm stumped then, from everything you've shared this should be working. Hopefully someone else will be able to pop in with something that I'm not seeing. 

0 Likes
Message 10 of 11

J-Camper
Advisor
Advisor

@frank5838S,

I'm not sure how much your part had changed from the first post, but i downloaded and got the rule & form working for me [see attached].

 

One of the issues i ran into was that the part shared did not have the "AlMg3" Material, so I had to add another local material to the multivalue parameter to test.  I also changed the way I'm setting the material, by first ensuring i have a local asset then setting it as the ActiveMaterial Property of the part document.

Let me know if you have any questions, or if the part is not working as intended.

 

0 Likes
Message 11 of 11

frank5838S
Contributor
Contributor
Accepted solution

I changed the part a lot since then but that had little effect on the iLogic side of it so I managed to use your code.

Thank you, now it is working.

0 Likes