几何尺寸与公差论坛------致力于产品几何量公差标准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-04, 06:15 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】converting oddb objects to odge objects

converting oddb objects to odge objects
converting oddb objects to odge objects
hi i am a bit new to dwgdirect programming and have a question. it seems to have been asked a couple of times in various ways in both this forum and the autodesk forum. but i can't seem to find a real answer. sorry if i am repeating something that has been answered already.
the use case is this: i have a dwg drawing that i want to read and check that various rules have been followed in it's construction (e.g. circles are no more that 5 inches in diameter, they are not closer that 10 feet apart, etc). the odge library seems perfect for these type of geometric calculations, but the objects are in oddb form.
1. is there a way to convert between the two libraries (casting operator or conversion function) ?
2. if yes, are there any side effects i should be aware of ?
3. if no, how should i solve this problem ?
thanks,
todd k.
hi todd,
1) as i know there is no direct way to do such conversion.
2) no side effects because you don't have it
3) there can be different ways to solve it depending on what you need. do need a kind of virtual function getasgeentity and it returns odgeentity3d* as a result? or you simply need to convert several base classes like oddbline, oddbcircle or oddbarc to their geometrical analogues and use for example a switch() statement rather than some complex virtual mechanism?
best regards
chudomir
odge <-> oddb for oddbhatch loops ?
hi everybody,
i am looking too for easy conversions between odge and oddb classes.
in fact i would like to import the oddbhatches loops as oddbcurve and not as odgecurve2d.
i would like to avoid rewriting the code that parse oddbcurve for odgecurve.
have you got a solution ?
thank you in advance.
last edited by jerome roche; 11th january 2008 at 02:25 amfff">.
no answer ?
is there anyone here ?
hi jerome,
i think there is no direct conversion to extract the hatch loops.
a hatch loop can be of a polyline type (points and bulges) and in that case it can be easily converted to oddbpolyline object.
but when the loop consist of odge curves, then you should create either separate oddbcurve for each item, or one oddbregion composed by the smaller curves (they can be type of line, arc, spline or elliptical arc).
best regards
chudomir
best regards
chudomir
thank you for your answer.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


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

高级搜索
显示模式

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

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

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】cant see objects in some file yang686526 DirectDWG 0 2009-05-04 05:36 PM
【转帖】acad custom objects with dwgdirec yang686526 DirectDWG 0 2009-05-04 03:27 PM
【转帖】objectarx&dummies教程(十二)—— deriving from acdbobject yang686526 ObjectARX(C++) 0 2009-04-16 10:40 AM
【转帖】declaring objects and setting objects yang686526 SolidWorks二次开发 0 2009-04-12 08:38 PM


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


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