高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】line weight error when display on paperspace
line weight error when display on paperspace?
line weight error when display on paperspace?
hi guys.. i have a problem about displaying the line weight of objects in paperspace.
they seem setting "lwdisplay" on (true) was already correct.
but the thickness of all lines was error. so i have to zoom in them(lines object)with very large scale to see
their line weight setting was set on either their scale of line weight in each lines were correct.
but these can't happen in normally view(with out zoom) on paperspace.they seem terribly invalid size scaling of line weight,
look like they never had line weight on my program(but they can be displayed correctly when open with autodesk)
anyway,when i created them on modelspace by changing "getpaperspaceid" to "getmodelspaceid"
they look very fine in anyview. no problem about line weight on modelspace.
so..what wrong with these? and what should i do to set them correctly.
more detial, now i using dwgdirect version 1.14 thanks a lot for helping
last edited by parinya; 23rd november 2006 at 01:15 amfff">.
i have change to dd 2.10 but.. it still can't solve problem
here is picture descript more detail
attached images (18.1 kb, 17 views)
hi,
where (in which viewer) line weight is displayed incorrectly ? in which dwg ?
hi there, i've open this file in odamfc v2.10
and then i've to zoom in to see their lineweigth.
please, help me.
anysuggestion are welcome.
i've been in hurry for deadline
here is dwg file which have problem.
attached files (8.5 kb, 7 views)
hi,
i did not solve the problem yet, i think, something's wrong with dwg and it's related somehow on measurement variable. initially, when dwg is opened with autocad 2007 it's displayed with one-pixel line weight, if to execute regen command (or do something that leads autocad to perform regen) then it displayed with thicker line weight.
i found if to open plot settings dialog box and press "ok" and then to save dwg, then odamfcapp displays this dwg with line weight the same as in autocad.
to do that you should set plimmin and plimmax in such a way that
plimmax.x - plimmin.x == paperwidth and
plimmax.x - plimmin.x == paperheight.
for this particular dwg it can be done so:
pdb->setplimmin(odgepoint2d(0., 0.));
pdb->setplimmax(odgepoint2d(300., 300.));
ok thanks a lot novikov
now i can see my thickness of lw was displayed almost correctly on paperspace.
but.. i still get another newer problem of them.
that is when i've created my dwg viewer for first time with small window.
the lw of them seem as small as the window's size.
(if window is very small the lw seem disappear!?!)
so i've to set my window's viewer to maximum before open dwg file to see
the lw almost correctly. how can i solve this problem?
(should i have to do something about getplimmin..max etc to vary lw with onsize window?)
caz i want to see lw can be displayed correctly when open with anysize of windows' viewer.
thanks for helping me. i'll wait for answer everyday
line weight in paper space is scaled according to window size.
try to open dwg in small window of autocad, you'll see the same.
you must not adjust line weight scale varying plimmin/max, values of these variables must correspond to paper size (and vise versa) to have line weight displayed correctly.
i think, there is something else wrong with you drawing (as i said - with measurement), but i did not catch it yet.
thanks novikov
i can't solve that neither.
but now i put that problem away by changed device from opengl to window gdi. now my lw can display as i wish
fyi: opengl lineweight is implemented using gllinewidth().
msnd says about it:
"... if an unsupported width is requested, the nearest supported width is used. only width 1.0 is guaranteed to be supported; others depend on the implementation. the range of supported widths and the size difference between supported widths within the range can be queried by calling glget with arguments gl_line_width_range and gl_line_width_granularity."
|