Check if flat pattern feature is suppressed

This commit is contained in:
AJ
2020-10-15 11:23:12 -04:00
parent 344df45b34
commit 4fbcf9f4e1
2 changed files with 9 additions and 2 deletions

View File

@@ -25,7 +25,7 @@
<MapFileExtensions>true</MapFileExtensions>
<PublisherName>Rogers Engineering</PublisherName>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.2.1.%2a</ApplicationVersion>
<ApplicationVersion>1.2.2.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>

View File

@@ -527,11 +527,18 @@ namespace ExportDXF.Forms
model.ShowConfiguration(refConfig);
var flatPattern = model.GetFeatureByTypeName("FlatPattern");
if (flatPattern.IsSuppressed())
{
return true;
}
var bends = flatPattern.GetAllSubFeaturesByTypeName("UiBend");
foreach (var bend in bends)
{
if (bend.IsSuppressed())
var isSuppressed = bend.IsSuppressed();
if (isSuppressed)
return true;
}