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

If something is not loaded because LOD then usually that means that the occurrence is suppressed in the LOD. You can easily check this.

if (compOccurrence.Suppressed)
{
    throw new Exception($"{compOccurrence._DisplayName} is suppressed!");
}
Document doc = (Document)compOccurrence.Definition.Document;
PropertySet customPropSet = doc.PropertySets["nventor User Defined Properties"];
            
try
{
    Property iProperty = customPropSet["V_01_PART_TYPE"];
    string value = iProperty.Value.ToString();
    if (string.IsNullOrEmpty(value) return false;
    if (!value.Equals("SINGLE_DETAIL", StringComparison.InvariantCultureIgnoreCase) return false;
    return true;
    }
catch (Exception)
{
    return false;
}

 

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com