几何尺寸与公差论坛

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

【转帖】monitoring with api

[复制链接]
发表于 2009-4-13 12:54:48 | 显示全部楼层 |阅读模式
monitoring with api
hi all,
i would like to know if there is a way using api or any other way to modify custom properties of a part if i use a specific feature, what i want is when i use hole wizard (tapped ones) the custom property "process" changes to "hole". but i dont want to run a macro after i finished the part, i want solidworks to monitor the actions i do and if i use holy wizard the property is changed.i know how to use api, i just need the monitoring code or the functions name, i don't want this to make solidworks slow though.

check out our whitepaper library.
you would want to make this as an addin.  to "monitor" actions, you need to use object events.  this requires early binding and dimensioning objects using the "withevents" keyword.  then you can keep track of features as they are created and deleted and then act accordingly.
an article about early binding:
do you have an up to date method of creating an addin from a macro in vb 2008 express?  i've tried to follow your old one, but vb6 is just not the same.
i will try that.. thanks.. :d
unless something has changed, you cannot create add-ins with vb express.
-handleman, cswp (the new, easy test)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 09:11 , Processed in 0.034335 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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