SolidWorks Macros
SolidWorks Macros
SolidWorks Macros
Folder: SolidWorks Macros
Files:
-

Bulk Change Part Material
- Uploaded:
- 18.01.10
- Modified:
- 20.01.10
- File Size:
- 11 KB
- Downloads:
- 341
- 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:
- 430
- 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:
- 221
- 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:
- 862
- 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:
- 129
- 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:
- 147
- 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:
- 176
- 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:
- 203
- 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:
- 524
- 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:
- 341
- 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.
Modiify Online Store Online Retail Store
XNA Games Xbox 360 - Windows 7 Phone
Silver: The Dark Fiend Xbox 360 Platformer
Baskets: Slam Dunk Windows 7 Phone Sports
ALightsOut: A Classic Windows 7 Phone Puzzle
Software
SaveAsX
LaserMRP
Property Extractor
Property Wiper
Engineering Toolbox
SWTools
Config Searcher
Circle Centers
3D Matrix
GUID Creator
Fuel Economy Calculator
SolidWorks API Books
SolidWorks Macros
Tutorials
Message Boards
Merchandise AngelSix branding fun
Clients & Testimonials
Shipping & Returns
Terms & Conditions
Privacy Policy
Contact Us










