几何尺寸与公差论坛

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

【转帖】a little rtf for drawing notes

[复制链接]
发表于 2009-4-12 22:55:07 | 显示全部楼层 |阅读模式
a little rtf for drawing notes
api peeps, i found this when i was doing some macro recording of notes:
"<para indent=10 findent=-10 number=on ntype=1 nformat=$$. nstartnum=0>"
it controls what elements are shown in a note, such as bullets or numbering. if you want to show bullets, replace number=on with bullet=on. for example:
nstring = "notes:" & vbcrlf & _
"<para indent=10 findent=-10 number=on ntype=1 nformat=$$. nstartnum=0>" & _
ucase("this is the first note.")
returns
notes:
1. this is the first note.
i think this little tidbit of information reveals many possibilities with programming rich text formatting of notes & annotations, and it may be related to perl (of which i know nothing about). your thoughts?
to defeat the wheat, go against the grain.
edited: 03/18/2009 at 03:35 pm by tom fosler
i call it swml for its similarity to xml/html. you can investigate further by creating a note with attributes that you like (changing fonts/font sizes, bullets, etc), selecting the note, and running this macro.
also, try linking a note to some object on the sheet (a balloon, surface finish mark, etc) and running the macro. play. explore.
i'll get you eh steve, if it's the last thing i dooooo!
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 22:57 , Processed in 0.035555 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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