Dxf到g代码转换器 [英] Dxf to g code converter

查看:587
本文介绍了Dxf到g代码转换器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我想在vc ++中编写一个程序,将.dxf文件转换为g代码文件。任何人都可以帮助我或指出正确的方向吗?



我尝试过的事情:



我尝试了很多库,但没有一个能正常工作。请帮帮我

Hi all!
I want to write a program in vc++ that will convert a .dxf file to a g-code file. Can anyone help me or point me in the right direction?

What I have tried:

I tried lots of library but none of them is working. please help me

推荐答案

据我所知,现有的转换器正在运行但有其局限性(这是基于这两种格式与你不同的事实无法处理所有转换案例,有些只能通过用户交互或预定义设置处理。)



如果你还想自己做一些提示:


  • 获取DXF和G代码格式规范

  • 了解格式的结构

  • 定义处理全局和块范围数据的规则

  • 定义元素的转换规则(此处:DXF元素到G代码指令)

  • 如有必要,请处理特定版本的案例

  • 在代码中实施规则

As far as I know the existing converters are working but have their limitations (which are based on the fact that these two formats are so different that you can't handle all conversion cases and some only with user interaction or predefined settings).

Some hints if you still want to do it yourself:

  • Get the DXF and G-code format specifications
  • Understand the structures of the formats
  • Define rules to handle global and block scope data
  • Define conversion rules for the elements (here: DXF element to G-code instructions)
  • If necessary handle version specific cases
  • Implement the rules in code


这篇关于Dxf到g代码转换器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆