CN118394286A - CAD drawing file batch processing system and method thereof - Google Patents
CAD drawing file batch processing system and method thereof Download PDFInfo
- Publication number
- CN118394286A CN118394286A CN202410292205.5A CN202410292205A CN118394286A CN 118394286 A CN118394286 A CN 118394286A CN 202410292205 A CN202410292205 A CN 202410292205A CN 118394286 A CN118394286 A CN 118394286A
- Authority
- CN
- China
- Prior art keywords
- cad
- printed
- batch processing
- module
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000012545 processing Methods 0.000 title claims abstract description 27
- 238000007639 printing Methods 0.000 claims abstract description 27
- 230000005540 biological transmission Effects 0.000 claims abstract description 20
- 238000006243 chemical reaction Methods 0.000 claims abstract description 14
- 230000008569 process Effects 0.000 claims abstract description 13
- 238000003672 processing method Methods 0.000 claims abstract description 8
- 238000013500 data storage Methods 0.000 claims abstract description 7
- 230000003993 interaction Effects 0.000 claims abstract description 4
- 238000005516 engineering process Methods 0.000 claims description 13
- 238000010187 selection method Methods 0.000 claims description 3
- 238000007781 pre-processing Methods 0.000 claims description 2
- 238000011960 computer-aided design Methods 0.000 description 56
- 238000013461 design Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 3
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1204—Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1253—Configuration of print job parameters, e.g. using UI at the client
- G06F3/1257—Configuration of print job parameters, e.g. using UI at the client by using pre-stored settings, e.g. job templates, presets, print styles
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开了一种CAD图纸文件批量处理系统及其方法,该系统包括数据传输转换模块,用于通过操作系统与CAD软件程序进行数据传输,传输的数据通过该模块予以转换为操作系统可识别的数据形式;CAD操作识别模块,用于处理程序内CAD的操作指令,包括对象识别及相关属性获取,打印操作,逻辑运算;数据保存模块,用于保存本装置的内部运行参数、相关设置参数,记录预定义的图框块信息;用户界面模块,用于用户与程序界面交互平台。本发明CAD图纸文件批量处理方法能有效简化打印的操作流程,只需预先将装置的配置参数依据当前环境设置好,对不同的CAD图纸只需简单操作,就能实现批量打印,极大简化了操作流程,避免了重复设置,而且通用性好。
The present invention discloses a CAD drawing file batch processing system and method thereof, the system comprises a data transmission conversion module, which is used for data transmission between an operating system and a CAD software program, and the transmitted data is converted into a data form recognizable by the operating system through the module; a CAD operation recognition module, which is used for processing the operation instructions of the CAD in the program, including object recognition and related attribute acquisition, printing operation, and logical operation; a data storage module, which is used for storing the internal operation parameters and related setting parameters of the device, and recording predefined frame block information; a user interface module, which is used for the user and program interface interaction platform. The CAD drawing file batch processing method of the present invention can effectively simplify the operation process of printing, and only needs to set the configuration parameters of the device according to the current environment in advance, and batch printing can be realized by simple operation for different CAD drawings, which greatly simplifies the operation process, avoids repeated settings, and has good versatility.
Description
技术领域Technical Field
本发明涉及CAD图纸文件处理的技术领域,具体涉及一种CAD图纸文件批量处理系统及其方法。The present invention relates to the technical field of CAD drawing file processing, and in particular to a CAD drawing file batch processing system and method thereof.
背景技术Background technique
计算机辅助设计(CAD)技术是现代设计行业中不可或缺的工具,它能显著提高设计效率和质量。CAD软件通常用于创建和修改工程图纸、3D模型等设计数据。在建筑工程行业中,CAD文件通常包含了详细的设计信息和图形表示。随着技术的发展,CAD软件的功能也在不断扩展,支持更复杂的设计和分析任务。Computer-aided design (CAD) technology is an indispensable tool in the modern design industry, which can significantly improve design efficiency and quality. CAD software is usually used to create and modify design data such as engineering drawings and 3D models. In the construction engineering industry, CAD files usually contain detailed design information and graphic representations. With the development of technology, the functions of CAD software are also constantly expanding to support more complex design and analysis tasks.
在实际应用中,设计师们经常需要处理CAD文件进行打印。批量处理CAD文件打印的需求也随之产生,这可以通过使用专门的CAD编辑器软件来实现。例如,迅捷CAD编辑器就是一款能实现CAD图纸批量打印的软件。使用这类软件,用户可以一次性添加多个CAD文件,进行打印设置,然后批量打印出来,大大提高了工作效率。In practical applications, designers often need to process CAD files for printing. The need for batch processing of CAD file printing also arises, which can be achieved by using specialized CAD editor software. For example, Xunjie CAD Editor is a software that can realize batch printing of CAD drawings. Using this type of software, users can add multiple CAD files at one time, make print settings, and then print them out in batches, greatly improving work efficiency.
此外,CAD文件通常需要与其他人共享或存档,因此,将CAD文件转换为PDF格式也是一种常见的批量处理需求。PDF格式因其跨平台、易于查看和分享的特点而受到青睐。In addition, CAD files often need to be shared with others or archived, so converting CAD files to PDF format is also a common batch processing requirement. PDF format is favored because of its cross-platform, easy to view and share features.
对于工程CAD文件的批量打印,还需要考虑到打印机设置、纸张大小、打印布局等因素。For batch printing of engineering CAD files, factors such as printer settings, paper size, and print layout also need to be considered.
目前市面上的一些批量处理程序如“BatchPlot.VLX”、“易出图”等一些专业的CAD软件提供了自动搜索和打印多个图幅的功能,一定程度的简化了批量打印的操作流程,但或多或少存在操作复杂繁琐、重复设置、设置复杂、通用性差等问题。Currently, some batch processing programs on the market, such as "BatchPlot.VLX", "Easy to Draw" and other professional CAD software, provide the function of automatically searching and printing multiple drawings, which simplifies the operation process of batch printing to a certain extent, but there are more or less problems such as complicated and cumbersome operation, repetitive settings, complex settings, and poor versatility.
因此,需要提供一种CAD文件的批量处理系统及其方法,使得设计工作更加高效和便捷。Therefore, it is necessary to provide a batch processing system and method for CAD files to make the design work more efficient and convenient.
发明内容Summary of the invention
本发明的目的在于克服上述背景技术的不足,提供一种CAD图纸文件批量处理系统及其方法,本发明能有效简化打印的操作流程,只需预先将装置的配置参数依据当前环境设置好,对不同的CAD图纸只需简单操作,就能实现批量打印,极大简化了操作流程,避免了重复设置;同时,不依赖本地CAD软件版本,通用性好。The purpose of the present invention is to overcome the shortcomings of the above-mentioned background technology and provide a CAD drawing file batch processing system and method. The present invention can effectively simplify the printing operation process. It only needs to set the configuration parameters of the device according to the current environment in advance. Batch printing can be achieved with simple operations for different CAD drawings, which greatly simplifies the operation process and avoids repeated settings. At the same time, it does not rely on the local CAD software version and has good versatility.
为实现上述目的,本发明所设计的一种CAD图纸文件批量处理方法,包括如下步骤:To achieve the above object, a method for batch processing of CAD drawing files designed by the present invention comprises the following steps:
S1:通过COM技术对CAD图纸文件进行链接,与程序预设待打印图框块匹配,过滤获得实际在本CAD图纸文件中使用的打印图框块;S1: Link the CAD drawing file through COM technology, match it with the preset print frame block of the program, and filter to obtain the print frame block actually used in this CAD drawing file;
S2:将待打印图框块预处理,获取待打印图框块中需要识别对象的位置坐标,并通过数据保存模块予以保存,作为本图纸的专有数据库;S2: pre-processing the frame block to be printed, obtaining the position coordinates of the object to be identified in the frame block to be printed, and saving them through the data saving module as a proprietary database of this drawing;
S3:用户通过用户界面模块,选择本CAD图纸中待处理打印图纸的图框,获取全图纸文件中的待打印图框列表;S3: The user selects the frame of the drawing to be printed in the current CAD drawing through the user interface module, and obtains a list of the frames to be printed in the entire drawing file;
S4:读取专有数据库,应用到待打印图框列表中每个图框块,通过识别对象的位置找到图纸中需识别信息的对象,获取每个图纸对应的相关信息;S4: Read the proprietary database, apply it to each frame block in the list of frames to be printed, find the object whose information needs to be identified in the drawing by identifying the position of the object, and obtain the relevant information corresponding to each drawing;
S5:由用户确认信息无误后,调用CAD软件程序母体内的打印机,逐一将打印图纸的PDF格式文件输出到图纸所在的文件路径下。S5: After the user confirms that the information is correct, the printer in the CAD software program is called to output the PDF format files of the printed drawings one by one to the file path where the drawings are located.
作为优选实施方式地,所述步骤S1中,通过COM技术对CAD图纸文件进行链接,形成有效的数据传输通道,传输的数据通过数据转换模块予以转换,通道建立后,获取本CAD图纸文件中块管理器中的所有块,与程序预设待打印图框块匹配,过滤获得实际在本CAD图纸文件中使用的打印图框块。As a preferred implementation method, in step S1, the CAD drawing file is linked through COM technology to form an effective data transmission channel, and the transmitted data is converted through a data conversion module. After the channel is established, all blocks in the block manager of this CAD drawing file are obtained, matched with the program preset frame blocks to be printed, and filtered to obtain the printing frame blocks actually used in this CAD drawing file.
作为优选实施方式地,所述步骤S2中,待打印图框块为预先设定的以图纸打印范围为边界的块,依据打印范围大小不同,定义为不同的图框块,每个图框块内包含需识别对象的范围框。As a preferred implementation, in step S2, the frame block to be printed is a pre-set block with the drawing printing range as the boundary, and is defined as different frame blocks according to the size of the printing range. Each frame block contains a range box of the object to be identified.
作为优选实施方式地,所述步骤S2中,获取待打印图框块中需要识别对象的位置坐标包括图纸名称、图纸编号、图幅的位置坐标。As a preferred implementation, in step S2, the position coordinates of the object to be identified in the frame block to be printed are obtained, including the drawing name, drawing number, and the position coordinates of the drawing sheet.
作为优选实施方式地,所述步骤S3中,采用预设待打印图框块名称作为图框块选择过滤器,选取方式可采用全图对象逐一扫描或由用户框选对象方式。As a preferred implementation, in step S3, the preset name of the frame block to be printed is used as the frame block selection filter, and the selection method can be a method of scanning the entire image objects one by one or allowing the user to select the object.
作为优选实施方式地,所述步骤S4中,CAD操作识别模块将生成的本图纸专有数据库从数据保存模块读取出来,应用到待打印图框列表中每个图框块,通过识别对象的位置找到图纸中需识别信息的对象,获取每个图纸对应的相关信息。As a preferred implementation, in step S4, the CAD operation identification module reads the generated drawing-specific database from the data storage module, applies it to each frame block in the list of frames to be printed, finds the object whose information needs to be identified in the drawing by identifying the position of the object, and obtains the relevant information corresponding to each drawing.
作为优选实施方式地,所述步骤S4中,获取每个图纸对应的相关信息包括图纸名称、图纸编号、图幅的具体内容,将这些信息再通过数据传输转换模块反传给CAD操作识别模块进行处理,并显示到用户界面。As a preferred implementation, in step S4, relevant information corresponding to each drawing including drawing name, drawing number, and specific content of the drawing is obtained, and this information is then transmitted back to the CAD operation identification module through the data transmission conversion module for processing and displayed on the user interface.
作为优选实施方式地,所述步骤S5中,用户可以自定义文件名的命名方式,通过设定关键字形式,明确图纸名称、图纸编号、图幅,通过专有数据库能够识别出的图纸信息的组合方式,作为该输出的打印文件名。As a preferred implementation, in step S5, the user can customize the naming method of the file name by setting keywords to specify the drawing name, drawing number, and drawing size, and use the combination of drawing information that can be identified by the proprietary database as the output print file name.
作为优选实施方式地,所述步骤S5中,利用专有数据库识别出的图纸信息,以图纸编号的自然顺序排序,将打印的图纸信息以excel文件格式输出作为图纸目录。As a preferred implementation, in step S5, the drawing information identified by the proprietary database is sorted in the natural order of the drawing numbers, and the printed drawing information is output in an Excel file format as a drawing catalog.
本发明还提供一种实现上述的CAD图纸文件批量处理方法的系统,包括:数据传输转换模块,用于通过操作系统与CAD软件程序进行数据传输,传输的数据通过该模块予以转换为操作系统可识别的数据形式,以使操作系统与CAD软件程序间互相识别;The present invention also provides a system for implementing the above-mentioned CAD drawing file batch processing method, comprising: a data transmission conversion module, used for performing data transmission between an operating system and a CAD software program, and the transmitted data is converted into a data form recognizable by the operating system through the module, so that the operating system and the CAD software program can recognize each other;
CAD操作识别模块,用于处理程序内CAD的操作指令,包括对象识别及相关属性获取,打印操作,逻辑运算;CAD operation recognition module, used to process CAD operation instructions in the program, including object recognition and related attribute acquisition, printing operation, and logical operation;
数据保存模块,用于保存本装置的内部运行参数、相关设置参数,记录预定义的图框块信息;A data storage module is used to store the internal operating parameters and related setting parameters of the device and record the predefined frame block information;
用户界面模块,用于用户与程序界面交互平台。User interface module, used for user and program interface interaction platform.
与现有技术相比,本发明具有如下优点:Compared with the prior art, the present invention has the following advantages:
其一,本发明的CAD图纸文件批量处理方法通过COM技术对CAD软件进行链接,系统独立与CAD软件程序母体之外,不受程序本身版本更新或变更而影响,无需重复设置系统的相关参数,简化了打印工作流程。Firstly, the CAD drawing file batch processing method of the present invention links the CAD software through COM technology. The system is independent of the CAD software program body and is not affected by the version update or change of the program itself. There is no need to repeatedly set the relevant parameters of the system, which simplifies the printing workflow.
其二,本发明的CAD图纸文件批量处理方法通过链接的CAD当前文件进行预处理,将相关坐标信息保存下来,作为本图纸的专有数据库,无需每次设置图纸配置,进一步简化了用户操作流程。Secondly, the CAD drawing file batch processing method of the present invention pre-processes the linked CAD current file and saves the relevant coordinate information as a proprietary database of the drawing. There is no need to set the drawing configuration each time, which further simplifies the user operation process.
其三,本发明的CAD图纸文件批量处理方法将待打印图框在该空间系内的具体坐标位置,图纸名称、图纸图号等信息一并保存,生成与图纸名对应的打印文件名,用户无需修改打印后的文件名,进一步简化了打印工作流程,将文件名命名方式标准化,利于文件归档。Thirdly, the CAD drawing file batch processing method of the present invention saves the specific coordinate position of the drawing frame to be printed in the space system, the drawing name, drawing number and other information, and generates a print file name corresponding to the drawing name. The user does not need to modify the file name after printing, which further simplifies the printing workflow, standardizes the file naming method, and facilitates file archiving.
其四,本发明的CAD图纸文件批量处理方法可以将打印的图纸信息以excel的格式输出,简化了图纸目录的人工手动编写,提高了编写效率。Fourthly, the CAD drawing file batch processing method of the present invention can output the printed drawing information in Excel format, which simplifies the manual writing of the drawing catalog and improves the writing efficiency.
其五,本发明的CAD图纸文件批量处理方法简化了用户繁琐的图纸打印及编写目录操作,极大提高了工作效率。Fifth, the CAD drawing file batch processing method of the present invention simplifies the user's tedious drawing printing and directory writing operations, greatly improving work efficiency.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是为本发明一种CAD图纸文件批量处理系统的示意图;FIG1 is a schematic diagram of a CAD drawing file batch processing system of the present invention;
图2是为本发明一种CAD图纸文件批量处理方法的流程示意图;FIG2 is a schematic flow chart of a method for batch processing CAD drawing files according to the present invention;
图3是为本发明实施例的用户界面模块图。FIG. 3 is a diagram of a user interface module according to an embodiment of the present invention.
具体实施方式Detailed ways
下面结合实施案例详细说明本发明的实施情况,但它们并不构成对本发明的限定,仅作举例而已。同时通过说明本发明的优点将变得更加清楚和容易理解。The following is a detailed description of the implementation of the present invention in conjunction with the implementation cases, but they do not constitute a limitation of the present invention and are only given as examples. At the same time, the advantages of the present invention will become clearer and easier to understand through the description.
如图1所示的一种CAD图纸文件批量处理系统,包括:数据传输转换模块,用于通过操作系统与CAD软件程序进行数据传输,传输的数据通过该模块予以转换为操作系统可识别的数据形式,以使操作系统与CAD软件程序间互相识别;CAD操作识别模块,用于处理程序内CAD的操作指令,包括对象识别及相关属性获取,打印操作,逻辑运算;数据保存模块,用于保存本装置的内部运行参数、相关设置参数,记录预定义的图框块信息;用户界面模块,用于用户与程序界面交互平台。A CAD drawing file batch processing system as shown in Figure 1 includes: a data transmission conversion module, which is used to transmit data between the operating system and the CAD software program, and the transmitted data is converted into a data form recognizable by the operating system through the module, so that the operating system and the CAD software program can recognize each other; a CAD operation recognition module, which is used to process the CAD operation instructions in the program, including object recognition and related attribute acquisition, printing operation, and logical operation; a data storage module, which is used to save the internal operating parameters and related setting parameters of the device, and record predefined frame block information; a user interface module, which is used for the user and program interface interaction platform.
如图2所示的一种CAD图纸文件批量处理方法,包括如下步骤:A method for batch processing of CAD drawing files as shown in FIG2 includes the following steps:
S1:数据传输转换模块中,通过COM技术对CAD图纸文件进行链接,形成有效的数据传输通道,通道建立后,获取本CAD文件中块管理器中的所有块,与程序预设待打印图框块(可通过块名称属性)匹配,过滤获得实际在本CAD图纸文件中使用的打印图框块。需要指出的是,这些程序与CAD文件进行传输的数据,均需通过数据传输转换模块予以转换。数据转换,是因为应用COM技术,操作系统无法识别程序内部数据结构,需要将数据转换为系统可识别的数据形式。S1: In the data transmission conversion module, the CAD drawing file is linked through COM technology to form an effective data transmission channel. After the channel is established, all blocks in the block manager of this CAD file are obtained, matched with the program preset frame blocks to be printed (through the block name attribute), and the printing frame blocks actually used in this CAD drawing file are filtered. It should be pointed out that the data transmitted between these programs and CAD files must be converted through the data transmission conversion module. Data conversion is because the operating system cannot recognize the internal data structure of the program when applying COM technology, and the data needs to be converted into a data form that the system can recognize.
CAD操作识别模块中可能因为程序操作过快,数据传输转换模块与CAD图纸文件来不及形成有效传输,因此需要数据传输转换模块辨别数据是否合法,若数据合法直接转换给CAD操作识别模块,若数据非法,则等待相应时间后再与CAD图纸文件连接传输直至判断数据合法,超过设定时间若仍判断数据非法,则传输失败。In the CAD operation identification module, the program operation may be too fast, and the data transmission conversion module and the CAD drawing file may not have enough time to form an effective transmission. Therefore, the data transmission conversion module is needed to identify whether the data is legal. If the data is legal, it will be directly converted to the CAD operation identification module. If the data is illegal, it will wait for a certain period of time and then connect to the CAD drawing file for transmission until the data is judged to be legal. If the data is still judged to be illegal after the set time, the transmission fails.
其中,COM技术,即组件对象模型(Component Object Model),是微软公司开发的一套软件组件规范和接口标准。它主要定义了软件组件之间如何进行交互和通信,无论这些组件是用什么编程语言实现的,运行在什么操作系统上,以及它们是否在同一个进程或网络中的不同机器上。在COM技术中,组件是通过接口进行交互的。接口是一系列预定义的方法,使得组件可以向外界提供功能而无需暴露其内部实现细节。COM技术具有语言无关性和平台无关性,这意味着不同编程语言编写的组件可以通过COM实现相互操作,并且COM组件可以在不同的操作系统平台上运行。这种能力使得COM成为实现软件重用、系统集成和网络通信的重要技术基础。Among them, COM technology, namely Component Object Model, is a set of software component specifications and interface standards developed by Microsoft. It mainly defines how software components interact and communicate with each other, regardless of what programming language these components are implemented in, what operating system they run on, and whether they are in the same process or on different machines in the network. In COM technology, components interact through interfaces. An interface is a series of predefined methods that allow components to provide functions to the outside world without exposing their internal implementation details. COM technology is language-independent and platform-independent, which means that components written in different programming languages can interoperate through COM, and COM components can run on different operating system platforms. This capability makes COM an important technical foundation for realizing software reuse, system integration, and network communication.
CAD,即AutoCAD,是一款由美国Autodesk公司开发的计算机辅助设计(CAD)软件,它广泛应用于二维绘图、详细绘制、设计文档和基本三维设计等领域。该软件为用户提供了一个强大的设计平台,使得设计师能够更加高效地完成从概念设计到施工图绘制的一系列工作。CAD, or AutoCAD, is a computer-aided design (CAD) software developed by Autodesk, an American company. It is widely used in the fields of 2D drawing, detailed drawing, design documentation and basic 3D design. The software provides users with a powerful design platform, enabling designers to complete a series of tasks from conceptual design to construction drawing more efficiently.
S2:CAD操作识别模块将待打印图框块预处理,获取待打印图框块中需要识别的相关信息的位置(如图纸的图纸名称、图纸编号、图幅等位置坐标),一般的,待识别对象相对于图框的位置相对固定,获取待打印图框块中每个块内需识别对象的位置信息,将这些信息通过数据保存模块予以保存,作为本图纸的专有数据库。S2: The CAD operation recognition module pre-processes the frame block to be printed, and obtains the position of the relevant information to be recognized in the frame block to be printed (such as the drawing name, drawing number, drawing size and other position coordinates of the drawing). Generally, the position of the object to be recognized relative to the frame is relatively fixed, and the position information of the object to be recognized in each block of the frame block to be printed is obtained. This information is saved through the data saving module as a proprietary database for this drawing.
其中,待打印图框块,是预先设定好的,以图纸打印范围为边界的块,依据打印范围大小不同,来定义不同的块,块内包含需识别对象的具体范围,可选的,可采用Spline对象作为识别对象的范围框。The drawing frame block to be printed is a pre-set block with the drawing printing range as the boundary. Different blocks are defined according to the size of the printing range. The block contains the specific range of the object to be identified. Optionally, a Spline object can be used as the range box of the identification object.
S3:用户通过用户界面模块,选择本CAD图纸中待处理打印图纸的图框,获取全图纸文件中的待打印图框列表。可采用图框名称作为选择时的图块过滤器,选取方式可采用全图对象逐一扫描或由用户框选对象方式,无论采用何种方式,优先采用预设待打印图框块名称来作为图框块选择过滤器。S3: The user selects the frame of the drawing to be printed in the current CAD drawing through the user interface module, and obtains the list of frames to be printed in the entire drawing file. The frame name can be used as a block filter during selection, and the selection method can be to scan the entire drawing objects one by one or to select the objects by the user. Regardless of which method is used, the preset frame block name to be printed is preferably used as the frame block selection filter.
其中,用户界面,是用户与本系统进行交互的平台或界面。用户界面的目的是提供一种直观、易用、高效的方式,使用户能够理解和操作产品或服务,从而获得良好的体验。如图3所示,提供了一种用户界面实例。The user interface is a platform or interface for users to interact with the system. The purpose of the user interface is to provide an intuitive, easy-to-use, and efficient way for users to understand and operate products or services, thereby obtaining a good experience. As shown in FIG3 , an example of a user interface is provided.
S4:CAD操作识别模块将本图纸的生成的专有数据库(步骤S2生成)从数据保存模块读取出来,应用到待打印图框列表中每个图框块,通过识别对象的位置找到图纸中需识别信息的对象,获取每个图纸对应的相关信息,获取相关信息包括但不限于图纸名称、图纸编号、图幅的具体内容,将这些信息再通过数据传输转换模块反传给CAD操作识别模块进行处理,并显示到用户界面。待打印图框块中每个块内需识别对象的位置信息是处于块内坐标系,需转换为当前图纸坐标系。S4: The CAD operation recognition module reads the proprietary database generated by the drawing (generated in step S2) from the data storage module, applies it to each frame block in the list of frames to be printed, finds the object to be identified in the drawing by identifying the position of the object, obtains the relevant information corresponding to each drawing, and obtains the relevant information including but not limited to the drawing name, drawing number, and specific content of the drawing, and then transmits this information back to the CAD operation recognition module through the data transmission conversion module for processing and displaying it to the user interface. The position information of the object to be identified in each block of the frame block to be printed is in the block coordinate system and needs to be converted to the current drawing coordinate system.
S5:由用户确认信息是否正确,并提供修改相关信息的可能性。确认无误后,调用CAD软件程序母体内的打印机,逐一将打印图纸的PDF格式文件输出到图纸所在的文件路径下。本发明可以自定义文件名的命名方式,通过设定关键字形式,明确图纸名称、图纸编号、图幅等专有数据库识别出的图纸信息的组合方式,作为该输出的打印文件名。本发明还可通过专有数据库识别出的图纸信息,以文件形式输出图纸目录。图纸目录的内容也是图纸中相关识别出来的信息。可选的是,可利用专有数据库(步骤S2生成)识别出的图纸信息,以图纸编号的自然顺序排序,将打印的图纸信息以excel文件格式输出作为图纸目录。S5: The user confirms whether the information is correct and provides the possibility of modifying the relevant information. After confirmation, the printer in the CAD software program matrix is called to output the PDF format files of the printed drawings one by one to the file path where the drawings are located. The present invention can customize the naming method of the file name, and by setting the keyword form, clarify the combination of drawing information identified by the proprietary database such as drawing name, drawing number, and drawing size as the output print file name. The present invention can also output the drawing catalog in the form of a file through the drawing information identified by the proprietary database. The content of the drawing catalog is also the relevant information identified in the drawing. Optionally, the drawing information identified by the proprietary database (generated in step S2) can be sorted in the natural order of the drawing number, and the printed drawing information can be output in excel file format as a drawing catalog.
以上,仅为本发明的具体实施方式,应当指出,任何熟悉本领域的技术人员在本发明所揭示的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内,其余未详细说明的均属于现有技术。The above are only specific embodiments of the present invention. It should be pointed out that any changes or substitutions that can be easily thought of by any technician familiar with the field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention, and the rest not described in detail belong to the prior art.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410292205.5A CN118394286A (en) | 2024-03-14 | 2024-03-14 | CAD drawing file batch processing system and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410292205.5A CN118394286A (en) | 2024-03-14 | 2024-03-14 | CAD drawing file batch processing system and method thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118394286A true CN118394286A (en) | 2024-07-26 |
Family
ID=92006361
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410292205.5A Pending CN118394286A (en) | 2024-03-14 | 2024-03-14 | CAD drawing file batch processing system and method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118394286A (en) |
-
2024
- 2024-03-14 CN CN202410292205.5A patent/CN118394286A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6289254B1 (en) | Parts selection apparatus and parts selection system with CAD function | |
JP2007150858A (en) | Document editing apparatus, image forming apparatus, document editing method, and program to make computer execute method | |
CN113886362A (en) | Data storage system and storage method based on workflow engine and low-code platform | |
CN111240670A (en) | A kind of fast automatic generation method and device of software graphical interface | |
CN113312033A (en) | Template protocol generation and management method | |
CN117453713A (en) | SQL sentence generation method, device and storage medium for multi-type database | |
CN117077650A (en) | Document generation system, method, equipment and medium based on dynamic template configuration | |
JPH09223007A (en) | Input sheet system | |
JP2002279005A (en) | Three-dimensional analysis model generation method and apparatus, three-dimensional analysis model generation program, and recording medium therefor | |
JP5404969B1 (en) | Electronic manual browsing device and system | |
CN118394286A (en) | CAD drawing file batch processing system and method thereof | |
CN116956845A (en) | Method for rapidly configuring form field, page field generation mode and system | |
CN112906344B (en) | Method for extracting simulation information on chip in real time | |
CN109960787A (en) | Method and device for generating layout template | |
US20090287733A1 (en) | Method for preparing prepress image data | |
CN116705171B (en) | Batch biological data processing method, device and medium | |
JPH09265431A (en) | Method and device for editing document, and client device including the device | |
JPH0635987A (en) | Device and mehtod for preparing circuit diagram | |
CN114357131B (en) | Process card rapid compiling method, equipment, device and medium | |
JP2720768B2 (en) | Program customization equipment | |
JP2001101327A (en) | Information processing method, information processor and printing system | |
JPH08161350A (en) | Method and device for electronic filing | |
CN117933193A (en) | System and method for converting XML file into PDF file | |
JPS62145424A (en) | Program managing method | |
JP4737659B2 (en) | Table set database system and table set data creation device |
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 |