Cleanup
This commit is contained in:
@@ -1,14 +1,14 @@
|
|||||||
namespace ExportDXF
|
namespace ExportDXF
|
||||||
{
|
{
|
||||||
class Bend
|
internal class Bend
|
||||||
{
|
{
|
||||||
public BendDirection Direction { get; set; }
|
public BendDirection Direction { get; set; }
|
||||||
|
|
||||||
public double ParallelBendAngle { get; set; }
|
public double ParallelBendAngle { get; set; }
|
||||||
|
|
||||||
public double Angle { get; set; }
|
public double Angle { get; set; }
|
||||||
|
|
||||||
public double X { get; set; }
|
public double X { get; set; }
|
||||||
public double Y { get; set; }
|
public double Y { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
namespace ExportDXF
|
namespace ExportDXF
|
||||||
{
|
{
|
||||||
enum BendDirection
|
internal enum BendDirection
|
||||||
{
|
{
|
||||||
Up,
|
Up,
|
||||||
Down
|
Down
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
namespace ExportDXF
|
namespace ExportDXF
|
||||||
{
|
{
|
||||||
enum BendOrientation
|
internal enum BendOrientation
|
||||||
{
|
{
|
||||||
Vertical,
|
Vertical,
|
||||||
Horizontal,
|
Horizontal,
|
||||||
Unknown
|
Unknown
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,30 +1,30 @@
|
|||||||
namespace ExportDXF
|
namespace ExportDXF
|
||||||
{
|
{
|
||||||
class Bounds
|
internal class Bounds
|
||||||
{
|
{
|
||||||
public double X { get; set; }
|
public double X { get; set; }
|
||||||
public double Y { get; set; }
|
public double Y { get; set; }
|
||||||
public double Width { get; set; }
|
public double Width { get; set; }
|
||||||
public double Height { get; set; }
|
public double Height { get; set; }
|
||||||
|
|
||||||
public double Left
|
public double Left
|
||||||
{
|
{
|
||||||
get { return X; }
|
get { return X; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public double Right
|
public double Right
|
||||||
{
|
{
|
||||||
get { return X + Width; }
|
get { return X + Width; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public double Bottom
|
public double Bottom
|
||||||
{
|
{
|
||||||
get { return Y; }
|
get { return Y; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public double Top
|
public double Top
|
||||||
{
|
{
|
||||||
get { return Y + Height; }
|
get { return Y + Height; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -46,4 +46,4 @@ namespace ExportDXF
|
|||||||
return dwg;
|
return dwg;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,4 @@
|
|||||||
using OfficeOpenXml;
|
using SolidWorks.Interop.sldworks;
|
||||||
using SolidWorks.Interop.sldworks;
|
|
||||||
using SolidWorks.Interop.swconst;
|
using SolidWorks.Interop.swconst;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
@@ -97,7 +96,6 @@ namespace ExportDXF.Forms
|
|||||||
|
|
||||||
private void button2_Click(object sender, EventArgs e)
|
private void button2_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Worker_DoWork(object sender, DoWorkEventArgs e)
|
private void Worker_DoWork(object sender, DoWorkEventArgs e)
|
||||||
@@ -437,7 +435,7 @@ namespace ExportDXF.Forms
|
|||||||
|
|
||||||
var drawingModel = templateDrawing as ModelDoc2;
|
var drawingModel = templateDrawing as ModelDoc2;
|
||||||
drawingModel.ViewZoomtofit2();
|
drawingModel.ViewZoomtofit2();
|
||||||
|
|
||||||
if (HideModelSketches(view))
|
if (HideModelSketches(view))
|
||||||
{
|
{
|
||||||
// delete the current view that has sketches shown
|
// delete the current view that has sketches shown
|
||||||
@@ -674,8 +672,6 @@ namespace ExportDXF.Forms
|
|||||||
.Cast<Component2>()
|
.Cast<Component2>()
|
||||||
.Where(c => !c.IsHidden(true));
|
.Where(c => !c.IsHidden(true));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var componentGroups = assemblyComponents
|
var componentGroups = assemblyComponents
|
||||||
.GroupBy(c => c.GetTitle() + c.ReferencedConfiguration);
|
.GroupBy(c => c.GetTitle() + c.ReferencedConfiguration);
|
||||||
|
|
||||||
@@ -730,4 +726,4 @@ namespace ExportDXF.Forms
|
|||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public IViewFlipDecider ViewFlipDecider { get; set; }
|
public IViewFlipDecider ViewFlipDecider { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -228,4 +228,4 @@ namespace ExportDXF
|
|||||||
return Math.Round(d / ScaleFactor, 8);
|
return Math.Round(d / ScaleFactor, 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -75,4 +75,4 @@ namespace ExportDXF
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -24,4 +24,4 @@ namespace ExportDXF
|
|||||||
|
|
||||||
public Component2 Component { get; set; }
|
public Component2 Component { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,24 +1,19 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace ExportDXF
|
namespace ExportDXF
|
||||||
{
|
{
|
||||||
static class Program
|
internal static class Program
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The main entry point for the application.
|
/// The main entry point for the application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[STAThread]
|
[STAThread]
|
||||||
static void Main()
|
private static void Main()
|
||||||
{
|
{
|
||||||
Application.EnableVisualStyles();
|
Application.EnableVisualStyles();
|
||||||
Application.SetCompatibleTextRenderingDefault(false);
|
Application.SetCompatibleTextRenderingDefault(false);
|
||||||
Application.Run(new Forms.MainForm());
|
Application.Run(new Forms.MainForm());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Runtime.CompilerServices;
|
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
// General Information about an assembly is controlled through the following
|
// General Information about an assembly is controlled through the following
|
||||||
// set of attributes. Change these attribute values to modify the information
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("ExportDXF")]
|
[assembly: AssemblyTitle("ExportDXF")]
|
||||||
@@ -14,8 +13,8 @@ using System.Runtime.InteropServices;
|
|||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// Setting ComVisible to false makes the types in this assembly not visible
|
||||||
// to COM components. If you need to access a type in this assembly from
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
@@ -25,12 +24,12 @@ using System.Runtime.InteropServices;
|
|||||||
// Version information for an assembly consists of the following four values:
|
// Version information for an assembly consists of the following four values:
|
||||||
//
|
//
|
||||||
// Major Version
|
// Major Version
|
||||||
// Minor Version
|
// Minor Version
|
||||||
// Build Number
|
// Build Number
|
||||||
// Revision
|
// Revision
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.0.0.0")]
|
[assembly: AssemblyVersion("1.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||||
@@ -270,4 +270,4 @@ namespace ExportDXF
|
|||||||
return Math.Round(angleInRadians * 180.0 / Math.PI, 8);
|
return Math.Round(angleInRadians * 180.0 / Math.PI, 8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user