AutoCAD.DictionaryIterator
Description
An object that traverses AutoCAD.Dictionary objects.
This class wraps a subset of the RealDWG AcDbDatabase class functionality.
This class allows you to loop over a Dictionary as follows:
AutoCAD.Dictionary dict; for (var iter = dict.newIterator; !iter.done; iter.next()) { // Access iter.name, iter.objectId, etc. }
Properties
| done | True (1) if the iterator is past the end of the Dictionary. Otherwise, returns False (0). |
| name | The key name at the current iterator position |
| objectId | The AutoCAD.ObjectId at the current iterator position. |
Methods
| getObject | Opens the AutoCAD.Object associated with the ObjectId at the current iterator position. |
| next | Advances the iterator to the next position in the Dictionary. |
Details
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.DictionaryIterator.done
readonly int done
Description
True (1) if the iterator is past the end of the Dictionary. Otherwise, returns False (0).
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.DictionaryIterator.name
readonly name
Description
The key name at the current iterator position
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.DictionaryIterator.objectId
readonly AutoCAD.ObjectId objectId
Description
The AutoCAD.ObjectId at the current iterator position.
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.DictionaryIterator.getObject()
| AutoCAD.Object getObject( int openMode = 0 ) |
Parameters
| openMode | The mode by which to open the object. 0 for read only, 1 for write-enabled. |
Returns
| AutoCAD.Object | The Object at the current iterator position. |
Description
Opens the AutoCAD.Object associated with the ObjectId at the current iterator position.
Do no remove, this fixes the anchor on doc.flexsim.com
AutoCAD.DictionaryIterator.next()
| int next( ) |
Returns
| int | True (1) i |
Description
Advances the iterator to the next position in the Dictionary.