Check if flat pattern feature is suppressed
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user