Message 1 of 3
AcDbObjectIterator::entity() returns NULL
Not applicable
10-03-2002
10:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to access the Attributes on a blockreference. by the asking of
the AcDbBlockReference::attributeIterator function.
But while iterating over the entities (attributes) thru the
AcDbObjectIterator::entity method, i am getting a null value always...
when i looked for help on the above function in Arx docs... it was as
follows
what is the meaning of "If the entity is database-resident, then NULL " then
how can i access and modify the attributes ?
regards
Vikram
ARX DOC Says:
AcDbObjectIterator::entity Function
AcDbEntity *
entity();
If the entity the iterator is currently positioned on is not
database-resident, then a pointer to the entity will be returned. If the
entity is database-resident, then NULL will be returned. When iterating over
database-resident entities, the AcDbObjectIterator::objectId() method should
be used to obtain the entity's objectId, which can then be used to open the
object.
the AcDbBlockReference::attributeIterator function.
But while iterating over the entities (attributes) thru the
AcDbObjectIterator::entity method, i am getting a null value always...
when i looked for help on the above function in Arx docs... it was as
follows
what is the meaning of "If the entity is database-resident, then NULL " then
how can i access and modify the attributes ?
regards
Vikram
ARX DOC Says:
AcDbObjectIterator::entity Function
AcDbEntity *
entity();
If the entity the iterator is currently positioned on is not
database-resident, then a pointer to the entity will be returned. If the
entity is database-resident, then NULL will be returned. When iterating over
database-resident entities, the AcDbObjectIterator::objectId() method should
be used to obtain the entity's objectId, which can then be used to open the
object.