高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】query regarding hatching entities
query: regarding hatching entities
query: regarding hatching entities
hi all..
i have developed an mfc application using the libary dwg direct 1.11.01.00. in this application, i have implemented selection of polylines using hatches. and this is done successfully..
the problem is while saving the drawings, with hatches, to a new file, the new file is missing some polylines. ie. all the polylines are not being saved to the new drawing...
why is it so..
how can it be rectified...
tia
-------------------------------
regards,
rajesh parameswaran
rajuinnet
# 29th september 2004, 04:11 am
moderator join date: mar 2002
posts: 2,994
which polylines are not saved? oddbpolylines or lines which represent the hatch?
some sample files and/or pictures would be helpful...
sergey slezkin
sslezkin
# 29th september 2004, 09:11 pm
registered user join date: jul 2004
location: india
posts: 82
problem solved...
hi sergey,
thank you for your reply..
i solved the problem, its because, i was using the same object for hatching, and the hatched polylines (oddbpolyline) are added to a seperate layer. so on each selection, the old hatch polyline will be removed. (single selection). and i have used the same reference for creating the hatches..
for eg:
if(pchildobj->iskindof(oddbpolyline::desc()))
{
oddbpolylineptr pchildobjpoly2d = oddbpolyline::createobject();
pchildobjpoly2d = pchildobj;
.....
}
i used the same reference...
and i tried this
pchildobjpoly2d->copyfrom(pchildobj);
now the problem is solved..
but the entities are displaying not in an order by layers..
which ever polylines i have selected comes at the top of all the layers...
i found from the forum that, we should use od?db?sortents?table for sorting of entities..
so how to implement this,..
do i sort by layer.. or by blocktablerecord
tia
------------------
regards,
rajesh parameswaran
rajuinnet
none
? | ?
thread tools
display modes
linear mode
search this thread
rate this thread
excellent
good
average
bad
terrible
posting rules
you may post new threads
you may post replies
you may post attachments
you may edit your posts
is on
are on
code is off
html code is off
forum jump
user control panel private messages subscriptions who's online search forums forums home general topics news questions and remarks business issues industry commentary general software issues documentation issues future directions dwg libraries dwgdirect.net dwgdirect, c++ version dwgdirectx, activex version adtdirect/c3ddirect opendwg toolkit/viewkit dgn libraries dgndirect, c++ version (2.x+) dgndirect libraries (legacy 0.99xx)
all times are gmt -7. the time now is 12:51 amfff">.
- - -
copyright ?2000 - 2009, jelsoft enterprises ltd.
copyright 1998-2008 open design alliance inc.
which polylines are not saved? oddbpolylines or lines which represent the hatch?
some sample files and/or pictures would be helpful...
sergey slezkin
problem solved...
hi sergey,
thank you for your reply..
i solved the problem, its because, i was using the same object for hatching, and the hatched polylines (oddbpolyline) are added to a seperate layer. so on each selection, the old hatch polyline will be removed. (single selection). and i have used the same reference for creating the hatches..
for eg:
if(pchildobj->iskindof(oddbpolyline::desc()))
{
oddbpolylineptr pchildobjpoly2d = oddbpolyline::createobject();
pchildobjpoly2d = pchildobj;
.....
}
i used the same reference...
and i tried this
pchildobjpoly2d->copyfrom(pchildobj);
now the problem is solved..
but the entities are displaying not in an order by layers..
which ever polylines i have selected comes at the top of all the layers...
i found from the forum that, we should use od?db?sortents?table for sorting of entities..
so how to implement this,..
do i sort by layer.. or by blocktablerecord
tia
------------------
regards,
rajesh parameswaran
|