几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-06, 04:49 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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."
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】display drawing without background yang686526 DirectDWG 0 2009-05-04 07:50 PM
【转帖】display the weight of a part in text bo yang686526 SolidWorks二次开发 0 2009-04-13 10:25 AM
【转帖】change a drawing views display state yang686526 SolidWorks二次开发 0 2009-04-13 09:36 AM


所有的时间均为北京时间。 现在的时间是 10:31 AM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多