A race condition may occur when two instructions are executed at the same time. The output gets determined by which…
Read StorySOLIDWORKS PDM Professional employs a server-client architecture. Your files and metadata is stored on the server (Archive server is where your files and stored and everything else go in the SQL db). You push all of your changes to the server from your local PDM client and you also pull…
Read StoryThis topic is most definitely a recurring one. I find myself having to go back to old pieces of code…
Read StoryThis macro exports Bill of Materials to Excel with thumbnails. You definitely need this one if you are on SOLIDWORKS 2018 or older. When you run the macro, a new session is Excel is opened, the BOM is copied there and a thumbnail preview is created for each of the visible…
Read StoryTLDR: Protect macros modules from viewing by adding a password from the protection tab at Tools > Macro Name Properties.A…
Read StoryTLDR: Here's what you need to know about Early Binding Vs Late Binding Use early binding for writing macros. It…
Read StoryDisclaimer: The information shared in this article is intended to show how easy it is to unlock the password protection…
Read StoryThis macro deletes all dangling dimensions from all sheets in the active drawing document. ' Delete all dangling dimensions ' Conditions = Active document must be drawing ' Results = Dangling dimensions deleted ' www.bluebyte.biz Dim swApp As Object Dim swModel As Object Dim swDraw As Object Dim swSheet As…
Read StoryAdd watermark macro in action. This macro adds a watermark to the active sheet of the active drawing document: 'www.bluebyte.biz Public Enum swVerticalJustification_e swVerticalJustificationNone = 0 swVerticalJustificationBottom = 3 swVerticalJustificationMiddle = 2 swVerticalJustificationTop = 1 End Enum Public Enum swTextJustification_e swTextJustificationCenter = 2 swTextJustificationLeft = 1 swTextJustificationNone = 0 swTextJustificationRight…
Read StoryConverting a SOLIDWORKS VBA macro to an add-in. VBA macros continue to be the choice of the SOLIDWORKS community for…
Read Story