This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe -v -dDebug -dSourceOutDir=..\REDACTEDCOMPANYNAME\bin\Debug -d"DevEnvDir=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\\" -dSolutionDir=C:\Users\jlili\source\repos\BlueByteSystemsInc\HRS-REDACTEDCOMPANYNAME\src\REDACTEDCOMPANYNAME\ -dSolutionExt=.sln -dSolutionFileName=REDACTEDCOMPANYNAME.sln -dSolutionName=REDACTEDCOMPANYNAME -dSolutionPath=C:\Users\jlili\source\repos\BlueByteSystemsInc\HRS-REDACTEDCOMPANYNAME\src\REDACTEDCOMPANYNAME\REDACTEDCOMPANYNAME.sln -dConfiguration=Debug -dOutDir=bin\Release\ -dPlatform=x64 -dProjectDir=C:\Users\jlili\source\repos\BlueByteSystemsInc\HRS-REDACTEDCOMPANYNAME\src\REDACTEDCOMPANYNAME\REDACTEDCOMPANYNAME.Wix\ -dProjectExt=.wixproj -dProjectFileName=REDACTEDCOMPANYNAMETools.Wix.wixproj -dProjectName=REDACTEDCOMPANYNAMETools.Wix -dProjectPath=C:\Users\jlili\source\repos\BlueByteSystemsInc\HRS-REDACTEDCOMPANYNAME\src\REDACTEDCOMPANYNAME\REDACTEDCOMPANYNAME.Wix\REDACTEDCOMPANYNAMETools.Wix.wixp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim swApp As SldWorks.SldWorks | |
Dim swAssemblyDoc As AssemblyDoc | |
Dim swcomponent As Component2 | |
Dim vcomponents As Variant | |
Dim processedFiles As Collection | |
Dim component | |
Sub main() | |
Set processedFiles = New Collection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim swApp As SldWorks.SldWorks | |
Dim swModel As ModelDoc2 | |
Dim swAssembly As AssemblyDoc | |
Dim vComponents As Variant | |
Dim ProcessedFiles As New Collection | |
Sub main() | |
Set swApp = Application.SldWorks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim swApp As SldWorks.SldWorks | |
Dim swModel As ModelDoc2 | |
Sub Main() | |
Set swApp = Application.SldWorks | |
Dim FolderLocation As String | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim swApp As SldWorks.SldWorks | |
Dim swModel As ModelDoc2 | |
Sub Main() | |
Set swApp = Application.SldWorks | |
Dim FolderLocation As String | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enum SheetMetalOptions_e | |
ExportFlatPatternGeometry = 1 | |
IncludeHiddenEdges = 2 | |
ExportBendLines = 4 | |
IncludeSketches = 8 | |
MergeCoplanarFaces = 16 | |
ExportLibraryFeatures = 32 | |
ExportFormingTools = 64 | |
ExportBoundingBox = 2048 | |
End Enum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim swApp As SldWorks.SldWorks | |
Dim swModel As ModelDoc2 | |
Dim swModelDocExtension As ModelDocExtension | |
Sub main() | |
Set swApp = Application.SldWorks | |
Set swModel = swApp.ActiveDoc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static string GetTitle2(this ModelDoc2 model) | |
{ | |
var extension = string.Empty; | |
if (model.GetType() == (int)swDocumentTypes_e.swDocPART) | |
extension = ".sldprt"; | |
else | |
extension = ".sldasm"; | |
var title = model.GetTitle(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void OnLoadAdditionalAssemblies(DirectoryInfo addinDirectory) | |
{ | |
var assembly = addinDirectory.GetFiles().ToList().FirstOrDefault(x => x.Name.StartsWith("Microsoft.WindowsAPICodePack")); | |
if (assembly != null) | |
System.Reflection.Assembly.LoadFrom(assembly.FullName); | |
assembly = addinDirectory.GetFiles().ToList().FirstOrDefault(x => x.Name.StartsWith("Microsoft.WindowsAPICodePack.Shell")); | |
if (assembly != null) | |
System.Reflection.Assembly.LoadFrom(assembly.FullName); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static double[] CreateBoundingBox(this ModelDoc2 swModelDoc) | |
{ | |
string value; | |
string resolvedvalue; | |
double factor = 1000.0; | |
var ar = new List<double>(); | |
var lengtUnit = (swLengthUnit_e)swModelDoc.LengthUnit; | |
switch (lengtUnit) | |
{ |
NewerOlder