There are a lot of API snobs out there who feel their SOLIDWORKS Enterprise PDM code is too good to be run by just anyone, perhaps only members of a certain user group are allowed to run their precious code. Perhaps they are writing something that should only be run by administrators. I personally am a programmer for the people; but if you are related to Marie Antoinette, it is pretty easy to accomplish this act of discrimation. You include […]
Hey macro lovers! Have to change a lot of SOLIDWORKS file properties, but don’t want to your code to have to open each file one at a time?
When you are the Data Specialist Man, the world is your stage. Here is a little excerpt from a screen play I am writing for an upcoming movie, tentatively titled: “SolidWorks Enterprise PDM – The Movie” The scene opens with our hero [me] teaching an EPDM administrator training class. [Me] Now that the file is in your “Released” workflow state, it is read only for everyone, the only way it can be changed is to push the file through the workflow again, making a new revision. […]
Recently a customer asked me to write a routine to release ownership of every file in his SOLIDWORKS Workgroup PDM vault. I thought finding the files would be rather simple until I realized Workgroup’s PDMWSearchOptions (Workgroup’s API search function) does not support wildcard characters. While contemplating harakiri, I finally came up with this search criteria idea: objSearch.IgnoreCase = True objSearch.SearchCriteria.AddCriteria pdmwOr, pdmwOwner, “”, pdmwContains, “a” objSearch.SearchCriteria.AddCriteria pdmwOr, pdmwOwner, “”, pdmwContains, “e” objSearch.SearchCriteria.AddCriteria pdmwOr, pdmwOwner, “”, pdmwContains, “i” objSearch.SearchCriteria.AddCriteria pdmwOr, pdmwOwner, […]
Imagine you received a set of SOLIDWORKS drawings from an outside source. Unfortunately the people who created the drawings didn’t use your drafting standards. [The peasants!] You may be tempted to create a little macro that goes through every one of your settings, one at a time, setting user preference toggles, integer values, blah, blah… Not a bad idea, but doing this is slow, tedious and you’ll run into some “undocumented issues” that my lawyers don’t want me to get […]
Would you like to have your SOLIDWORKS Enterprise PDM 2011 tasks be able to [batch] print your dwg files as well as your SOLIDWORKS drawings? It is pretty easy, you only need to make a few changes to your Print Task’s “Advanced Scripting Options”. Click on the advanced scripting options button in the bottom of the “Files” section. Now all you have to do is find the function “bIsSupportedExtension” and replace all of it with this code: Function bIsSupportedExtension(oExtension) As […]
You can think of the dispatch editor as a big wizard, it leads you through the process.
Last week at the Cincinnati User Group Meeting, an engineer from Oystar North America said that he downloaded a cool macro that would create multiple Isometric views. I was able to find a site that has this macro plus others that you may find interesting. The site is Lorono’s SOLIDWORKS Resources. Always remember that when you are using a macro, be sure to test it out before using it in production.
Didn’t get to make the trip to San Antonio to see our SOLIDWORKS World presentations live? Or maybe you did, but you loved them so much you want to watch them over and over again like Cosby episodes? Well, either way, you’re in luck because all the presentations have been posted along with the file sets that went with them right here: http://www.3dvision.com/swwpresentations Enjoy!
How to update Microsoft Word fields when printing.