几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » SolidWorks二次开发
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-04-13, 10:14 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】delete all custom properties

delete all custom properties
i have found several examples of how to do this but none seem to work, i need a macro that i can run that will delete all custom properties regardless of property name.
i have a macro that will add custom properties and it is written so that it does not require solidworks, it uses windows to create the custom property. i would like to do the same for deleting the custom properties.
can someone please provide some sample code showing how to delete all custom properties?
thanks,
sam
thanks roland, the macro from esoxrepublic is one that i had tried and had a problem with. i cannot recall what the error was but it would run.
i will try the one from fcsuper...
thanks
sam
edited: 05/15/2008 at 09:13 am by sam s
if you struggle i can add the ability to batchprocess in minutes, however it runs with solidworks not the document manager like you are on about. i can also create a tool to do it if that is what you require just let me know.
i just posted an updated version. references updated to include sw 2007 commands type library. this should fix.
i would appreciate feedback.
thanks for working on this roland, unfortunately i get the same error, "run time error 9, subscript out of range"
sam
i'm not having luck pinning down causes for "runtime error 9". could be a corrupt or missing resource. sometimes linked to virus on user's computer. any help from others on this subject would be helpful.
originally posted by: roland schwarz
i would appreciate feedback.
the link to the download page does not work for me. i use firefox. i get a 404 page not found error.
i did however delete some extra characters form the address bar and found the download page. i ran the macro on a part, assembly, and drawing. no errors, appears to work as expected. i am using sw2007 sp5.0
drc inc.
minneapolis, mn
.designreadycontrols.com
sw2007 sp5.0
core2 quad
3gb ram
xp pro sp2
ati firegl v3600
thx for feedback.
link repaired.
i am on sw2007sp4.0
in deletecustominfo1 module, find sub main(). change the line
set swapp = createobject("sldworks.application")
to
set swapp = application.sldworks
you will also have to have a document open before you run the macro.
wayne matus
texas engineering systems
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】custom properties yang686526 SolidWorks二次开发 0 2009-04-13 10:09 AM
【转帖】custom properties for multiple part configurations yang686526 SolidWorks二次开发 0 2009-04-13 10:08 AM
【转帖】add custom properties yang686526 SolidWorks二次开发 0 2009-04-13 08:41 AM
【转帖】macro for adding customconfiguration properties yang686526 SolidWorks二次开发 0 2009-04-12 09:37 PM
【转帖】setting custom properties yang686526 SolidWorks二次开发 0 2009-04-12 07:36 PM


所有的时间均为北京时间。 现在的时间是 05:43 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多