转载自https://blog.csdn.net/sky663/article/details/50198871?locationNum=3&fps=1
工程图模板 标题栏 页码 日期 比例 单位 部件名 等自动更新!
以下语法代码:
pasted this text into a note(注释):
<W@$SH_SHEET_NUMBER> <W@$SH_NUMBER_OF_SHEETS> <W@$SH_SHEET_SCALE_NUMERATOR> <W@$SH_SHEET_SCALE_DENOMINATOR> <W@$SH_SHEET_SIZE> <W@$SH_SHEET_UNITS> <W@$SH_SHEET_PROJECTION_ANGLE> <W@$SH_MASTER_PART_NAME> <W@$SH_PART_NAME>
The date is somewhat more elaborate:
In de expression editor(表达式) (in modeling(建模模块中) -> Ctrl-E) create the following expressions
(all type string字符串):
MyDate = StringUpper(dateTimeString("localTime?", True))
MyDay = subString(MyDate, 9, 10)
MyMonth = subString(MyDate, 5, 7)
MyYear = subString(MyDate, 21, 25)
MyTimeStamp = MyDay + " " + MyMonth + " " + MyYear
Then in Drafting pasted this text into a note: <X0@MyTimeStamp>
(update date in Modeling with Tools -> Update -> Update for External Change)