CN104850722B - A kind of CAPP process automatically generates and update system and method - Google Patents
A kind of CAPP process automatically generates and update system and method Download PDFInfo
- Publication number
- CN104850722B CN104850722B CN201510304807.9A CN201510304807A CN104850722B CN 104850722 B CN104850722 B CN 104850722B CN 201510304807 A CN201510304807 A CN 201510304807A CN 104850722 B CN104850722 B CN 104850722B
- Authority
- CN
- China
- Prior art keywords
- size
- process size
- module
- capp
- database
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本发明是CAPP工艺尺寸自动生成与更新系统和方法,该系统包括CPU和与之电信号相连的工艺尺寸数据库(2)、工艺尺寸拾取模块(3)、工艺尺寸插入模块(5)、工艺尺寸更新模块(6),与工艺尺寸拾取模块信号输出端相连的工艺尺寸存储模块(4),以及与艺尺寸更新模块信号输出端相连的关联尺寸显示模块(7)。该方法包括CPU调用工艺尺寸拾取模块、工艺尺寸存储模块、工艺尺寸插入模块、工艺尺寸更新模块和关联尺寸显示模块步骤,由于在word文档的CAPP工艺卡片中以超链接形式显示工艺尺寸,当工艺尺寸发生变化时可以自动更新,消除了工艺人员进行工艺尺寸查找的工作量,能提高工作效率,同时降低工艺卡片中工艺尺寸错误率。
The present invention is a system and method for automatically generating and updating CAPP process dimensions. The system includes a CPU and a process dimension database (2) connected with electrical signals, a process dimension picking module (3), a process dimension inserting module (5), and a process dimension database (2). An update module (6), a process size storage module (4) connected to the signal output end of the process size pick-up module, and an associated size display module (7) connected to the signal output end of the art size update module. The method comprises the steps of the CPU calling a process size picking module, a process size storage module, a process size insertion module, a process size update module and an associated size display module, because the process size is displayed in the form of a hyperlink in the CAPP process card of the word document, when the process When the size changes, it can be automatically updated, which eliminates the workload of the craftsman to find the craft size, improves work efficiency, and reduces the error rate of the craft size in the craft card.
Description
技术领域technical field
本发明涉及CAPP(Computer Aided Process Planning,计算机辅助工艺设计)领域,具体而言,涉及一种基于SolidWorks的CAPP工艺尺寸自动生成与更新系统,同时基于该系统,本发明还提供了一种基于CAPP系统的工艺尺寸自动生成与更新方法。The present invention relates to the field of CAPP (Computer Aided Process Planning, computer-aided process design), in particular, relates to a CAPP process size automatic generation and update system based on SolidWorks, and based on the system, the present invention also provides a CAPP-based A method for automatically generating and updating process dimensions of the system.
背景技术Background technique
计算机辅助工艺设计是通过计算机完成零件从毛坯到成品过程当中所需要的工艺步骤的过程。Computer-aided process design is the process of completing the process steps required in the process of parts from blank to finished product by computer.
从狭义的观点来看,CAPP是针对零件的机械加工工艺过程设计,输出工艺规程。但从广义的观点来看,CAPP包括工艺设计和工艺设计过程和活动的管理。工艺设计的过程不仅仅产生零件的工艺规程,还为基于并行工程的产品设计提供制造可行性、加工成本分析、可装配性等信息和数据;为ERP等系统提供工时定额、材料定额、工装一览表、工艺路线表等基础的制造数据;为计算机辅助质量检验系统提供加工精度、粗糙度、形位公差等质量检验项目内容和要求,由计算机辅助质量检验系统自动生成零件的工序质量检验规划。From a narrow point of view, CAPP is designed for the mechanical processing process of parts and outputs process regulations. From a broad point of view, however, CAPP includes process design and the management of process design processes and activities. The process of process design not only produces the process specification of parts, but also provides information and data such as manufacturing feasibility, processing cost analysis, and assemblability for product design based on concurrent engineering; it provides man-hour quota, material quota, tooling list for ERP and other systems Basic manufacturing data such as process route table; provide the computer-aided quality inspection system with the content and requirements of quality inspection items such as machining accuracy, roughness, shape and position tolerance, etc., and the computer-aided quality inspection system automatically generates the process quality inspection plan of the parts.
在运用CAPP编制工艺卡片的过程中,在描述工艺过程的时候,需要涉及到具体的工艺尺寸数值。目前,主流CAPP软件在工艺卡片的模板方面都可以定制自己的模板,在卡片内容上多是以手动输入为主,从标准工艺资源库内容选择为辅。但是正因如此,工序内容里面的一些尺寸也是以普通文本形式体现,工艺模型与工艺卡片中工艺尺寸之间没有联系。当尺寸发生变化的时候,就需要手动逐个修改尺寸以更新文件,工作量大而繁琐且易出错。In the process of using CAPP to compile process cards, when describing the process, it is necessary to involve specific process size values. At present, the mainstream CAPP software can customize its own templates in terms of process card templates. Most of the card content is mainly manual input, supplemented by selection from the standard process resource library. But because of this, some dimensions in the process content are also reflected in the form of ordinary text, and there is no connection between the process model and the process dimensions in the process card. When the size changes, it is necessary to manually modify the size one by one to update the file, which is heavy, tedious and error-prone.
现有的CAPP技术由于无法建立工艺模型中的工艺尺寸和工艺卡片内容中工艺尺寸数据文本的联系,所以当工艺尺寸发生变化时,需要人工在工艺卡片中寻找该工艺尺寸,并手动进行修改。技术人员发现这个过程要求工艺人员必须熟悉工艺卡片内容,并仔细寻找该工艺尺寸的位置,不能漏找。这导致工艺尺寸更新是一个比较繁琐且易出错的工作。尤其是当某尺寸被多次在工艺卡片中引用时,表现的更加明显。The existing CAPP technology cannot establish the connection between the process size in the process model and the process size data text in the process card content, so when the process size changes, it is necessary to manually find the process size in the process card and manually modify it. The technicians found that this process requires the craftsman to be familiar with the content of the craft card, and carefully search for the position of the craft size, so as not to miss it. This leads to a tedious and error-prone work for process dimension update. Especially when a certain size is quoted in the process card for many times, it is more obvious.
发明内容Contents of the invention
本发明所解决的技术问题是:针对上述技术问题,提供一种基于SolidWorks的CAPP工艺尺寸自动生成与更新系统和方法,以提高工艺尺寸更新的效率,降低错误率。The technical problem solved by the present invention is to provide a system and method for automatically generating and updating the process size of CAPP based on SolidWorks to improve the efficiency of process size update and reduce the error rate.
本发明解决其技术问题采用以下的技术方案:The present invention solves its technical problem and adopts the following technical solutions:
本发明提供的一种CAPP工艺尺寸自动生成与更新系统,是一种基于SolidWorks的CAPP工艺尺寸自动生成与更新系统,该系统包括:CPU和与之电信号相连的工艺尺寸数据库、工艺尺寸拾取模块、工艺尺寸插入模块、工艺尺寸更新模块,与工艺尺寸拾取模块信号输出端相连的工艺尺寸存储模块,以及与艺尺寸更新模块信号输出端相连的关联尺寸显示模块。A system for automatically generating and updating CAPP process dimensions provided by the present invention is a system for automatically generating and updating CAPP process dimensions based on SolidWorks. The system includes: a CPU and a process dimension database connected to it with electrical signals, and a process dimension picking module , a process size inserting module, a process size update module, a process size storage module connected to the signal output end of the process size pick-up module, and an associated size display module connected to the signal output end of the process size update module.
所述工艺尺寸数据库,主要用于存储拾取到的SolidWorks模型的尺寸信息,其信号输出端与CPU相连。The process size database is mainly used to store the size information of the picked-up SolidWorks model, and its signal output terminal is connected to the CPU.
所述工艺尺寸拾取模块,用于将SolidWorks模型中的尺寸进行拾取,其信号输入端与CPU的信号输出端相连,其信号输出端与工艺尺寸存储模块相连。The process size picking module is used to pick up the size in the SolidWorks model, its signal input end is connected with the signal output end of the CPU, and its signal output end is connected with the process size storage module.
所述工艺尺寸存储模块,用于将工艺尺寸拾取模块拾取到的尺寸存放到工艺尺寸数据库,其信号输入端与工艺尺寸拾取模块的信号输出端相连,其信号输出端与工艺尺寸数据库相连。The process dimension storage module is used to store the dimensions picked up by the process dimension picking module into the process dimension database, its signal input end is connected to the signal output end of the process dimension picking module, and its signal output end is connected to the process dimension database.
所述工艺尺寸插入模块,用于将工艺尺寸数据库中的工艺尺寸以超链接形式插入到word文档中,其信号输入端与CPU的信号输出端相连,其信号输出端输出至word文档,即为系统输出。The process size insertion module is used to insert the process size in the process size database into the word document in the form of a hyperlink, its signal input end is connected with the signal output end of the CPU, and its signal output end is output to the word document, which is system output.
所述工艺尺寸更新模块,用于将工艺尺寸数据库中变化了的工艺尺寸在word文档中进行更新,其信号输入端与CPU的信号输出端相连,其信号输出端与关联尺寸显示模块相连。The process size update module is used to update the changed process size in the process size database in the word document, its signal input end is connected with the signal output end of the CPU, and its signal output end is connected with the associated size display module.
所述关联尺寸显示模块,用于在word文档中,将与变化了的工艺尺寸有关联的工艺尺寸高亮显示出来,便于工艺人员进行检查,其信号输入端与工艺尺寸更新模块相连,其信号输出端输出至word文档,即为系统输出。The associated size display module is used to highlight the process size associated with the changed process size in the word document, which is convenient for technicians to check. Its signal input terminal is connected with the process size update module, and its signal The output end is output to a word document, which is the system output.
本发明提供的CAPP工艺尺寸自动生成与更新方法,是一种基于SolidWorks的CAPP工艺尺寸自动生成与更新方法,该方法包括以下步骤:The method for automatically generating and updating CAPP process dimensions provided by the present invention is a method for automatically generating and updating CAPP process dimensions based on SolidWorks. The method includes the following steps:
步骤1,CPU调用工艺尺寸拾取模块;Step 1, the CPU calls the process size picking module;
步骤2,CPU调用工艺尺寸存储模块,将工艺尺寸拾取模块拾取的工艺尺寸存储到工艺尺寸数据库中;Step 2, the CPU calls the process size storage module, and stores the process size picked up by the process size picking module into the process size database;
步骤3,存储完成后,工艺尺寸数据库发送一个反馈信息给CPU,告知其已存储完毕;Step 3, after the storage is completed, the process size database sends a feedback message to the CPU, informing it that the storage has been completed;
步骤4,CPU调用工艺尺寸插入模块,将工艺尺寸数据库中中的工艺尺寸插入到word文档中;Step 4, the CPU invokes the process dimension insertion module, and inserts the process dimensions in the process dimension database into the word document;
步骤5,当工艺尺寸发生变化时,重复步骤1至步骤3,将新尺寸拾取并存储到工艺尺寸数据库中;Step 5, when the process size changes, repeat steps 1 to 3 to pick up and store the new size into the process size database;
步骤6,CPU调用工艺尺寸更新模块,在word文档中,将旧尺寸替换为新尺寸;Step 6, the CPU invokes the process dimension update module, and replaces the old dimension with the new dimension in the word document;
步骤7,CPU调用关联尺寸显示模块,在word文档中,将与工艺尺寸有关联的尺寸高亮显示出来,以提醒工艺人员注意;Step 7, the CPU calls the associated size display module, and in the word document, the size associated with the process size is highlighted to remind the process personnel to pay attention;
经过上述步骤,实现CAPP工艺尺寸的自动生成与更新。Through the above steps, the automatic generation and update of the CAPP process dimensions are realized.
上述步骤4中,将工艺尺寸数据库中中的工艺尺寸是以超链接形式插入到word文档中。In the above step 4, the technological dimensions in the technological dimension database are inserted into the word document in the form of hyperlinks.
上述步骤5中,当拾取的尺寸发生变化时,是通过工艺尺寸更新模块自动将word文档中所有引用该尺寸的位置全部更新,而不是手工修改或者以其他方法更新。In the above step 5, when the picked size changes, all positions in the word document that refer to the size are automatically updated through the process size update module, rather than manually modified or updated by other methods.
本发明与现有技术相比具有以下的主要优点:Compared with the prior art, the present invention has the following main advantages:
1.尺寸是以如下方式生成:从SolidWorks中拾取,然后插入到CAPP工艺卡片相应位置。该方式可以将尺寸以超链接的形式整体插入到word文档格式的CAPP工艺卡片中,不需要工艺人员手工输入,从而可以避免误输。以某个工艺尺寸在工艺卡片中被引用5次为例,测试表明,经过一定时间的培训,工艺人员拾取一个工艺尺寸的整体时间大概为3秒钟,插入一个工艺尺寸的时间大概为1秒钟,即总体需要时间为:3+1×5=8秒钟。手动输入一个工艺尺寸的时间大概为1秒钟,5个工艺尺寸需要5秒钟,与本发明所述方法的差距主要在拾取尺寸这一步。但若由于某种原因造成一个尺寸误输,再进行修改的时间大概为1秒钟。两种方法在生成尺寸上所需时间差别不大。1. The size is generated in the following way: pick it up from SolidWorks, and then insert it into the corresponding position of the CAPP process card. This method can insert the dimensions into the CAPP process card in word document format as a whole in the form of a hyperlink, and does not require manual input by the craftsman, thereby avoiding mis-input. Taking a certain craft size quoted 5 times in the craft card as an example, the test shows that after a certain period of training, the overall time for craftsmen to pick up a craft dimension is about 3 seconds, and the time for inserting a craft dimension is about 1 second minutes, that is, the overall required time is: 3+1×5=8 seconds. It takes about 1 second to manually input a process size, and 5 seconds to input 5 process sizes. The difference between the method and the method of the present invention lies in the step of picking the size. However, if a size is entered incorrectly for some reason, the time to modify it is about 1 second. There is little difference in the time required to generate the size between the two methods.
2.某个尺寸发生变化时,只需要在SolidWorks中重新对该尺寸进行拾取,然后通过工艺尺寸更细模块将所有用到该尺寸的地方刷新,不需要手动在CAPP工艺卡片中进行逐一修改,从而可以降低工艺人员的工作强度,减少对工艺人员熟练度的依赖性,并且不会出现修改了一些使用到该尺寸的地方,而漏掉了某个地方的情况,提高了修改尺寸的工作效率和准确性,极大降低错误率。测试表明,无论某个尺寸在工艺卡片中被引用多少次,重新拾取该尺寸的时间大概为3秒钟,在CAPP工艺卡片中刷新这些尺寸的时间大概为1秒钟,即总体需要4秒钟,且不会发生误修改其他尺寸和遗漏的情况。但使用传统方法,需要工艺人员从头到尾通读整个工艺卡片以避免漏找,并且通过理解工艺内容,准确找到所有引用该尺寸的地方并进行逐一修改。以一般工艺文档的长度约2-3页为例,阅读一页工艺文档的时间大概为1分钟,即总体修改需要2-3分钟,若修改完成后再进行检查一遍则时间会翻倍。本发明所述方法在尺寸修改上所需要的时间大大减少。2. When a certain size changes, you only need to pick up the size again in SolidWorks, and then refresh all the places where the size is used through the process size finer module, without manually modifying it one by one in the CAPP process card. In this way, the work intensity of the craftsman can be reduced, the dependence on the proficiency of the craftsman can be reduced, and there will be no situation where some places that are used in this size are modified and some places are missed, which improves the work efficiency of modifying the size and accuracy, greatly reducing the error rate. The test shows that no matter how many times a certain size is referenced in the craft card, the time to pick up the size again is about 3 seconds, and the time to refresh these sizes in the CAPP craft card is about 1 second, that is, it takes 4 seconds overall , and there will be no mistaken modification of other dimensions and omissions. But using the traditional method, craftsmen are required to read the entire craft card from beginning to end to avoid missing, and by understanding the craft content, accurately find all the references to the size and modify them one by one. Taking the general process document length of about 2-3 pages as an example, the time to read a page of process document is about 1 minute, that is, the overall modification takes 2-3 minutes, and the time will be doubled if the modification is completed and then checked again. The time required for dimensional modification by the method of the present invention is greatly reduced.
3.在修改工艺尺寸后,将与被修改的工艺尺寸有关联的尺寸在工艺卡片中高亮显示出来。工艺尺寸之间是具有关联的,某个尺寸在发生变化后,与它具有关联关系的尺寸也有可能发生变化。将有关联的工艺尺寸高亮显示,可以提醒工艺人员注意并检查这些尺寸,避免可能产生的逻辑错误,提高工艺尺寸的正确率。使用传统方法判断哪些尺寸之间具有关联,需要将工艺模型和工艺卡片内容二者结合阅读,并且对工艺人员对该工艺熟练度要求较高。测试表明,以一般工艺文档的长度约2-3页为例,阅读一页工艺文档的时间大概为1分钟,即总体判断需要2-3分钟,若判断完成后再进行检查一遍则时间会翻倍。而本发明所述方法直接将所有与被修改的尺寸有联系的尺寸高亮显示出来,在判断上时间几乎为零。3. After modifying the process size, the size associated with the modified process size will be highlighted in the process card. Process sizes are related, and after a size changes, the size associated with it may also change. Highlighting the associated process dimensions can remind the process personnel to pay attention to and check these dimensions, avoid possible logic errors, and improve the correct rate of process dimensions. Using the traditional method to judge which dimensions are related requires reading the process model and the content of the process card together, and requires high proficiency of the process personnel. Tests show that, taking a general process document with a length of about 2-3 pages as an example, the time to read a page of process document is about 1 minute, that is, the overall judgment takes 2-3 minutes. If the judgment is completed and then checked again, the time will be reversed. times. However, the method of the present invention directly highlights all sizes related to the modified size, and the time for judging is almost zero.
总之,本发明能极大地提高工作效率,同时降低工艺卡片中工艺尺寸错误率。In a word, the present invention can greatly improve work efficiency, and at the same time reduce the error rate of process size in process cards.
附图说明Description of drawings
图1为本发明基于SolidWorks的CAPP工艺尺寸自动生成与更新系统的原理框图;Fig. 1 is the functional block diagram of the automatic generation and update system of the CAPP process size based on SolidWorks of the present invention;
图2为本发明基于SolidWorks的CAPP工艺尺寸自动生成与更新方法的工艺尺寸拾取模块3的流程算法图;Fig. 2 is the process algorithm diagram of the process size picking module 3 of the CAPP process size automatic generation and update method based on SolidWorks in the present invention;
图3为本发明基于SolidWorks的CAPP工艺尺寸自动生成与更新方法的工艺尺寸存储模块4的流程算法图;Fig. 3 is the process algorithm diagram of the process size storage module 4 of the CAPP process size automatic generation and update method based on SolidWorks in the present invention;
图4为本发明基于SolidWorks的CAPP工艺尺寸自动生成与更新方法的工艺尺寸插入模块5的流程算法图;Fig. 4 is the process algorithm diagram of the process size insertion module 5 of the CAPP process size automatic generation and update method based on SolidWorks in the present invention;
图5为本发明基于SolidWorks的CAPP工艺尺寸自动生成与更新方法的工艺尺寸更新模块6的流程算法图;Fig. 5 is the process algorithm diagram of the process size update module 6 of the CAPP process size automatic generation and update method based on SolidWorks in the present invention;
图6为本发明基于SolidWorks的CAPP工艺尺寸自动生成与更新方法的关联尺寸显示模块7的流程算法图;6 is a flowchart algorithm diagram of the associated size display module 7 of the CAPP process size automatic generation and update method based on SolidWorks in the present invention;
图中:1.CPU;2.工艺尺寸数据库;3.工艺尺寸拾取模块;4.工艺尺寸存储模块;5.工艺尺寸插入模块;6.工艺尺寸更新模块;7.关联尺寸显示模块。In the figure: 1. CPU; 2. Process size database; 3. Process size pick-up module; 4. Process size storage module; 5. Process size insertion module; 6. Process size update module; 7. Associated size display module.
具体实施方式Detailed ways
下面结合实施例和附图对本发明作进一步说明。The present invention will be further described below in conjunction with the embodiments and accompanying drawings.
本实施例涉及的基于SolidWorks的CAPP工艺尺寸自动生成与更新系统,其结构如图1所示,该系统在主控程序的控制下,包括CPU1和与之电信号相连的工艺尺寸数据库2、工艺尺寸拾取模块3、工艺尺寸插入模块5、工艺尺寸更新模块6,与工艺尺寸拾取模块3信号输出端相连的工艺尺寸存储模块4,以及与艺尺寸更新模块6信号输出端相连的关联尺寸显示模块7。The CAPP process size automatic generation and update system based on SolidWorks involved in the present embodiment has a structure as shown in Figure 1. Under the control of the main control program, the system includes a CPU1 and a process size database 2 connected to it with electrical signals, a process Size picking module 3, process size inserting module 5, process size update module 6, process size storage module 4 connected to the signal output end of process size picking module 3, and associated size display module connected to the signal output end of process size update module 6 7.
所述CPU1主要用于加载相关的应用程序,并实现对系统的实时控制。该CPU采用市场主流PC的CPU。The CPU1 is mainly used to load relevant application programs and realize real-time control of the system. The CPU adopts the CPU of the mainstream PC in the market.
所述工艺尺寸数据库2,主要用于存储拾取到的SolidWorks模型的尺寸信息,其信号输出端与CPU1相连。以一根低速轴为例,其有一个键槽特征,包含两个参数:宽度10mm和长度45mm,当该两尺寸被拾取后,在工艺尺寸数据库2中存储的信息为“10”和“45”;同时,若该模型为新模型,即没有在工艺尺寸数据库2中存储过,则系统对该模型赋一个流水ID值,也存入工艺尺寸数据库2中;若该模型为老模型,即在工艺尺寸数据库2中有其对应的流水ID值,则将新拾取的尺寸存入该ID值对应的尺寸下。因此,尺寸在工艺尺寸数据库2中的结构定义如下:ID值@配置名@草图名@尺寸名,需要查询某个尺寸时,按照“模型的ID值、该ID值下的某个配置、该配置下的某个草图、该草图下的某个尺寸”的顺序进行查询。The process size database 2 is mainly used to store the size information of the SolidWorks model picked up, and its signal output terminal is connected to the CPU1. Take a low-speed shaft as an example, which has a keyway feature, including two parameters: width 10mm and length 45mm, when the two dimensions are picked, the information stored in the process dimension database 2 is "10" and "45" ; At the same time, if the model is a new model, that is, it has not been stored in the process size database 2, then the system assigns a flow ID value to the model, and also stores it in the process size database 2; If there is a corresponding flow ID value in the process size database 2, then store the newly picked size under the size corresponding to the ID value. Therefore, the structure of dimensions in process dimension database 2 is defined as follows: ID value@configuration name@sketch name@dimension name. A certain sketch under the configuration, a certain dimension under the sketch" to query in order.
所述工艺尺寸拾取模块3,用于将SolidWorks模型中的尺寸进行拾取,其信号输入端与CPU1的信号输出端相连,信号输出端与工艺尺寸存储模块4相连。承接如上所述,通过SolidWorks二次开发与SolidWorks进行交互,CPU1调用工艺尺寸拾取模块3对低速轴模型中的两个尺寸10mm和45mm进行拾取;The process dimension picking module 3 is used for picking the dimensions in the SolidWorks model, its signal input terminal is connected to the signal output terminal of CPU1 , and the signal output terminal is connected to the process dimension storage module 4 . As mentioned above, through the interaction between SolidWorks secondary development and SolidWorks, CPU1 calls the process size picking module 3 to pick up the two sizes of 10mm and 45mm in the low-speed shaft model;
所述工艺尺寸存储模块4,用于将工艺尺寸拾取模块3拾取到的尺寸存放到工艺尺寸数据库2,其信号输入端与工艺尺寸拾取模块3的信号输出端相连,信号输出端与工艺尺寸数据库2相连。承接如上所述,CPU1通过调用工艺尺寸存储模块4,将工艺尺寸拾取模块3拾取到的工艺尺寸10mm和45mm,以及系统针对该模型产生的流水ID值存储到工艺尺寸数据库2中;The process size storage module 4 is used to store the size picked up by the process size picking module 3 into the process size database 2, its signal input end is connected with the signal output end of the process size picking module 3, and the signal output end is connected with the process size database 2 connected. As mentioned above, by calling the process size storage module 4, the CPU1 stores the process size 10mm and 45mm picked up by the process size picking module 3, and the process ID value generated by the system for the model into the process size database 2;
所述工艺尺寸插入模块5,用于将工艺尺寸数据库2中的工艺尺寸以超链接形式插入到word文档中,其信号输入端与CPU1的信号输出端相连,信号输出端输出至word文档,即为系统输出。承接如上所述,通过word二次开发与word程序进行交互,CPU1通过调用工艺尺寸插入模块5,将工艺尺寸数据库2中的工艺尺寸“10mm”和“45mm”以超链接的形式插入到word文档中。Described process size insertion module 5 is used to insert the process size in the process size database 2 into the word document in the form of a hyperlink, its signal input end is connected with the signal output end of CPU1, and the signal output end is output to the word document, namely output for the system. As mentioned above, through word secondary development to interact with the word program, CPU1 inserts the process dimensions "10mm" and "45mm" in the process dimension database 2 into the word document in the form of hyperlinks by calling the process dimension insertion module 5 middle.
所述工艺尺寸更新模块6,用于将工艺尺寸数据库2中变化了的工艺尺寸在word文档中进行更新,其信号输入端与CPU1的信号输出端相连,信号输出端与关联尺寸显示模块7相连。承接如上所述,例如10mm变为8mm,通过word二次开发与word程序进行交互,CPU1通过调用工艺尺寸更新模块6,将旧尺寸10mm在word文档中替换为新尺寸8mm。The process size update module 6 is used to update the changed process size in the process size database 2 in the word document, its signal input end is connected with the signal output end of CPU1, and the signal output end is connected with the associated size display module 7 . As mentioned above, for example, 10mm is changed to 8mm, and through word secondary development to interact with the word program, CPU1 calls the process size update module 6 to replace the old size 10mm with the new size 8mm in the word document.
所述关联尺寸显示模块7,用于在word文档中,将与变化了的工艺尺寸有关联的工艺尺寸高亮显示出来,便于工艺人员进行检查,其信号输入端与工艺尺寸更新模块6相连,信号输出端输出至word文档,即为系统输出。承接如上所述,通过word二次开发与word程序进行交互,CPU1通过调用关联尺寸显示模块7,在word文档中,将与工艺尺寸8mm有关联的尺寸45mm高亮显示出来,以提醒工艺人员注意。其中,关联尺寸分为如下两类:1,同一个模型中,某一个配置下的某一个草图中的所有尺寸互相关联;2,由SolidWorks中IModelDoc2接口中ParentChildRelationship()函数所定义的草图中的尺寸互相关联,为父子关系。关联显示的功能是对所有有关联的尺寸进行遍历,对office程序进行二次开发,利用Word程序中的Microsoft.Interop.Office.Word.Application接口中定义的Selection()函数进行显示。The associated size display module 7 is used to highlight the process size associated with the changed process size in the word document, so that the process personnel can check, and its signal input terminal is connected to the process size update module 6, The signal output terminal outputs to the word document, which is the system output. As mentioned above, through word secondary development to interact with the word program, CPU1 calls the associated size display module 7 to highlight the size 45mm associated with the process size 8mm in the word document to remind the craftsmen to pay attention . Among them, the associated dimensions are divided into the following two categories: 1. In the same model, all dimensions in a certain sketch under a certain configuration are related to each other; 2. The dimensions in the sketch defined by the ParentChildRelationship() function in the IModelDoc2 interface in SolidWorks Dimensions are related to each other in a parent-child relationship. The function of the associated display is to traverse all associated dimensions, carry out secondary development on the office program, and use the Selection() function defined in the Microsoft.Interop.Office.Word.Application interface in the Word program to display.
本发明涉及的基于SolidWorks的CAPP工艺尺寸自动生成与更新方法,以一根低速轴为例,其有一个键槽特征,包含两个参数:宽度10mm和长度45mm,该方法包括以下步骤:The method for automatically generating and updating the CAPP process size based on SolidWorks involved in the present invention takes a low-speed shaft as an example, which has a keyway feature and includes two parameters: a width of 10mm and a length of 45mm. The method includes the following steps:
步骤1,CPU1调用工艺尺寸拾取模块3,对低速轴模型中工艺尺寸“10mm”和“45mm”进行拾取,流程算法如图2所示;Step 1, CPU1 invokes the process size picking module 3 to pick up the process sizes "10mm" and "45mm" in the low-speed shaft model, and the process algorithm is shown in Figure 2;
步骤2,CPU1调用工艺尺寸存储模块4,将工艺尺寸拾取模块3拾取的工艺尺寸“10mm”和“45mm”,以及系统针对该模型产生的流水ID值存储到工艺尺寸数据库2中,流程算法如图3所示;Step 2, CPU1 invokes the process size storage module 4, and stores the process size "10mm" and "45mm" picked up by the process size picking module 3, as well as the process ID value generated by the system for this model, into the process size database 2. The process algorithm is as follows: As shown in Figure 3;
步骤3,存储完成后,工艺尺寸数据库2发送一个反馈信息给CPU1,告知其已存储完毕;Step 3, after the storage is completed, the process dimension database 2 sends a feedback message to CPU1, informing it that the storage has been completed;
步骤4,CPU1调用工艺尺寸插入模块5,将工艺尺寸数据库中2中的工艺尺寸“10mm”和“45mm”以超链接形式插入到word文档中,该模块实现了创新点1的功能,流程算法如图4所示;Step 4, CPU1 invokes the process dimension insertion module 5, and inserts the process dimensions "10mm" and "45mm" in the process dimension database 2 into the word document in the form of hyperlinks. This module realizes the function of innovation point 1, the process algorithm As shown in Figure 4;
步骤5,当工艺尺寸发生变化时,例如10mm变为8mm,重复步骤1至步骤3,将新尺寸8mm拾取并存储到工艺尺寸数据库2中;Step 5, when the process size changes, for example, 10mm becomes 8mm, repeat steps 1 to 3, pick up the new size 8mm and store it in the process size database 2;
步骤6,CPU1调用工艺尺寸更新模块6,在word文档中,将旧尺寸10mm替换为新尺寸8mm,该模块实现了创新点2的功能,流程算法如图5所示;Step 6, CPU1 invokes process size update module 6, in the word document, replaces the old size 10mm with the new size 8mm, this module realizes the function of innovation point 2, and the process algorithm is shown in Figure 5;
步骤7,CPU1调用关联尺寸显示模块7,在word文档中,将与工艺尺寸8mm有关联的尺寸45mm高亮显示出来,以提醒工艺人员注意,该模块实现了创新点3的功能,流程算法如图6所示;Step 7, CPU1 invokes the associated size display module 7, and in the word document, the size 45mm related to the process size 8mm is highlighted to remind the craftsmen to pay attention. This module realizes the function of innovation point 3. The process algorithm is as follows As shown in Figure 6;
步骤8,结束。Step 8, end.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510304807.9A CN104850722B (en) | 2015-06-05 | 2015-06-05 | A kind of CAPP process automatically generates and update system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510304807.9A CN104850722B (en) | 2015-06-05 | 2015-06-05 | A kind of CAPP process automatically generates and update system and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104850722A CN104850722A (en) | 2015-08-19 |
CN104850722B true CN104850722B (en) | 2018-11-06 |
Family
ID=53850365
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510304807.9A Expired - Fee Related CN104850722B (en) | 2015-06-05 | 2015-06-05 | A kind of CAPP process automatically generates and update system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104850722B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111381563B (en) * | 2018-12-29 | 2023-08-15 | 鸿富锦精密电子(成都)有限公司 | Processing equipment error correction method and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1834954A (en) * | 2005-03-14 | 2006-09-20 | 杨晓华 | System and method of realizing automatic generation of electronic file |
CN101763064A (en) * | 2009-12-08 | 2010-06-30 | 沈阳飞机工业(集团)有限公司 | Numerical control machining process design system and method of aircraft complex components facing process object |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6823342B2 (en) * | 2001-05-15 | 2004-11-23 | Vykor, Inc. | Method and system for capturing, managing, and disseminating manufacturing knowledge |
-
2015
- 2015-06-05 CN CN201510304807.9A patent/CN104850722B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1834954A (en) * | 2005-03-14 | 2006-09-20 | 杨晓华 | System and method of realizing automatic generation of electronic file |
CN101763064A (en) * | 2009-12-08 | 2010-06-30 | 沈阳飞机工业(集团)有限公司 | Numerical control machining process design system and method of aircraft complex components facing process object |
Non-Patent Citations (3)
Title |
---|
CAPPWorks技术白皮书2010;briose;《https://wenku.baidu.com/view/8492a34a2b160b4e767fcfd1.html》;20120817;第1-20页 * |
基于三维平台的CAPP软构件库的研究与实现;王天虎;《中国优秀硕士学位论文全文数据库-信息科技辑》;20071115(第05期);第34-41页 * |
基于三维的工艺变型设计研究与实现;王飞飞;《机械制造》;20090720;第47卷(第539期);第62-65页 * |
Also Published As
Publication number | Publication date |
---|---|
CN104850722A (en) | 2015-08-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107203473A (en) | The automatization test system and method for automatic expansion interface test case | |
CN102231146A (en) | Automatic extraction and normalization storage method of manufacturing data of heterogeneous electronic design automation (EDA) design | |
CN115617888A (en) | Data import method, device, equipment, storage medium and product | |
CN108984868B (en) | A method and device for integrating network data of a board card | |
CN104375814A (en) | Generation method and device of an interface document | |
CN111932412A (en) | Contract drafting and revising method, device, storage medium and equipment | |
CN104850722B (en) | A kind of CAPP process automatically generates and update system and method | |
EP3961433A2 (en) | Data annotation method and apparatus, electronic device and storage medium | |
CN118364755B (en) | Integrated circuit layout design migration method, system, equipment and program product | |
CN107193906B (en) | Method and device for generating process pipeline instrument diagram bill of materials | |
CN109241351A (en) | A kind of multi-source heterogeneous data preparation method of board production | |
CN111339659B (en) | Rapid labeling method and device for stepped holes in three-dimensional model | |
CN116185389A (en) | Code generation method and device, electronic equipment and medium | |
WO2021253242A1 (en) | Method for use in product collaborative design, process therefor and apparatus | |
CN115268846A (en) | Method and device for adding attribute information and computer readable storage medium | |
CN114676238A (en) | RPA and AI combined key information acquisition method, device and storage medium | |
CN118445346B (en) | Data structuring method, device, equipment and storage medium for checking characteristics | |
CN111428429A (en) | Method for transferring circuit and layout design information in Cadence system | |
CN114035726B (en) | Method and system for robot flow automatic page element identification process | |
TW201327432A (en) | Scalable order data validation method | |
US20240412461A1 (en) | Annotation Device and Annotation Method | |
CN117632874A (en) | Automatic drawing storage method, device, equipment and medium for CAD software | |
CN115454977A (en) | Data migration method, device, equipment and storage medium | |
CN117272969A (en) | Contract text generation method, system, equipment and storage medium | |
CN118968532A (en) | Data extraction method, device, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181106 |
|
CF01 | Termination of patent right due to non-payment of annual fee |