AcDbEntity in Dictionary?

AcDbEntity in Dictionary?

Anonymous
Not applicable
848 Views
4 Replies
Message 1 of 5

AcDbEntity in Dictionary?

Anonymous
Not applicable
Hi All,

My impression is that all graphic entities must be in the block table. But I
also read that a dictionary can hold any object. So the question is: can an
entity reside in a dictionary? If so, is it displayed like the ones in the
block table?

Thanks!
Lou
0 Likes
849 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Lou,

Why do you need to do this?

Each AutoCAD object must be stored only inside compatible object container.
AutoCAD will not handle an Entity inside NOD and you will get unpredictable
results, most of times AutoCAD will crash.

Regards,
Fernando.

"Lou" wrote in message
news:943416F8946D9ABA5CE02AB40CF25318@in.WebX.maYIadrTaRb...
> Hi All,
>
> My impression is that all graphic entities must be in the block table. But
I
> also read that a dictionary can hold any object. So the question is: can
an
> entity reside in a dictionary? If so, is it displayed like the ones in the
> block table?
>
> Thanks!
> Lou
>
>
0 Likes
Message 3 of 5

Anonymous
Not applicable
AcDbEntities must be owned by an AcDbBlockTableRecord.

And dictionaries have nothing to do with the graphics engine, so no entity
would be 'displayed' even if you did manage to add it.

--
Cheers,

Stephen Preston
Developer Technical Services
Autodesk
http://adn.autodesk.com



"Lou" wrote in message
news:943416F8946D9ABA5CE02AB40CF25318@in.WebX.maYIadrTaRb...
> Hi All,
>
> My impression is that all graphic entities must be in the block table. But
I
> also read that a dictionary can hold any object. So the question is: can
an
> entity reside in a dictionary? If so, is it displayed like the ones in the
> block table?
>
> Thanks!
> Lou
>
>
0 Likes
Message 4 of 5

Anonymous
Not applicable
No, I don't want to store entity elsewhere. Guess I was confused by
"dictionary stores any objects". I think I read the document wrong. Thanks
for the replies. -Lou

"Stephen Preston" wrote in message
news:EB803A5242586B8EB4C224642CC13921@in.WebX.maYIadrTaRb...
> AcDbEntities must be owned by an AcDbBlockTableRecord.
>
> And dictionaries have nothing to do with the graphics engine, so no entity
> would be 'displayed' even if you did manage to add it.
>
> --
> Cheers,
>
> Stephen Preston
> Developer Technical Services
> Autodesk
> http://adn.autodesk.com
>
>
>
> "Lou" wrote in message
> news:943416F8946D9ABA5CE02AB40CF25318@in.WebX.maYIadrTaRb...
> > Hi All,
> >
> > My impression is that all graphic entities must be in the block table.
But
> I
> > also read that a dictionary can hold any object. So the question is: can
> an
> > entity reside in a dictionary? If so, is it displayed like the ones in
the
> > block table?
> >
> > Thanks!
> > Lou
> >
> >
>
>
0 Likes
Message 5 of 5

Anonymous
Not applicable
All objects of classes derived (directly or indirectly) from AcDbEntity must
be owned by an AcDbBlockTableRecord. They cannot be in a dictionary.

"Lou" wrote in message
news:943416F8946D9ABA5CE02AB40CF25318@in.WebX.maYIadrTaRb...
> Hi All,
>
> My impression is that all graphic entities must be in the block table. But
I
> also read that a dictionary can hold any object. So the question is: can
an
> entity reside in a dictionary? If so, is it displayed like the ones in the
> block table?
>
> Thanks!
> Lou
>
>
0 Likes