Solidworks is one of the most famous 3D CAD softewares.
When I install Solidworks, it adds a column to the list of hidden columns in Windows explorer. I can right click and add it to the list of visible columns. Then I have this:
The problem is I hate Windows Explorer and work only with Directory Opus. And I can not find this column in the list of hidden columns in Opus. The nearest column I found was "Product Version", but it shows empty for the same file, same folder as above image:
@lxp Thanks for trying to help. But not everyone is a programmer.
Following your first link, I added a button, paste the code, ran it. In the inputbox I typed the column name I'm looking for and Opud showed me this
--- 1 column matching SW Last Saved With ---
Solidworks.Document.LastSavedWith = SW Last saved with
Well, how can I add it to Opus? I found the following link that explains how to add a column. But it's for dwg and I'm not sure which parameters should be changed to make it work with solidworks.
I don't know why, But I feel like being stupid. I can't even follow a given solution.
I copied the script into a new button, changed the mentioned parameters and ran it. No error.
Restarted Opus. But still I can't see the column in the list.
Even searching for "Solidworks" or "SW" shows a blank list. Nothing found.
This is an exact copy/paste of what I have.
Function OnInit(initData)
initData.name = "SolidWorks Columns"
initData.desc = "Adds SW Columns"
initData.copyright = "(c) 2016 jpotter"
initData.version = "1.0"
initData.default_enable = true
initData.min_version = "12.0.8"
Dim props, prop, col
Set props = DOpus.FSUtil.GetShellPropertyList("Solidworks.Document.LastSavedWith", "r")
for each prop in props
Set col = initData.AddColumn
col.name = prop.raw_name
col.method = "OnDWGColumn"
col.label = prop.display_name
col.justify = "left"
col.autogroup = true
col.userdata = prop.pkey
next
End Function
Function OnDWGColumn(scriptColData)
scriptColData.value = scriptColData.item.shellprop(scriptColData.userdata)
End Function
Thanks for this post. I'm about to try this myself as its frustrated me for years not being able to simply select the column to show in DO when its right there is Windows Explorer! (and only found this post just now).
Any update news for this? i'd love this as i have another CAD program that has the same issue and i'd love it to be as easy as selecting properties like within Everything Search (see screenshot).