CN105069243A - Catia-based part assembly relationship deriving method - Google Patents
Catia-based part assembly relationship deriving method Download PDFInfo
- Publication number
- CN105069243A CN105069243A CN201510512044.7A CN201510512044A CN105069243A CN 105069243 A CN105069243 A CN 105069243A CN 201510512044 A CN201510512044 A CN 201510512044A CN 105069243 A CN105069243 A CN 105069243A
- Authority
- CN
- China
- Prior art keywords
- catia
- assembly relationship
- parts
- deriving method
- assembly
- 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.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本发明涉及零件装配设计领域,具体涉及一种基于Catia的部件装配关系导出方法。The invention relates to the field of component assembly design, in particular to a Catia-based component assembly relationship derivation method.
背景技术Background technique
在用Catia进行装配设计时,有时需要统计整个零件树的零件组成并导出。目前一般通过手工进行统计输出或借助专门的EBOM软件逐层进行统计,过程繁琐,操作复杂。When using Catia for assembly design, sometimes it is necessary to count and export the parts of the entire part tree. At present, statistical output is generally performed manually or layer by layer with the help of special EBOM software, which is cumbersome and complicated to operate.
发明内容Contents of the invention
本发明的目的是提供一种基于Catia的部件装配关系导出方法,以解决目前的部件装配关系导出方法过程繁琐、操作复杂的问题。The purpose of the present invention is to provide a Catia-based component assembly relationship derivation method to solve the problems of cumbersome process and complicated operation in the current component assembly relationship derivation method.
本发明的技术方案是:Technical scheme of the present invention is:
一种基于Catia的部件装配关系导出方法,包括:A Catia-based component assembly relationship export method, including:
步骤一、根据输入的部件设计信息,得到所述部件的零件树;Step 1. According to the input part design information, the part tree of the part is obtained;
步骤二、对所述零件树进行递归遍历,得到所述部件中各子部件的装配关系;Step 2, recursively traversing the part tree to obtain the assembly relationship of each sub-component in the part;
步骤三、根据所述装配关系建立所述各子部件的位置数组;Step 3, establishing a position array of each sub-component according to the assembly relationship;
步骤四、根据所述位置数组导出所述各子部件装配关系表。Step 4: Export the assembly relation table of each sub-component according to the position array.
可选地,在所述步骤二中,是利用Catia编程接口,基于递归算法,对所述零件树进行递归遍历。Optionally, in the second step, a Catia programming interface is used to recursively traverse the part tree based on a recursive algorithm.
可选地,在所述步骤四中,是将所述位置数组通过Excel导出。Optionally, in the step 4, the position array is exported through Excel.
本发明的有益效果:Beneficial effects of the present invention:
本发明的基于Catia的部件装配关系导出方法,通过对零件树进行递归遍历,得到各子部件的装配关系,再根据装配关系建立各子部件的位置数组,最终以关系表形式进行自动导出,无需借助其他软件,特别是对零件多,结构复杂的装配的统计,能有效地节约时间和人力成本。The Catia-based component assembly relationship derivation method of the present invention obtains the assembly relationship of each sub-component by recursively traversing the part tree, and then establishes the position array of each sub-component according to the assembly relationship, and finally automatically derives it in the form of a relationship table, without With the help of other software, especially for the statistics of assemblies with many parts and complex structures, time and labor costs can be effectively saved.
附图说明Description of drawings
图1是本发明优选实施例的部件的零件树的示意图;Fig. 1 is the schematic diagram of the parts tree of the parts of the preferred embodiment of the present invention;
图2是本发明优选实施例的步骤二中递归遍历算法流程图。Fig. 2 is a flow chart of the recursive traversal algorithm in step 2 of the preferred embodiment of the present invention.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated.
如图1和图2所示,本发明提供的一种基于Catia的部件装配关系导出方法,包括:As shown in Figures 1 and 2, a Catia-based component assembly relationship derivation method provided by the present invention includes:
步骤一、根据输入的部件设计信息,得到部件的零件树;部件可以包括多个装配以及多个零件,且可以包括多个层;具体零件树结构可以参照如图1所示,装配包括装配A~装配D,零件包括零件A~零件G,零件树包括共4层。Step 1. Obtain the part tree of the part according to the input part design information; the part can include multiple assemblies and parts, and can include multiple layers; the specific part tree structure can be referred to as shown in Figure 1, and the assembly includes assembly A ~Assembly D, the parts include parts A~parts G, the parts tree includes a total of 4 layers.
步骤二、对步骤一中的零件树进行递归遍历,得到部件中各子部件的装配关系。本步骤中,可以通过多种软件对对零件树进行递归遍历;进一步,在本实施例中,具体是利用Catia编程接口,基于递归算法,对零件树进行递归遍历。Step 2: Perform recursive traversal on the part tree in step 1 to obtain the assembly relationship of each sub-component in the part. In this step, the part tree can be recursively traversed through various software; further, in this embodiment, the part tree is recursively traversed based on a recursive algorithm using the Catia programming interface.
参见图2所示,遍历零件树的过程为一个递归过程,设置两个位置坐标L和H分别记录遍历时的层数和行数,从根节点开始(层数L和行数H分别设为1),按照以下步骤进行遍历:Referring to Fig. 2, the process of traversing the part tree is a recursive process, two position coordinates L and H are set to respectively record the number of layers and the number of rows when traversing, starting from the root node (the number of layers L and the number of rows H are respectively set to 1), traverse according to the following steps:
1)、每访问一个节点时,提取节点信息,并将当前层数L和行数H连同节点信息一起作为一项进行记录;1), each time a node is visited, the node information is extracted, and the current layer number L and row number H together with the node information are recorded as one item;
2)、判断当前节点是否有子节点:2) Determine whether the current node has child nodes:
21)、如果有子节点,则将当前层数L和行数H分别加1,继续访问下一个子节点;21), if there is a child node, add 1 to the current layer number L and the row number H respectively, and continue to visit the next child node;
22)、如果没有子节点,返回当前节点的父节点,并将当前层数L减1,之后访问父节点的下一个子节点,最终可以得到如下递归遍历结果表1;22), if there is no child node, return the parent node of the current node, and subtract 1 from the current layer number L, and then visit the next child node of the parent node, and finally get the following recursive traversal result table 1;
递归遍历结果表1Recursively traverse the result table 1
步骤三、根据步骤二中得到的各子部件的装配关系,建立各子部件的位置数组。Step 3. According to the assembly relationship of each sub-component obtained in step 2, an array of positions of each sub-component is established.
步骤四、根据步骤三中得到的位置数组,导出各子部件装配关系表。同样,在本步骤中,可以通过多种方式将位置数组导出各子部件装配关系表,进一步,在本实施例中,将位置数组通过Excel导出,从而得到Excel表形式的各子部件装配关系,如表2所示;Step 4. According to the position array obtained in Step 3, an assembly relationship table of each sub-component is derived. Similarly, in this step, the position array can be exported to the assembly relationship table of each sub-component in various ways. Further, in this embodiment, the position array is exported through Excel to obtain the assembly relationship of each sub-component in the form of an Excel table. As shown in table 2;
各子部件装配关系表2Assembly relationship table of each sub-component 2
本发明的基于Catia的部件装配关系导出方法,通过对零件树进行递归遍历,得到各子部件的装配关系,再根据装配关系建立各子部件的位置数组,最终以关系表形式进行自动导出,无需借助其他软件,特别是对零件多,结构复杂的装配的统计,能有效地节约时间和人力成本。The Catia-based component assembly relationship derivation method of the present invention obtains the assembly relationship of each sub-component by recursively traversing the part tree, and then establishes the position array of each sub-component according to the assembly relationship, and finally automatically derives it in the form of a relationship table, without With the help of other software, especially for the statistics of assemblies with many parts and complex structures, time and labor costs can be effectively saved.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. All should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510512044.7A CN105069243A (en) | 2015-08-19 | 2015-08-19 | Catia-based part assembly relationship deriving method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510512044.7A CN105069243A (en) | 2015-08-19 | 2015-08-19 | Catia-based part assembly relationship deriving method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105069243A true CN105069243A (en) | 2015-11-18 |
Family
ID=54498609
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510512044.7A Pending CN105069243A (en) | 2015-08-19 | 2015-08-19 | Catia-based part assembly relationship deriving method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105069243A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106372311A (en) * | 2016-08-30 | 2017-02-01 | 阳光电源股份有限公司 | Customization assembly information obtaining method, device and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101620715A (en) * | 2009-08-06 | 2010-01-06 | 余洋 | Method and system for publishing intelligent advertisement |
US20100262780A1 (en) * | 2009-03-31 | 2010-10-14 | Mahan Michael P | Apparatus and methods for rendering a page |
CN104598683A (en) * | 2015-01-15 | 2015-05-06 | 东北大学 | Method of automatically generating layering exploded view |
-
2015
- 2015-08-19 CN CN201510512044.7A patent/CN105069243A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100262780A1 (en) * | 2009-03-31 | 2010-10-14 | Mahan Michael P | Apparatus and methods for rendering a page |
CN101620715A (en) * | 2009-08-06 | 2010-01-06 | 余洋 | Method and system for publishing intelligent advertisement |
CN104598683A (en) * | 2015-01-15 | 2015-05-06 | 东北大学 | Method of automatically generating layering exploded view |
Non-Patent Citations (1)
Title |
---|
张兴华: "基于CATIA的数字化装配信息建模与序列规划研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106372311A (en) * | 2016-08-30 | 2017-02-01 | 阳光电源股份有限公司 | Customization assembly information obtaining method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5426716B2 (en) | Distribution network power flow analysis system and method | |
US10566927B2 (en) | Method and system for optimizing the configuration of a solar power system | |
CN109670262A (en) | A computer-aided home layout optimization method and system | |
CN107315822B (en) | Knowledge point association mining method | |
CN104915528A (en) | Layout design method, layout design system and manufacturing method of integrated circuit | |
CN104050245B (en) | A kind of social network influence power maximization approach based on liveness | |
CN104166704A (en) | Method and device for shielding heterogeneous data sources | |
CN106649805A (en) | High-efficiency Web application cross-browser layout compatibility detecting system and method | |
US20150067624A1 (en) | System and method for leakage estimation for standard integrated circuit cells with shared polycrystalline silicon-on-oxide definition-edge (pode) | |
Tian et al. | Triple patterning aware detailed placement with constrained pattern assignment | |
US10970456B1 (en) | Identifying root cause of layout versus schematic errors | |
US9183345B2 (en) | Apparatus and method for generating a power delivery network | |
US20170161424A1 (en) | Method of designing a semiconductor device, system for implementing the method and standard cell | |
CN105069243A (en) | Catia-based part assembly relationship deriving method | |
CN104850623B (en) | Multi-dimensional data analysis model dynamic expansion method and system | |
US9928331B2 (en) | Method and control device for circuit layout migration | |
US20160092595A1 (en) | Systems And Methods For Processing Graphs | |
CN103577672B (en) | Fault event analysis system and its analysis method | |
CN113672615B (en) | A data analysis method and system for automatically generating SQL based on the relationship between tree tables | |
CN107209770B (en) | System and method for analyzing events and machine-readable storage medium | |
CN105528735A (en) | Abnormal data point correction method based on measured wind speed and spatial correlation | |
CN105045767A (en) | Method for fast storing and reading sparse matrix data of electric power system | |
CN105740365A (en) | Rapid query method and apparatus for data warehouse | |
CN105447134B (en) | The optimization method of Frequent Itemsets Mining Algorithm | |
CN103985132B (en) | Mismatching point iterative detection method based on K neighbor graphs |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20151118 |