几何尺寸与公差论坛

 找回密码
 注册
查看: 599|回复: 0

【转帖】custom properties list utility

[复制链接]
发表于 2009-4-13 10:08:37 | 显示全部楼层 |阅读模式
custom properties list utility
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
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.
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

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
design checker can do this too.
matt lorono
cad engineer/ecn analyst
silicon valley, ca
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.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-24 02:32 , Processed in 0.037261 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表