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

Supress Features Issue

Hi All

 

I am having issues with the following code. The issue is, when the height is less than the width the code works as intended, but when the height is greater than the width the "Feature.IsActive("LeftBottomFace") = False" & "Feature.IsActive("RightBottomFace") = False" rules are being ignored. Any ideas as to why this is happening would be greatly appreciated. 

 

Parameter("TopCut") = Parameter("UnderlapCut")
Parameter("TopFlange") = Parameter("UnderlapFlange")
Parameter("TopHoleSize") = 10

Parameter("BottomCut") = Parameter("OverlapCut")
Parameter("BottomFlange") = Parameter("OverlapFlange")
Parameter("BottomHoleSize") = 8

Parameter("LeftCut") = Parameter("UnderlapCut")
Parameter("LeftFlange") = Parameter("UnderlapFlange")
Parameter("LeftHoleSize") = 8

Parameter("RightCut") = Parameter("UnderlapCut")
Parameter("RightFlange") = Parameter("UnderlapFlange")
Parameter("RightHoleSize") = 10	

Feature.IsActive("LeftTopFace") = True
Parameter("LTHoleSize") = 8

Feature.IsActive("LeftBottomFace") = False

Feature.IsActive("RightTopFace") = True
Parameter("RTHoleSize") = 10

Feature.IsActive("RightBottomFace") = False

Feature.IsActive("TempFixR") = True
Feature.IsActive("TempFixL") = False
iProperties.Value("Custom", "Type") = "RECESSED FIX"
iProperties.Value("Custom", "Joint") = "INTER STARTER"
iProperties.Value("Custom", "Lay") = "L TO R"

InventorVb.DocumentUpdate()