Method GetStockManagement2
GetStockManagement2(DocumentId, out StockManagementType, out DocumentId, out ElementId, out SmartText, out SmartText, out SmartText, out SmartText, out SmartText)
Gets the stock management of a part or assembly.
Declaration
[OperationContract]
[AvailableSinceVersion(7, 11, 0, 0)]
void GetStockManagement2(DocumentId inDocumentId, out StockManagementType outType, out DocumentId outStockDocumentId, out ElementId outStockOccurrenceId, out SmartText outStockName, out SmartText outStockDescription, out SmartText outStockPartNumber, out SmartText outStockMajorRevision, out SmartText outStockDimensions)
Parameters
| Type | Name | Description |
|---|---|---|
| DocumentId | inDocumentId | Identifier of part or assembly document to analyze. |
| StockManagementType | outType | Type of management. |
| DocumentId | outStockDocumentId | Stock document identifier, or empty if not of type Document. |
| ElementId | outStockOccurrenceId | Stock occurrence identifier, or empty if not of type Occurrence. |
| SmartText | outStockName | Stock name, or null if not of type Manual. |
| SmartText | outStockDescription | Stock description, or null if not of type Manual. |
| SmartText | outStockPartNumber | Stock part number, or null if not of type Manual. |
| SmartText | outStockMajorRevision | Stock major revision, or null if not of type Manual. |
| SmartText | outStockDimensions | Stock dimensions, or null if not of type Manual. |
Remarks
This method is available since v7.11.