CN112906215A - Pipe tool path generation method based on SolidWorks secondary development - Google Patents

Pipe tool path generation method based on SolidWorks secondary development Download PDF

Info

Publication number
CN112906215A
CN112906215A CN202110164071.5A CN202110164071A CN112906215A CN 112906215 A CN112906215 A CN 112906215A CN 202110164071 A CN202110164071 A CN 202110164071A CN 112906215 A CN112906215 A CN 112906215A
Authority
CN
China
Prior art keywords
tool path
contour
coordinate system
pipe
executing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110164071.5A
Other languages
Chinese (zh)
Other versions
CN112906215B (en
Inventor
夏宇锐
常勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Hongshi Laser Technology Co Ltd
Original Assignee
Guangdong Hongshi Laser Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Hongshi Laser Technology Co Ltd filed Critical Guangdong Hongshi Laser Technology Co Ltd
Priority to CN202110164071.5A priority Critical patent/CN112906215B/en
Publication of CN112906215A publication Critical patent/CN112906215A/en
Application granted granted Critical
Publication of CN112906215B publication Critical patent/CN112906215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Abstract

The invention discloses a pipe cutter path generation method based on SolidWorks secondary development, and relates to the field of numerical control machining. The method for generating the pipe tool path based on the SolidWorks secondary development has the advantages that the two development interfaces provided by the SolidWorks software are used, feature analysis and identification are carried out on a pipe part model, tool path information is rapidly generated and an NC code file is generated, accuracy of analyzing the type of a contour line can be improved, a small number of discrete nodes and an NC file with a small code amount are generated on the basis, efficiency of subsequent pipe cutting is improved, and production efficiency is improved.

Description

Pipe tool path generation method based on SolidWorks secondary development
Technical Field
The invention relates to the field of numerical control machining, in particular to a pipe cutter path generating method based on SolidWorks secondary development.
Background
SolidWorks is a three-dimensional CAD system developed based on Windows under the Dassault systems (Dassault systems) flag, and has powerful functions and various components.
The SolidWorks uses Windows OLE technology, visual design technology, advanced parasolid kernel and good integration technology with third-party software, and has a large market share in the world.
Because solid works is mainly concentrated on Computer Aided Design (CAD), the tool path processing is not related much in Computer Aided Manufacturing (CAM), particularly, the tool path processing plug-ins for the laser pipe cutting machine are quite few, while the traditional tool path generating software needs to generate the tool path by a large amount of calculation on parts designed for the solid works, the efficiency is low, the judgment on the line processing, particularly on a circular arc, is not accurate, and excessive G codes can be generated, so that the cutting efficiency is influenced when laser cutting equipment is adopted for processing at the later stage.
Therefore, a pipe cutter path generating method based on the SolidWorks secondary development is required to be provided to assist the production and processing process of the laser cutting pipe.
Disclosure of Invention
In order to solve the technical problems, the invention aims to provide a pipe cutter path generating method based on SolidWorks secondary development. The traditional tool path generation method cannot accurately classify edges, generally breaks arcs and curves into small line segments for fitting, is low in efficiency, can directly analyze the types of the edges through SolidWorks secondary development, directly generates arc codes which can be identified by a machine tool aiming at the arcs, and improves the execution efficiency of the machine tool.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a pipe cutter path generation method based on SolidWorks secondary development comprises the following steps:
step S1: analyzing the profile of the file of the pipe part through a pipe section and profile analysis module;
step S2: generating tool path information through a tool path information generating module;
step S3: the NC file generation module generates an NC file from the tool path information generated in step S2.
Preferably, the step S1 includes the following steps:
step S1.1: creating a new part design document in SolidWorks for pipe model design, generating a part document, or directly opening an existing part document;
step S1.2: selecting a specified user-defined tool path coordinate system;
step S1.3: judging whether a specified tool path coordinate system exists in the current part document, if so, executing the step S1.5, otherwise, executing the step S1.4;
step S1.4: establishing a default tool path coordinate system;
step S1.5: calculating a transformation matrix of the tool path coordinate system relative to a world coordinate system;
step S1.6: drawing a tool path coordinate system in the part document;
step S1.7: mapping the designed pipe part model to a tool path coordinate system by using the coordinate transformation matrix calculated in the step S1.5;
step S1.8: calculating and outputting the size parameters of the pipe part model, wherein the size parameters comprise length, width, height, circle radius and chamfer radius;
step S1.9: analyzing and outputting the curved surface characteristics of the pipe part model, wherein the geometric elements of the curved surface characteristics comprise a surface, a closed contour and an edge;
step S1.10: analyzing and outputting the section types of the pipe part model, wherein the section types comprise round, rectangular, oval, triangular, oval, hexagonal, L-shaped, I-shaped and groove-shaped;
step S1.11: and caching the pipe part model parameter information output in the step S1.8, the step S1.9 and the step S1.10.
Preferably, the step S2 includes the following steps:
step S2.1: loading a tool path configuration in SolidWorks, wherein the tool path configuration comprises interpolation step length and tolerance;
step S2.2: setting a normal direction of cutting of a cutter path, wherein the direction comprises a surface normal and 5-axis cutting;
step S2.3: reading the parameter information data of the pipe part model cached in the pipe section and contour analysis module, and circularly processing the nth closed contour, wherein n is more than or equal to 1 and less than or equal to the total number of the contours;
if n > the total number of contours, the contours are processed, and step S2.11 is executed;
otherwise, executing step S2.4;
step S2.4: judging whether the contour to be processed currently is an outer contour:
if yes, executing step S2.5;
otherwise, n is n +1 and step S2.3 is performed;
step S2.5: circularly processing the mth edge of the current contour, wherein m is more than or equal to 1 and less than or equal to the total number of the edges of the current contour;
if m > the total number of the current contour edge, the edge is processed, and if n is equal to n +1, executing step S2.3;
otherwise, executing step S2.6;
step S2.6: judging the type of the current line, wherein the line type is analyzed and calculated in the pipe section and contour analysis module, and the line type comprises a straight line, a regular circular arc and a B spline curve;
if the line type is a straight line, executing the step S2.7;
if the line type is a regular arc, executing the step S2.8;
if the line type is a B spline curve, executing the step S2.9;
step S2.7: calculating and caching the coordinates of the starting point of the straight line;
step S2.8: calculating the center coordinates and the radius of the circular arc;
step S2.9: dispersing lines by a B-spline curve interpolation method;
step S2.10: generating a current discrete node coordinate and a corresponding tool vector, wherein m is m +1, and executing the step S2.5;
step S2.11: sequencing the outlines of the generated nodes by taking the length X direction of the part as a main direction;
step S2.12: reading the lead configuration and generating a lead for each contour, wherein the lead comprises a lead-in wire and a lead-out wire;
step S2.13: displaying a tool path track and a tool normal in the pipe part model;
step S2.14: and serializing and storing the tool path data.
Preferably, the step S3 includes the following steps:
step S3.1: reading and setting relevant parameters of a machine and a cutting head;
step S3.2: reading the generated tool path data in the tool path information generation module;
step S3.3: outputting a corresponding G code according to the coordinates of each contour node of the tool path and the side information;
step S3.4: generating a free-range G code according to the final node of the current contour and the starting node of the next contour;
step S3.5: and saving the G code as an NC file.
Preferably, step S1.5 comprises the steps of:
step S1.5.1: taking an origin (x, y, z) of an absolute coordinate system of a tool path coordinate system, wherein the absolute coordinate system is relative to a world coordinate system;
step S1.5.2: vectors Vx, Vy and Vz of a tool path coordinate system in three directions of an X axis, a Y axis and a Z axis are taken;
step S1.5.3: respectively carrying out dot product operation on vectors Vx, Vy and Vz and vectors in three directions of an X axis, a Y axis and a Z axis of a world coordinate system to obtain intermediate variable values Vx1, Vy1 and Vz1, and forming an intermediate matrix T1 by the three intermediate values;
step S1.5.4: respectively taking negative values of the origin (x, y, z) of the coordinate system obtained in the step S1.5.1 to form a translation matrix T2;
step S1.5.5: and multiplying the matrix T1 with the matrix T2 to obtain a transformation matrix of the tool path coordinate system relative to the world coordinate system.
Preferably, said step S2.4 comprises the steps of:
step S2.4.1: all the surfaces of the part are obtained by utilizing a SolidWorks secondary development interface and are put into an array, and the array is sorted according to the area of the surfaces from large to small to obtain the listFace of the array;
step S2.4.2: performing cycle analysis on each surface of the array list face to separate the inner surface and the outer surface, wherein the specific method comprises the following steps:
step S2.4.2.1: taking the ith face (i), wherein i is more than or equal to 0 and less than the size of the face array, and taking any point of the face;
step S2.4.2.2: taking the normal of the surface at the point;
step S2.4.2.3: traverse the other face1, note: the face1 is the face of the listFace that is different from the face taken, face 1! A list face [ i ];
judging whether the face1 is parallel to the analyzed face listFace [ i ] through a SolidWorks secondary development interface:
if the normal line is parallel and also passes through the face1, the face1 face and the analyzed face listFace [ i ] are considered to be matched inner and outer faces;
step S2.4.2.4: if the area of the face1 surface is smaller than the analysis face i, the face1 surface is an inner surface, and the analysis face i is an outer surface;
step S2.4.3: and acquiring the contour of each surface by utilizing a SolidWorks secondary development interface, wherein if the surface where the contour is located is an outer surface, the contour is an outer contour, and otherwise, the contour is an inner contour.
Preferably, in step S2.13, the tool path trajectory and the tool normal are drawn by OpenGL.
Compared with the prior art, the invention has the beneficial technical effects that:
the method for generating the pipe tool path based on the SolidWorks secondary development is characterized in that feature analysis and identification are carried out on a pipe part model through a two-generation development interface provided by SolidWorks software, tool path information is generated rapidly, an NC code file is generated, the accuracy of analyzing the type of a contour line can be improved, a small amount of discrete nodes and an NC file with a small code amount are generated on the basis, the subsequent pipe cutting efficiency is improved, and the production efficiency is improved.
Drawings
FIG. 1 is a block diagram illustrating the operation of modules in the pipe cutting path generation method according to an embodiment of the present invention;
FIG. 2 is a schematic block diagram of step S1 in an embodiment of the present invention;
FIG. 3 is a functional block diagram of step S2 in an embodiment of the present invention;
fig. 4 is a schematic block diagram of step S3 in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments, but the scope of the present invention is not limited to the following embodiments.
Examples
Referring to fig. 1, the embodiment discloses a pipe cutting path generating method based on solid works secondary development, referring to fig. 1, a pipe section and contour analysis module, a cutting path information generating module and an NC file generating module are adopted, and an NC file is a numerical control program file.
Preferably, the programming language for programming the pipe cutter path generation method is C language, C + + language, C # language or Basic language.
Preferably, the programming language for programming the pipe cutter path generation method is a C + + language.
Referring to fig. 2, the pipe cutter path generating method includes the following steps:
step S1: analyzing the profile of the file of the pipe part through a pipe section and profile analysis module;
step S2: generating tool path information through a tool path information generating module;
step S3: the NC file generation module generates an NC file from the tool path information generated in step S2.
Preferably, step S1 includes:
step S1.1: creating a new part design document in SolidWorks for pipe model design, generating a part document, or directly opening an existing part document;
step S1.2: selecting a specified user-defined tool path coordinate system;
step S1.3: judging whether a specified tool path coordinate system exists in the current part document, if so, executing the step S1.5, otherwise, executing the step S1.4;
specifically, the judgment process of step S1.3 is: and transferring a SolidWorks secondary development interface, transmitting a specified coordinate system name, and judging whether the coordinate system exists according to the interface.
Step S1.4: establishing a default tool path coordinate system;
determining a coordinate system by taking the geometric center of the section of the part as a coordinate origin, the length direction as an X axis, the width direction as a Z axis and the height direction as a Y axis; here, a real coordinate system is created that is calculated and determined.
Step S1.5: calculating a transformation matrix of the tool path coordinate system relative to a world coordinate system;
step S1.6: drawing a tool path coordinate system in the part document;
specifically, step S1.6 is: and calling a SolidWorks quadratic development interface to draw a coordinate system, and introducing a coordinate origin and a vector in the direction of X, Y, Z.
It should be noted that step S1.4 is only to calculate coordinate system data, and is not drawn in the part document; while step S1.6 performs coordinate system display based on the coordinate system data, in a preferred embodiment, step S1.4 and step S1.6 may be combined.
Step S1.7: mapping the designed pipe part model to a tool path coordinate system by using the coordinate transformation matrix calculated in the step S1.5;
step S1.8: calculating and outputting the size parameters of the pipe part model, wherein the size parameters comprise length, width, height, circle radius and chamfer radius;
step S1.9: analyzing and outputting the curved surface characteristics of the pipe part model, wherein the geometric elements of the curved surface characteristics comprise a surface, a closed contour and an edge;
step S1.10: analyzing and outputting the section types of the pipe part model, wherein the section types comprise round, rectangular, oval, triangular, oval, hexagonal, L-shaped, I-shaped and groove-shaped;
step S1.11: and caching the pipe part model parameter information output in the steps S1.8, S1.9 and S1.10 so as to generate tool path data in the following process.
Referring to fig. 3, preferably, step S2 includes:
step S2.1: loading a tool path configuration in SolidWorks, wherein the tool path configuration comprises interpolation step length and tolerance;
step S2.2: setting a normal direction of cutting of a cutter path, wherein the direction comprises a surface normal and 5-axis cutting;
step S2.3: reading the parameter information data of the pipe part model cached in the pipe section and contour analysis module, and circularly processing the nth closed contour, wherein n is more than or equal to 1 and less than or equal to the total number of the contours; and the total number of the analyzed and cached profiles in the pipe section and profile analysis module.
If n > the total number of contours, the contours are processed, and step S2.11 is executed;
otherwise, executing step S2.4;
step S2.4: judging whether the contour to be processed currently is an outer contour:
if yes, executing step S2.5;
otherwise, n is n +1 and step S2.3 is performed;
step S2.5: circularly processing the mth edge of the current contour, wherein m is more than or equal to 1 and less than or equal to the total number of the edges of the current contour;
if m > the total number of the current contour edge, the edge is processed, and if n is equal to n +1, executing step S2.3;
otherwise, executing step S2.6;
step S2.6: judging the line type of the current edge, wherein the line type is analyzed and calculated in the pipe section and contour analysis module in the step S1.9, and the line type comprises a straight line, a regular circular arc and a B spline curve;
if the line type is a straight line, executing the step S2.7;
if the line type is a regular arc, executing the step S2.8;
if the line type is a B spline curve, executing the step S2.9;
step S2.7: calculating and caching the coordinates of the starting point of the straight line;
step S2.8: calculating the center coordinates and the radius of the circular arc;
step S2.9: dispersing lines by a B-spline curve interpolation method;
step S2.10: generating a current discrete node coordinate and a corresponding tool vector, wherein m is m +1, and executing a step S2.5;
step S2.11: sequencing the outlines of the generated nodes by taking the length X direction of the part as a main direction;
step S2.12: reading the lead configuration and generating a lead for each contour, wherein the lead comprises a lead-in wire and a lead-out wire;
step S2.13: displaying a tool path track and a tool normal in the pipe part model;
step S2.14: and serializing and storing the tool path data so as to open the part document for reuse.
Referring to fig. 4, preferably, step S3 includes:
step S3.1: reading and setting relevant parameters of a machine and a cutting head;
step S3.2: reading the generated tool path data in the tool path information generation module;
step S3.3: outputting a corresponding G code according to the coordinates and the side information of each contour node of the tool path, wherein the G code is an instruction in a numerical control program and is also called as a G instruction;
step S3.4: generating a free-range G code according to the final node of the current contour and the starting node of the next contour;
step S3.5: and saving the G code as an NC file.
Preferably, step S1.5 comprises the steps of:
step S1.5.1: taking an origin (x, y, z) of an absolute coordinate system of a tool path coordinate system, wherein the absolute coordinate system is relative to a world coordinate system;
step S1.5.2: vectors Vx, Vy and Vz of a tool path coordinate system in three directions of an X axis, a Y axis and a Z axis are taken;
step S1.5.3: respectively carrying out dot product operation on the vectors Vx, Vy and Vz and vectors in three directions of an X axis, a Y axis and a Z axis of a world coordinate system to obtain an intermediate variable value Vx1、Vy1、Vz1And the three intermediate values are combined into an intermediate matrix T1;
step S1.5.4: respectively taking negative values of the origin (x, y, z) of the coordinate system obtained in the step S1.5.1 to form a translation matrix T2;
step S1.5.5: and multiplying the matrix T1 with the matrix T2 to obtain a transformation matrix of the tool path coordinate system relative to the world coordinate system.
Preferably, step S2.4 comprises the steps of:
step S2.4.1: all the surfaces of the part are obtained by utilizing a SolidWorks secondary development interface and are put into an array, and the array is sorted according to the area of the surfaces from large to small to obtain the listFace of the array;
step S2.4.2: performing cycle analysis on each surface of the array list face to separate the inner surface and the outer surface, wherein the specific method comprises the following steps:
step S2.4.2.1: taking the ith face (i), wherein i is more than or equal to 0 and less than the size of the face array, and taking any point of the face;
step S2.4.2.2: taking the normal of the surface at the point;
step S2.4.2.3: traversing other faces 1, and judging whether the face1 is parallel to the analyzed face listFace [ i ] or not through a SolidWorks secondary development interface:
if the normal line is parallel and also passes through the face1, the face1 face and the analyzed face listFace [ i ] are considered to be matched inner and outer faces;
step S2.4.2.4: if the area of the face1 surface is smaller than the analysis face i, the face1 surface is an inner surface, and the analysis face i is an outer surface;
step S2.4.3: and acquiring the contour of each surface by utilizing a SolidWorks secondary development interface, wherein if the surface where the contour is located is an outer surface, the contour is an outer contour, and otherwise, the contour is an inner contour.
Preferably, in step S2.13, the tool path trajectory and the tool normal are drawn by OpenGL.
Compared with the prior art, the invention has the beneficial effects that: and a two-generation development interface provided by SolidWorks software is used, the adopted development language is C + +, and the characteristics of the pipe part model are analyzed and identified, the tool path information is quickly generated, and an NC code file is generated.
The contour line type is accurately analyzed when the tool path is generated, and a small amount of discrete nodes and a small amount of NC files are generated on the basis, so that the execution code amount of a numerical control machine is reduced, and the cutting efficiency is improved.
Variations and modifications to the above-described embodiments may occur to those skilled in the art, which fall within the scope and spirit of the above description. Therefore, the present invention is not limited to the specific embodiments disclosed and described above, and some modifications and variations of the present invention should fall within the scope of the claims of the present invention. Furthermore, although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.

Claims (7)

1. A pipe cutter path generation method based on SolidWorks secondary development is characterized by comprising the following steps:
step S1: analyzing the profile of the file of the pipe part through a pipe section and profile analysis module;
step S2: generating tool path information through a tool path information generating module;
step S3: the NC file generation module generates an NC file from the tool path information generated in step S2.
2. The pipe cutter path generating method according to claim 1, wherein the step S1 includes the steps of:
step S1.1: creating a new part design document in SolidWorks for pipe model design, generating a part document, or directly opening an existing part document;
step S1.2: selecting a specified user-defined tool path coordinate system;
step S1.3: judging whether a specified tool path coordinate system exists in the current part document, if so, executing the step S1.5, otherwise, executing the step S1.4;
step S1.4: establishing a default tool path coordinate system;
step S1.5: calculating a transformation matrix of the tool path coordinate system relative to a world coordinate system;
step S1.6: drawing a tool path coordinate system in the part document;
step S1.7: mapping the designed pipe part model to a tool path coordinate system by using the coordinate transformation matrix calculated in the step S1.5;
step S1.8: calculating and outputting the size parameters of the pipe part model, wherein the size parameters comprise length, width, height, circle radius and chamfer radius;
step S1.9: analyzing and outputting the curved surface characteristics of the pipe part model, wherein the geometric elements of the curved surface characteristics comprise a surface, a closed contour and an edge;
step S1.10: analyzing and outputting the section types of the pipe part model, wherein the section types comprise round, rectangular, oval, triangular, oval, hexagonal, L-shaped, I-shaped and groove-shaped;
step S1.11: and caching the pipe part model parameter information output in the step S1.8, the step S1.9 and the step S1.10.
3. The pipe cutter path generating method according to claim 1 or 2, wherein the step S2 includes the steps of:
step S2.1: loading a tool path configuration in SolidWorks, wherein the tool path configuration comprises interpolation step length and tolerance;
step S2.2: setting a normal direction of cutting of a cutter path, wherein the direction comprises a surface normal and 5-axis cutting;
step S2.3: reading the parameter information data of the pipe part model cached in the pipe section and contour analysis module, and circularly processing the nth closed contour, wherein n is more than or equal to 1 and less than or equal to the total number of the contours;
if n > the total number of contours, the contours are processed, and step S2.11 is executed;
otherwise, executing step S2.4;
step S2.4: judging whether the contour to be processed currently is an outer contour:
if yes, executing step S2.5;
otherwise, n is n +1 and step S2.3 is performed;
step S2.5: circularly processing the mth edge of the current contour, wherein m is more than or equal to 1 and less than or equal to the total number of the edges of the current contour;
if m > the total number of the current contour edge, the edge is processed, and if n is equal to n +1, executing step S2.3;
otherwise, executing step S2.6;
step S2.6: judging the type of the current line, wherein the line type is analyzed and calculated in the pipe section and contour analysis module, and the line type comprises a straight line, a regular circular arc and a B spline curve;
if the line type is a straight line, executing the step S2.7;
if the line type is a regular arc, executing the step S2.8;
if the line type is a B spline curve, executing the step S2.9;
step S2.7: calculating and caching the coordinates of the starting point of the straight line;
step S2.8: calculating the center coordinates and the radius of the circular arc;
step S2.9: dispersing lines by a B-spline curve interpolation method;
step S2.10: generating a current discrete node coordinate and a corresponding tool vector, wherein m is m +1, and executing the step S2.5;
step S2.11: sequencing the outlines of the generated nodes by taking the length X direction of the part as a main direction;
step S2.12: reading the lead configuration and generating a lead for each contour, wherein the lead comprises a lead-in wire and a lead-out wire;
step S2.13: displaying a tool path track and a tool normal in the pipe part model;
step S2.14: and serializing and storing the tool path data.
4. The pipe cutter path generating method according to claim 3, wherein the step S3 includes the steps of:
step S3.1: reading and setting relevant parameters of a machine and a cutting head;
step S3.2: reading the generated tool path data in the tool path information generation module;
step S3.3: outputting a corresponding G code according to the coordinates of each contour node of the tool path and the side information;
step S3.4: generating a free-range G code according to the final node of the current contour and the starting node of the next contour;
step S3.5: and saving the G code as an NC file.
5. The pipe tool path generating method according to claim 2, wherein the step S1.5 comprises the steps of:
step S1.5.1: taking an origin (x, y, z) of an absolute coordinate system of a tool path coordinate system, wherein the absolute coordinate system is relative to a world coordinate system;
step S1.5.2: vectors Vx, Vy and Vz of a tool path coordinate system in three directions of an X axis, a Y axis and a Z axis are taken;
step S1.5.3: respectively carrying out dot product operation on the vectors Vx, Vy and Vz and vectors in three directions of an X axis, a Y axis and a Z axis of a world coordinate system to obtain an intermediate variable value Vx1、Vy1、Vz1And the three intermediate values are combined into an intermediate matrix T1;
step S1.5.4: respectively taking negative values of the origin (x, y, z) of the coordinate system obtained in the step S1.5.1 to form a translation matrix T2;
step S1.5.5: and multiplying the matrix T1 with the matrix T2 to obtain a transformation matrix of the tool path coordinate system relative to the world coordinate system.
6. The pipe tool path generating method according to claim 3, wherein the step S2.4 comprises the steps of:
step S2.4.1: all the surfaces of the part are obtained by utilizing a SolidWorks secondary development interface and are put into an array, and the array is sorted according to the area of the surfaces from large to small to obtain the listFace of the array;
step S2.4.2: performing cycle analysis on each surface of the array list face to separate the inner surface and the outer surface, wherein the specific method comprises the following steps:
step S2.4.2.1: taking the ith face (i), wherein i is more than or equal to 0 and less than the size of the face array, and taking any point of the face;
step S2.4.2.2: taking the normal of the surface at the point;
step S2.4.2.3: traversing other faces 1, and judging whether the face1 is parallel to the analyzed face listFace [ i ] or not through a SolidWorks secondary development interface:
if the normal line is parallel and also passes through the face1, the face1 face and the analyzed face listFace [ i ] are considered to be matched inner and outer faces;
step S2.4.2.4: if the area of the face1 surface is smaller than the analysis face i, the face1 surface is an inner surface, and the analysis face i is an outer surface;
step S2.4.3: and acquiring the contour of each surface by utilizing a SolidWorks secondary development interface, wherein if the surface where the contour is located is an outer surface, the contour is an outer contour, and otherwise, the contour is an inner contour.
7. The pipe tool path generating method according to claim 3, wherein in step S2.13, the tool path trajectory and the tool normal are drawn by OpenGL.
CN202110164071.5A 2021-02-05 2021-02-05 Pipe tool path generation method based on SolidWorks secondary development Active CN112906215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110164071.5A CN112906215B (en) 2021-02-05 2021-02-05 Pipe tool path generation method based on SolidWorks secondary development

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110164071.5A CN112906215B (en) 2021-02-05 2021-02-05 Pipe tool path generation method based on SolidWorks secondary development

Publications (2)

Publication Number Publication Date
CN112906215A true CN112906215A (en) 2021-06-04
CN112906215B CN112906215B (en) 2023-03-24

Family

ID=76123296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110164071.5A Active CN112906215B (en) 2021-02-05 2021-02-05 Pipe tool path generation method based on SolidWorks secondary development

Country Status (1)

Country Link
CN (1) CN112906215B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113359612A (en) * 2021-06-08 2021-09-07 广东宏石激光技术股份有限公司 Pipe part nesting method
CN113408148A (en) * 2021-07-15 2021-09-17 广东宏石激光技术股份有限公司 Pipe cutting simulation method based on SolidWorks secondary development

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968896A (en) * 2010-10-20 2011-02-09 山东山大华天软件有限公司 System and method for designing and processing characters for tire mold in three-dimensional CAD/CAM environment
CN103197604A (en) * 2013-03-13 2013-07-10 上海维宏电子科技股份有限公司 Numerical control system and control method for achieving automatic optimization of tool paths based on DBF
CN104698982A (en) * 2015-03-13 2015-06-10 江俊逢 Stepping CNC system, generating method of machining file, and real-time control method
CN104714477A (en) * 2015-03-13 2015-06-17 江俊逢 Machining file planning system and machining file generating method
CN106200558A (en) * 2016-08-26 2016-12-07 大连大学 Nc program based on model generates method
CN106547251A (en) * 2016-10-11 2017-03-29 浙江大学 A kind of five axle cutter track generation methods based on low speed sensitizing range interpolation feedback of the information
CN107179742A (en) * 2017-05-23 2017-09-19 成都飞机工业(集团)有限责任公司 A kind of numerical control cutting sharpener rail data de-noising method
CN108465944A (en) * 2018-03-19 2018-08-31 佛山市宏石激光技术有限公司 It is a kind of to apply the jacking method for optimizing route that side cutting is total in tubing part
CN110244656A (en) * 2019-06-24 2019-09-17 杭州电子科技大学 A kind of NC code emulation method based on the transformation of six axis of five-shaft numerical control Longmen machine tool
CN111679631A (en) * 2020-05-26 2020-09-18 东莞市机明软件科技有限公司 Tool path parameter template self-adaptive dynamic adjustment method based on PowerMILL secondary development
CN111830908A (en) * 2020-06-17 2020-10-27 上海烟草机械有限责任公司 Cylindrical envelope tool path generation method, system, terminal and medium based on two-dimensional linear graph

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101968896A (en) * 2010-10-20 2011-02-09 山东山大华天软件有限公司 System and method for designing and processing characters for tire mold in three-dimensional CAD/CAM environment
CN103197604A (en) * 2013-03-13 2013-07-10 上海维宏电子科技股份有限公司 Numerical control system and control method for achieving automatic optimization of tool paths based on DBF
CN104698982A (en) * 2015-03-13 2015-06-10 江俊逢 Stepping CNC system, generating method of machining file, and real-time control method
CN104714477A (en) * 2015-03-13 2015-06-17 江俊逢 Machining file planning system and machining file generating method
CN106200558A (en) * 2016-08-26 2016-12-07 大连大学 Nc program based on model generates method
CN106547251A (en) * 2016-10-11 2017-03-29 浙江大学 A kind of five axle cutter track generation methods based on low speed sensitizing range interpolation feedback of the information
CN107179742A (en) * 2017-05-23 2017-09-19 成都飞机工业(集团)有限责任公司 A kind of numerical control cutting sharpener rail data de-noising method
CN108465944A (en) * 2018-03-19 2018-08-31 佛山市宏石激光技术有限公司 It is a kind of to apply the jacking method for optimizing route that side cutting is total in tubing part
CN110244656A (en) * 2019-06-24 2019-09-17 杭州电子科技大学 A kind of NC code emulation method based on the transformation of six axis of five-shaft numerical control Longmen machine tool
CN111679631A (en) * 2020-05-26 2020-09-18 东莞市机明软件科技有限公司 Tool path parameter template self-adaptive dynamic adjustment method based on PowerMILL secondary development
CN111830908A (en) * 2020-06-17 2020-10-27 上海烟草机械有限责任公司 Cylindrical envelope tool path generation method, system, terminal and medium based on two-dimensional linear graph

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113359612A (en) * 2021-06-08 2021-09-07 广东宏石激光技术股份有限公司 Pipe part nesting method
CN113359612B (en) * 2021-06-08 2024-03-15 广东宏石激光技术股份有限公司 Pipe part jacking method
CN113408148A (en) * 2021-07-15 2021-09-17 广东宏石激光技术股份有限公司 Pipe cutting simulation method based on SolidWorks secondary development

Also Published As

Publication number Publication date
CN112906215B (en) 2023-03-24

Similar Documents

Publication Publication Date Title
CN110227876A (en) Robot welding autonomous path planning method based on 3D point cloud data
CN112906215B (en) Pipe tool path generation method based on SolidWorks secondary development
Lin et al. A generic uniform scallop tool path generation method for five-axis machining of freeform surface
CN104793560A (en) Method and system for generating a trajectory
CN103699056A (en) Real-time smooth transition interpolation method of small high-speed and high-accuracy numerical control machining line segment
CN102608952B (en) Method of smoothening five-axis-linkage machine tool machining path by using ball-end cutter
CN107562015B (en) Process geometric model construction method based on numerical control machining programming
US10884390B2 (en) Optimized control of a metal-cutting machine tool
US8255077B2 (en) Apparatus, method and program for creating tool reference plane
CN116068959A (en) Processing method based on tool path compensation, electronic equipment and storage medium
Xú et al. STEP-NC based reverse engineering of in-process model of NC simulation
CN113953685A (en) Planar plate laser cutting path planning method
Tapie et al. Topological model for machining of parts with complex shapes
CN109507955B (en) Cutter path offset path method based on numerical control system
CN117010666B (en) Intelligent management method and system for production workstation of automobile repair tool
CN112051803B (en) Small line segment fairing method based on space plane normal vector
Wen et al. Cutter location path generation through an improved algorithm for machining triangular mesh
CN110955934A (en) Cutting simulation implementation method for real-time processing monitoring
CN116700149A (en) Self-adaptive filtering optimization method for numerical control machining tool path
CN109991921B (en) Smooth B spline track direct generation method
Takasugi et al. A Surface Parameter-Based Method for Accurate and Efficient Tool Path Generation
CN116851930A (en) Three-dimensional five-axis curved surface laser cutting track generation method and device
CN115755775A (en) Characteristic tool path dynamic generation system and method based on CAM cloud service architecture
CN113408148B (en) Pipe cutting simulation method based on SolidWorks secondary development
CN111880480B (en) Milling cutter cutting path generation method and system based on CNC milling machine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder

Address after: 528311 No. 4 Anye Road, Shunjiang Community Industrial Park, Beijiao Town, Shunde District, Foshan City, Guangdong Province

Patentee after: Guangdong Hongshi Laser Technology Co.,Ltd.

Address before: 528311 Beijiao Town, Shunde District, Foshan, Guangdong, Beijiao, 8, two Pearl River Road, industrial park,

Patentee before: Guangdong Hongshi Laser Technology Co.,Ltd.

CP02 Change in the address of a patent holder