Redlight forever !
I’m pleased to see that some people are still looking for the “RedLight” tool I developed at DynaBits back in 2003. I therefore decided to make it available again here, especially because it has a button that points to my PayPal account which is still valid, and, just to mention, no one never ever paid a single $, € or CHF for RedLight …
Technically, since this is a blog about API, the trick is to stop a rebuild when it starts by handling the RegenNotify event and exploiting this information from the API help : “Return S_FALSE to stop from proceeding with the action that caused the notification.”
Below is a copy of the (old) page about RedLight on DynaBits’ web site:
“RedLight” is a FREE add-in for SolidWorks to avoid (automatic) rebuilds and measure edit/idle time.
Filed under: VBA, addin, assembly, part | 3 Comments
OBJ+MTL exporter
This macro exports parts and (simple) assemblies to Alias OBJ format, generating a corresponding MTL material file at the same time.
This will evolve towards an exporter to Hyperion soon …
Filed under: VBA, assembly, export, macro, part | Leave a Comment
Layers
SolidWorks macro to organise segments from an imported dxf/dwg by color on layers
Imagine you get a large dxf or dwg which has been colorized by hand, without using layers. This macro will let you edit the drawing cleanly in SolidWorks, by placing all segments with the same color on specific layers.
Filed under: VBA, drawing, macro | 1 Comment
ViewSize
Macro to resize the model view for screen captures
Saving your models as pictures for documentation ? Then you know the problem : the images will have 912×534 pixels one day and 1143×712 the day after. If you don’t want to edit your images in a second step, here is a macro that sets the graphic area to a specified size:
Filed under: VBA, assembly, drawing, macro, part | 2 Comments
AddWeldMass
Solidworks macro to add mass/weight custom properties for cut lists
If you want to list weights of welded parts in a cut list, you’ll have to add properties to weldments by hand, one by one …
Here is a macro that does it automatically.
Filed under: VBA, macro, part, properties, weldment | 1 Comment
Scale Texture
SolidWorks Macro to adjust texture scale to configurations sizes
If you need to adjust the material texture to many different sizes (configurations) of a part, here is a macro for you:
Continue reading 'Scale Texture'
Filed under: VBA, configurations, macro, part | Leave a Comment

