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


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


回复
 
主题工具 搜索本主题 显示模式
旧 2009-04-13, 11:04 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】getting drawings into an app

getting drawings into an app
i use solidworks for my spec sheets and i have an app that prints out my entire spec sheet and i am wondering if instead of exporting my drawings out to an image file if i can use an edrawings file and embed that into my vb code to print.
any tips on pointing me in the right direction would be appreciated.
i originally had this posted in the edrawings section but thought this might be more appropriate.
also if there is a way to do this does it show how in the book that luke malpass put together ?
thanks,
jonah
you want to take a solidworks drawing, save it as an edrawings drawing, and then print it?
drc inc.
minneapolis, mn
.designreadycontrols.com
sw2007 sp5.0
core2 quad
3gb ram
xp pro sp2
ati firegl v3600
i want be be able to put either the sw file or edrawings file into my application where it will display just the image of the drawing when i print it out. inside my application there would be several hundred drawings put in to complete my spec book.
to elaborate on my spec book application i take an image and insert it to a row, next to the image i have the product lists that are pulled from a database.
so what i am looking to do is print my whole spec sheet (300-400) products total.
if it were possible i would rather embed a solidworks drawing into the application rather than saving the drawing as an image then using photoshop to make it look decent then putting it in my app.
thanks,
jonah
you can do it but it gets a bit complicated for me to just explain in a post.
what you want is a datagrid that links into all of your sw files, then a custom cell model for one of the columns that embeds an array of axedrawingcontrols as the type (tricky), and then for each row that is created you need an event handler to initialise this cell properly to load the file dynamically at the time of the datagrid creation. this would allow you to have full edrawing control over each model too, so you could zoom in and out, rotate and print along with more.
but like i say it would be too much for me to explain this process in a post.
is that something that your book would explain?
not directly no as it is more of an edrawings/database type project and the book looks like it will take the product development area for the latter half as oppose the edrawings/pdm/documentmananger advanced topics as there is more demand for the development side of things.
if you would like some freelance programming done you can email me your requirements and i can give you a quote for the work.

edited: 08/07/2008 at 09:40 am by luke malpass
quick
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】disable printing in e-drawings yang686526 SolidWorks二次开发 0 2009-04-13 10:23 AM
【转帖】automatically generated drawings yang686526 SolidWorks二次开发 0 2009-04-13 09:10 AM
【转帖】sw2009 api sldworks.activatedoc290 causes background sw to become visible yang686526 SolidWorks二次开发 0 2009-04-12 10:34 PM
【转帖】c/c++的位运算符操作 huangyhg vc编程 0 2008-12-17 10:36 PM


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


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