Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Properties list utility

Status
Not open for further replies.

ShaggyPE

Mechanical
Sep 8, 2003
1,127
Anybody have a utility (preferably outside of SolidWorks) that can generate a list of which files (in a given directory) do not have a certain custom property? I know I can write one that will open each file and find out if the property exists and then throw it on a text file of it doesn't. But I would rather not open the file in SolidWorks. I only have hack/slash macro abilities within SolidWorks, but I know that this would be much faster outside, since the data I want is available through windows.
Example:
I have a custom property called SP:DOC_NR and want to know which files in the directory are missing this property.

This question may be better served in another forum, but I figured I would try here first since this is where I frequent and the API gurus have helped me in the past. Thanks again.

-Dustin
Professional Engineer
Certified SolidWorks Professional
 
Replies continue below

Recommended for you

Custom properties can be checked using the DSOFile reference, which can be downloaded from Microsoft. DSOFile is added as a project reference and gives access to lots of file information, including custom properties. It does not read config-specific properties, though.

<DSOFile used to compare internal ID.

[bat]Honesty may be the best policy, but insanity is a better defense.[bat]
-SolidWorks API VB programming help
 
I think this can be achieved using soolidworks search within SolidWorks. I think you can type Property: Prop_name in the search field and get the files that have that assigned. There are certain categories that you can search for fileext: .sldprt or date: "last week" "yesterday" etc.

SolidWorks explorer may have the ability to do this as well.

Michael

[jester]
 
Thanks for both of the responses.

mjcole:
I wasn't aware of the functionality within SWExplorer. Thanks. Unfortunately, it will only tell me which files have the property, not which ones are missing it. It doesn't appear to allow me to output the list or anything. If it could, I could do some comparisons in excel to see what is missing. Also, I am still using SW2006.

TheTick:
Unfortunately, that is a bit over my head. I am a macro hack at best. I was hoping someone was aware of an existing application floating around.

-Dustin
Professional Engineer
Certified SolidWorks Professional
 
I think design checker was added in '07. I am stuck in '06.

-Dustin
Professional Engineer
Certified SolidWorks Professional
 
handleman provided me with a utility that did the trick. It is a SW macro that doesn't open each file. Very fast. I cross posted this question in the Windows VBA forum as well. A link to handleman's utility can be found in that thread.
thread766-224041

-Dustin
Professional Engineer
Certified SolidWorks Professional
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor