高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】accessing entities 9opendwg vw dwgdirect0
accessing entities (opendwg vw dwgdirect)
accessing entities (opendwg vw dwgdirect)
first of all i didn't write the code i'm trying to upgrade. in fact, i have very limited experience in writing dwg accessing code.
i am updating code from opendwg to dwgdirect. there is a routine which calls adlwplineenttype (dwg_handle) which returns a short. what do i use in dwgdirect to duplicate this function?
also, the code used to save a pointer to the enitity header and to the entity body. it would then be able to return the entity type with a pointer to
->enttype as defined in ad2.h. how do i get the entity type in dd?
opendwg had a great document to aid in programming. is there a good beginner's reference for dwgdirect? how did everyone else learn how to convert from opendwg to dwgdirect?
thanks,
al
last edited by arice42; 1st august 2004 at 02:21 pmfff">.
pobj->iskindof(oddbpolyline::desc())
is equivalent to adlwplineenttype (where pobj is a pointer to an oddbentity).
entity type in dd can be determined with the iskindof function shown above, or you can use our protocol extension mechanism described in the help documentation, and demonstrated in our odreadex sample application.
our sample applications, and the "creating dwgdirect client applications" section of our help, are the best resources for learning how to use dwgdirect.
|