Downloads
Folder: SolidWorks Macros
Files:
-

Bulk Change Part Material
- Uploaded:
- 18.01.10
- Modified:
- 20.01.10
- File Size:
- 11 KB
- Downloads:
- 75
- Version:
- 1.0
A macro to change bulk Part Material. The macro will open each part, change the material, rebuild, save and close the file.
Change the material and if required change the database too.
' Prerequisites: Set the directories having part files you wish to change the material
Macro will find all the part files in the specified folder/location and change the material to specified one. -

Change Sheet Format
- Uploaded:
- 18.01.10
- Modified:
- 20.01.10
- File Size:
- 8 KB
- Downloads:
- 93
- Version:
- 1.0
A macro on changing/updating sheet format of multiple drawings.
-

Feature Tree to Clipboard
- Uploaded:
- 18.01.10
- Modified:
- 20.01.10
- File Size:
- 13 KB
- Downloads:
- 58
- Version:
- 1.0
This macro is a simple one to copy the active documents feature tree directly to the clipboard.
-

Auto-create Drawing from Model
- Uploaded:
- 18.01.10
- Modified:
- 20.01.10
- File Size:
- 14 KB
- Downloads:
- 174
- Version:
- 1.0
This macro with one click creates a drawing with 3 common views and an isometric view, aligns them and inserts all dimensions onto the 3 standard views, and saves it to the same location as the model.
-

Delete Design Table
- Uploaded:
- 18.01.10
- Modified:
- 20.01.10
- File Size:
- 8 KB
- Downloads:
- 32
- Version:
- 1.0
This macro is nice and simple; it deletes the currently active models design table
-

Set Document Arrows
- Uploaded:
- 18.01.10
- Modified:
- 20.01.10
- File Size:
- 9 KB
- Downloads:
- 45
- Version:
- 1.0
This macro is short and sweet. With one click sets the current documents Arrow formats up to whatever you specify within this macro. This is ideal for updating old templates to the new standards.
-

Set Document Font
- Uploaded:
- 18.01.10
- Modified:
- 20.01.10
- File Size:
- 9 KB
- Downloads:
- 45
- Version:
- 1.0
This macro is similar to Document Arrows. With one click sets the current documents Font styles to whatever you specify within this macro. This is ideal for updating old templates to the new standards.
-

Equation Editor
- Uploaded:
- 18.01.10
- Modified:
- 20.01.10
- File Size:
- 13 KB
- Downloads:
- 57
- Version:
- 1.0
This is a simple tool that mimics the "Edit All" equation options of a model just like SolidWorks... only this one works.
-

Export BOM
- Uploaded:
- 18.01.10
- Modified:
- 20.01.10
- File Size:
- 14 KB
- Downloads:
- 128
- Version:
- 1.0
You have two methods for extracting BOMs to Excel. One is the in built function of SolidWorks, and the second is the manual way to creating exactly what you want in an Excel sheet.
The attached Macro does performs both.
Make sure you check that your References... are setup to your version of SolidWorks & Excel (Current example is SW2008 & Excel 2007):
You may use this macro however you wish, I only ask you leave the commented credits within the macro.
If you wish to save each BOM under the name of a value from the custom properties, such as $PRPSHEET:{Description}, you would modify the code to get the bomPath as follows:
Code:
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim valOut As String
Dim resolvedValOut As String
Dim config As SldWorks.Configuration
Dim cpm As SldWorks.CustomPropertyManager
Set swApp = Application.SldWorks
Set swModel = swApp.ActiveDoc
Set cpm = swModel.Extension.CustomPropertyManager("")
If Not cpm Is Nothing Then
cpm.Get2 "description", valOut, resolvedValOut
End If
Now with resolvedValOut you may use that as the filename in any way you wish. -

Export Flat Pattern View
- Uploaded:
- 18.01.10
- Modified:
- 20.01.10
- File Size:
- 11 KB
- Downloads:
- 89
- Version:
- 1.0
Preconditions: A Sheet metal part is open.
Postconditions: Macro will export flat pattern view for all configuration(s) and save as dxf in the same location.
Login Form
Activity
- How to get the material properties? - Tenzen Tuesday, 31 August 2010 15:52 [1 reply]
- Printing - Small thumbnail corner of page - larocket83 Monday, 30 August 2010 09:03 [3 replies]
- After close add-in I want to run it again but noth... - luibross Sunday, 29 August 2010 09:44 [1 reply]
- vba - vb.net, could someone help? - luigi (guest) Tuesday, 24 August 2010 12:02 [1 reply]
- How to check if part was changed? - Tenzen Sunday, 16 May 2010 10:57 [11 replies]
X2 - Blue LCD monitor for PCs
BatchProcess THE automation tool
SaveAsX
LaserMRP
Property Extractor
Property Wiper
Engineering Toolbox
SWTools
Config Searcher
Circle Centers
3D Matrix
Fuel Economy Calculator
GUID Creator
SolidWorks API Books
SolidWorks Macros
Tutorials
Message Boards
Game Studio Art
Clients & Testimonials
Contact Us