Anonymous
316 Views, 1 Reply
09-26-2019
06:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-26-2019
06:37 PM
I would like to suppress one of the bend feature of the part with multiselection. For example, Type A the bend will suppress; the bend feature active when Type B. However, my codes do not go well as since the bend is suppressed, the bend do not back to active status when Type A is selected.
MultiValue.SetList ("Type", "A", "B") ' ***Type B*** Feature.IsActive("Type B") = False Select Case Type Case A Feature.IsActive("Type B") = False Case B Feature.IsActive("Type B") = True End Select iLogicVb.UpdateWhenDone = True Parameter.UpdateAfterChange = True
Solved! Go to Solution.
09-27-2019
02:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-27-2019
02:14 AM
Hi, try the following ilogic rule. I attach a sample file
In this rule I show you another more secure access to the parameter.
Dim doc As PartDocument= ThisDoc.Document Dim oCD As ComponentDefinition = doc.ComponentDefinition Dim oType As String = oCD.parameters("Type").value If oType = "A" Then Feature.IsActive("Type B") = False If oType = "B" Then Feature.IsActive("Type B") = True iLogicVb.UpdateWhenDone = True Parameter.UpdateAfterChange = True
I hope this helps with your problem. Regards
Please accept as solution and give likes if applicable.
I am attaching my Upwork profile for specific queries.
Sergio Daniel Suarez
Mechanical Designer
| Upwork Profile | LinkedIn