Method CreateDocument
CreateDocument(PdmObjectId, string, bool)
Creates a TopSolid document.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 6, 0, 0)]
PdmObjectId CreateDocument(PdmObjectId inOwnerId, string inExtension, bool inUseDefaultTemplate)
Parameters
| Type | Name | Description |
|---|---|---|
| PdmObjectId | inOwnerId | Identifier of owner. |
| string | inExtension | File extension of the document to create, starting with the '.' character. |
| bool | inUseDefaultTemplate | Tells whether to use the default template if present. |
Returns
| Type | Description |
|---|---|
| PdmObjectId | PDM object identifier of the created document. |
Remarks
To obtain the extension corresponding to a TopSolid document, one must create such a document in TopSolid, select it in the projet tree and use the "Document Type..." command in the contextual "Tools" menu (TopSolid must be started with the "-a" command line option as this command is only available in the advanced mode).
This method must not be called between StartModification(string, bool) and EndModification(bool, bool) methods calls.
This method is available since v7.6.