Some New Macros to tangle with

Recently I posted some new SolidWorks macro at Lorono’s SolidWorks Resources which you would like to try and might find useful for your day to day use.

Here are brief details on the macros:

Send Email via SolidWorks : Macro to send email with assembly name in subject.

Save and Open as PDF:  Macro to save active file as PDF in the same location and open the created PDF file

Hide Show Note : Macro to hide or show note in the active drawing.

There are more useful macros and stuff at Lorono’s SolidWorks Resources and I’ll be adding more similar macro there, so keep watching.

GOT COLORS?

If you are trying to color your models to make them look real, this is probably not for you. But – If you just want colors – any colors – fast – this is for you.

This SolidWorks macro automates assigning colors to Parts and Sub-Assemblies from within an Assembly.

Colors can be assigned at two levels:
1) Part Level
2) Assembly Level

There are two sources to generate various colors:
1) Random Color(s)
2) User Select Color(s)

There are three MAKE – modes:
1) All Selected Components the Same Color
2) All Selected Components have Various Colors
3) Various Colors – Except, Consecutive and Identical Components have the same color

Enjoy

Balloon Note – REBUILT

Howdy,
I have to admit my original Balloon Note macro was quite quirky. It was the most complicated VBA project I’d done at the time, so I don’t feel too bad about it. I finally had a chance to try out the SolidWorks 2010 implementation – SO – I decided to rethink the whole thing. WOW – I really have to apologize, I’m surprised that old code worked at all. However, if you liked the general idea found in my original Balloon Note macro, I’m sure you’ll like this completely rebuilt version.

If you have no idea what I’m writing about:
Balloon Note is designed to add a Reference Note to an existing Item Balloon and Group them together automatically. It can add an automatically updating Quantity Text object. The result is similar to a function SolidWorks added in 2010, but, you can adjust the location of the text using the ALT + Select and drag method. The strange squiggle (QTY variable) in the text box represents the selected part quantity, until you apply the Reference Note location (Top, Right, Bottom or Left). Balloon Note uses your current document setting for the Note font height to create the Reference Note. The Links button uses a plain text file “BalloonNote_07.ini” located in the same directory as BalloonNote_07.swp to store your lists of links and symbols. The download includes two versions, BalloonNote_07.swp for SW 2007 (you could possibly change the Reference Libraries to your version) and BalloonNote.dll for SW 2010 x32.

Enjoy

Label Views +

[This article is outdated.  The macro is no longer available.  SOLIDWORKS has enhanced view label capabilities in subsequent releases, starting in SOLIDWORKS 2014.  Please see current SOLIDWORKS Help for more information.]

If you have ever needed to add a label to a standard drawing view, you know it takes a few steps to get it to look like the section view labels.
Maybe you’ve added a note but accidently had the wrong view selected. Now when you move the view the note doesn’t move with that view. I hate that, and it takes time to fix.

Have you ever wanted to add some text to a balloon so that if you move the balloon the text moves with it? That’s done with the Group tool, but why not make it automatic?
All of the above is made easier with the revised Label Views macro.
Label Views is designed to help you quickly add formatted text to existing SolidWorks Views or replace an existing View Label (if desired), also automatically group text to existing Note Objects.
SolidWorks does not provide View Labels for Standard Projected Views. Label Views can add formatted text, to any SolidWorks View.

Label Views can replace-hide the default (mono-format) SolidWorks Section/Detail View Labels with multiple formatted text. However, the new Notes are “dumb” SolidWorks Notes and will NOT update if the Document Annotations format or the View Scale is changed after the Note is created.
Label Views can automatically group new text to existing Note Objects. This can allow you to keep the SolidWorks automatically updated Labels and add grouped text to it.

The “Model Links & Symbols” buttons provide a list of Model Links and Symbols you can choose from to add to the Note text. You can alter these lists to suit your needs by editing this open source macro.
This version is a complete rewrite of the code (all previous functionality is preserved, except saving User Preferences in the Windows Registry).
The .zip file contains LabelViews.swp for SW 2007 and LabelViews.dll with all the folders & files for SW 2010 32-bit.
Label Views (3.01) is available at
http://sw.fcsuper.com/index.php

Thanks

Stump the Chumps submission form

See if you can stump the chumps with your SolidWorks questions at our session in SolidWorks World 2010:

Stump the Chumps question submission form

Also, if you have files to submit as part of your question, please email your question and files to stumpthechumps@gmail.com.