查看单个帖子
旧 2009-04-13, 12:54 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】monitoring with api

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)
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)