高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】proxyentity
proxyentity
proxyentity
i am trying to import the data for an aeccontour (ldd entity) which i think is stored as a proxyentity. it does not seem to be stored as a collection of simpler entities (lines, arcs...) i've heard they are stored more as a collection of doubles in blob data.
anyone have ideas on how i can get access to the blob data for a proxyentity? assuming that is what i need.
in general to access proxy entity data you need to know it's format. assuming you know it where is no problem in implementing a class derived from oddbentity (or some other) representing it. you need to implement its dwgin() and dwgout() functions. if the custom class is registered in dwgdirect after loading the file you'll have myentity instance, not proxy entity.
excustobjs from examples contains a sample implementing a custom entity.
as for adt entities adtdirect is the implementation of them. using it you'll get not proxy but entities of implemented classes - walls, windows etc.
sergey slezkin
ldd not adt
"...you need to know it's format. assuming you know it..."
thats the trick though and thats why i use dd.
the entity i'm looking for comes from land developoment desktop which i'm most certain is different from architectural desktop(adt).
am i wrong? does adt read aeccontour entities? that would be sweet. is there a help file for what adt entities are available?
aecbase classes are used in a number of autodesk's desktops. aeccontour is among them.
as i know adtdirect has help. at least you can search through adt headers.
sergey slezkin
|