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

iLogic Rule - Convert part type from above assembly

Hi,

 

I'd like a part type (sheet metal vs standard part) to be driven from a parameter in the part. However, I want to be able to fire the rule from an assembly and not in the part. The below works fine if the rule is run within the part but when fired from an above assembly it errors.

 

I kind of know why but can't seem to find the answer.  Can anyone help please?

 

If SEAL_CUSTOM_EXTENTS = "REQUIRED" Then 
iProperties.Value("Project", "Part Number") = "N/A"
iProperties.Value("Summary", "Keywords") = "RTSM"
ThisApplication.ActiveDocument.SubType = "{4D29B490-49B2-11D0-93C3-7E0706000000}"
Else
iProperties.Value("Summary", "Keywords") = "N/A"
ThisApplication.ActiveDocument.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}"
End If