Acad.DataItemCollectionManager.getKnownCollection Function
File
Autodesk.AutoCAD.js
Syntax
JavaScript
function Acad.DataItemCollectionManager.getKnownCollection(colName);
Group
Parameters
Parameter | Description |
---|---|
colName | is the name of the collection you want to fetch. For example, if you want to fetch layer collection, you must specify "LAYER". Other valid key value options are: "DIMSTYLE", "LAYER", "TEXTSTYLE", "LINETYPE", "NAMEDVIEWS", "UCS_PLANES", "COLOR", "BLOCK", "VIEWPORT", "LAYERFILTERS", "SCALELIST", "ACAD_TABLESTYLE", "ACAD_MLEADERSTYLE", "ACDI_DATAITEM_SELECTED_ITEMS", "ACAD_VISUALSTYLE", "ACAD_MATERIAL", "ACAD_PLOTSTYLENAME", and "ACAD_LAYERSTATES". |
Returns
Returns a Promise object for which users need to specify .then(OnSuccess, onError)
. For example, function Acad.DataItemCollectionManager.getKnownCollection(colName).then(onSuccess,onError);
Value | Description |
---|---|
onSuccess | is a function type called on successful completion of getKnownCollection function. |
onError | is a function type called when an error occurs. |
Description
Use this asynchronous function to get a known collection.