Compare commits

...

3 Commits

Author SHA1 Message Date
AJ
2e6ecd11a1 Uncheck flat pattern corner treatment 2023-03-01 08:07:06 -05:00
AJ
db481baa89 Changed target framework to version 4.8 2023-03-01 08:06:34 -05:00
AJ
636818ed33 Submodule EtchBendLines updated
Submodule EtchBendLines:
    > 04031a7 - Changed target framework to version 4.8
    > 3e4ab60 - Allow multiple paths passed through args
    > 2b30498 - Wrap main in try catch
2023-03-01 08:05:48 -05:00
7 changed files with 22 additions and 6 deletions

View File

@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ExportDXF</RootNamespace>
<AssemblyName>ExportDXF</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<IsWebBootstrapper>false</IsWebBootstrapper>
<TargetFrameworkProfile />

View File

@@ -530,6 +530,8 @@ namespace ExportDXF.Forms
if (templateDrawing == null)
templateDrawing = CreateDrawing();
Helper.UncheckFlatPatternCornerTreatment(partModel);
var sheet = templateDrawing.IGetCurrentSheet();
var modelName = Path.GetFileNameWithoutExtension(partModel.GetPathName());
sheet.SetName(modelName);

View File

@@ -1,4 +1,7 @@
namespace ExportDXF
using SolidWorks.Interop.sldworks;
using System.Diagnostics;
namespace ExportDXF
{
public static class Helper
{
@@ -17,5 +20,16 @@
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);
}
}
}

View File

@@ -19,7 +19,7 @@ namespace ExportDXF.Properties {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// 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.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {

View File

@@ -12,7 +12,7 @@ namespace ExportDXF.Properties {
[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 {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2"/>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/>
</startup>
<appSettings>
<add key="MaxBendRadius" value="2.0"/>