CN112906215B - Pipe tool path generation method based on SolidWorks secondary development - Google Patents
Pipe tool path generation method based on SolidWorks secondary development Download PDFInfo
- Publication number
- CN112906215B CN112906215B CN202110164071.5A CN202110164071A CN112906215B CN 112906215 B CN112906215 B CN 112906215B CN 202110164071 A CN202110164071 A CN 202110164071A CN 112906215 B CN112906215 B CN 112906215B
- Authority
- CN
- China
- Prior art keywords
- tool path
- contour
- coordinate system
- pipe
- generating
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/20—Design optimisation, verification or simulation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Numerical Control (AREA)
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 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, knife 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 efficiency of subsequent pipe cutting is improved, and the production efficiency is improved.
Description
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 tool path generating method based on SolidWorks secondary development, which uses a two-generation development interface provided by SolidWorks software to perform characteristic analysis and identification on pipe parts, quickly generate tool path information and generate an NC code file. 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;
and step S3: and generating an NC file according to the tool path information generated in the step S2 by an NC file generation module.
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 by 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 = 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, n = n +1, and step S2.3 is executed;
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, 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 circular 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 discrete node coordinate and a corresponding tool vector at the current edge, wherein m = 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 by 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 other face1, note: face1 is the face distinguished from the taken face in the listFace, face1! = list face [ i ];
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 surface, the face1 surface and the analyzed surface listFace [ i ] are considered to be matched internal and external surfaces;
step S2.4.2.4: if the area of the face1 surface is smaller than the analysis surface list face [ i ], the face1 surface is an inner surface, and the analysis surface list 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 functional 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;
and step S3: and generating an NC file according to the cutter path information generated in the step S2 through an NC file generating module.
Preferably, step S1 comprises:
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 secondary development interface picture coordinate system, and transmitting the coordinate origin and vectors in X, Y and Z directions.
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 = 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, n = n +1, and step S2.3 is executed;
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 circular 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 discrete node coordinate and a corresponding tool vector at the current edge, wherein m = 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 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 lost motion 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 Vx 1 、Vy 1 、Vz 1 And 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 by 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 faces 1 are 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 surface, the face1 surface and the analyzed surface listFace [ i ] are considered to be matched internal and external surfaces;
step S2.4.2.4: if the area of the face1 surface is smaller than the analysis surface list face [ i ], the face1 surface is an inner surface, and the analysis surface list face [ i ] is an outer surface;
step S2.4.3: and (3) acquiring the contour of each surface by using 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 modifications and variations of the present invention are also intended to fall within the scope of the appended claims. Furthermore, although specific terms are employed herein, they are used in a generic and descriptive sense only and not for purposes of limitation.
Claims (5)
1. A pipe cutter path generation method based on SolidWorks secondary development is characterized by comprising the following steps:
step S1: analyzing the outline of the pipe part model in the pipe part document through a pipe section and outline analysis module;
step S2: generating tool path information through a tool path information generating module;
and step S3: generating an NC file according to the cutter path information generated in the step S2 through an NC file generating module;
the step S1 comprises 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: caching the pipe part model parameter information output in the step S1.8, the step S1.9 and the step S1.10;
the step S2 comprises 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 = 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, n = n +1, and step S2.3 is executed;
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 discrete node coordinate and a corresponding tool vector at the current edge, wherein m = 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.
2. The pipe cutter path generating method according to claim 1, 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.
3. The pipe tool path generating method according to claim 1, 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 Vx 1 、Vy 1 、Vz 1 And 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 by the matrix T2 to obtain a transformation matrix of the tool path coordinate system relative to the world coordinate system.
4. The pipe tool path generating method according to claim 1, 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: each surface of the array list face is subjected to cycle analysis, and the inner surface and the outer surface are separated, 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 faces 1 are parallel to the analyzed face listFace [ i ] or not through a SolidWorks secondary development interface:
the other face1 is a face different from the taken face in the list face, and face1! = list face [ i ];
if the normal line is parallel and also passes through the face1 surface, the face1 surface and the analyzed surface listFace [ i ] are considered to be matched internal and external surfaces;
step S2.4.2.4: if the area of the face1 surface is smaller than the analysis surface list face [ i ], the face1 surface is an inner surface, and the analysis surface list 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.
5. The pipe tool path generating method according to claim 1, wherein in step S2.13, the tool path trajectory and the tool normal are drawn by using OpenGL.
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 CN112906215A (en) | 2021-06-04 |
CN112906215B true 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) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113359612B (en) * | 2021-06-08 | 2024-03-15 | 广东宏石激光技术股份有限公司 | Pipe part jacking method |
CN113408148B (en) * | 2021-07-15 | 2023-04-11 | 广东宏石激光技术股份有限公司 | Pipe cutting simulation method based on SolidWorks secondary development |
CN116954151B (en) * | 2023-08-22 | 2024-09-24 | 海德盟数控技术(深圳)有限公司 | Curve processing method, device, equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197604A (en) * | 2013-03-13 | 2013-07-10 | 上海维宏电子科技股份有限公司 | Numerical control system and control method for achieving automatic optimization of tool paths based on DBF |
CN111679631A (en) * | 2020-05-26 | 2020-09-18 | 东莞市机明软件科技有限公司 | Tool path parameter template self-adaptive dynamic adjustment method based on PowerMILL secondary development |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101968896B (en) * | 2010-10-20 | 2012-01-18 | 山东山大华天软件有限公司 | System and method for designing and processing characters for tire mold in three-dimensional CAD/CAM environment |
CN104698982B (en) * | 2015-03-13 | 2018-01-12 | 江俊逢 | Stepping type CNC system and the generation method of processed file, real-time control method |
CN104714477B (en) * | 2015-03-13 | 2017-06-20 | 江俊逢 | A kind of generation method of processed file planning system and processed file |
CN106200558B (en) * | 2016-08-26 | 2018-10-02 | 大连大学 | Nc program generation method based on model |
CN106547251B (en) * | 2016-10-11 | 2019-04-30 | 浙江大学 | A kind of five axis cutter track generation methods based on low speed sensitizing range interpolation information feedback |
CN107179742B (en) * | 2017-05-23 | 2019-05-21 | 成都飞机工业(集团)有限责任公司 | A kind of numerical control cutting sharpener rail data de-noising method |
CN108465944B (en) * | 2018-03-19 | 2020-03-31 | 佛山市宏石激光技术有限公司 | Nesting path optimization method applied to pipe part common-edge cutting |
CN110244656B (en) * | 2019-06-24 | 2020-06-05 | 杭州电子科技大学 | NC code simulation method based on five-axis numerical control gantry machine tool six-axis reconstruction |
CN111830908B (en) * | 2020-06-17 | 2021-06-15 | 上海烟草机械有限责任公司 | Cylindrical envelope tool path generation method, system, terminal and medium based on two-dimensional linear graph |
-
2021
- 2021-02-05 CN CN202110164071.5A patent/CN112906215B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103197604A (en) * | 2013-03-13 | 2013-07-10 | 上海维宏电子科技股份有限公司 | Numerical control system and control method for achieving automatic optimization of tool paths based on DBF |
CN111679631A (en) * | 2020-05-26 | 2020-09-18 | 东莞市机明软件科技有限公司 | Tool path parameter template self-adaptive dynamic adjustment method based on PowerMILL secondary development |
Also Published As
Publication number | Publication date |
---|---|
CN112906215A (en) | 2021-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112906215B (en) | Pipe tool path generation method based on SolidWorks secondary development | |
US11200351B2 (en) | Method for constructing curve of robot processing path of part with small curvature based on point cloud boundary | |
CN110227876A (en) | Robot welding autonomous path planning method based on 3D point cloud data | |
CN107562015B (en) | Process geometric model construction method based on numerical control machining programming | |
Lin et al. | A generic uniform scallop tool path generation method for five-axis machining of freeform surface | |
US10884390B2 (en) | Optimized control of a metal-cutting machine tool | |
CN110618653B (en) | Method and device for automatically generating aircraft skin mirror image milling tool path track | |
US8255077B2 (en) | Apparatus, method and program for creating tool reference plane | |
CN107194885B (en) | Intelligent CAD (computer-aided design) drawing correction system and method | |
CN114708587B (en) | Image recognition-based numerical control machine tool workpiece machining allowance determination method | |
CN113953685A (en) | Planar plate laser cutting path planning method | |
Xú et al. | STEP-NC based reverse engineering of in-process model of NC simulation | |
CN116068959A (en) | Processing method based on tool path compensation, electronic equipment and storage medium | |
CN109507955B (en) | Cutter path offset path method based on numerical control system | |
Wen et al. | Cutter location path generation through an improved algorithm for machining triangular mesh | |
CN112051803B (en) | Small line segment fairing method based on space plane normal vector | |
CN113408148B (en) | Pipe cutting simulation method based on SolidWorks secondary development | |
CN117010666A (en) | Intelligent management method and system for production workstation of automobile repair tool | |
CN116700149A (en) | Self-adaptive filtering optimization method for numerical control machining tool path | |
CN109991921B (en) | Smooth B spline track direct generation method | |
CN114089692B (en) | Quick numerical control programming method suitable for complex slender surfaces of parts | |
CN115755775A (en) | Characteristic tool path dynamic generation system and method based on CAM cloud service architecture | |
CN115056213A (en) | Robot track self-adaptive correction method for large complex component | |
CN111880480B (en) | Milling cutter cutting path generation method and system based on CNC milling machine | |
CN113158503A (en) | Method for predicting cutting deformation of complex curved surface part |
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 | ||
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. |