几何尺寸与公差论坛------致力于产品几何量公差标准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:53 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】line weight error when display on paperspace yang686526 DirectDWG 0 2009-05-06 04:49 PM
【转帖】hatch vectorization - viewport - paperspace yang686526 DirectDWG 0 2009-05-05 11:58 AM
【转帖】freeze layer in viewpor yang686526 DirectDWG 0 2009-05-05 11:07 AM
【转帖】erasing the nonrectclipentity attached to a paperspace viewp yang686526 DirectDWG 0 2009-05-05 09:33 AM


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


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