查看单个帖子
旧 2009-04-12, 09:10 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】how do i overwrite an existing custom property value

how do i overwrite an existing custom property value?
i would like to force a custom property to be overwritten when the user runs the macro.
for example:
the custom property drawnby is already defined in the drawing and i want the user to be able to run the macro and have it overwrite either a blank field or some existing data in the drawnby value field. the macro i have will add the data to the value field if the drawnby property does not exist but it will not overwrite the value field if the property does exist.
any help is appreciated.
jody
sw can't overwrite customproperty, so delete it and add new with same name
custompropertymanager:: delete
edited: 01/22/2009 at 05:19 pm by ivana kolin
custompropertymanager::set will set an existing custom property value.
wayne matus
texas engineering systems
jody,
i have seen a macro by declan mctiernan which can overwrite the custom as well config properties./ not able to locate it now.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)