[go: up one dir, main page]

CN115146327A - CAD file auxiliary processing method and system for air-conditioning industry - Google Patents

CAD file auxiliary processing method and system for air-conditioning industry Download PDF

Info

Publication number
CN115146327A
CN115146327A CN202210711009.8A CN202210711009A CN115146327A CN 115146327 A CN115146327 A CN 115146327A CN 202210711009 A CN202210711009 A CN 202210711009A CN 115146327 A CN115146327 A CN 115146327A
Authority
CN
China
Prior art keywords
file
map
information
original
frame
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
CN202210711009.8A
Other languages
Chinese (zh)
Other versions
CN115146327B (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.)
Sichuan Changhong Air Conditioner Co Ltd
Original Assignee
Sichuan Changhong Air Conditioner 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 Sichuan Changhong Air Conditioner Co Ltd filed Critical Sichuan Changhong Air Conditioner Co Ltd
Priority to CN202210711009.8A priority Critical patent/CN115146327B/en
Publication of CN115146327A publication Critical patent/CN115146327A/en
Application granted granted Critical
Publication of CN115146327B publication Critical patent/CN115146327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/17Mechanical parametric or variational design
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention relates to the technical field of file auxiliary processing, discloses a CAD file auxiliary processing method and system for the air-conditioning industry, aims to solve the problems of low efficiency and accuracy of the existing CAD file processing method, and mainly comprises the following steps: by adopting the mutual coordination work of the CADVBA program, the EXCELVBA program and the EXCEL form, the automatic batch copying, pasting, sorting, searching, screening, matching, zooming, labeling, renaming, list extraction, drawing splitting, PDF conversion, drawing content error checking and the like of the CAD files are carried out. The method is particularly suitable for scenes with more part drawing papers.

Description

用于空调行业的CAD文件辅助处理方法及系统CAD file auxiliary processing method and system for air-conditioning industry

技术领域technical field

本发明涉及文件辅助处理技术领域,具体来说涉及一种用于空调行业的CAD文件辅助处理方法及系统。The invention relates to the technical field of file auxiliary processing, in particular to a CAD file auxiliary processing method and system for the air-conditioning industry.

背景技术Background technique

在空调行业内,一个空调新品在设计过程中需要进行产品三维建模及导图,二维零部件图纸处理工作。三维建模主要是采用三维建模软件进行空调产品三维建模及二维零部件导图工作,二维零部件图纸主要是CAD文件。二维零部件图纸处理工作内容主要分为以下步骤:1、手动将所有二维零部件原导图文件复制粘贴到一个CAD零部件总图文件内;2、根据各个零部件类型手动查找匹配对应类型的标准图框,3、根据零部件图纸区域与图框大小对比,手动缩放零部件图纸,并在图框明细栏部分添加缩放比例;4、根据二维零部件装配关系手动给二维部件图纸明细表填充其下级零部件原始名称量等信息;5、根据二维零部件图纸不同缩放比例尺进行图纸标注;6、根据正式申请的零部件名称给步骤4中的零部件图纸手动重命名;7、对照二维零部件图纸明细栏,手动拟制零部件材料清单,用于加工及物料采购;8、将二维零部件总图内的零部件图纸手动拆分成单图存档;9、为方便不同部门人员进行图纸查阅,需手动将CAD文件转化为PDF文本。In the air-conditioning industry, a new air-conditioning product requires 3D modeling and mapping, and 2D component drawing processing work during the design process. 3D modeling mainly uses 3D modeling software for 3D modeling of air-conditioning products and 2D parts mapping work. The 2D parts drawings are mainly CAD files. The work content of 2D component drawing processing is mainly divided into the following steps: 1. Manually copy and paste the original map files of all 2D components into a CAD component general drawing file; 2. Manually find matching correspondences according to each component type Type of standard drawing frame, 3. According to the size comparison between the drawing area of the component and the drawing frame, manually scale the drawing of the component, and add the scaling ratio in the parts list of the drawing frame; 4. Manually assign the two-dimensional component according to the assembly relationship of the two-dimensional component The drawing list is filled with information such as the original names and quantities of its subordinate components; 5. Label the drawings according to different scales of the two-dimensional component drawings; 6. Manually rename the component drawings in step 4 according to the officially applied component names; 7. Manually draw up the list of parts and components according to the list of two-dimensional parts drawings for processing and material procurement; 8. Manually split the parts drawings in the two-dimensional parts general drawing into single drawings for archiving; 9. In order to facilitate the viewing of drawings by personnel in different departments, it is necessary to manually convert the CAD files into PDF texts.

以上为空调行业内二维零部件图纸基本处理流程,通常一个空调产品拥有的零部件图纸多达几百张,图框类型多达几十张,人工进行手动复制、粘贴、查找、筛选、匹配、缩放、标注、重命名、材料清单提取、图纸拆分、PDF转化等机械性重复工作,耗时巨大,错误率极高,严重影响空调新品的设计开发效率及设计图纸的准确性。The above is the basic processing flow of 2D component drawings in the air-conditioning industry. Usually, an air-conditioning product has hundreds of component drawings and dozens of frame types, which are manually copied, pasted, searched, filtered, and matched. , scaling, labeling, renaming, material list extraction, drawing splitting, PDF conversion and other mechanical repetitive tasks are time-consuming and have a high error rate, which seriously affects the design and development efficiency of new air conditioners and the accuracy of design drawings.

发明内容SUMMARY OF THE INVENTION

本发明旨在解决现有空调行业的CAD文件处理方法存在效率和准确性较低的问题,提出一种用于空调行业的CAD文件辅助处理方法及系统。The invention aims to solve the problems of low efficiency and accuracy in the existing CAD file processing methods of the air-conditioning industry, and proposes a CAD file auxiliary processing method and system for the air-conditioning industry.

本发明解决上述技术问题所采用的技术方案是:The technical scheme adopted by the present invention to solve the above-mentioned technical problems is:

一方面,提供一种用于空调行业的CAD文件辅助处理方法及系统,包括以下步骤:On the one hand, a CAD file auxiliary processing method and system for the air-conditioning industry is provided, comprising the following steps:

步骤1、自动对多个零部件对应的导图原图文件进行移动、缩放和复制后,根据预设排列方式计算各导图原图在总图文件中的世界坐标点,并根据所述世界坐标点将各导图原图粘贴至总图文件内的对应位置;以及为各导图原图匹配并添加对应的标准图框,在各标准图框的明细栏写入对应导图原图的原始文件名;Step 1. After automatically moving, zooming and copying the original map files corresponding to multiple components, calculate the world coordinate points of the original map files in the general map file according to the preset arrangement, and according to the world coordinates The coordinate point is to paste the original map of each map to the corresponding position in the general map file; and to match the original map of each map and add the corresponding standard frame, and write the corresponding map original image in the details column of each standard frame. original filename;

步骤2、根据导图原图文件的存储信息及存储关系,获取导图原图的零部件装配信息清单,将零部件装配信息清单的内容写入对应标准图框的明细栏;Step 2. According to the storage information and storage relationship of the original map file, obtain the list of parts assembly information of the original map of the map, and write the content of the list of parts assembly information into the details column of the corresponding standard frame;

步骤3、确定各导图原图对应零部件的类型及价格,根据零部件的类型及价格确定各零部件对应的正式零部件名称,将各标准图框的明细栏内的原始文件名替换为正式零部件名称;Step 3. Determine the type and price of the corresponding parts in the original map of each map, determine the official part name corresponding to each part according to the type and price of the part, and replace the original file name in the details column of each standard frame with official part name;

步骤4、根据提取标识信息对各标准图框的明细栏进行信息提取,获得所有零部件对应的材料清单;Step 4. Extract information from the detail column of each standard frame according to the extracted identification information, and obtain a list of materials corresponding to all parts;

步骤5、将总图文件中各图纸拆分成单图文件,根据对应的正式零部件名称修改各图纸的文件名称并保存至指定目录,所述图纸包括导图原图及其对应的标准图框;Step 5. Split each drawing in the general drawing file into a single drawing file, modify the file name of each drawing according to the corresponding official part name and save it to the designated directory. The drawings include the original map and its corresponding standard drawing. frame;

步骤6、对总图文件及单图文件进行检查,检查内容至少包括:正式零部件名称是否出现重复或缺失、各标准图框的明细栏是否存在内容缺失、各标准图框是否存在重叠、是否存在未替换完成的原始文件名、图纸的文件名称是否与对应的正式零部件名称一致以及图纸标注比例与图纸比例是否一致;Step 6. Check the general drawing file and the single drawing file. The inspection contents include at least: whether the names of the official parts are duplicated or missing, whether there is any missing content in the details column of each standard drawing frame, whether each standard drawing frame overlaps, whether There are original file names that have not been replaced, whether the file names of the drawings are consistent with the corresponding official component names, and whether the drawing scale is the same as the drawing scale;

步骤7、将各单图文件转换为PDF格式。Step 7. Convert each single image file to PDF format.

进一步地,所述步骤1具体包括:Further, the step 1 specifically includes:

步骤101、获取待复制的导图原图文件夹目录,对导图原图文件夹及其子文件夹下所有DXF文件的名称、文件绝对路径和文件修改时间进行遍历提取,并将提取的内容写入CAD模板复制辅助表格;Step 101: Obtain the directory of the original map folder to be copied, traverse and extract the names, absolute file paths and file modification times of all DXF files in the original map folder and its subfolders, and extract the extracted content. Write CAD template to copy auxiliary table;

步骤102、获取文件复制存放目录,将文件复制存放目录对应的绝对路径信息存放于所述CAD模板复制辅助表格的指定区域内;Step 102, obtaining the file copy storage directory, and storing the absolute path information corresponding to the file copy storage directory in the designated area of the CAD template copy auxiliary table;

步骤103、根据所述CAD模板复制辅助表格进行导图原图边界识别、导图原图缩放、复制、粘贴、标准图框筛选匹配以及原始文件名填充,循环操作直到所有导图原图文件复制完成。Step 103 , according to the CAD template copying auxiliary table, perform map original image boundary recognition, map original image scaling, copying, pasting, standard frame filtering and matching, and original file name filling, and repeat the operation until all map original image files are copied Finish.

进一步地,所述步骤103具体包括:Further, the step 103 specifically includes:

步骤1031、获取用户自定义的模板识别清单表格,所述模板识别清单表格包含各导图原图对应标准图框的文件内部信息,所述标准图框的文件内部信息至少包括:标准图框的名称、图框尺寸、明细栏尺寸、识别标识、导图原图粘贴区域尺寸、标准图框的X轴和Y轴的偏移量以及标准图框X轴和Y轴的对齐方式;Step 1031: Obtain a user-defined template identification list table, where the template identification list table includes the file internal information of each original map corresponding to the standard frame, and the file internal information of the standard frame at least includes: Name, frame size, parts list size, identification mark, size of the paste area of the original map, the offset of the X-axis and Y-axis of the standard frame, and the alignment of the X-axis and Y-axis of the standard frame;

步骤1032、获取导图原图文件信息,所述导图原图文件信息至少包括:导图原图的原始文件名、图像外边界尺寸和在边界左下角世界坐标点;Step 1032: Obtain file information of the original map of the map, where the information of the original map of the map at least includes: the original file name of the original map of the map, the size of the outer boundary of the image, and the world coordinate point at the lower left corner of the boundary;

步骤1033、获取用户自定义的标准图框文件外部信息,所述标准图框文件外部信息至少包括标准图框的文件名字符串和存储绝对路径;Step 1033, obtaining user-defined external information of the standard picture frame file, the external information of the standard picture frame file at least includes the file name string and the storage absolute path of the standard picture frame;

步骤1034、核对识别标识信息,核对完成后若未发出错误提示,则进入步骤1035,否则,退出文件复制操作;所述核对识别标识信息具体包括:导图原图的原始文件名是否能够匹配到识别标识以及识别标识对应的标准图框是否缺失;Step 1034: Check the identification information, if no error prompt is issued after the verification is completed, proceed to step 1035; otherwise, exit the file copy operation; the verification identification information specifically includes: whether the original file name of the original map can match the Whether the identification mark and the standard frame corresponding to the identification mark are missing;

步骤1035、获取导图原图对应的标准图框文件内部信息,具体包括:根据导图原图的原始文件名字符串匹配识别标识,并确定该识别标识对应的标准图框文件内部信息;Step 1035: Obtain the internal information of the standard frame file corresponding to the original map image, which specifically includes: matching the identification mark according to the original file name string of the original map image, and determining the internal information of the standard frame file corresponding to the identification mark;

步骤1036、根据导图原图的图像外边界尺寸和粘贴位置确定导图原图需要缩放的实际比例;Step 1036: Determine the actual scale of the original map image that needs to be scaled according to the size of the image outer boundary and the paste position of the original map image;

步骤1037、根据导图原图需要缩放的实际比例对导图原图进行缩放,根据导图原图边界左下角世界坐标点计算需要平移的距离,并将导图原图移动到世界坐标点(0,0);Step 1037: Scale the original map image according to the actual scale that needs to be scaled for the original map image, calculate the distance to be translated according to the world coordinate point in the lower left corner of the border of the original map image, and move the original map image to the world coordinate point ( 0,0);

步骤1038、将导图原图按其世界坐标点(0,0)为基点进行复制;Step 1038: Copy the original map image based on its world coordinate point (0,0) as the base point;

步骤1039、根据预设排列方式计算导图原图在总图文件中的世界坐标点,首张导图原图粘贴到总图文件中的世界坐标点默认为(0,0);Step 1039: Calculate the world coordinate point of the original map image in the master map file according to the preset arrangement, and the world coordinate point of the first map original image pasted into the master map file is (0,0) by default;

步骤10310、根据导图原图在总图文件中的世界坐标点将导图原图粘贴至总图文件内的对应位置;Step 10310: Paste the original map image to the corresponding position in the master map file according to the world coordinate point of the original map image in the master map file;

步骤10311、根据标准图框的X轴和Y轴的偏移量以及标准图框X轴和Y轴的对齐方式计算导图原图对应的标准图框在总图文件中的世界坐标点;Step 10311, according to the offset of the X-axis and Y-axis of the standard frame and the alignment of the X-axis and Y-axis of the standard frame, calculate the world coordinate point of the standard frame corresponding to the original map of the map in the general map file;

步骤10312、根据步骤1035获取的标准图框的名称在用户自定义的标准图框文件外部信息中查找并复制对应的标准图框;Step 10312, search and copy the corresponding standard frame in the external information of the user-defined standard frame file according to the name of the standard frame obtained in step 1035;

步骤10313、根据计算得到的标准图框在总图文件中的世界坐标点将标准图框粘贴至总图文件内的对应位置;Step 10313: Paste the standard drawing frame to the corresponding position in the general drawing file according to the calculated world coordinate point of the standard drawing frame in the general drawing file;

步骤10314、将导图原图的原始文件名写入对应标准图框的明细栏;Step 10314: Write the original file name of the original map of the map into the details column of the corresponding standard frame;

步骤10315、判断是否完成所有导图原图的复制工作,若是,则进入步骤10316,否则,重复执行步骤1035至步骤10314;Step 10315, determine whether the copying of all the original maps of the map is completed, if so, go to step 10316, otherwise, repeat steps 1035 to 10314;

步骤10316、退出文件复制操作。Step 10316, exit the file copy operation.

进一步地,所述步骤2具体包括:Further, the step 2 specifically includes:

步骤201、获取文字填充源目录,并获取导图原图文件的存储信息及存储关系;Step 201, obtaining the text filling source directory, and obtaining the storage information and storage relationship of the original map file of the map;

步骤202、判断导图原图文件的存储关系是否有误,若是,则结束操作,否则,进入步骤203;Step 202, determine whether the storage relationship of the original map file is wrong, if so, end the operation, otherwise, go to step 203;

步骤203、根据导图原图新建多个零部件装配信息清单;Step 203 , creating multiple parts assembly information lists according to the original map of the map;

步骤204、根据零部件装配信息清单和CAD模板复制辅助表格与待填充文件目录下的总图文件内的相应图纸进行遍历匹配,进行相应图纸的标准图框的明细栏内容填充操作,具体包括:Step 204, traversing and matching the corresponding drawings in the general drawing file under the file directory to be filled according to the parts assembly information list and the CAD template copy auxiliary table, and filling the details column content of the standard frame of the corresponding drawing, specifically including:

步骤2041、获取用户自定义的模板识别清单表格的内容,并将其写入数组;Step 2041, obtaining the content of the user-defined template identification list table, and writing it into an array;

步骤2042、获取步骤203新建的多个零部件装配信息清单的内容,并将其写入动态数组;Step 2042, acquiring the contents of the multiple parts assembly information lists newly created in step 203, and writing them into the dynamic array;

步骤2043、获取总图文件内所有图纸的图框信息和名称信息,所述图框信息至少包括:图框的左下角世界坐标信息和边界尺寸;Step 2043: Obtain the frame information and name information of all drawings in the general drawing file, where the frame information at least includes: world coordinate information and boundary size of the lower left corner of the frame;

步骤2044、根据零部件装配信息清单内容与图纸的名称信息进行匹配,确定当前标准图框明细栏需要填入的零部件装配信息;Step 2044 , according to matching the content of the parts assembly information list with the name information of the drawing, determine the parts assembly information that needs to be filled in the list of the current standard drawing frame;

步骤2045、根据明细栏尺寸以及图框的边界尺寸计算零部件装配信息写入总图文件中的世界坐标点;Step 2045, according to the size of the detail column and the boundary size of the drawing frame, calculate the world coordinate point where the component assembly information is written into the general drawing file;

步骤2046、根据零部件装配信息写入总图文件中的世界坐标点以及用户选择的字号大小,进行零部件装配信息的写入工作;Step 2046: Write the component assembly information according to the world coordinate point in the general drawing file and the font size selected by the user according to the component assembly information;

步骤2047、判断是否完成所有零部件装配信息的写入工作,若是,则退出文字写入工作,否则,重复执行步骤2044至步骤2046。Step 2047 , judging whether the writing work of all the component assembly information is completed, if so, exit the text writing work, otherwise, repeat steps 2044 to 2046 .

进一步地,所述步骤3具体包括:Further, the step 3 specifically includes:

步骤301、获取待复制的导图原图文件夹目录,根据导图原图文件夹目录获取导图原图的文件名字符串,并将写入CAD文字替换辅助表格;Step 301: Obtain the folder directory of the original map of the map to be copied, obtain the file name string of the original map of the map according to the folder of the original map of the map, and write the CAD text to replace the auxiliary table;

步骤302、在零部件价格清单表格内输入价格计算参数,并根据价格计算参数确定各导图原图对应零部件的价格,所述价格计算参数至少包括:对应零部件尺寸、材料单价以及加工费;Step 302: Input price calculation parameters in the parts price list table, and determine the price of the corresponding parts of each original map according to the price calculation parameters, the price calculation parameters at least include: corresponding parts size, material unit price and processing fee ;

步骤303、根据零部件的类型及价格确定各零部件对应的正式零部件名称;Step 303: Determine the official component name corresponding to each component according to the type and price of the component;

步骤304、在CAD文字替换辅助表格内的替换区域粘贴对应的正式零部件名称;Step 304, paste the corresponding official part name in the replacement area in the CAD text replacement auxiliary table;

步骤305、对导图原图的文件名字符串和正式零部件名称的名称信息进行检查,若无误,则进入步骤307,否则进入步骤306;Step 305, check the file name string of the original map and the name information of the official part name, if there is no error, go to step 307, otherwise go to step 306;

步骤306、对名称信息进行修改后进入步骤305;Step 306, after modifying the name information, go to step 305;

步骤307、获取总图文件目录,并将总图文件目录下所有零部件名称及存储路径信息写入CAD文字替换辅助表格;Step 307, obtaining the general drawing file directory, and writing all the component names and storage path information in the general drawing file directory into the CAD text replacement auxiliary table;

步骤308、根据CAD文字替换辅助表格的内容将所有零部件的原始文件名替换为对应的正式零部件名称;Step 308 , replace the original file names of all components with the corresponding official component names according to the content of the CAD text replacement auxiliary table;

步骤309、判断是否完成所有零部件的名称替换工作,若是,则退出名称替换工作,否则,重复执行步骤308。Step 309 , judging whether the name replacement work of all components is completed, if so, exit the name replacement work, otherwise, repeat the execution of step 308 .

进一步地,所述步骤4具体包括:Further, the step 4 specifically includes:

步骤401、为标准图框的明细栏添加提取标识信息;Step 401, adding extraction identification information to the detail column of the standard picture frame;

步骤402、选择清单提取源目录,并将所述清单提取源目录中总图文件的存储信息写入CAD清单提取辅助表格,所述清单提取源目录为添加提取标识信息后的总图文件存放目录;Step 402: Select the list extraction source directory, and write the storage information of the general drawing files in the list extraction source directory into the CAD list extraction auxiliary table, and the list extracting source directory is the general drawing file storage directory after adding the extraction identification information. ;

步骤403、根据所述清单提取源目录提取清单提取所有零部件对应的材料清单。Step 403 , extracting the list of materials corresponding to all the parts and components according to the list extraction source directory extraction list.

进一步地,所述步骤403具体包括:Further, the step 403 specifically includes:

步骤4031、获取用户自定义的模板识别清单表格,将对应标准图框的文件内部信息写入数组;Step 4031, obtaining a user-defined template identification list table, and writing the internal information of the file corresponding to the standard picture frame into an array;

步骤4032、获取CAD清单提取辅助表格的内容;Step 4032: Obtain the content of the CAD list extraction auxiliary table;

步骤4033、获取总图文件内所有图纸的标准图框信息和名称信息,所述标准图框信息至少包括:标准图框左下角的世界坐标以及边界尺寸;Step 4033: Obtain the standard frame information and name information of all drawings in the general drawing file, where the standard frame information at least includes: the world coordinate and boundary size of the lower left corner of the standard frame;

步骤4034、获取总图文件内所有标准图框对应的提取标识信息,并判断所述提取标识信息是否有误,若是,则进入步骤4035,否则,进入步骤4036;Step 4034: Obtain the extracted identification information corresponding to all standard picture frames in the general drawing file, and determine whether the extracted identification information is incorrect, if so, go to step 4035, otherwise, go to step 4036;

步骤4035、修改提取标识信息后重新进入步骤4034;Step 4035, re-enter step 4034 after modifying the extracted identification information;

步骤4036、根据提取标识信息对各标准图框的明细栏进行信息循环遍历提取,获得所有零部件对应的材料清单;Step 4036: Perform information loop traversal and extraction on the detail column of each standard frame according to the extracted identification information, and obtain a list of materials corresponding to all parts;

步骤4037、判断是否完成所有明细栏的信息提取工作,若是,则退出信息提取工作,否则,重复执行步骤4036。Step 4037: Determine whether the information extraction work of all the detail columns is completed, if so, exit the information extraction work, otherwise, repeat step 4036.

进一步地,所述步骤5具体包括:Further, the step 5 specifically includes:

步骤501、选择图纸拆分源目录,根据图纸拆分源目录获取待拆分的总图文件名称和存储路径信息,并将其写入CAD图纸拆分辅助表格;Step 501: Select the source directory for splitting drawings, obtain the file name and storage path information of the general drawing to be split according to the source directory for splitting drawings, and write them into the CAD drawing splitting auxiliary table;

步骤502、选择拆分图纸存放目录,并将拆分图纸存放目录中的路径信息写入CAD图纸拆分辅助表格;Step 502: Select the split drawing storage directory, and write the path information in the split drawing storage directory into the CAD drawing splitting auxiliary table;

步骤503、根据所述CAD图纸拆分辅助表格进行图纸拆分操作,具体包括:Step 503, performing drawing splitting operation according to the CAD drawing splitting auxiliary table, specifically including:

步骤5031、获取用户自定义的模板识别清单表格内的标准图框的文件内部信息,并将其写入数组;Step 5031, obtain the file internal information of the standard picture frame in the user-defined template identification list table, and write it into the array;

步骤5032、获取CAD图纸拆分辅助表格内的待拆分的总图文件名称和存储路径信息,并将其写入数组;Step 5032: Obtain the file name and storage path information of the general drawing to be split in the CAD drawing splitting auxiliary table, and write them into the array;

步骤5033、根据待拆分的总图文件名称获取所有待拆分的图纸信息,所述图纸信息至少包括:图纸名称、图纸图框左下角的世界坐标以及图纸图框的边界尺寸;Step 5033: Obtain all drawing information to be split according to the name of the general drawing file to be split, the drawing information at least includes: the drawing name, the world coordinate of the lower left corner of the drawing frame, and the boundary size of the drawing frame;

步骤5034、判断待拆分的图纸信息是否有误,若是,则进入步骤5035,否则,进入步骤5036;Step 5034: Determine whether the drawing information to be split is incorrect, if so, go to Step 5035; otherwise, go to Step 5036;

步骤5035、修改图纸名称后重新进入步骤5034;Step 5035, re-enter step 5034 after modifying the drawing name;

步骤5036、根据图纸信息计算待拆分图纸的边界坐标;Step 5036: Calculate the boundary coordinates of the drawing to be split according to the drawing information;

步骤5037、根据图纸名称新建对应的DWG格式文件;Step 5037, create a corresponding DWG file according to the drawing name;

步骤5038、根据待拆分图纸的边界坐标将待拆分图纸复制粘贴至对应的DWG格式文件内,并将所述DWG格式文件保存至拆分图纸存放目录;Step 5038: Copy and paste the drawing to be split into the corresponding DWG format file according to the boundary coordinates of the drawing to be split, and save the DWG format file to the split drawing storage directory;

步骤5039、判断是否完成所有图纸拆分工作,若是,则退出图纸拆分工作,否则,重复执行步骤5036至步骤5038。Step 5039: Determine whether all the drawing splitting work is completed, if so, exit the drawing splitting work, otherwise, repeat steps 5036 to 5038.

进一步地,所述步骤7具体包括:Further, the step 7 specifically includes:

步骤701、选择待转化文件源目录,将所述待转化源目录的路径信息写入CAD-PDF转化辅助表格,所述待转化源目录为总图文件存放目录或单图文件存放目录;Step 701: Select the source directory of the file to be converted, write the path information of the source directory to be converted into the CAD-PDF conversion auxiliary table, and the source directory to be converted is the general drawing file storage directory or the single drawing file storage directory;

步骤702、根据待转化源目录将DWG格式图纸转化为PDF格式,具体包括:Step 702: Convert the drawings in DWG format to PDF format according to the source directory to be converted, which specifically includes:

步骤7021、获取用户自定义的模板识别清单表格内的标准图框的文件内部信息,并将其写入数组;Step 7021: Obtain the file internal information of the standard frame in the user-defined template identification list table, and write it into an array;

步骤7022、获取CAD-PDF转化辅助表格,并将其中的待转化源目录的路径信息写入数组;Step 7022, obtain the CAD-PDF conversion auxiliary table, and write the path information of the source directory to be converted into the array;

步骤7023、获取总图文件内所有图纸对应的标准图框信息和名称信息,所述标准图框信息包括:标准图框边界尺寸以及标准图框左下角的世界坐标;Step 7023: Obtain standard frame information and name information corresponding to all drawings in the general drawing file, where the standard frame information includes: the boundary size of the standard frame and the world coordinate of the lower left corner of the standard frame;

步骤7024、判断待转化的图纸信息是否有误,若是,则进入步骤7035,否则,进入步骤7036;Step 7024: Determine whether the drawing information to be converted is incorrect, if so, go to Step 7035; otherwise, go to Step 7036;

步骤7025、修改待转化图纸名称后重新进入步骤7024;Step 7025, re-enter step 7024 after modifying the name of the drawing to be converted;

步骤7026、根据标准图框左下角的世界坐标框选待转化图纸区域,并将框选内容另存为PDF格式文档,所述PDF格式文档的名称为对应图纸名称,存储位置为待转化文件源目录;Step 7026: Select the drawing area to be converted according to the world coordinate frame in the lower left corner of the standard drawing frame, and save the content of the frame selection as a PDF format document, the name of the PDF format document is the name of the corresponding drawing, and the storage location is the source directory of the file to be converted ;

步骤7027、判断是否完成所有图纸转化工作,若是,则退出图纸转化工作,否则,重复执行步骤7026至步骤7027。Step 7027 , determine whether all the drawing conversion work is completed, if so, exit the drawing conversion work, otherwise, repeat steps 7026 to 7027 .

另一方面,提供一种用于空调行业的CAD文件辅助处理系统,包括:On the other hand, a CAD file auxiliary processing system for the air-conditioning industry is provided, including:

CAD模板文件复制模块,用于自动对多个零部件对应的导图原图文件进行移动、缩放和复制后,根据预设排列方式计算各导图原图在总图文件中的世界坐标点,并根据所述世界坐标点将各导图原图粘贴至总图文件内的对应位置;以及为各导图原图匹配并添加对应的标准图框,在各标准图框的明细栏写入对应导图原图的原始文件名;The CAD template file copying module is used to automatically move, zoom and copy the original map files corresponding to multiple components, and calculate the world coordinate points of the original map files in the general drawing file according to the preset arrangement. And paste each map original image to the corresponding position in the general map file according to the world coordinate point; and match and add the corresponding standard frame for each map original image, and write the corresponding standard frame in the detail column of each standard frame The original filename of the original map;

CAD初始清单生成及文字填充模块,用于根据导图原图文件的存储信息及存储关系,获取导图原图的零部件装配信息清单,将零部件装配信息清单的内容写入对应标准图框的明细栏;The CAD initial list generation and text filling module is used to obtain the component assembly information list of the original map file according to the storage information and storage relationship of the original map file, and write the content of the component assembly information list into the corresponding standard frame details column;

CAD零部件价格预估及文字替换模块,用于确定各导图原图对应零部件的类型及价格,根据零部件的类型及价格确定各零部件对应的正式零部件名称,将各标准图框的明细栏内的原始文件名替换为正式零部件名称;The CAD component price estimation and text replacement module is used to determine the type and price of the corresponding components in the original map of each map, and determine the official component name corresponding to each component according to the type and price of the component. Replace the original file name in the parts list with the official component name;

CAD材料清单提取模块,用于根据提取标识信息对各标准图框的明细栏进行信息提取,获得所有零部件对应的材料清单;The CAD bill of materials extraction module is used to extract information from the details column of each standard frame according to the extracted identification information, and obtain the bill of materials corresponding to all parts;

CAD图纸拆分模块,用于将总图文件中各图纸拆分成单图文件,根据对应的正式零部件名称修改各图纸的文件名称并保存至指定目录,所述图纸包括导图原图及其对应的标准图框;The CAD drawing splitting module is used to split each drawing in the general drawing file into a single drawing file, modify the file name of each drawing according to the corresponding official component name and save it to the specified directory, the drawings include the original map and Its corresponding standard frame;

CAD文件内容检查模块,用于对总图文件及单图文件进行检查,检查内容至少包括:正式零部件名称是否出现重复或缺失、各标准图框的明细栏是否存在内容缺失、各标准图框是否存在重叠、是否存在未替换完成的原始文件名、图纸的文件名称是否与对应的正式零部件名称一致以及图纸标注比例与图纸比例是否一致;The CAD file content inspection module is used to inspect the general drawing file and the single drawing file. The inspection contents include at least: whether the official component names are duplicated or missing, whether the parts list of each standard drawing frame is missing content, each standard drawing frame Whether there is overlap, whether there is an unreplaced original file name, whether the file name of the drawing is consistent with the corresponding official component name, and whether the drawing scale is consistent with the drawing scale;

CAD-PDF转化模块,用于将各单图文件转换为PDF格式。The CAD-PDF conversion module is used to convert each single drawing file into PDF format.

本发明的有益效果是:本发明所述的用于空调行业的CAD文件辅助处理方法及系统,通过采用CADVBA、EXCELVBA程序及EXCEL表格相互协调工作,进行CAD文件的自动批量复制、粘贴、排序、查找、筛选、匹配、缩放、标注、重命名,清单提取、图纸拆分、PDF转化及图纸内容查错等工作,极大降低二维零部件图纸工作量、降低出错概率,简化操作方法,提高操作效率。The beneficial effects of the present invention are: the CAD file auxiliary processing method and system used in the air-conditioning industry of the present invention can perform automatic batch copying, pasting, sorting, Searching, filtering, matching, scaling, marking, renaming, list extraction, drawing splitting, PDF conversion and drawing content error checking, etc., greatly reduce the workload of 2D component drawings, reduce the probability of errors, simplify operation methods, and improve operational efficiency.

附图说明Description of drawings

图1为本发明实施例所述的用于空调行业的CAD文件辅助处理系统的结构示意图;1 is a schematic structural diagram of a CAD file auxiliary processing system for the air-conditioning industry according to an embodiment of the present invention;

图2为本发明实施例所述的用于空调行业的CAD文件辅助处理方法的流程示意图;FIG. 2 is a schematic flowchart of a CAD file auxiliary processing method for the air-conditioning industry according to an embodiment of the present invention;

图3为本发明实施例所述的CAD模板文件复制模块实现方法的流程示意图;3 is a schematic flowchart of a method for implementing a CAD template file copy module according to an embodiment of the present invention;

图4为本发明实施例所述的文件复制操作的流程示意图;4 is a schematic flowchart of a file copy operation according to an embodiment of the present invention;

图5为本发明实施例所述的导图原图识别规则的示意图;5 is a schematic diagram of a map original image identification rule according to an embodiment of the present invention;

图6为本发明实施例所述的CAD初始清单生成及文字填充模块实现方法的流程示意图;6 is a schematic flowchart of a method for implementing a CAD initial list generation and text filling module according to an embodiment of the present invention;

图7为本发明实施例所述的文字填充操作的流程示意图;7 is a schematic flowchart of a text filling operation according to an embodiment of the present invention;

图8为本发明实施例所述的CAD零部件价格预估及文字替换模块实现方法的流程示意图;8 is a schematic flowchart of a method for implementing a CAD component price estimation and text replacement module according to an embodiment of the present invention;

图9为本发明实施例所述的CAD材料清单提取模块实现方法的流程示意图;9 is a schematic flowchart of a method for implementing a CAD bill of materials extraction module according to an embodiment of the present invention;

图10为本发明实施例所述的清单提取操作的流程示意图;10 is a schematic flowchart of a list extraction operation according to an embodiment of the present invention;

图11为本发明实施例所述的CAD图纸拆分模块实现方法的流程示意图;11 is a schematic flowchart of a method for implementing a CAD drawing splitting module according to an embodiment of the present invention;

图12为本发明实施例所述的图纸拆分操作的流程示意图;12 is a schematic flowchart of a drawing splitting operation according to an embodiment of the present invention;

图13为本发明实施例所述的CAD-PDF转化模块实现方法的流程示意图;13 is a schematic flowchart of a method for implementing a CAD-PDF conversion module according to an embodiment of the present invention;

图14为本发明实施例所述的PDF转化操作的流程示意图;14 is a schematic flowchart of a PDF conversion operation according to an embodiment of the present invention;

图15为本发明实施例所述的CAD文件内容检查模块实现方法的流程示意图;15 is a schematic flowchart of a method for implementing a CAD file content checking module according to an embodiment of the present invention;

图16为本发明实施例所述的文件检查操作的流程示意图;16 is a schematic flowchart of a file checking operation according to an embodiment of the present invention;

图17为本发明实施例所述的CAD图纸组成示意图;17 is a schematic diagram of the composition of a CAD drawing according to an embodiment of the present invention;

图18为本发明实施例所述的图框信息识别原理示意图;FIG. 18 is a schematic diagram of a frame information identification principle according to an embodiment of the present invention;

图19为本发明实施例所述的人机交互界面示意图。FIG. 19 is a schematic diagram of a human-computer interaction interface according to an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合附图对本发明的实施方式进行详细描述。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

本发明提供的用于空调行业的CAD文件辅助处理系统,如图1所示,包括:CAD模板文件复制模块、CAD初始清单生成及文字填充模块、CAD零部件价格预估及文字替换模块、CAD材料清单提取模块、CAD图纸拆分模块、CAD文件内容检查模块和CAD-PDF转化模块,基于上述系统,本发明提供的用于空调行业的CAD文件辅助处理方法,如图2所示,包括以下步骤:The CAD file auxiliary processing system for the air-conditioning industry provided by the present invention, as shown in FIG. 1, includes: a CAD template file copying module, a CAD initial list generation and text filling module, a CAD component price estimation and text replacement module, a CAD The material list extraction module, the CAD drawing splitting module, the CAD file content checking module and the CAD-PDF conversion module, based on the above system, the CAD file auxiliary processing method for the air-conditioning industry provided by the present invention, as shown in Figure 2, includes the following step:

步骤1、CAD模板文件复制模块自动对多个零部件对应的导图原图文件进行移动、缩放和复制后,根据预设排列方式计算各导图原图在总图文件中的世界坐标点,并根据所述世界坐标点将各导图原图粘贴至总图文件内的对应位置;以及为各导图原图匹配并添加对应的标准图框,在各标准图框的明细栏写入对应导图原图的原始文件名;Step 1. After the CAD template file copying module automatically moves, zooms and copies the original map files corresponding to multiple components, it calculates the world coordinate points of the original map files in the general map file according to the preset arrangement. And paste each map original image to the corresponding position in the general map file according to the world coordinate point; and match and add the corresponding standard frame for each map original image, and write the corresponding standard frame in the detail column of each standard frame The original filename of the original map;

具体而言,本步骤主要用于将用户指定windows系统文件目录下的二维零部件导图原图匹配对应图框、自动缩放后粘贴于用户指定存放目录下的CAD总图文件内,并按用户预设的排列方式进行排列。在选择缩放类型时用户可以选择保持图框不变,缩放导图原图,也可选择保持导图原图不变,缩放图框;预设排列方式可以选择按装入关系排列,也可选择按行列排布,按装入关系排列时,模块会将上级部件排到最左边,其右依次排列该部件的下级零部件列数不定,选择按行列排布时模块会将零部件图纸按制定列数排列;用户还可选择行高和列宽,控制各张图纸排列的行间距和列间距;为避免单张总图内零部件图纸数量过多导致windows系统处理缓慢甚至卡死等问题,允许用户选择单张总图图纸容量,图纸容量为总图内图纸数量存放上限,该值大于等于1。如图3所示,其实现方法的详细步骤如下:Specifically, this step is mainly used to match the original two-dimensional component map in the file directory of the Windows system specified by the user to the corresponding frame, automatically zoom and paste it into the CAD general drawing file in the storage directory specified by the user, and press Arrange in a user-preset arrangement. When selecting the zoom type, the user can choose to keep the frame unchanged and zoom the original image of the map, or choose to keep the original image of the map unchanged and zoom the frame; the preset arrangement can be arranged according to the loading relationship, or can be selected Arranged by row and column, when arranging according to the loading relationship, the module will arrange the upper-level components to the leftmost, and the lower-level components of the component will be arranged in sequence on the right. The number of columns is not fixed. When you choose to arrange by row and column, the module will arrange the component drawings according to the formula. The number of columns is arranged; the user can also select the row height and column width to control the row spacing and column spacing of each drawing; Allows the user to select the drawing capacity of a single total drawing. The drawing capacity is the upper limit of the number of drawings stored in the total drawing. The value is greater than or equal to 1. As shown in Figure 3, the detailed steps of its implementation method are as follows:

步骤101、获取待复制的导图原图文件夹目录,EXCELVBA程序对获取的对导图原图文件夹及其子文件夹下所有DXF文件的名称、文件绝对路径和文件修改时间进行遍历提取,并将提取的内容写入CAD模板复制辅助表格;此处选择DXF文件格式的原因是DXF格式文件同为CAD文件,便于后期与处理完成的DWG格式文件区分;Step 101: Obtain the original map folder directory to be copied, and the EXCELVBA program traverses and extracts the names, file absolute paths and file modification times of all DXF files under the obtained map original image folder and its subfolders, Write the extracted content into the CAD template to copy the auxiliary table; the reason for choosing the DXF file format here is that the DXF format file is both a CAD file, which is convenient for distinguishing it from the processed DWG format file in the later stage;

步骤102、获取文件复制存放目录,EXCELVBA程序将文件复制存放目录对应的绝对路径信息存放于所述CAD模板复制辅助表格的指定区域内;Step 102, obtain the file replication storage directory, and the EXCELVBA program stores the absolute path information corresponding to the file replication storage directory in the designated area of the CAD template replication auxiliary table;

步骤103、EXCELVBA程序根据所述CAD模板复制辅助表格进行导图原图边界识别、导图原图缩放、复制、粘贴、标准图框筛选匹配以及原始文件名填充,循环操作直到所有导图原图文件复制完成。如图4所示,其实现方法包括以下步骤:Step 103, the EXCELVBA program performs the map original image boundary recognition, map original image scaling, copying, pasting, standard frame filtering and matching, and original file name filling according to the CAD template copy auxiliary table, and the cycle operation until all the original map images File copying is complete. As shown in Figure 4, its implementation method includes the following steps:

步骤1031、获取用户自定义的模板识别清单表格,所述模板识别清单表格包含各导图原图对应标准图框的文件内部信息,所述标准图框的文件内部信息至少包括:标准图框的名称、图框尺寸、明细栏尺寸、识别标识、导图原图粘贴区域尺寸、标准图框的X轴和Y轴的偏移量以及标准图框X轴和Y轴的对齐方式;Step 1031: Obtain a user-defined template identification list table, where the template identification list table includes the file internal information of each original map corresponding to the standard frame, and the file internal information of the standard frame at least includes: Name, frame size, parts list size, identification mark, size of the paste area of the original map, the offset of the X-axis and Y-axis of the standard frame, and the alignment of the X-axis and Y-axis of the standard frame;

具体而言,CADVBA程序打开模板识别清单表格,将表格内用户自定义的图框模板名称及识别标识等信息写入数组暂存。模板识别清单内容包含图框模板名称、识别标识、导图粘贴区域长,单位mm、导图粘贴区域宽,单位mm、导图图框X轴方向偏移量,单位mm、导图图框Y轴方向偏移量、X轴方向对齐方式(距离左边距离占比,输入数值:0~1)、y轴方向对齐方式(距离左边距离占比,输入数值:0~1)、标准图框长、标准图框宽、图框明细栏各边界尺寸等,模板识别清单表格内所有内容均可由用户自行定义;Specifically, the CADVBA program opens the template identification list table, and writes the user-defined frame template name and identification mark in the table into the array for temporary storage. The content of the template identification list includes the name of the frame template, the identification mark, the length of the map paste area, the unit mm, the width of the map paste area, the unit mm, the offset of the map frame in the X axis direction, the unit mm, the map frame Y Offset in the axis direction, alignment in the X-axis direction (proportion of distance from the left, input value: 0 to 1), alignment in the y-axis direction (proportion of distance from the left, input value: 0 to 1), standard frame length , the standard frame width, the border size of the frame details column, etc., all contents in the template identification list table can be defined by the user;

步骤1032、通过CADVAB程序循环遍历获取导图原图文件信息,所述导图原图文件信息至少包括:导图原图的原始文件名、图像外边界尺寸(包括边界长及边界宽)和在边界左下角世界坐标点;Step 1032, traversing through the CADVAB program to obtain the information of the original map file, the information of the original map file at least includes: the original file name of the original map of the map, the size of the outer border of the image (including the border length and the border width) and the The world coordinate point in the lower left corner of the boundary;

步骤1033、通过CADVAB程序获取用户自定义的标准图框文件外部信息,所述标准图框文件外部信息至少包括标准图框的文件名字符串和存储绝对路径;Step 1033: Obtain the user-defined external information of the standard drawing frame file through the CADVAB program, and the external information of the standard drawing frame file at least includes the file name string and the storage absolute path of the standard drawing frame;

步骤1034、核对识别标识信息,核对完成后若未发出错误提示,则进入步骤1035,否则,退出文件复制操作;所述核对识别标识信息具体包括:导图原图的原始文件名是否能够匹配到识别标识以及识别标识对应的标准图框是否缺失;Step 1034: Check the identification information, if no error prompt is issued after the verification is completed, proceed to step 1035; otherwise, exit the file copy operation; the verification identification information specifically includes: whether the original file name of the original map can match the Whether the identification mark and the standard frame corresponding to the identification mark are missing;

具体而言,当出现导图原图的原始文件名没有匹配到识别标识时,提示用户导图原图命名无法识别的错误信息,当出现导图原图的原始文件名能与识别标识配对但识别标识对应的自定义标准图框缺失时,提示用户自定义标准图框缺失信息,将出现的所有导图原图的原始文件名、无法识别的错误信息及自定义标准图框缺失信息等写入到EXCEL表格中输出后退出文件复制操作;如果遍历核对完成时未提示任何错误信息时,则进行下一步操作。Specifically, when the original file name of the original map does not match the identification mark, the user will be prompted with an error message that the name of the original map cannot be identified. When the original file name of the original map can be matched with the identification mark, When the custom standard frame corresponding to the identification mark is missing, the user will be prompted for the missing information of the custom standard frame, and the original file names, unrecognized error messages, and missing information of the custom standard frame will be written in all the original map images that appear. Exit the file copy operation after entering the EXCEL table and output; if no error message is prompted when the traversal check is completed, proceed to the next step.

其中,识别标识是用于CADVBA程序遍历到指定导图原图时,将导图原图名称字符串与识别标识比较,当导图原图名称字符串中包含有指定识别标识时,CADVBA程序将会获取与识别标识对应的标准图框信息。如图5所示,例如有两张导图原图,其中一张图纸文件名为“ABCdef.dxf”,另一张图纸文件名为“DEFghi.dxf”用户在模板识别清单表格指定区域内定义了三个识别标识,分别是“abc”对应图框文件名“A.dwg”、“efg”对应图框文件名“E.dwg”、“ce”对应图框文件名“C.dwg”,用户在“CAD模板源目录”文件夹下定义了三个标准图框文件A.dwg、E.dwg、C.dwg。识别时,CADVBA程序将会把导图原图“ABCdef.dxf”与识别标识“abc”及对应图框文件名“A.dwg”及模板源目录”文件夹下A.dwg配对,将导图原图“DEFghi.dxf”与识别标识“efg”及对应图框文件名“E.dwg”及模板源目录”文件夹下E.dwg配对。因此在自定义识别标识时要求用户定义的识别标识不能重复,如存在包含关系时需将长识别标识排于短识别标识之前,例如识别标识1为“ABCDE”,识别标识2为“ABC”,则在模板识别清单内识别标识1应排在识别标识2之前。在进行三维建模时要求用户在进行零部件命名时,零部件名称内需含有自定义的识别标识信息,导图时导图原文件名称会自动带有识别标识信息。Among them, the identification mark is used to compare the original name string of the map with the identification mark when the CADVBA program traverses to the original map of the specified map. When the name string of the original map of the map contains the specified identification mark, the CADVBA program will The standard frame information corresponding to the identification mark will be obtained. As shown in Figure 5, for example, there are two original maps, one of which is named "ABCdef.dxf" and the other is named "DEFghi.dxf". The user defines it in the specified area of the template identification list table. There are three identification marks, which are "abc" corresponding to the frame file name "A.dwg", "efg" corresponding to the frame file name "E.dwg", "ce" corresponding to the frame file name "C.dwg", The user defines three standard drawing frame files A.dwg, E.dwg, C.dwg in the "CAD template source directory" folder. During identification, the CADVBA program will pair the original map "ABCdef.dxf" with the identification mark "abc" and the corresponding frame file name "A.dwg" and A.dwg under the "template source directory" folder, and the map The original picture "DEFghi.dxf" is paired with the identification mark "efg" and the corresponding picture frame file name "E.dwg" and E.dwg under the "template source directory" folder. Therefore, when customizing the identification mark, it is required that the identification mark defined by the user cannot be repeated. If there is an inclusion relationship, the long identification mark should be placed before the short identification mark. For example, identification mark 1 is "ABCDE", identification mark 2 is "ABC", Then in the template identification list, the identification mark 1 should be ranked before the identification mark 2. When performing 3D modeling, the user is required to name the parts, and the part names must contain custom identification information. When mapping, the original file name of the map will automatically carry the identification information.

步骤1035、获取导图原图对应的标准图框文件内部信息,具体包括:CADVBA程序根据导图原图的原始文件名字符串匹配识别标识,并确定该识别标识对应的标准图框文件内部信息(包括对应标准图框名称、导图粘贴区域长,单位mm、导图粘贴区域宽,单位mm、导图图框X轴方向偏移量,单位mm、导图图框Y轴方向偏移量、X轴方向对齐方式(距离左边距离占比,输入数值:0~1)、y轴方向对齐方式(距离左边距离占比,输入数值:0~1)、标准图框长、标准图框宽)等;Step 1035: Obtain the internal information of the standard frame file corresponding to the original image of the map, which specifically includes: the CADVBA program matches the identification mark according to the original file name string of the original map of the map, and determines the internal information of the standard frame file corresponding to the identification mark (Including the name of the corresponding standard frame, the length of the map paste area, the unit mm, the width of the map paste area, the unit mm, the offset of the map frame in the X-axis direction, the unit of mm, the offset of the map frame in the Y-axis direction , X-axis alignment (proportion of distance from the left, input value: 0 to 1), y-axis alignment (proportion of distance from the left, input value: 0 to 1), standard frame length, standard frame width )Wait;

步骤1036、根据导图原图的图像外边界尺寸和粘贴位置确定导图原图需要缩放的实际比例;Step 1036: Determine the actual scale of the original map image that needs to be scaled according to the size of the image outer boundary and the paste position of the original map image;

步骤1037、根据导图原图需要缩放的实际比例对导图原图进行缩放,根据导图原图边界左下角世界坐标点计算需要平移的距离,并将导图原图移动到世界坐标点(0,0);Step 1037: Scale the original map image according to the actual scale that needs to be scaled for the original map image, calculate the distance to be translated according to the world coordinate point in the lower left corner of the border of the original map image, and move the original map image to the world coordinate point ( 0,0);

步骤1038、将导图原图按其世界坐标点(0,0)为基点进行复制;Step 1038: Copy the original map image based on its world coordinate point (0,0) as the base point;

步骤1039、根据预设排列方式计算导图原图在总图文件中的世界坐标点,首张导图原图粘贴到总图文件中的世界坐标点默认为(0,0);Step 1039: Calculate the world coordinate point of the original map image in the master map file according to the preset arrangement, and the world coordinate point of the first map original image pasted into the master map file is (0,0) by default;

步骤10310、根据导图原图在总图文件中的世界坐标点将导图原图粘贴至总图文件内的对应位置;Step 10310: Paste the original map image to the corresponding position in the master map file according to the world coordinate point of the original map image in the master map file;

步骤10311、根据标准图框的X轴和Y轴的偏移量以及标准图框X轴和Y轴的对齐方式计算导图原图对应的标准图框在总图文件中的世界坐标点;Step 10311, according to the offset of the X-axis and Y-axis of the standard frame and the alignment of the X-axis and Y-axis of the standard frame, calculate the world coordinate point of the standard frame corresponding to the original map of the map in the general map file;

当用户选择按行列排布时,在计算粘贴点世界坐标(x,y)时,满足如下规则:当n<=n1,且n<n2时,x=x0+a*n,y=y0,当n<=n1,且n=n2时,x=x0,y=y0+b*m,当n<=n1且n>n2时x=x0+a*(n-n1*m),y=y0+b*m。当n>n1且n=n1*f+1时,x=x0,y=y0。其中(x,y)为户选择按行列排布时当前粘贴点的世界坐标,n为当前累计导图原图数,n1为单张总图文件图纸数量,n2为用户选择的列数,x0=0,y0=0,a为用户选择的列宽,b为用户选择的行高,m为当前累计导图原图数n除以列数n2取整,f为当前累计导图原图数n除以单张总图文件图纸数量n1取整。When the user chooses to arrange in rows and columns, when calculating the world coordinates (x, y) of the paste point, the following rules are satisfied: when n<=n1, and n<n2, x=x0+a*n, y=y0, When n<=n1 and n=n2, x=x0, y=y0+b*m, when n<=n1 and n>n2, x=x0+a*(n-n1*m), y= y0+b*m. When n>n1 and n=n1*f+1, x=x0, y=y0. Where (x, y) is the world coordinate of the current paste point when the user chooses to arrange in rows and columns, n is the current cumulative number of original maps in the map, n1 is the number of drawings in a single total map file, n2 is the number of columns selected by the user, x0 =0, y0=0, a is the column width selected by the user, b is the row height selected by the user, m is the current cumulative map original image number n divided by the column number n2 rounded up, f is the current cumulative map original image number Divide n by the number of drawings of a single total drawing file n1 and round up.

当用户选择按装入关系排列时,在计算粘贴点世界坐标(x,y)时,满足如下规则:当n<=n1,且n<=h时,x=x1+a,y=y1,当n<=n1,且n=h+1时,x=x1-h*a,y=y1+b,当n<=n1且n>h+1时x=x1+a,y=y1。当n>n1且n=n1*f+1时,x=x0,y=y0。其中(x,y)为户选择按行列排布时当前粘贴点的世界坐标,n为当前累计导图原图数,n1为单张总图文件图纸数量,h为当前部件图纸对应其装配关系的下级图纸数量。x1,y1分别为上一张图纸世界坐标,首张图纸x1=0,y1=0,a为用户选择的列宽,b为用户选择的行高,f为当前累计导图原图数n除以单张总图文件图纸数量n1取整。When the user chooses to arrange by loading relationship, when calculating the world coordinates (x, y) of the paste point, the following rules are satisfied: when n<=n1, and n<=h, x=x1+a, y=y1, When n<=n1 and n=h+1, x=x1-h*a, y=y1+b, when n<=n1 and n>h+1, x=x1+a, y=y1. When n>n1 and n=n1*f+1, x=x0, y=y0. Where (x, y) is the world coordinate of the current paste point when the user chooses to arrange in rows and columns, n is the current cumulative number of original maps in the map, n1 is the number of drawings in a single general map file, and h is the assembly relationship corresponding to the current component drawings number of subordinate drawings. x1, y1 are the world coordinates of the previous drawing, the first drawing x1=0, y1=0, a is the column width selected by the user, b is the row height selected by the user, and f is the current cumulative number of original maps divided by n Round up to the number n1 of drawings in a single general drawing file.

步骤10312、根据步骤1035获取的标准图框的名称在用户自定义的标准图框文件外部信息中查找并复制对应的标准图框;Step 10312, search and copy the corresponding standard frame in the external information of the user-defined standard frame file according to the name of the standard frame obtained in step 1035;

步骤10313、根据计算得到的标准图框在总图文件中的世界坐标点将标准图框粘贴至总图文件内的对应位置;Step 10313: Paste the standard drawing frame to the corresponding position in the general drawing file according to the calculated world coordinate point of the standard drawing frame in the general drawing file;

步骤10314、将导图原图的原始文件名写入对应标准图框的明细栏;Step 10314: Write the original file name of the original map of the map into the details column of the corresponding standard frame;

步骤10315、判断是否完成所有导图原图的复制工作,若是,则进入步骤10316,否则,重复执行步骤1035至步骤10314;Step 10315, determine whether the copying of all the original maps of the map is completed, if so, go to step 10316, otherwise, repeat steps 1035 to 10314;

步骤10316、退出文件复制操作。Step 10316, exit the file copy operation.

步骤2、CAD初始清单生成及文字填充模块根据导图原图文件的存储信息及存储关系,获取导图原图的零部件装配信息清单,将零部件装配信息清单的内容写入对应标准图框的明细栏;Step 2. The CAD initial list generation and text filling module obtains the parts assembly information list of the map original image according to the storage information and storage relationship of the original map file, and writes the content of the parts assembly information list into the corresponding standard frame details column;

本步骤用于将用户选定windows系统文件目录下的二维零部件导图原图,根据其存储关系通过EXCELVBA程序遍历提取各导图原图文件名字符串,生成零部件装配信息清单EXCEL表格。用户可以选择是否修改EXCEL表格内容,零部件装配信息清单修改完成后,CADVBA程序将用户指定的待填充清单目录下的所有图纸打开,根据清单内容自动匹配对应图纸并在其图纸图框明细栏指定区域内进行初始明细栏零部件原始命名、数量等内容填充工作,在文字填充前用户可设置不同区域内文字填充字号,以适应明细栏表格大小。如图6所示,其实现方法的详细步骤如下:This step is used to select the original two-dimensional component map in the file directory of the Windows system by the user, traverse and extract the file name string of the original map of each map according to its storage relationship through the EXCELVBA program, and generate an EXCEL form for the component assembly information list . The user can choose whether to modify the contents of the EXCEL table. After the modification of the component assembly information list is completed, the CADVBA program will open all the drawings in the list directory to be filled specified by the user, and automatically match the corresponding drawings according to the contents of the list and specify them in the drawing frame details column. Fill in the original names and quantities of components in the initial parts list in the area. Before filling in the text, the user can set the font size of the text filling in different areas to suit the size of the parts list in the parts list. As shown in Figure 6, the detailed steps of the implementation method are as follows:

步骤201、获取文字填充源目录,并获取导图原图文件的存储信息及存储关系;Step 201, obtaining the text filling source directory, and obtaining the storage information and storage relationship of the original map file of the map;

其中,文字填充源目录代指用户需要进行部件明细栏填充的清单信息来源。零部件装配信息清单主要是通过导图原图在windos系统下的存储关系来进行搭建的,其原理及规则如下:部件图纸导图原图需存放到与其导图原图不含后缀的同命名的文件夹下,在此文件夹下存放其下级零部件导图原图,下级部件导图原图需存放到与其导图原图不含后缀的同命名的文件夹下,逐级往下。例如有八张导图原图文件图纸,他们分别是A.dxf、B.dxf、C.dxf、D.dxf、E.dxf、F.dxf、G.dxf、H.dxf,其中A.dxf、B.dxf、C.dxf、D.dxf为部件图纸,E.dxf、F.dxf、G.dxf、H.dxf为零件图纸,A.dxf其下级部件为C.dxf,下级零件为E.dxf,B.dxf其下级部件为D.dxf,下级零件为F.dxf,部件C.dxf其下级零件为G.dxf,部件D.dxf其下级零件为H.dxf,用户在进行三维零部件导图操作时需建立文件夹名为A、B、C、D的文件夹,其中文件夹A目录下存放导图原图A.dxf、E.dxf及文件夹C,文件夹B目录下存放导图原图B.dxf、F.dxf及文件夹D,文件夹C目录下存放C.dxf及G.dxf,文件夹D目录下存放D.dxf及H.dxf。因为windos系统不允许用户在同一文件夹下存放相同命名的同类型文件,因此间接可以避免用户出现重复存图的操作。在进行步骤S201选择文字填充源目录时,EXECLVBA程序会自动获取用户指定目录下的导图原图存储关系;Among them, the text filling source directory refers to the list information source that the user needs to fill in the parts list. The component assembly information list is mainly constructed through the storage relationship of the original map in the windos system. The principles and rules are as follows: The original map of the component drawing needs to be stored in the same name as the original map without the suffix. Under the folder, the original map of its subordinate components is stored in this folder, and the original map of the subordinate components must be stored in a folder with the same name as the original map without the suffix, and go down level by level. For example, there are eight original map file drawings, they are A.dxf, B.dxf, C.dxf, D.dxf, E.dxf, F.dxf, G.dxf, H.dxf, of which A.dxf , B.dxf, C.dxf, D.dxf are component drawings, E.dxf, F.dxf, G.dxf, H.dxf are component drawings, A.dxf its subordinate parts are C.dxf, and the subordinate parts are E .dxf, B.dxf, its subordinate parts are D.dxf, and the subordinate parts are F.dxf, the subordinate parts of C.dxf are G.dxf, and the subordinate parts of D.dxf are H.dxf. Folders named A, B, C, and D need to be created when the component map is operated, and the original map A.dxf, E.dxf and folder C are stored in the folder A, and the folder B is in the folder B. Store the original maps B.dxf, F.dxf and folder D, store C.dxf and G.dxf in folder C, and store D.dxf and H.dxf in folder D. Because the windos system does not allow users to store files of the same type with the same name in the same folder, it can indirectly prevent users from repeatedly saving images. When selecting the text to fill the source directory in step S201, the EXECLVBA program will automatically obtain the storage relationship of the original map of the map under the directory specified by the user;

步骤202、判断导图原图文件的存储关系是否有误,若是,则结束操作,否则,进入步骤203;Step 202, determine whether the storage relationship of the original map file is wrong, if so, end the operation, otherwise, go to step 203;

具体而言,EXCELVBA程序在生成零部件装配信息清单的过程中会进行存储关系的正误判断,当部件文件夹下缺失同该文件夹名相同的部件图纸,出现相同名称的文件夹或部件图纸,或者相同文件夹名下存放不同导图原图等情况,EXCELVBA程序均会提示导图原图存储关系有误,并将错误信息以EXCEL表格的方式输出,结束操作,如无问题,将会进行下步操作;Specifically, the EXCELVBA program will make a right or wrong judgment on the storage relationship in the process of generating the component assembly information list. When the component drawing with the same name as the folder is missing from the component folder, a folder or component drawing with the same name appears. Or if different original maps are stored under the same folder name, the EXCELVBA program will prompt that the storage relationship of the original maps is incorrect, and output the error information in the form of EXCEL form, and end the operation. If there is no problem, it will be carried out. next step;

步骤203、根据导图原图新建多个零部件装配信息清单;用户可选择是否修改表格内信息,如零部件装配数量,未修改时默认为1,是否新增加一些常规物料信息等,修改完成后关闭保存零部件装配信息清单。Step 203: Create multiple parts assembly information lists according to the original map; the user can choose whether to modify the information in the table, such as the number of parts assembly, which defaults to 1 if it is not modified, whether to add some conventional material information, etc., the modification is completed After closing, save the component assembly information list.

步骤204、根据零部件装配信息清单和CAD模板复制辅助表格与待填充文件目录下的总图文件内的相应图纸进行遍历匹配,进行相应图纸的标准图框的明细栏内容填充操作。如图7所示,其实现方法包括以下步骤:Step 204 , traversing and matching the corresponding drawings in the general drawing file under the to-be-filled file directory according to the component assembly information list and the CAD template copy auxiliary table, and filling the details column content of the standard frame of the corresponding drawing. As shown in Figure 7, its implementation method includes the following steps:

步骤2041、获取用户自定义的模板识别清单表格的内容,包括标准图框边界尺寸,各明细栏边界尺寸等信息,并将其写入数组;Step 2041: Obtain the content of the user-defined template identification list table, including information such as the standard frame border size, the border size of each detail column, and write it into an array;

步骤2042、获取步骤203新建的多个零部件装配信息清单的内容,并将其写入动态数组;Step 2042, acquiring the contents of the multiple parts assembly information lists newly created in step 203, and writing them into the dynamic array;

步骤2043、获取总图文件内所有图纸的图框信息和名称信息,所述图框信息至少包括:图框的左下角世界坐标信息和边界尺寸;Step 2043: Obtain the frame information and name information of all drawings in the general drawing file, where the frame information at least includes: world coordinate information and boundary size of the lower left corner of the frame;

步骤2044、根据零部件装配信息清单内容与图纸的名称信息进行匹配,确定当前标准图框明细栏需要填入的零部件装配信息;Step 2044 , according to matching the content of the parts assembly information list with the name information of the drawing, determine the parts assembly information that needs to be filled in the list of the current standard drawing frame;

步骤2045、根据明细栏尺寸以及图框的边界尺寸计算零部件装配信息写入总图文件中的世界坐标点;Step 2045, according to the size of the detail column and the boundary size of the drawing frame, calculate the world coordinate point where the component assembly information is written into the general drawing file;

步骤2046、根据零部件装配信息写入总图文件中的世界坐标点以及用户选择的字号大小,进行零部件装配信息的写入工作;Step 2046: Write the component assembly information according to the world coordinate point in the general drawing file and the font size selected by the user according to the component assembly information;

步骤2047、判断是否完成所有零部件装配信息的写入工作,若是,则退出文字写入工作,否则,重复执行步骤2044至步骤2046。Step 2047 , judging whether the writing work of all the component assembly information is completed, if so, exit the text writing work, otherwise, repeat steps 2044 to 2046 .

步骤3、CAD零部件价格预估及文字替换模块确定各导图原图对应零部件的类型及价格,根据零部件的类型及价格确定各零部件对应的正式零部件名称,将各标准图框的明细栏内的原始文件名替换为正式零部件名称;Step 3. The CAD component price estimation and text replacement module determines the type and price of the corresponding components in the original map of each map, determines the official component name corresponding to each component according to the type and price of the component, and frames each standard diagram. Replace the original file name in the parts list with the official component name;

本步骤主要分为两部分,一是零部件价格预估,二是零部件图纸原始名称替换。零部件价格预估通过获取指定目录下导图原文件字符串组成清单,按用户自定义的价格计算规则进行价格预估,通常价格计算规则包括零部件尺寸、零部件材质单价、零部件密度、零部件加工费等,这部分规则用户可以自行定义,计算出零部件预估价格后,再根据零部件价格及类型进行正式名称申请。需要进行零部件图纸原始名称替换是因为首先在三维建模阶段设计师为了便于区分不同零部件且最快效率进行图纸命名,经常以简单方式给零部件命名,其次正式零部件申请时其名称通常以字母及数字或纯数字构成,这些命名长度较长,不能简单从其命名上看出零部件类型,最后建模阶段零部件在命名前其尺寸未知无法计算价格,而正式零部件名称申请时需要提前计算零部件的预估价格,因此建模时无法用正式申请名称命名,所以在图纸处理过程中需要将原始名称替换为正式名称。如图8所示,包含以下步骤:This step is mainly divided into two parts, one is to estimate the price of the parts, and the other is to replace the original names of the parts drawings. Estimated price of parts is obtained by obtaining the original map file string in the specified directory to form a list, and the price is estimated according to the user-defined price calculation rules. Usually, the price calculation rules include the size of the parts, the unit price of the material of the parts, the density of the parts, Parts processing fees, etc., users can define this part of the rules themselves. After calculating the estimated price of the parts, they can apply for the official name according to the price and type of the parts. It is necessary to replace the original names of component drawings because firstly, in the 3D modeling stage, in order to distinguish different components and name the drawings with the fastest efficiency, designers often name the components in a simple way. Consists of letters and numbers or pure numbers. These names are long, and the type of components cannot be simply identified from their names. In the final modeling stage, the dimensions of the components are unknown before they are named, and the price cannot be calculated. When the official component name is applied The estimated price of the parts needs to be calculated in advance, so the official application name cannot be used for modeling, so the original name needs to be replaced with the official name during the drawing process. As shown in Figure 8, it includes the following steps:

步骤301、获取待复制的导图原图文件夹目录,根据导图原图文件夹目录获取导图原图的文件名字符串,并将写入CAD文字替换辅助表格;Step 301: Obtain the folder directory of the original map of the map to be copied, obtain the file name string of the original map of the map according to the folder of the original map of the map, and write the CAD text to replace the auxiliary table;

步骤302、在零部件价格清单表格内输入价格计算参数,并根据价格计算参数以及预先定义的计算公式计算各导图原图对应零部件的价格,所述价格计算参数至少包括:对应零部件尺寸、材料单价以及加工费;Step 302: Input price calculation parameters in the parts price list table, and calculate the price of the corresponding parts of each original map according to the price calculation parameters and the pre-defined calculation formula, the price calculation parameters at least include: the size of the corresponding parts , material unit price and processing fee;

步骤303、根据零部件的类型及价格确定各零部件对应的正式零部件名称;Step 303: Determine the official component name corresponding to each component according to the type and price of the component;

步骤304、在CAD文字替换辅助表格内的替换区域粘贴对应的正式零部件名称;Step 304, paste the corresponding official part name in the replacement area in the CAD text replacement auxiliary table;

步骤305、对导图原图的文件名字符串和正式零部件名称的名称信息进行检查,若无误,则进入步骤307,否则进入步骤306;Step 305, check the file name string of the original map and the name information of the official part name, if there is no error, go to step 307, otherwise go to step 306;

其中,检查项目包括原始名称是否存在重复、缺失,正式名称是否存在重复、缺失,待替换的原始名称与替换的正式名称对应类别是否一致,待替换的原始名称对应预估价格和替换的正式名称对应价格是否一致。通过上述信息检查,可有效避免用户误输入。表格替换信息有误,将会提示用户进行CAD文字替换辅助表格的修改并输出修改信息,表格替换信息无误将会进行下一步操作。Among them, the inspection items include whether the original name is duplicated or missing, whether the official name is duplicated or missing, whether the original name to be replaced is consistent with the corresponding category of the replaced official name, the original name to be replaced corresponds to the estimated price and the replaced official name. Whether the corresponding price is the same. Through the above-mentioned information checking, the user can effectively avoid wrong input. If the table replacement information is incorrect, the user will be prompted to modify the CAD text replacement auxiliary table and output the modification information. If the table replacement information is correct, the next step will be performed.

步骤306、对名称信息进行修改后进入步骤305;Step 306, after modifying the name information, go to step 305;

步骤307、获取总图文件目录,并将总图文件目录下所有零部件名称及存储路径信息写入CAD文字替换辅助表格;Step 307, obtaining the general drawing file directory, and writing all the component names and storage path information in the general drawing file directory into the CAD text replacement auxiliary table;

步骤308、根据CAD文字替换辅助表格的内容将所有零部件的原始文件名替换为对应的正式零部件名称;Step 308 , replace the original file names of all components with the corresponding official component names according to the content of the CAD text replacement auxiliary table;

步骤309、判断是否完成所有零部件的名称替换工作,若是,则退出名称替换工作,否则,重复执行步骤308。Step 309 , judging whether the name replacement work of all components is completed, if so, exit the name replacement work, otherwise, repeat the execution of step 308 .

步骤4、CAD材料清单提取模块根据提取标识信息对各标准图框的明细栏进行信息提取,获得所有零部件对应的材料清单;Step 4. The CAD material list extraction module extracts information from the detail column of each standard frame according to the extracted identification information, and obtains the material list corresponding to all parts;

本步骤用于将用户选定的windows系统文件目录下的零部件图纸,通过CADVBA程序识别所有图纸图框,将明细栏类信息提取整合输出到EXCEL表格形成零部件材料清单。如图9所示,其实现方法的详细步骤如下:This step is used to identify all the drawing frames of the component drawings under the Windows system file directory selected by the user through the CADVBA program, and extract and integrate the parts list information into the EXCEL table to form a component material list. As shown in Figure 9, the detailed steps of its implementation method are as follows:

步骤401、为标准图框的明细栏添加提取标识信息;其中,提取标识信息可由用户自定义,要求不能与零部件正式命名相同,默认为“#”。添加“#”的原因是不同零部件明细栏内的内容多少不同,添加提取标识信息用于标记不同图纸明细栏边界。Step 401 , adding extraction identification information to the detail column of the standard drawing frame; wherein, the extraction identification information can be customized by the user, and the requirement cannot be the same as the official name of the component, and the default is "#". The reason for adding "#" is that the content in different parts lists is somewhat different, and the extraction identification information is added to mark the boundaries of different drawing parts lists.

步骤402、选择清单提取源目录,并将所述清单提取源目录中总图文件的存储信息写入CAD清单提取辅助表格,所述清单提取源目录为添加提取标识信息后的总图文件存放目录;Step 402: Select the list extraction source directory, and write the storage information of the general drawing files in the list extraction source directory into the CAD list extraction auxiliary table, and the list extracting source directory is the general drawing file storage directory after adding the extraction identification information. ;

步骤403、根据所述清单提取源目录提取清单提取所有零部件对应的材料清单。如图10所示,主要包括以下步骤:Step 403 , extracting the list of materials corresponding to all the parts and components according to the list extraction source directory extraction list. As shown in Figure 10, it mainly includes the following steps:

步骤4031、获取用户自定义的模板识别清单表格,将对应标准图框的文件内部信息写入数组;Step 4031, obtaining a user-defined template identification list table, and writing the internal information of the file corresponding to the standard picture frame into an array;

步骤4032、获取CAD清单提取辅助表格的内容;Step 4032: Obtain the content of the CAD list extraction auxiliary table;

步骤4033、获取总图文件内所有图纸的标准图框信息和名称信息,所述标准图框信息至少包括:标准图框左下角的世界坐标以及边界尺寸;Step 4033: Obtain the standard frame information and name information of all drawings in the general drawing file, where the standard frame information at least includes: the world coordinate and boundary size of the lower left corner of the standard frame;

步骤4034、获取总图文件内所有标准图框对应的提取标识信息,并判断所述提取标识信息是否有误,若是,则进入步骤4035,否则,进入步骤4036;Step 4034: Obtain the extracted identification information corresponding to all standard picture frames in the general drawing file, and determine whether the extracted identification information is incorrect, if so, go to step 4035, otherwise, go to step 4036;

其中,对提取标识信息进行判断主要包括判断提取标识信息是否缺失、重复等,如提取标识符信息有误,将会提示用户修改提取标识信息,如无误则进行下一歩操作;Among them, judging the extracted identification information mainly includes judging whether the extracted identification information is missing, duplicated, etc. If the extracted identification information is wrong, the user will be prompted to modify the extracted identification information, and if it is correct, the next operation will be performed;

步骤4035、修改提取标识信息后重新进入步骤4034;Step 4035, re-enter step 4034 after modifying the extracted identification information;

步骤4036、根据提取标识信息对各标准图框的明细栏进行信息循环遍历提取,获得所有零部件对应的材料清单;Step 4036: Perform information loop traversal and extraction on the detail column of each standard frame according to the extracted identification information, and obtain a list of materials corresponding to all parts;

步骤4037、判断是否完成所有明细栏的信息提取工作,若是,则退出信息提取工作,否则,重复执行步骤4036。Step 4037: Determine whether the information extraction work of all the detail columns is completed, if so, exit the information extraction work, otherwise, repeat step 4036.

步骤5、CAD图纸拆分模块将总图文件中各图纸拆分成单图文件,根据对应的正式零部件名称修改各图纸的文件名称并保存至指定目录,所述图纸包括导图原图及其对应的标准图框;Step 5. The CAD drawing splitting module splits each drawing in the general drawing file into a single drawing file, and modifies the file name of each drawing according to the corresponding official part name and saves it to the designated directory. The drawings include the original map and Its corresponding standard frame;

本步骤用于将用户指定windows系统文件目录下的总图内存储的多张零部件图纸拆分成对应其图纸名称的单图形式。如图11所示,其实现方法的详细步骤如下:This step is used to split a plurality of component drawings stored in the general drawing under the Windows system file directory specified by the user into single drawing forms corresponding to their drawing names. As shown in Figure 11, the detailed steps of the implementation method are as follows:

步骤501、选择图纸拆分源目录,根据图纸拆分源目录获取待拆分的总图文件名称和存储路径信息,并将其写入CAD图纸拆分辅助表格;Step 501: Select the source directory for splitting drawings, obtain the file name and storage path information of the general drawing to be split according to the source directory for splitting drawings, and write them into the CAD drawing splitting auxiliary table;

步骤502、选择拆分图纸存放目录,并将拆分图纸存放目录中的路径信息写入CAD图纸拆分辅助表格;Step 502: Select the split drawing storage directory, and write the path information in the split drawing storage directory into the CAD drawing splitting auxiliary table;

步骤503、根据所述CAD图纸拆分辅助表格进行图纸拆分操作,如图12所示,具体包括:Step 503, performing drawing splitting operation according to the CAD drawing splitting auxiliary table, as shown in Figure 12, specifically including:

步骤5031、获取用户自定义的模板识别清单表格内的标准图框的文件内部信息,并将其写入数组;Step 5031, obtain the file internal information of the standard picture frame in the user-defined template identification list table, and write it into the array;

步骤5032、获取CAD图纸拆分辅助表格内的待拆分的总图文件名称和存储路径信息,并将其写入数组;Step 5032: Obtain the file name and storage path information of the general drawing to be split in the CAD drawing splitting auxiliary table, and write them into the array;

步骤5033、根据待拆分的总图文件名称获取所有待拆分的图纸信息,所述图纸信息至少包括:图纸名称、图纸图框左下角的世界坐标以及图纸图框的边界尺寸;Step 5033: Obtain all drawing information to be split according to the name of the general drawing file to be split, the drawing information at least includes: the drawing name, the world coordinate of the lower left corner of the drawing frame, and the boundary size of the drawing frame;

步骤5034、判断待拆分的图纸信息是否有误,若是,则进入步骤5035,否则,进入步骤5036;Step 5034: Determine whether the drawing information to be split is incorrect, if so, go to Step 5035; otherwise, go to Step 5036;

具体而言,CADVBA程序核对待拆分的图纸信息是否有误,核对内容包括图纸名称是否重复或缺失,因为拆分后的单图需要以其对应图纸命名存放,出现图纸名称重复或缺失将会导致存放时出错。出现图纸名称重复或缺失将会提示用户进行待拆分图纸名称修改,如无错误信息提示,则进行下一歩操作;Specifically, the CADVBA program checks whether the information of the drawings to be split is incorrect, and the checking contents include whether the drawing names are repeated or missing, because the split single drawing needs to be named after its corresponding drawing, and the duplicate or missing drawing names will cause problems. An error occurred during storage. If the name of the drawing is duplicated or missing, the user will be prompted to modify the name of the drawing to be split. If there is no error message, proceed to the next step;

步骤5035、修改图纸名称后重新进入步骤5034;Step 5035, re-enter step 5034 after modifying the drawing name;

步骤5036、根据图纸信息计算待拆分图纸的边界坐标;Step 5036: Calculate the boundary coordinates of the drawing to be split according to the drawing information;

步骤5037、根据图纸名称新建对应的DWG格式文件;Step 5037, create a corresponding DWG file according to the drawing name;

步骤5038、根据待拆分图纸的边界坐标将待拆分图纸复制粘贴至对应的DWG格式文件内,并将所述DWG格式文件保存至拆分图纸存放目录;Step 5038: Copy and paste the drawing to be split into the corresponding DWG format file according to the boundary coordinates of the drawing to be split, and save the DWG format file to the split drawing storage directory;

步骤5039、判断是否完成所有图纸拆分工作,若是,则退出图纸拆分工作,否则,重复执行步骤5036至步骤5038。Step 5039: Determine whether all the drawing splitting work is completed, if so, exit the drawing splitting work, otherwise, repeat steps 5036 to 5038.

步骤6、CAD文件内容检查模块对总图文件及单图文件进行检查,检查内容至少包括:正式零部件名称是否出现重复或缺失、各标准图框的明细栏是否存在内容缺失、各标准图框是否存在重叠、是否存在未替换完成的原始文件名、图纸的文件名称是否与对应的正式零部件名称一致以及图纸标注比例与图纸比例是否一致;Step 6. The CAD file content checking module checks the general drawing file and the single drawing file, and the checking contents include at least: whether the names of the official parts are duplicated or missing, whether the details of each standard drawing frame have missing content, and whether each standard drawing frame is missing. Whether there is overlap, whether there is an unreplaced original file name, whether the file name of the drawing is consistent with the corresponding official component name, and whether the drawing scale is consistent with the drawing scale;

本步骤用于将用户指定windows系统文件目录下的图纸内容信息进行检查,检查内容包括图纸名称是否出现重复或缺失,图纸明细栏内容是否存在缺失,清单提取标识符是否存在重复缺失、图纸图框区域是否存在重叠,图纸内是否存在未替换完成的原始名称标识信息,对于单图内容还进行单图文件名称与其对应图纸名称一致内容检查、图纸实际标注比例与图纸比例一致性检查等项目。如图13所示,其实现方法的详细步骤如下:This step is used to check the drawing content information in the file directory of the Windows system specified by the user. The checking contents include whether the drawing name is repeated or missing, whether the content of the drawing list is missing, whether the list extraction identifier is repeated or missing, and whether the drawing frame is missing or not. Whether there is overlap in the area, whether there is original name identification information that has not been replaced in the drawing, and for the content of a single drawing, the file name of the single drawing and the corresponding drawing name are also checked. As shown in Figure 13, the detailed steps of the implementation method are as follows:

步骤S601、选择文件检查源目录,文件检查源目录代指用户需要进行检查的文件存放目录,其可以是步骤S2至步骤S6处理的任意DWG格式图纸存放目录,选择后EXCELVBA程序将文件检查源目录内的文件名称及路径信息写入CAD文件检查辅助表格指定区域内;Step S601, select the file check source directory, the file check source directory refers to the file storage directory that the user needs to check, which can be any DWG format drawing storage directory processed in steps S2 to S6, after the selection, the EXCELVBA program will check the file check source directory. The file name and path information in the CAD file are written into the specified area of the CAD file check auxiliary table;

步骤S602进行文件检查操作,根据步骤S601选择文件检查源目录进行文件内容检查操作,如图14所示,其实现方法的详细步骤如下:In step S602, the file inspection operation is performed, and the file inspection source directory is selected according to step S601 to perform the file content inspection operation. As shown in FIG. 14, the detailed steps of the implementation method are as follows:

步骤S6021、通过CADVBA程序获取用户自定义的模板识别清单表格内相应标准图框内容,包括标准图框边界尺寸,各明细栏边界尺寸等信息,并将信息写入数组;Step S6021, obtain the corresponding standard frame content in the user-defined template identification list table through the CADVBA program, including information such as the standard frame boundary size, the boundary size of each detail column, and write the information into the array;

步骤S6022、获取模板识别清单表格内容,通过CADVBA获取步骤S601中所有文件存储信息,并将信息写入数组;Step S6022, obtain the content of the template identification list table, obtain all file storage information in step S601 through CADVBA, and write the information into the array;

步骤S6023、通过CADVBA程序遍历获取步骤S6022中文件内所有图纸名称,所有图纸图框左下角世界坐标信息,所有图纸图框边界尺寸信息、明细栏内容信息、图纸标注比例信息,提取标识内容信息等;Step S6023, traverse the CADVBA program to obtain the names of all drawings in the file in step S6022, the world coordinate information of the lower left corner of all drawing frames, the boundary size information of all drawing frames, the content information of the parts list, the drawing annotation scale information, and the extracted identification content information, etc. ;

步骤S6024、根据步骤S6023获取的信息,CADVBA程序进行信息对比,并将对比信息输出到EXCEL表格中,结束检查操作。Step S6024, according to the information obtained in step S6023, the CADVBA program compares the information, and outputs the comparison information to the EXCEL table, and ends the inspection operation.

步骤7、CAD-PDF转化模块将各单图文件转换为PDF格式。如图15所示,包括以下步骤:Step 7: The CAD-PDF conversion module converts each single drawing file into PDF format. As shown in Figure 15, the following steps are included:

步骤701、选择待转化文件源目录,将所述待转化源目录的路径信息写入CAD-PDF转化辅助表格,所述待转化源目录为总图文件存放目录或单图文件存放目录;Step 701: Select the source directory of the file to be converted, write the path information of the source directory to be converted into the CAD-PDF conversion auxiliary table, and the source directory to be converted is the general drawing file storage directory or the single drawing file storage directory;

步骤702、根据待转化源目录将DWG格式图纸转化为PDF格式,如图16所示,具体包括:Step 702: Convert the drawings in DWG format into PDF format according to the source directory to be converted, as shown in Figure 16, which specifically includes:

步骤7021、获取用户自定义的模板识别清单表格内的标准图框的文件内部信息,并将其写入数组;Step 7021: Obtain the file internal information of the standard frame in the user-defined template identification list table, and write it into an array;

步骤7022、获取CAD-PDF转化辅助表格,并将其中的待转化源目录的路径信息写入数组;Step 7022, obtain the CAD-PDF conversion auxiliary table, and write the path information of the source directory to be converted into the array;

步骤7023、获取总图文件内所有图纸对应的标准图框信息和名称信息,所述标准图框信息包括:标准图框边界尺寸以及标准图框左下角的世界坐标;Step 7023: Obtain standard frame information and name information corresponding to all drawings in the general drawing file, where the standard frame information includes: the boundary size of the standard frame and the world coordinate of the lower left corner of the standard frame;

步骤7024、判断待转化的图纸信息是否有误,若是,则进入步骤7035,否则,进入步骤7036;Step 7024: Determine whether the drawing information to be converted is incorrect, if so, go to Step 7035; otherwise, go to Step 7036;

其中,核对内容包括图纸名称是否重复或缺失,因为在PDF格式转化过程中PDF转化后的单图需要以其对应图纸命名存放,当出现图纸名称重复或缺失时将会导致存放时报错。出现图纸名称重复或缺失时,将会提示用户进行待转化图纸名称修改,如无错误信息提示,则进行下一歩操作。Among them, the check content includes whether the drawing name is repeated or missing, because during the PDF conversion process, the single drawing after PDF conversion needs to be named after the corresponding drawing. When the name of the drawing is duplicated or missing, the user will be prompted to modify the name of the drawing to be converted. If there is no error message, proceed to the next step.

步骤7025、修改待转化图纸名称后重新进入步骤7024;Step 7025, re-enter step 7024 after modifying the name of the drawing to be converted;

步骤7026、根据标准图框左下角的世界坐标框选待转化图纸区域,并将框选内容另存为PDF格式文档,所述PDF格式文档的名称为对应图纸名称,存储位置为待转化文件源目录;Step 7026: Select the drawing area to be converted according to the world coordinate frame in the lower left corner of the standard drawing frame, and save the content of the frame selection as a PDF format document, the name of the PDF format document is the name of the corresponding drawing, and the storage location is the source directory of the file to be converted ;

步骤7027、判断是否完成所有图纸转化工作,若是,则退出图纸转化工作,否则,重复执行步骤7026至步骤7027。Step 7027 , determine whether all the drawing conversion work is completed, if so, exit the drawing conversion work, otherwise, repeat steps 7026 to 7027 .

在空调行业内经常使用到的零部件图纸主要由两部分内容组成,如图17所示,包括零部件二维图及图框,二维图存放于图框边界内,图框明细栏内用于图纸名称、图纸数量、装入关系填充等,标准图框外边界为矩形图元,通过EXCELVBA程序可以获得矩形图元周长及面积。用户在模板识别清单表格中的指定区域内填写标准图框名称、导图粘贴区域长,单位mm、导图粘贴区域宽,单位mm、导图图框X轴方向偏移量,单位mm、导图图框Y轴方向偏移量、X轴方向对齐方式(距离左边距离占比,输入数值:0~1)、y轴方向对齐方式(距离左边距离占比,输入数值:0~1)、标准图框长(矩形图元长)、标准图框宽(矩形图元宽)、明细栏各边界相对于标准图框左下角x及y轴方向偏移距离等参数,即可完成不同类型标准图框定义工作。Parts drawings often used in the air-conditioning industry are mainly composed of two parts, as shown in Figure 17, including a two-dimensional drawing of parts and a drawing frame. In terms of drawing name, drawing quantity, loading relationship filling, etc., the outer boundary of the standard drawing frame is a rectangular primitive, and the perimeter and area of the rectangular primitive can be obtained through the EXCELVBA program. The user fills in the name of the standard frame, the length of the map pasting area, the unit mm, the width of the map pasting area, the unit mm, and the offset of the map frame in the X-axis direction in the specified area in the template identification list form, the unit is mm, the guide Figure frame Y-axis direction offset, X-axis direction alignment (proportion of distance from the left, input value: 0 to 1), y-axis alignment (proportion of distance from the left, input value: 0 to 1), The standard frame length (the length of the rectangular primitive), the standard frame width (the width of the rectangular primitive), and the offset distance of each boundary of the parts list relative to the lower left corner of the standard frame in the x and y-axis directions can be used to complete different types of standards. The frame definition works.

本实施例中,图框的识别及图框内文字信息提取原理及步骤如图18所示,详细方法步骤如下:In this embodiment, the principles and steps for identifying the frame and extracting text information in the frame are shown in Figure 18, and the detailed method steps are as follows:

步骤S801、获取模板识别清单表格内容。通过CADVBA程序获得“模板识别清单.xls”表格内有关图框识别需要获取的信息,包括标准图框长(矩形图元长)、标准图框宽(矩形图元宽)、明细栏各边界相对于标准图框左下角x及y轴方向偏移距离等参数;Step S801, acquiring the content of the template identification list table. Obtain the information about frame identification in the "template identification list.xls" table through the CADVBA program, including the standard frame length (the length of the rectangular primitive), the standard frame width (the width of the rectangular primitive), and the relative borders of the parts list. Parameters such as offset distance in the x and y axis directions in the lower left corner of the standard frame;

步骤S802、获取图纸矩形图元信息。通过CADVBA程序获取图纸图元信息包括矩形图元周长、矩形图元面积、矩形图元世界坐标点;Step S802 , acquiring the rectangular primitive information of the drawing. Obtaining drawing primitive information through CADVBA program includes the perimeter of the rectangular primitive, the area of the rectangular primitive, and the world coordinate point of the rectangular primitive;

步骤S803、判定矩形图元是否为图框。通过CADVBA程序根据步骤S801用户自定义的图框信息及步骤S802获取的所有矩形图元信息进行对比分析,满足图框识别规则的矩形图元即可视作图框。图框识别规则如下:当m/c=(a*b)/(2*(a+b))时,矩形图元为图框,其中m为矩形图元面积,c为矩形图元周长,a为用户自定义图框长,b为用户自定义图框宽。例如用户在“模板识别清单.xls”表格内定义了两个标准图框,图框1长为a1、宽为b1,图框2长为a2、宽为b2,CAD图纸文件中有两个矩形图元,矩形图元1面积为m1=a1*b1,周长为2*(a1+b1),矩形图元2面积为m2=a2*b3,周长为2*(a2+b3),其中b2<>b3,此时矩形图元1可判定为图框,矩形图元2不可判定为图框;Step S803: Determine whether the rectangular primitive is a frame. The CADVBA program performs comparative analysis according to the user-defined picture frame information in step S801 and all the rectangular primitive information obtained in step S802, and the rectangular primitives that satisfy the picture frame identification rules can be regarded as a picture frame. The frame recognition rules are as follows: when m/c=(a*b)/(2*(a+b)), the rectangular primitive is the frame, where m is the area of the rectangular primitive, and c is the perimeter of the rectangular primitive , a is the length of the user-defined frame, and b is the width of the user-defined frame. For example, the user defines two standard frames in the "Template Recognition List.xls" table, frame 1 has a length of a1 and a width of b1, frame 2 has a length of a2 and a width of b2, and there are two rectangles in the CAD drawing file. Primitive, the area of the rectangular primitive 1 is m1=a1*b1, the perimeter is 2*(a1+b1), the area of the rectangular primitive 2 is m2=a2*b3, the perimeter is 2*(a2+b3), where b2<>b3, at this time, the rectangular primitive 1 can be judged as a picture frame, and the rectangular primitive 2 cannot be judged as a picture frame;

步骤S804、图框内文字信息提取。通过步骤S803可获取符合规则的图框左下角世界坐标点,根据步骤S801获取的图框明细栏各边界相对于标准图框左下角x及y轴方向偏移距离等参数,可计算出图框明细栏各边界的世界坐标点,通过CADVBA程序获取的所有文字信息,当文字坐标处于图框明细栏各边界的世界坐标点范围内时该文字即为对应图框对应区域内的文字信息。Step S804, extracting text information in the frame. Through step S803, the world coordinate point of the lower left corner of the frame that complies with the rules can be obtained, and the frame can be calculated according to the parameters such as the offset distance of each boundary of the detail column of the frame relative to the lower left corner of the standard frame in the x and y-axis directions obtained in step S801. The world coordinate points of each boundary of the parts list, all the text information obtained by the CADVBA program, when the text coordinates are within the range of the world coordinate points of each boundary of the parts list of the drawing frame, the text is the text information in the corresponding area of the corresponding drawing frame.

采用上述空调行业内的CAD文件辅助处理方法及系统的优点在于:The advantages of using the CAD file auxiliary processing method and system in the air-conditioning industry are as follows:

1、可自动批量进行导图原图复制粘贴,自动批量匹配对应图框,根据图框尺寸,自动批量进行导图原图比例缩放,自动填充缩放比例,图纸原始命名,可自动检查复制项目是否存在重复;1. It can automatically copy and paste the original map of the map in batches, automatically match the corresponding frame in batches, automatically scale the original map of the map in batches according to the size of the frame, automatically fill in the zoom ratio, the original name of the drawing, and automatically check whether the copied item is not. there is repetition;

2、可自动检查用户导图原图存储关系是否存在问题,自动根据存储关系生成初始填充清单,自动根据初始填充清单匹配对应图纸进行图纸图框明细栏内容填充;2. It can automatically check whether there is a problem with the storage relationship of the original map of the user's map, automatically generate an initial fill list according to the storage relationship, and automatically fill in the content of the drawing frame details column according to the initial fill list matching the corresponding drawings;

3、可根据用户零部件尺寸及材料输入自动计算价格,在零部件图纸原始名称替换时可自动检查原始名称是否重复缺失、正式名称是否重复缺失、正式名称类型是否正确,预估价格和申请价格是否一致,可有效避免用户错误输入,导致的替换错误;3. The price can be automatically calculated according to the user's component size and material input. When the original name of the component drawing is replaced, it can automatically check whether the original name is repeated or missing, whether the official name is repeated or missing, whether the official name type is correct, the estimated price and the application price. Whether it is consistent or not, it can effectively avoid the user's wrong input and the replacement error caused by it;

4、可自动批量搜索图纸明细栏信息,汇总后组成零部件材料清单,材料清单内容与各零部件图纸明细栏内容完全一致,避免用户根据图纸明细栏手动拟制清单,手动填写出现的错误;4. It can automatically search for the information in the detail column of drawings in batches, and form a list of parts and materials after summarizing. The content of the material list is exactly the same as the content of the detail column of the drawings of each component, so as to avoid the user manually drafting the list according to the detail column of the drawings and manually filling in the errors that occur;

5、可以自动批量把一个文件内的所图纸拆分为单张图纸,文件内存放的图纸不需要等间距规则排列,图纸图框类型和大小可为多种,均可识别和拆分;5. The drawings in a file can be automatically divided into single drawings in batches. The drawings stored in the file do not need to be arranged at regular intervals. The types and sizes of drawing frames can be identified and split;

6、可自动批量把CAD文件转化为PDF格式,待转化的图纸可以是多张图纸形式也可以是单张图纸形式;6. It can automatically convert CAD files into PDF format in batches, and the drawings to be converted can be in the form of multiple drawings or a single drawing;

7、可对图纸多项内容信息进行检查,避免进行大量人工核对过程,检查效率极高,此功能可在进行任意其它功能使用前进行检查;7. It can check multiple content information of drawings, avoid a lot of manual checking process, and check the efficiency is very high. This function can be checked before any other functions are used;

8、如图19所示,执行各步骤的模块均有可视化窗口,可进行人机交互,各过程操作简单明了;8. As shown in Figure 19, the modules executing each step have a visual window, which can carry out human-computer interaction, and the operation of each process is simple and clear;

9、在操作过程中,各模块均有差错、纠错功能,可避免大量人工填写输入错误,同时各模块使用VBA程序自动处理,效率极高、错误率极低;9. During the operation, each module has the function of error and error correction, which can avoid a large number of manual input errors. At the same time, each module is automatically processed by the VBA program, which is highly efficient and has a very low error rate;

10、用户可根据自己需要使用到的零部件类型在模板识别清单表格内自行定义图框类型、图框大小、识别标识、图纸粘贴区域、图纸对齐方式等进行个人定制。10. Users can customize the frame type, frame size, identification mark, drawing paste area, drawing alignment, etc. in the template identification list table according to the types of parts they need to use.

Claims (10)

1.用于空调行业的CAD文件辅助处理方法,其特征在于,包括以下步骤:1. the CAD file auxiliary processing method for air-conditioning industry, is characterized in that, comprises the following steps: 步骤1、自动对多个零部件对应的导图原图文件进行移动、缩放和复制后,根据预设排列方式计算各导图原图在总图文件中的世界坐标点,并根据所述世界坐标点将各导图原图粘贴至总图文件内的对应位置;以及为各导图原图匹配并添加对应的标准图框,在各标准图框的明细栏写入对应导图原图的原始文件名;Step 1. After automatically moving, zooming and copying the original map files corresponding to multiple components, calculate the world coordinate points of the original map files in the general map file according to the preset arrangement, and according to the world coordinates The coordinate point is to paste the original map of each map to the corresponding position in the general map file; and to match the original map of each map and add the corresponding standard frame, and write the corresponding map original image in the details column of each standard frame. original filename; 步骤2、根据导图原图文件的存储信息及存储关系,获取导图原图的零部件装配信息清单,将零部件装配信息清单的内容写入对应标准图框的明细栏;Step 2. According to the storage information and storage relationship of the original map file, obtain the list of parts assembly information of the original map of the map, and write the content of the list of parts assembly information into the details column of the corresponding standard frame; 步骤3、确定各导图原图对应零部件的类型及价格,根据零部件的类型及价格确定各零部件对应的正式零部件名称,将各标准图框的明细栏内的原始文件名替换为正式零部件名称;Step 3. Determine the type and price of the corresponding parts in the original map of each map, determine the official part name corresponding to each part according to the type and price of the part, and replace the original file name in the details column of each standard frame with official part name; 步骤4、根据提取标识信息对各标准图框的明细栏进行信息提取,获得所有零部件对应的材料清单;Step 4. Extract information from the detail column of each standard frame according to the extracted identification information, and obtain a list of materials corresponding to all parts; 步骤5、将总图文件中各图纸拆分成单图文件,根据对应的正式零部件名称修改各图纸的文件名称并保存至指定目录,所述图纸包括导图原图及其对应的标准图框;Step 5. Split each drawing in the general drawing file into a single drawing file, modify the file name of each drawing according to the corresponding official part name and save it to the designated directory. The drawings include the original map and its corresponding standard drawing. frame; 步骤6、对总图文件及单图文件进行检查,检查内容至少包括:正式零部件名称是否出现重复或缺失、各标准图框的明细栏是否存在内容缺失、各标准图框是否存在重叠、是否存在未替换完成的原始文件名、图纸的文件名称是否与对应的正式零部件名称一致以及图纸标注比例与图纸比例是否一致;Step 6. Check the general drawing file and the single drawing file. The inspection contents include at least: whether the names of the official parts are duplicated or missing, whether there is any missing content in the details column of each standard drawing frame, whether each standard drawing frame overlaps, whether There are original file names that have not been replaced, whether the file names of the drawings are consistent with the corresponding official component names, and whether the drawing scale is the same as the drawing scale; 步骤7、将各单图文件转换为PDF格式。Step 7. Convert each single image file to PDF format. 2.如权利要求1所述的用于空调行业的CAD文件辅助处理方法,其特征在于,所述步骤1具体包括:2. The CAD file auxiliary processing method for the air-conditioning industry as claimed in claim 1, wherein the step 1 specifically comprises: 步骤101、获取待复制的导图原图文件夹目录,对导图原图文件夹及其子文件夹下所有DXF文件的名称、文件绝对路径和文件修改时间进行遍历提取,并将提取的内容写入CAD模板复制辅助表格;Step 101: Obtain the directory of the original map folder to be copied, traverse and extract the names, absolute file paths and file modification times of all DXF files in the original map folder and its subfolders, and extract the extracted content. Write CAD template copy auxiliary table; 步骤102、获取文件复制存放目录,将文件复制存放目录对应的绝对路径信息存放于所述CAD模板复制辅助表格的指定区域内;Step 102, obtaining the file copy storage directory, and storing the absolute path information corresponding to the file copy storage directory in the designated area of the CAD template copy auxiliary table; 步骤103、根据所述CAD模板复制辅助表格进行导图原图边界识别、导图原图缩放、复制、粘贴、标准图框筛选匹配以及原始文件名填充,循环操作直到所有导图原图文件复制完成。Step 103 , according to the CAD template copying auxiliary table, perform map original image boundary recognition, map original image scaling, copying, pasting, standard frame filtering and matching, and original file name filling, and repeat the operation until all map original image files are copied Finish. 3.如权利要求1所述的用于空调行业的CAD文件辅助处理方法,其特征在于,所述步骤103具体包括:3. The CAD file auxiliary processing method for the air-conditioning industry according to claim 1, wherein the step 103 specifically comprises: 步骤1031、获取用户自定义的模板识别清单表格,所述模板识别清单表格包含各导图原图对应标准图框的文件内部信息,所述标准图框的文件内部信息至少包括:标准图框的名称、图框尺寸、明细栏尺寸、识别标识、导图原图粘贴区域尺寸、标准图框的X轴和Y轴的偏移量以及标准图框X轴和Y轴的对齐方式;Step 1031: Obtain a user-defined template identification list table, where the template identification list table includes the file internal information of each original map corresponding to the standard frame, and the file internal information of the standard frame at least includes: Name, frame size, parts list size, identification mark, size of the paste area of the original map, the offset of the X-axis and Y-axis of the standard frame, and the alignment of the X-axis and Y-axis of the standard frame; 步骤1032、获取导图原图文件信息,所述导图原图文件信息至少包括:导图原图的原始文件名、图像外边界尺寸和在边界左下角世界坐标点;Step 1032: Obtain file information of the original map of the map, where the information of the original map of the map at least includes: the original file name of the original map of the map, the size of the outer boundary of the image, and the world coordinate point at the lower left corner of the boundary; 步骤1033、获取用户自定义的标准图框文件外部信息,所述标准图框文件外部信息至少包括标准图框的文件名字符串和存储绝对路径;Step 1033, obtaining user-defined external information of the standard picture frame file, the external information of the standard picture frame file at least includes the file name string and the storage absolute path of the standard picture frame; 步骤1034、核对识别标识信息,核对完成后若未发出错误提示,则进入步骤1035,否则,退出文件复制操作;所述核对识别标识信息具体包括:导图原图的原始文件名是否能够匹配到识别标识以及识别标识对应的标准图框是否缺失;Step 1034: Check the identification information, if no error prompt is issued after the verification is completed, proceed to step 1035; otherwise, exit the file copy operation; the verification identification information specifically includes: whether the original file name of the original map can match the Whether the identification mark and the standard frame corresponding to the identification mark are missing; 步骤1035、获取导图原图对应的标准图框文件内部信息,具体包括:根据导图原图的原始文件名字符串匹配识别标识,并确定该识别标识对应的标准图框文件内部信息;Step 1035: Obtain the internal information of the standard frame file corresponding to the original map image, which specifically includes: matching the identification mark according to the original file name string of the original map image, and determining the internal information of the standard frame file corresponding to the identification mark; 步骤1036、根据导图原图的图像外边界尺寸和粘贴位置确定导图原图需要缩放的实际比例;Step 1036: Determine the actual scale of the original map image that needs to be scaled according to the size of the image outer boundary and the paste position of the original map image; 步骤1037、根据导图原图需要缩放的实际比例对导图原图进行缩放,根据导图原图边界左下角世界坐标点计算需要平移的距离,并将导图原图移动到世界坐标点(0,0);Step 1037: Scale the original map according to the actual ratio of the original map to be scaled, calculate the distance to be translated according to the world coordinate point in the lower left corner of the border of the original map of the map, and move the original map to the world coordinate point ( 0,0); 步骤1038、将导图原图按其世界坐标点(0,0)为基点进行复制;Step 1038: Copy the original map image based on its world coordinate point (0,0) as the base point; 步骤1039、根据预设排列方式计算导图原图在总图文件中的世界坐标点,首张导图原图粘贴到总图文件中的世界坐标点默认为(0,0);Step 1039: Calculate the world coordinate point of the original map image in the master map file according to the preset arrangement, and the world coordinate point of the first map original image pasted into the master map file is (0,0) by default; 步骤10310、根据导图原图在总图文件中的世界坐标点将导图原图粘贴至总图文件内的对应位置;Step 10310: Paste the original map image to the corresponding position in the master map file according to the world coordinate point of the original map image in the master map file; 步骤10311、根据标准图框的X轴和Y轴的偏移量以及标准图框X轴和Y轴的对齐方式计算导图原图对应的标准图框在总图文件中的世界坐标点;Step 10311, according to the offset of the X-axis and Y-axis of the standard frame and the alignment of the X-axis and Y-axis of the standard frame, calculate the world coordinate point of the standard frame corresponding to the original map of the map in the general map file; 步骤10312、根据步骤1035获取的标准图框的名称在用户自定义的标准图框文件外部信息中查找并复制对应的标准图框;Step 10312, search and copy the corresponding standard frame in the external information of the user-defined standard frame file according to the name of the standard frame obtained in step 1035; 步骤10313、根据计算得到的标准图框在总图文件中的世界坐标点将标准图框粘贴至总图文件内的对应位置;Step 10313: Paste the standard drawing frame to the corresponding position in the general drawing file according to the calculated world coordinate point of the standard drawing frame in the general drawing file; 步骤10314、将导图原图的原始文件名写入对应标准图框的明细栏;Step 10314: Write the original file name of the original map of the map into the details column of the corresponding standard frame; 步骤10315、判断是否完成所有导图原图的复制工作,若是,则进入步骤10316,否则,重复执行步骤1035至步骤10314;Step 10315, determine whether the copying of all the original maps of the map is completed, if so, go to step 10316, otherwise, repeat steps 1035 to 10314; 步骤10316、退出文件复制操作。Step 10316, exit the file copy operation. 4.如权利要求3所述的用于空调行业的CAD文件辅助处理方法,其特征在于,所述步骤2具体包括:4. The CAD file auxiliary processing method for the air-conditioning industry as claimed in claim 3, wherein the step 2 specifically comprises: 步骤201、获取文字填充源目录,并获取导图原图文件的存储信息及存储关系;Step 201, obtaining the text filling source directory, and obtaining the storage information and storage relationship of the original map file of the map; 步骤202、判断导图原图文件的存储关系是否有误,若是,则结束操作,否则,进入步骤203;Step 202, determine whether the storage relationship of the original map file is wrong, if so, end the operation, otherwise, go to step 203; 步骤203、根据导图原图新建多个零部件装配信息清单;Step 203 , creating multiple parts assembly information lists according to the original map of the map; 步骤204、根据零部件装配信息清单和CAD模板复制辅助表格与待填充文件目录下的总图文件内的相应图纸进行遍历匹配,进行相应图纸的标准图框的明细栏内容填充操作,具体包括:Step 204, traversing and matching the corresponding drawings in the general drawing file under the file directory to be filled according to the component assembly information list and the CAD template copy auxiliary table, and filling the details column content of the standard frame of the corresponding drawing, specifically including: 步骤2041、获取用户自定义的模板识别清单表格的内容,并将其写入数组;Step 2041, obtaining the content of the user-defined template identification list table, and writing it into an array; 步骤2042、获取步骤203新建的多个零部件装配信息清单的内容,并将其写入动态数组;Step 2042, acquiring the contents of the multiple parts assembly information lists newly created in step 203, and writing them into the dynamic array; 步骤2043、获取总图文件内所有图纸的图框信息和名称信息,所述图框信息至少包括:图框的左下角世界坐标信息和边界尺寸;Step 2043: Obtain the frame information and name information of all drawings in the general drawing file, where the frame information at least includes: world coordinate information and boundary size of the lower left corner of the frame; 步骤2044、根据零部件装配信息清单内容与图纸的名称信息进行匹配,确定当前标准图框明细栏需要填入的零部件装配信息;Step 2044 , according to matching the content of the parts assembly information list with the name information of the drawing, determine the parts assembly information that needs to be filled in the list of the current standard drawing frame; 步骤2045、根据明细栏尺寸以及图框的边界尺寸计算零部件装配信息写入总图文件中的世界坐标点;Step 2045, according to the size of the detail column and the boundary size of the drawing frame, calculate the world coordinate point where the component assembly information is written into the general drawing file; 步骤2046、根据零部件装配信息写入总图文件中的世界坐标点以及用户选择的字号大小,进行零部件装配信息的写入工作;Step 2046: Write the component assembly information according to the world coordinate point in the general drawing file and the font size selected by the user according to the component assembly information; 步骤2047、判断是否完成所有零部件装配信息的写入工作,若是,则退出文字写入工作,否则,重复执行步骤2044至步骤2046。Step 2047 , judging whether the writing work of all the component assembly information is completed, if so, exit the text writing work, otherwise, repeat steps 2044 to 2046 . 5.如权利要求1所述的用于空调行业的CAD文件辅助处理方法,其特征在于,所述步骤3具体包括:5. The CAD file auxiliary processing method for the air-conditioning industry as claimed in claim 1, wherein the step 3 specifically comprises: 步骤301、获取待复制的导图原图文件夹目录,根据导图原图文件夹目录获取导图原图的文件名字符串,并将写入CAD文字替换辅助表格;Step 301: Obtain the folder directory of the original map of the map to be copied, obtain the file name string of the original map of the map according to the folder of the original map of the map, and write the CAD text to replace the auxiliary table; 步骤302、在零部件价格清单表格内输入价格计算参数,并根据价格计算参数确定各导图原图对应零部件的价格,所述价格计算参数至少包括:对应零部件尺寸、材料单价以及加工费;Step 302: Input price calculation parameters in the parts price list table, and determine the price of the corresponding parts of each original map according to the price calculation parameters, the price calculation parameters at least include: corresponding parts size, material unit price and processing fee ; 步骤303、根据零部件的类型及价格确定各零部件对应的正式零部件名称;Step 303: Determine the official component name corresponding to each component according to the type and price of the component; 步骤304、在CAD文字替换辅助表格内的替换区域粘贴对应的正式零部件名称;Step 304, paste the corresponding official part name in the replacement area in the CAD text replacement auxiliary table; 步骤305、对导图原图的文件名字符串和正式零部件名称的名称信息进行检查,若无误,则进入步骤307,否则进入步骤306;Step 305, check the file name string of the original map and the name information of the official part name, if there is no error, go to step 307, otherwise go to step 306; 步骤306、对名称信息进行修改后进入步骤305;Step 306, after modifying the name information, go to step 305; 步骤307、获取总图文件目录,并将总图文件目录下所有零部件名称及存储路径信息写入CAD文字替换辅助表格;Step 307, obtaining the general drawing file directory, and writing all the component names and storage path information in the general drawing file directory into the CAD text replacement auxiliary table; 步骤308、根据CAD文字替换辅助表格的内容将所有零部件的原始文件名替换为对应的正式零部件名称;Step 308 , replace the original file names of all components with the corresponding official component names according to the content of the CAD text replacement auxiliary table; 步骤309、判断是否完成所有零部件的名称替换工作,若是,则退出名称替换工作,否则,重复执行步骤308。Step 309 , judging whether the name replacement work of all components is completed, if so, exit the name replacement work, otherwise, repeat the execution of step 308 . 6.如权利要求1所述的用于空调行业的CAD文件辅助处理方法,其特征在于,所述步骤4具体包括:6. The CAD file auxiliary processing method for the air-conditioning industry as claimed in claim 1, wherein the step 4 specifically comprises: 步骤401、为标准图框的明细栏添加提取标识信息;Step 401, adding extraction identification information to the detail column of the standard picture frame; 步骤402、选择清单提取源目录,并将所述清单提取源目录中总图文件的存储信息写入CAD清单提取辅助表格,所述清单提取源目录为添加提取标识信息后的总图文件存放目录;Step 402: Select the list extraction source directory, and write the storage information of the general drawing files in the list extraction source directory into the CAD list extraction auxiliary table, and the list extraction source directory is the general drawing file storage directory after adding the extracted identification information. ; 步骤403、根据所述清单提取源目录提取清单提取所有零部件对应的材料清单。Step 403 , extracting the list of materials corresponding to all the parts and components according to the list extraction source directory extraction list. 7.如权利要求6所述的用于空调行业的CAD文件辅助处理方法,其特征在于,所述步骤403具体包括:7. The CAD file auxiliary processing method for the air-conditioning industry according to claim 6, wherein the step 403 specifically comprises: 步骤4031、获取用户自定义的模板识别清单表格,将对应标准图框的文件内部信息写入数组;Step 4031, obtaining a user-defined template identification list table, and writing the internal information of the file corresponding to the standard picture frame into an array; 步骤4032、获取CAD清单提取辅助表格的内容;Step 4032: Obtain the content of the CAD list extraction auxiliary table; 步骤4033、获取总图文件内所有图纸的标准图框信息和名称信息,所述标准图框信息至少包括:标准图框左下角的世界坐标以及边界尺寸;Step 4033: Obtain the standard frame information and name information of all drawings in the general drawing file, where the standard frame information at least includes: the world coordinate and boundary size of the lower left corner of the standard frame; 步骤4034、获取总图文件内所有标准图框对应的提取标识信息,并判断所述提取标识信息是否有误,若是,则进入步骤4035,否则,进入步骤4036;Step 4034: Obtain the extracted identification information corresponding to all standard picture frames in the general drawing file, and determine whether the extracted identification information is incorrect, if so, go to step 4035, otherwise, go to step 4036; 步骤4035、修改提取标识信息后重新进入步骤4034;Step 4035, re-enter step 4034 after modifying the extracted identification information; 步骤4036、根据提取标识信息对各标准图框的明细栏进行信息循环遍历提取,获得所有零部件对应的材料清单;Step 4036: Perform information loop traversal and extraction on the detail column of each standard frame according to the extracted identification information, and obtain a list of materials corresponding to all parts; 步骤4037、判断是否完成所有明细栏的信息提取工作,若是,则退出信息提取工作,否则,重复执行步骤4036。Step 4037: Determine whether the information extraction work of all the detail columns is completed, if so, exit the information extraction work, otherwise, repeat step 4036. 8.如权利要求1所述的用于空调行业的CAD文件辅助处理方法,其特征在于,所述步骤5具体包括:8. The CAD file auxiliary processing method for the air-conditioning industry as claimed in claim 1, wherein the step 5 specifically comprises: 步骤501、选择图纸拆分源目录,根据图纸拆分源目录获取待拆分的总图文件名称和存储路径信息,并将其写入CAD图纸拆分辅助表格;Step 501: Select the source directory for splitting drawings, obtain the file name and storage path information of the general drawing to be split according to the source directory for splitting drawings, and write them into the CAD drawing splitting auxiliary table; 步骤502、选择拆分图纸存放目录,并将拆分图纸存放目录中的路径信息写入CAD图纸拆分辅助表格;Step 502: Select the split drawing storage directory, and write the path information in the split drawing storage directory into the CAD drawing splitting auxiliary table; 步骤503、根据所述CAD图纸拆分辅助表格进行图纸拆分操作,具体包括:Step 503, performing drawing splitting operation according to the CAD drawing splitting auxiliary table, specifically including: 步骤5031、获取用户自定义的模板识别清单表格内的标准图框的文件内部信息,并将其写入数组;Step 5031, obtain the file internal information of the standard picture frame in the user-defined template identification list table, and write it into the array; 步骤5032、获取CAD图纸拆分辅助表格内的待拆分的总图文件名称和存储路径信息,并将其写入数组;Step 5032: Obtain the file name and storage path information of the general drawing to be split in the CAD drawing splitting auxiliary table, and write them into the array; 步骤5033、根据待拆分的总图文件名称获取所有待拆分的图纸信息,所述图纸信息至少包括:图纸名称、图纸图框左下角的世界坐标以及图纸图框的边界尺寸;Step 5033: Obtain all drawing information to be split according to the name of the general drawing file to be split, the drawing information at least includes: the drawing name, the world coordinate of the lower left corner of the drawing frame, and the boundary size of the drawing frame; 步骤5034、判断待拆分的图纸信息是否有误,若是,则进入步骤5035,否则,进入步骤5036;Step 5034: Determine whether the drawing information to be split is incorrect, if so, go to Step 5035; otherwise, go to Step 5036; 步骤5035、修改图纸名称后重新进入步骤5034;Step 5035, re-enter step 5034 after modifying the drawing name; 步骤5036、根据图纸信息计算待拆分图纸的边界坐标;Step 5036: Calculate the boundary coordinates of the drawing to be split according to the drawing information; 步骤5037、根据图纸名称新建对应的DWG格式文件;Step 5037, create a corresponding DWG file according to the drawing name; 步骤5038、根据待拆分图纸的边界坐标将待拆分图纸复制粘贴至对应的DWG格式文件内,并将所述DWG格式文件保存至拆分图纸存放目录;Step 5038: Copy and paste the drawing to be split into the corresponding DWG format file according to the boundary coordinates of the drawing to be split, and save the DWG format file to the split drawing storage directory; 步骤5039、判断是否完成所有图纸拆分工作,若是,则退出图纸拆分工作,否则,重复执行步骤5036至步骤5038。Step 5039: Determine whether all the drawing splitting work is completed, if so, exit the drawing splitting work, otherwise, repeat steps 5036 to 5038. 9.如权利要求1所述的用于空调行业的CAD文件辅助处理方法,其特征在于,所述步骤7具体包括:9. The CAD file auxiliary processing method for the air-conditioning industry as claimed in claim 1, wherein the step 7 specifically comprises: 步骤701、选择待转化文件源目录,将所述待转化源目录的路径信息写入CAD-PDF转化辅助表格,所述待转化源目录为总图文件存放目录或单图文件存放目录;Step 701: Select the source directory of the file to be converted, write the path information of the source directory to be converted into the CAD-PDF conversion auxiliary table, and the source directory to be converted is the general drawing file storage directory or the single drawing file storage directory; 步骤702、根据待转化源目录将DWG格式图纸转化为PDF格式,具体包括:Step 702: Convert the drawings in DWG format to PDF format according to the source directory to be converted, which specifically includes: 步骤7021、获取用户自定义的模板识别清单表格内的标准图框的文件内部信息,并将其写入数组;Step 7021: Obtain the file internal information of the standard frame in the user-defined template identification list table, and write it into an array; 步骤7022、获取CAD-PDF转化辅助表格,并将其中的待转化源目录的路径信息写入数组;Step 7022, obtain the CAD-PDF conversion auxiliary table, and write the path information of the source directory to be converted into the array; 步骤7023、获取总图文件内所有图纸对应的标准图框信息和名称信息,所述标准图框信息包括:标准图框边界尺寸以及标准图框左下角的世界坐标;Step 7023: Obtain standard frame information and name information corresponding to all drawings in the general drawing file, where the standard frame information includes: the boundary size of the standard frame and the world coordinate of the lower left corner of the standard frame; 步骤7024、判断待转化的图纸信息是否有误,若是,则进入步骤7035,否则,进入步骤7036;Step 7024: Determine whether the drawing information to be converted is incorrect, if so, go to Step 7035; otherwise, go to Step 7036; 步骤7025、修改待转化图纸名称后重新进入步骤7024;Step 7025, re-enter step 7024 after modifying the name of the drawing to be converted; 步骤7026、根据标准图框左下角的世界坐标框选待转化图纸区域,并将框选内容另存为PDF格式文档,所述PDF格式文档的名称为对应图纸名称,存储位置为待转化文件源目录;Step 7026: Select the drawing area to be converted according to the world coordinate frame in the lower left corner of the standard drawing frame, and save the content of the frame selection as a PDF format document, the name of the PDF format document is the name of the corresponding drawing, and the storage location is the source directory of the file to be converted ; 步骤7027、判断是否完成所有图纸转化工作,若是,则退出图纸转化工作,否则,重复执行步骤7026至步骤7027。Step 7027 , determine whether all the drawing conversion work is completed, if so, exit the drawing conversion work, otherwise, repeat steps 7026 to 7027 . 10.用于空调行业的CAD文件辅助处理系统,其特征在于,包括:10. A CAD file auxiliary processing system for the air-conditioning industry, characterized in that it includes: CAD模板文件复制模块,用于自动对多个零部件对应的导图原图文件进行移动、缩放和复制后,根据预设排列方式计算各导图原图在总图文件中的世界坐标点,并根据所述世界坐标点将各导图原图粘贴至总图文件内的对应位置;以及为各导图原图匹配并添加对应的标准图框,在各标准图框的明细栏写入对应导图原图的原始文件名;The CAD template file copying module is used to automatically move, zoom and copy the original map files corresponding to multiple components, and calculate the world coordinate points of the original map files in the general drawing file according to the preset arrangement. And paste each map original image to the corresponding position in the general map file according to the world coordinate point; and match and add the corresponding standard frame for each map original image, and write the corresponding standard frame in the detail column of each standard frame The original file name of the original map; CAD初始清单生成及文字填充模块,用于根据导图原图文件的存储信息及存储关系,获取导图原图的零部件装配信息清单,将零部件装配信息清单的内容写入对应标准图框的明细栏;The CAD initial list generation and text filling module is used to obtain the component assembly information list of the original map file according to the storage information and storage relationship of the original map file, and write the content of the component assembly information list into the corresponding standard frame details column; CAD零部件价格预估及文字替换模块,用于确定各导图原图对应零部件的类型及价格,根据零部件的类型及价格确定各零部件对应的正式零部件名称,将各标准图框的明细栏内的原始文件名替换为正式零部件名称;The CAD component price estimation and text replacement module is used to determine the type and price of the corresponding components in the original map of each map, and determine the official component name corresponding to each component according to the type and price of the component. Replace the original file name in the parts list with the official component name; CAD材料清单提取模块,用于根据提取标识信息对各标准图框的明细栏进行信息提取,获得所有零部件对应的材料清单;The CAD bill of materials extraction module is used to extract information from the details column of each standard frame according to the extracted identification information, and obtain the bill of materials corresponding to all parts; CAD图纸拆分模块,用于将总图文件中各图纸拆分成单图文件,根据对应的正式零部件名称修改各图纸的文件名称并保存至指定目录,所述图纸包括导图原图及其对应的标准图框;The CAD drawing splitting module is used to split each drawing in the general drawing file into a single drawing file, modify the file name of each drawing according to the corresponding official component name and save it to the specified directory, the drawings include the original map and Its corresponding standard frame; CAD文件内容检查模块,用于对总图文件及单图文件进行检查,检查内容至少包括:正式零部件名称是否出现重复或缺失、各标准图框的明细栏是否存在内容缺失、各标准图框是否存在重叠、是否存在未替换完成的原始文件名、图纸的文件名称是否与对应的正式零部件名称一致以及图纸标注比例与图纸比例是否一致;The CAD file content inspection module is used to inspect the general drawing file and the single drawing file. The inspection contents include at least: whether the official component names are duplicated or missing, whether the parts list of each standard drawing frame is missing content, each standard drawing frame Whether there is overlap, whether there is an unreplaced original file name, whether the file name of the drawing is consistent with the corresponding official component name, and whether the drawing scale is consistent with the drawing scale; CAD-PDF转化模块,用于将各单图文件转换为PDF格式。The CAD-PDF conversion module is used to convert each single drawing file into PDF format.
CN202210711009.8A 2022-06-22 2022-06-22 CAD file auxiliary processing method and system for air conditioning industry Active CN115146327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210711009.8A CN115146327B (en) 2022-06-22 2022-06-22 CAD file auxiliary processing method and system for air conditioning industry

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210711009.8A CN115146327B (en) 2022-06-22 2022-06-22 CAD file auxiliary processing method and system for air conditioning industry

Publications (2)

Publication Number Publication Date
CN115146327A true CN115146327A (en) 2022-10-04
CN115146327B CN115146327B (en) 2025-06-24

Family

ID=83408131

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210711009.8A Active CN115146327B (en) 2022-06-22 2022-06-22 CAD file auxiliary processing method and system for air conditioning industry

Country Status (1)

Country Link
CN (1) CN115146327B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115841679A (en) * 2023-02-23 2023-03-24 江西中至科技有限公司 Drawing sheet extraction method, system, computer and readable storage medium
CN116303252A (en) * 2023-05-18 2023-06-23 北京探索者软件股份有限公司 Format conversion method and device for DWG file, storage medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156275A1 (en) * 2005-12-30 2007-07-05 Daniel Piper Automated metrology recipe generation
CN107408142A (en) * 2015-02-25 2017-11-28 昂沙普公司 3D CAD system based on multi-user cloud parameter feature
CN112926221A (en) * 2021-03-25 2021-06-08 广东利元亨智能装备股份有限公司 Mechanical icon annotation method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156275A1 (en) * 2005-12-30 2007-07-05 Daniel Piper Automated metrology recipe generation
CN107408142A (en) * 2015-02-25 2017-11-28 昂沙普公司 3D CAD system based on multi-user cloud parameter feature
CN112926221A (en) * 2021-03-25 2021-06-08 广东利元亨智能装备股份有限公司 Mechanical icon annotation method and device and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LAM-SON LE等: "SeamCAD: Object-Oriented Modeling Tool for Hierarchical Systems in Enterprise Architecture", 《PROCEEDINGS OF THE 39TH ANNUAL HAWAII INTERNATIONAL CONFERENCE ON SYSTEM SCIENCES (HICSS\'06)》, 23 January 2006 (2006-01-23), pages 1 - 10 *
肖祖安: "基于AutoCAD的协同设计管理系统的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, 15 July 2012 (2012-07-15), pages 138 - 2536 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115841679A (en) * 2023-02-23 2023-03-24 江西中至科技有限公司 Drawing sheet extraction method, system, computer and readable storage medium
CN115841679B (en) * 2023-02-23 2023-05-05 江西中至科技有限公司 Drawing form extraction method, drawing form extraction system, computer and readable storage medium
CN116303252A (en) * 2023-05-18 2023-06-23 北京探索者软件股份有限公司 Format conversion method and device for DWG file, storage medium and electronic device
CN116303252B (en) * 2023-05-18 2023-09-12 北京探索者软件股份有限公司 Format conversion method and device for DWG file, storage medium and electronic device

Also Published As

Publication number Publication date
CN115146327B (en) 2025-06-24

Similar Documents

Publication Publication Date Title
CN107480374B (en) A method for creating bridge BIM model based on CATIA
CN101206639B (en) An Indexing Method for Complicated Layout Based on PDF
US7853869B2 (en) Creation of semantic objects for providing logical structure to markup language representations of documents
JP5113909B2 (en) Placement of graphics objects on the page with control based on relative position
JP6645681B2 (en) 3D data management device
CN115146327A (en) CAD file auxiliary processing method and system for air-conditioning industry
CN113051885B (en) AutoCAD-based design drawing rapid typesetting method
CN112668289A (en) Extraction method and device of nested table and storage medium
US12307197B2 (en) Systems and methods for generating social assets from electronic publications
CN105654022A (en) Method and device for extracting structured document information
CN112597750B (en) Method, editor and medium for designing dynamic detection report template online
CN107480380A (en) A template-based engineering drawing generation method
CN107240150B (en) Three-dimensional pipeline digital drawing method
CN105512096A (en) Optimization method and device based on file embedded font
CN110633484A (en) Method and device for generating bridge disease schematic diagram
JP6946482B2 (en) 3D data management equipment, systems, 3D data management methods, control programs and computer-readable recording media
CN114663414A (en) A system and method for rock and mine identification and extraction based on UNET convolutional neural network
CN117133012B (en) Method for detecting sub-frame in building drawing and electronic equipment
CN114926596B (en) Oblique photography terrain file loading method, device, equipment and storage medium
JP3032225B2 (en) Document editing device using three-dimensional display
CN113743063B (en) Method, system and storage medium for generating physical property report of article
Marinai Reflowing and annotating scientific papers on eBook readers
CN101414315A (en) System and method for reproducing mold design increment
CN114119938B (en) A batch processing method for verifying and assigning urban building data
CN118132143B (en) Training method, mapping method and equipment for low-code component recognition model

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