Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting all entity types

0 views
Skip to first unread message

Andrew le Bihan

unread,
Jun 18, 2001, 2:55:27 PM6/18/01
to
Does anyone know if there's a way of getting a list of all entity types
(AcDbLine etc), including custom types for the current session of AutoCAD.
I'm not talking about types actually appended to the database - I mean any
types which it's possible to append - in ARX.

Cheers

Andy


Byron Blattel

unread,
Jun 18, 2001, 3:50:11 PM6/18/01
to
Andrew,

This filters for entities with geometry:

AcRxDictionaryIterator* iter = acrxClassDictionary->newIterator();
if(iter)
{
while(!iter->done())
{
AcRxObject* pObj = iter->object();
if(pObj->isKindOf(AcRxClass::desc()))
{
AcRxClass* rx = (AcRxClass*)pObj;
// filter for AcDbEntity derived entities only
if(rx->isDerivedFrom(AcDbEntity::desc()))
{
CString classname = iter->key();
// TODO: do something with classname
}
}
iter->next();
}
delete iter;
}

--
|
----+----------------------------------------------
| Byron Blattel
| CADwerx---Applications for AutoCAD
| Autodesk Registered Developer
| email: by...@cadwerx.net
| web site: http://www.cadwerx.net
|

Andrew le Bihan

unread,
Jun 19, 2001, 2:19:13 AM6/19/01
to
Byron

Thanks - that looks perfect.

Andy

"Byron Blattel" <cad...@texas.net> wrote in message
news:3B2E5B73...@texas.net...

0 new messages