高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】adtdirect wall geometry question
adtdirect wall geometry question
adtdirect wall geometry question
hi,
i have just started using adtdirect, and i can figure out how to read openings, and the anchor information of where they are on the wall, etc. but for the life of me i cannot figure out how to just get the start/end point of the wall?!
i have noticed that the mfcapp sample has the information in the group codes, is this the proper way to go about getting the information? if so, is there any reason i cannot iterate through with with pwall->xdata()?
thanks in advance,
quincy
hello,
the easiest way to obtain start and end points is the following:
aecdbwallptr pwall = ...
odgepoint3d pts = pwall->getstartpoint();
odgepoint3d pte = pwall->getendpoint();
these are methods from oddbcurve interface.
actually all aec entities should implement oddbcurve interface.
(currently not all of them implement it)
but as oddbcurve is not fully available currently
the base for these methods is aecdbgeo (the ancestor of aecdbwall).
regards,
vladimir alekseev
sorry for the mistake.
these methods return points in parameter:
odgepoint3d pts, pte;
odresult es = pwall->getstartpoint( pts );
odresult ee = pwall->getendpoint( pte );
works great, thanks!
|