几何尺寸与公差论坛

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

【转帖】finding and creating te

[复制链接]
发表于 2009-4-12 20:55:28 | 显示全部楼层 |阅读模式
finding and creating text
i have a sheet with some text on that is only accessible by editing the sheet. how can i programatically find this text?
the text is always the same so it shouldn't be hard to iterate through text fields (if it is possible!!) but how is this achieved? where are objects that are only available by editing the sheet kept? are they on layers or something?
thanks
since it's always the same note, find its name by recording a macro and looking at the code (selectbyid ....). next traverse the drawing notes (there are examples in the help) using note.getname to find the one you want.
kevin kenny, cswp
sw 2009 sp3.0
hp xw4300
edited: 01/28/2009 at 11:44 am by kevin kenny
if the note is not always the same note but has the same text you can loop through the views of a drawing to find each note, get the text of the note then check for the your string by using vbs instr command.
look in help under "note" double click get text and there are several examples.
dan miel
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 06:39 , Processed in 0.035897 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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