×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Custom Properties list utility

Custom Properties list utility

Custom Properties list utility

(OP)
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

RE: Custom Properties list utility

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.

<http://esoxrepublic.com/blog/2008/05/22/comparing-files-internal-ids/>
DSOFile used to compare internal ID.

batHonesty may be the best policy, but insanity is a better defense.bat
http://www.EsoxRepublic.com-SolidWorks API VB programming help

RE: Custom Properties list utility

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

RE: Custom Properties list utility

(OP)
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

RE: Custom Properties list utility

(OP)
I think design checker was added in '07.  I am stuck in '06.

-Dustin
Professional Engineer
Certified SolidWorks Professional

RE: Custom Properties list utility

(OP)
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: Windows File Custom Properties list utility

-Dustin
Professional Engineer
Certified SolidWorks Professional

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources