|||| || ||| |||||

EmailFacebookLinkedInTwitterShare

What do you think of our “paperless” society so far? Way to go prognosticators, got your jet packs all tangled up on that one. Though SolidWorks’ DimXpert is really cool and I know some companies are adopting it, most companies are still creating and printing drawings. If you can’t talk management into adopting the new, cool technologies, think you could talk them into using 1949 technology – the barcode? They are actually very easy to use – they can be […]

Read More

Enumerations to save the world!

EmailFacebookLinkedInTwitterShare

Enumerations are great little tools designed to make working with your API code easier. In SOLIDWORKS API, enumerations are often used to collect constants together in groups. As an example, this line of code is perfectly acceptable: swFeature.GetType = swSelBODYFEATURES However if later you want to change the type of feature you are looking for you have to look up all of the constants “GetType” returns. This can take some time. If you use enumerations, VBA’s IntelliSense provides you with […]

Read More

EZ Enterprise Dashboard Graphs

EmailFacebookLinkedInTwitterShare

Everyone loves dashboard graphs – especially managers. Imagine going to management Monday telling them you can provide them real time graphs -showing them the status of anything you are storing in SOLIDWORKS Enterprise PDM…all for free. Yeah, I see a big raise in your future…maybe even a trip to the tropics as a bonus. Don’t forget the Engineering Data Specialist Man helped get you there! /* WARNING: This blog contains SQL & VBA programming. Readership discretion is advised.  However, I […]

Read More

There’s an object for that

EmailFacebookLinkedInTwitterShare

When writing custom code for your SOLIDWORKS Enterprise PDM system, have you been tempted to connect directly to the Enterprise database tables? You certainly could. The database isn’t encrypted and when you first start out it is easy to get the information you need with a simple SQL query. Don’t. There’s an object for that. Everything you need from the database: BOMs, history, users, variables, searches,  … has an associated object in the API. It may take a little while […]

Read More

Adding a Macro to your Menus

EmailFacebookLinkedInTwitterShare

So, you have a really cool macro that automates everything… Here is how you can add it to your SOLIDWORKS menu structure.     Below is an example of creating a menu item macro in the Tools top menu.   …To create a macro menu item in the "Tools" top menu, please follow the steps below: ·         Create a folder called Macros in your SOLIDWORKS installation directory (the same as the SLDWorks.exe). o   Nothing below works without this folder! ·         Copy […]

Read More

Get BOM Table in an Assembly

EmailFacebookLinkedInTwitterShare

In SOLIDWORKS 2009 they introduced the idea of having a BOM in an assembly file. Cute and sweet, but no balloons? What good is a BOM table if you cannot connect the parts to their line items? In SOLIDWORKS 2010, they stopped the maddness and gave us the ability to balloon our assemblies. (Hey the best way to speed up creating drawings is not not have to create them!) Is it just me or shouldn’t the assembly balloons be spheres?! […]

Read More

Working with file paths in .NET

EmailFacebookLinkedInTwitterShare

Since I do a lot of file manipulations in my custom routines, my programming snippets library is full of little string manipulator functions written for the use of manipulating strings containing file paths. Today I ran across the “Path” class in the System.IO namespace. Where has this been all my life?! (Well since the 1.1 .Net framework.) Check out this class! GetFileNameWithoutExtension, GetExtension, GetPathRoot, GetDirectoryName, ChangeExtension, etc. If I had all the time back that I have spent writing my […]

Read More

More logic in control logic

EmailFacebookLinkedInTwitterShare

The control logic in Enterprise’s datacards can only include logic based on file’s variables. Weak. Life is more than just variables isn’t it? The admin training manual shows a nice little trick of how you can control what people see on a datacard using tabs. You can control which tab is visible depending on a few factors…but even that is limited and tragically you can only show one tab at a time. So here was my recent real world problem. […]

Read More

GetVar vs GetVarFromDB – the rematch

EmailFacebookLinkedInTwitterShare

In a previous post, I spent a lot of time bashing my new friend, the Enterprise PDM function “GetVar”. The help file skims over the differences between “GetVar” and “GetVarFromDB”. So I thought it may be helpful to the world if I list them here. [This would be so much easier to read in a table; but using this WordPress is like writing a novel with a crayon -not the skinny ones, the big fat ones that come eight in […]

Read More