几何尺寸与公差论坛

 找回密码
 注册
查看: 853|回复: 0

【转帖】imports interop verses imports sldworks

[复制链接]
发表于 2009-4-12 18:42:19 | 显示全部楼层 |阅读模式
imports interop verses imports sldworks?
i started looking at the macros in 2009 and noticed that when i create a macro using solidworks it imports solidworks.interop.sldworks and does the ctype conversion for modeldoc2 and other objects. when i first started using vb.net the conversions were confusing me so i just use imports sldworks and i quit using the ctype conversions.
question - what are the pro and cons of using imports interop verses using imports sldworks?
dan miel
sw 2008
i don't believe there are any real advantages, both tlb and dll files should be exported with each release and so in esscense should be the same, just one is using .net, the other is com. obviously com is technically quite legacy and so .net should be chosen to "keep up with the times", but for programmers i have yet to come across any advantages/disadvantages.
batchprocess at the moment uses com with no problem, but bp 2.0 will be using the .net libraries purely for conformity.
thanks for replying luke. i wasn't aware that it was a difference between using com and net but after reading this it seems like i did read that someplace.
thanks again
dan miel
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2025-1-3 10:43 , Processed in 0.038198 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表