Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

Ilogic suppression with multivalue went wrong

Anonymous

Ilogic suppression with multivalue went wrong

Anonymous
Not applicable

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


 
 

ilogic suppress issue.png

 

0 Likes
Reply
Accepted solutions (1)
316 Views
1 Reply
Reply (1)

Sergio.D.Suárez
Mentor
Mentor
Accepted solution

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

0 Likes