Thanks Deepak,
I changed part of the For statement to better select what I needed. Also, I think some of the j's were supposed to be i's in your code, at least that worked for me.
For i = 0 To nNbrProps - 1
swCustPropMgr.Get2 vPropNames(i), valOut, resolvedValOut
If...
I'm sure this problem has a simple solution, I just don't write code, hence:
The code below *works* but I am looking for something a bit more elegant. Basically the macro runs through the custom properties to see what revision the drawing is on. The property that decides the revision is named...
I threw together a macro to delete custom properties from a drawing which I put below. My problem is that although the macro works, the 'Custom Properties' tab on the side does not update automatically.
I've taken a look at other macros similar to mine in fuctionality, but none actually solve...
So I have a BOM that needs to be saved as a .csv file. I would like to hide some columns in the BOM while they are in the drawing. The problem is that when I export the BOM the hidden columns are just empty fields.
How can I export all of a BOM's data when it has hidden columns?
or
Is there a...
Here is my crude macro, it gets the job done:
Dim swConfMgr As SldWorks.ConfigurationManager
Dim swConfig As SldWorks.Configuration
Dim swModel As Object
Dim PartNum As String
Dim PartName As String
Dim dash As Integer
Dim descrip As String
Dim partedit As Boolean
Dim dispstate As Boolean
Sub...
I am trying to create a macro for solidworks that will pull some information out of the file name and put it in the configuration properties.
So far I can parse the name fine as well as change some of the fields within the properties, but a few of them are giving me some trouble. Mostly the...