Does anyone knows if it is possible to add the selectionbox for the sheetmetal rule on an ilogic Form ?
Or if not possible, maybe some kinda workaround?
thanks
Joris
Solved! Go to Solution.
Solved by rjay75. Go to Solution.
Maybe tabs, i do have my rules dwg ipt and iam rules on different tabs. Working great. Just my 2 cents
If the file is a Sheet Metal file this will fill a Text parameter with the sheetmetal styles. That parameter can then be added to a an iLogic form.
Dim smStyleList As New ArrayList For Each smStyle As SheetMetalStyle In ThisDoc.Document.ComponentDefinition.SheetMetalStyles smStyleList.Add(smStyle.Name) Next smStyle MultiValue.List("paramName") = smStyleList
Thanks Rjay for this snippet, it works, and I have a slectable list on my form. Unfortunatly it goes only one way, the part doesn't change when selecting a new SheetStyle. That was actualy my aim. Maybe should have put my question a bit more precise :-).
To go the other way create another rule with this
SheetMetal.SetActiveStyle(paramName)
When the parameter is update it should set the style.
Hmm. I have gotten to work with two rules. The first rule looks like this.
Dim smStyleList As New ArrayList For Each smStyle As SheetMetalStyle In ThisDoc.Document.ComponentDefinition.SheetMetalStyles smStyleList.Add(smStyle.Name) Next smStyle MultiValue.List("SheetMetalType") = smStyleList
The second rule looks like this.
SheetMetal.SetActiveStyle(SheetMetalType)
Each of these are regular rules.
I tested this on Inventor 2014. What version of Inventor are you running?
One thing to note is in the document I tested this it initially appeared not to work but it was because in the sheet metal defaults I didn't have Use Thickness From Rule checked,
Hi all
I want to know if any of you had the experience of an smart form, for example consider a form with woth some parametes, as you can see in the attached picture, my first field, is a drop down menue showing the location of a nozzle, which might be located on top, shell or bottom of a tank, I want to be able to gray out some fields when I choose for example top situation, so, the grayed fields are not accessible and the user cannot write anything in those fields.
Thanks