Method SetMaterial
SetMaterial(DocumentId, DocumentId)
Sets the material of a part.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 6, 301, 40)]
void SetMaterial(DocumentId inDocumentId, DocumentId inMaterialDocumentId)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentId | inDocumentId | Identifier of the part document to modify. |
| DocumentId | inMaterialDocumentId | Material document identifier, or empty if the material of the part is not defined. |
Remarks
StartModification(string, bool) and EnsureIsDirty(ref DocumentId) must be called before calling this method.
This method is available since v7.6.301.40.