10-23-2021
01:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-23-2021
01:12 PM
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.
Blog: hjalte.nl - github.com