高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】lineweight in paperspace
lineweight in paperspace
lineweight in paperspace
hi,
is it correct that lineweights of entities belonging to paperspace are ignored while drawing?
there is a circle in attached file, in layout1. it has lineweight 211, but lineweighttopixels returns 0.
tia
regards,
michal sliwka
attached files
displaying of lineweights was disabled in your file (lwdisplay database variable is false).
sincerely yours,
george udov
quote:
originally posted by george udov
displaying of lineweights was disabled in your file (lwdisplay database variable is false).
it's not the problem.
i did set lwdisplay to true before drawing.
i also have a file made in autocad, with lwdisplay = false, and lineweights in paper space are drawn, after setting lwdisplay to true.
the previous file was generated by odexwrite, with setlineweight added.
my problem is to create file using the library, with elements in paperspace with lineweight.
tia
regards,
michal sliwka
attached files (35.3 kb, 7 views)
last edited by sliwka; 15th july 2005 at 06:37 amfff">.
i cannot reproduce any problems.
after executing pdb->setlwdisplay(true); lineweights gets rendered successfully.
btw, in paperspacelineweight.dwg lwdisplay is false too.
maybe i'm misunderstanding the problem?
sincerely yours,
george udov
i'm having a similar trouble. i call:
database()->setlwdisplay(true);
and then force a redraw. i have set the lineweight to 211 and i don't see a change. is there a some rule about layer0 and lineweights?
george,
i'm not sure that i have caching enabled correctly. i have called enablegsmodel(true) but when i call m_pdevice->gsmodel() returns null. i checked where i create the device (wingdi) and its trys to set the enablecaching properties on the device but it is unsupported. regardless, whether i have enablegsmodel(true) or enablegsmodel(false) i don't see the lineweights drawn. i do see them in a print preview... can you enlighten me on whats needed to enable the caching... and why printpreview displays lineweights automatically?
thanks,
tyler edwards
george,
i am indeed reproducing this with the changes you suggested in odamfcapp. i see the same trouble in both my app and odamfcapp. if autocad set the lwdisplay flag... i see the lineweight. if it doesn't... nothing i try seems to affect the rendering of the lineweight.
tyler
george,
i'm sure. i've attached my test files. im using 1.13.02 in xp and vs.net 2003 mdd (debug) libraries linked statically.
using autocad_lw_on_line.dwg i (correctly) see the 211 lineweight in the modified odamfcapp you suggested. autocad_lw_off_line.dwg doesn't display the lineweight even though the files are identical besides the lwdisplay setting coming from autocad. this is the exact behavior i see in my app as well.
thanks,
tyler
attached files (26.7 kb, 9 views)
(26.7 kb, 12 views)
tillerstarredwards
|