Compare commits
3 Commits
979067db21
...
2e6ecd11a1
| Author | SHA1 | Date | |
|---|---|---|---|
| 2e6ecd11a1 | |||
| db481baa89 | |||
| 636818ed33 |
Submodule EtchBendLines updated: f664bd79a4...04031a7677
@@ -9,7 +9,7 @@
|
|||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>ExportDXF</RootNamespace>
|
<RootNamespace>ExportDXF</RootNamespace>
|
||||||
<AssemblyName>ExportDXF</AssemblyName>
|
<AssemblyName>ExportDXF</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||||
<TargetFrameworkProfile />
|
<TargetFrameworkProfile />
|
||||||
|
|||||||
@@ -530,6 +530,8 @@ namespace ExportDXF.Forms
|
|||||||
if (templateDrawing == null)
|
if (templateDrawing == null)
|
||||||
templateDrawing = CreateDrawing();
|
templateDrawing = CreateDrawing();
|
||||||
|
|
||||||
|
Helper.UncheckFlatPatternCornerTreatment(partModel);
|
||||||
|
|
||||||
var sheet = templateDrawing.IGetCurrentSheet();
|
var sheet = templateDrawing.IGetCurrentSheet();
|
||||||
var modelName = Path.GetFileNameWithoutExtension(partModel.GetPathName());
|
var modelName = Path.GetFileNameWithoutExtension(partModel.GetPathName());
|
||||||
sheet.SetName(modelName);
|
sheet.SetName(modelName);
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
namespace ExportDXF
|
using SolidWorks.Interop.sldworks;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
namespace ExportDXF
|
||||||
{
|
{
|
||||||
public static class Helper
|
public static class Helper
|
||||||
{
|
{
|
||||||
@@ -17,5 +20,16 @@
|
|||||||
default: return i.ToString() + "th";
|
default: return i.ToString() + "th";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void UncheckFlatPatternCornerTreatment(ModelDoc2 model)
|
||||||
|
{
|
||||||
|
var flatPattern = model.GetFeatureByTypeName("FlatPattern");
|
||||||
|
var flatPatternFeatureData = flatPattern.GetDefinition() as FlatPatternFeatureData;
|
||||||
|
|
||||||
|
flatPatternFeatureData.CornerTreatment = false;
|
||||||
|
flatPatternFeatureData.SimplifyBends = false;
|
||||||
|
|
||||||
|
var ret = flatPattern.ModifyDefinition(flatPatternFeatureData, model, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
2
ExportDXF/Properties/Resources.Designer.cs
generated
2
ExportDXF/Properties/Resources.Designer.cs
generated
@@ -19,7 +19,7 @@ namespace ExportDXF.Properties {
|
|||||||
// class via a tool like ResGen or Visual Studio.
|
// class via a tool like ResGen or Visual Studio.
|
||||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||||
// with the /str option, or rebuild your VS project.
|
// with the /str option, or rebuild your VS project.
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
internal class Resources {
|
internal class Resources {
|
||||||
|
|||||||
2
ExportDXF/Properties/Settings.Designer.cs
generated
2
ExportDXF/Properties/Settings.Designer.cs
generated
@@ -12,7 +12,7 @@ namespace ExportDXF.Properties {
|
|||||||
|
|
||||||
|
|
||||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.4.0.0")]
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.5.0.0")]
|
||||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||||
|
|
||||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup>
|
<startup>
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
|
||||||
</startup>
|
</startup>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="MaxBendRadius" value="2.0"/>
|
<add key="MaxBendRadius" value="2.0"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user