Nowadays, automated G-code generation can be achieved with either free software that are available on the web or with specialized Computer-Aided Manufacturing (CAM) systems. In the first case, 3D parts cannot be directly handled, whereas in the second one, the purchase cost is usually very high. The present paper introduces a way of utilizing 3D Computer-Aided Design (CAD) systems to generate G-code for drilling operations. The idea is to supplement free CAM systems, enabling 3D part handling, without the need for specialized CAM software. The methods and functions available in the Application Programming Interface (API) of SolidWorks™ were combined to develop the code using the Visual Basic for Applications (VBA™) language. Specifically, the appropriate API methods were employed to identify the design features of the part, enabling the geometric parameters extraction. The aim of the tool is the Computer Numerical Control (CNC) code generation for the identified hole features or geometric surfaces that belong to holes. A User Interface (UI) was designed to allow the user to interact. Additionally, an embedded calculator was added for the automatic calculation of the cutting parameters (cutting speed, feed, and tool), with respect to the inputs.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Integration of CAD Software Programming for G-code Generation

  • Panagiotis Kyratsis,
  • Anastasios Tzotzis,
  • João Paulo Davim

摘要

Nowadays, automated G-code generation can be achieved with either free software that are available on the web or with specialized Computer-Aided Manufacturing (CAM) systems. In the first case, 3D parts cannot be directly handled, whereas in the second one, the purchase cost is usually very high. The present paper introduces a way of utilizing 3D Computer-Aided Design (CAD) systems to generate G-code for drilling operations. The idea is to supplement free CAM systems, enabling 3D part handling, without the need for specialized CAM software. The methods and functions available in the Application Programming Interface (API) of SolidWorks™ were combined to develop the code using the Visual Basic for Applications (VBA™) language. Specifically, the appropriate API methods were employed to identify the design features of the part, enabling the geometric parameters extraction. The aim of the tool is the Computer Numerical Control (CNC) code generation for the identified hole features or geometric surfaces that belong to holes. A User Interface (UI) was designed to allow the user to interact. Additionally, an embedded calculator was added for the automatic calculation of the cutting parameters (cutting speed, feed, and tool), with respect to the inputs.