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