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> <MapFileExtensions>true</MapFileExtensions>
<PublisherName>Rogers Engineering</PublisherName> <PublisherName>Rogers Engineering</PublisherName>
<ApplicationRevision>0</ApplicationRevision> <ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.2.1.%2a</ApplicationVersion> <ApplicationVersion>1.2.2.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust> <UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted> <PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled> <BootstrapperEnabled>true</BootstrapperEnabled>

View File

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