AnyCAD Rapid API 2024
Help you to create a better world!
|
Public 成员函数 | |
DocumentTemplate (String docType) | |
String | GetTitle () |
void | SetTitle (String val) |
String | GetDescription () |
void | SetDescription (String val) |
String | GetDocType () |
String | GetFileFilter () |
void | SetFileFilter (String val) |
String | GetFileExts () |
void | SetFileExts (String val) |
long | GetVersion () |
void | SetVersion (long val) |
void | Initialize (Document pDocument, String viewName) |
void | InitilizeElement (Document pDocument, Element pElement) |
void | OnElementCreated (Document pDocument, Element pElement) |
void | OnDocumentUpgrading (Document pDocument) |
<>
文档模板,用来定义文档的初始内容
FileFilter: "AnyCAD Files (.acad)"
FileExts: "*.acad"
void DocumentTemplate.Initialize | ( | Document | pDocument, |
String | viewName ) |
初始化对象。在对象加入文档的时候调用。
pDocument | 文档 |
pElement | 对象 |
被 DrawingDocumentTemplate 重载.
void DocumentTemplate.OnDocumentUpgrading | ( | Document | pDocument | ) |
文档版本更新
pDocument | 文档 |