CN118394286A - CAD drawing file batch processing system and method thereof - Google Patents

CAD drawing file batch processing system and method thereof Download PDF

Info

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
frame
printed
batch processing
module
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
Application number
CN202410292205.5A
Other languages
Chinese (zh)
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.)
Changjiang Institute of Survey Planning Design and Research Co Ltd
Original Assignee
Changjiang Institute of Survey Planning Design and Research 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 Changjiang Institute of Survey Planning Design and Research Co Ltd filed Critical Changjiang Institute of Survey Planning Design and Research Co Ltd
Priority to CN202410292205.5A priority Critical patent/CN118394286A/en
Publication of CN118394286A publication Critical patent/CN118394286A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a CAD drawing file batch processing system and a method thereof, wherein the system comprises a data transmission and conversion module, a CAD software program and a CAD drawing file batch processing module, wherein the data transmission and conversion module is used for carrying out data transmission through an operating system, and the transmitted data is converted into a data form which can be identified by the operating system through the module; the CAD operation identification module is used for processing operation instructions of CAD in the program, including object identification, related attribute acquisition, printing operation and logic operation; the data storage module is used for storing the internal operation parameters and related setting parameters of the device and recording predefined frame block information; and the user interface module is used for the interaction platform of the user and the program interface. The batch processing method for the CAD drawing files can effectively simplify the operation flow of printing, can realize batch printing by only setting the configuration parameters of the device according to the current environment in advance and simply operating different CAD drawings, greatly simplifies the operation flow, avoids repeated setting and has good universality.

Description

CAD drawing file batch processing system and method thereof
Technical Field
The invention relates to the technical field of CAD drawing file processing, in particular to a CAD drawing file batch processing system and a CAD drawing file batch processing method.
Background
Computer Aided Design (CAD) technology is an indispensable tool in the modern design industry that can significantly improve design efficiency and quality. CAD software is typically used to create and modify engineering drawings, 3D models, and the like design data. In the construction industry, CAD files typically contain detailed design information and graphical representations. With the development of technology, the functions of CAD software are expanding continuously, supporting more complex design and analysis tasks.
In practice, designers often need to process CAD files for printing. The need to batch process CAD file prints also arises, which can be accomplished through the use of specialized CAD editor software. For example, the quick CAD editor is software capable of realizing batch printing of CAD drawings. By using the software, a user can add a plurality of CAD files at one time to perform printing setting and then print the CAD files in batches, so that the working efficiency is greatly improved.
Furthermore, CAD files often need to be shared or archived with others, and therefore, converting CAD files to PDF format is also a common batch processing requirement. PDF format is favored for its cross-platform, easy-to-view and sharing features.
For batch printing of engineering CAD files, printer settings, paper size, print layout, etc. also need to be considered.
At present, some professional CAD software such as 'BatchPlat.VLX', 'easy-to-draw' and the like on the market provides functions of automatically searching and printing a plurality of pictures, so that the operation flow of batch printing is simplified to a certain extent, but the problems of complex and tedious operation, repeated setting, complex setting, poor universality and the like exist more or less.
Therefore, it is desirable to provide a batch processing system and method for CAD files, which makes the design work more efficient and convenient.
Disclosure of Invention
The invention aims to overcome the defects of the background technology and provide a CAD drawing file batch processing system and a CAD drawing file batch processing method, which can effectively simplify the operation flow of printing, and can realize batch printing by simply operating different CAD drawings only by setting the configuration parameters of the device according to the current environment in advance, thereby greatly simplifying the operation flow and avoiding repeated setting; meanwhile, the method does not depend on local CAD software version, and has good universality.
In order to achieve the above purpose, the CAD drawing file batch processing method designed by the invention comprises the following steps:
S1: linking the CAD drawing files through a COM technology, matching with a program preset to-be-printed drawing block, and filtering to obtain a printed drawing block actually used in the CAD drawing files;
S2: preprocessing a frame block to be printed, obtaining position coordinates of an object to be identified in the frame block to be printed, and storing the position coordinates by a data storage module to be used as a proprietary database of the drawing;
S3: a user selects a picture frame of a to-be-processed printing drawing in the CAD drawing through a user interface module, and a list of the picture frames to be printed in the full-drawing paper file is obtained;
S4: reading a special database, applying the special database to each frame block in a to-be-printed frame list, and finding out an object needing to be identified information in the drawing through identifying the position of the object to obtain related information corresponding to each drawing;
S5: after confirming that the information is correct, a user calls a printer in the CAD software program parent body, and PDF format files for printing the drawing are output to the file path where the drawing is located one by one.
In the step S1, the CAD drawing files are linked by the COM technology to form an effective data transmission channel, the transmitted data are converted by the data conversion module, after the channel is established, all the blocks in the block manager in the CAD drawing file are obtained, and the blocks are matched with the program preset to-be-printed frame blocks, and the print frame blocks actually used in the CAD drawing file are obtained by filtering.
In a preferred embodiment, in step S2, the frame blocks to be printed are preset blocks bordering the printing range of the drawing, and are defined as different frame blocks according to different printing ranges, where each frame block includes a range frame of the object to be identified.
In a preferred embodiment, in step S2, the position coordinates of the object to be identified in the frame block to be printed are obtained, where the position coordinates include a drawing name, a drawing number, and a drawing frame.
In a preferred embodiment, in the step S3, a preset frame block name to be printed is used as a frame block selection filter, and the selection mode may be a mode of scanning the whole image objects one by one or selecting the objects by a user frame.
In the step S4, the CAD operation identification module reads the generated proprietary database of the drawing from the data storage module, applies the database to each frame block in the to-be-printed frame list, and finds the object to be identified in the drawing according to the position of the identified object, thereby obtaining the relevant information corresponding to each drawing.
In the preferred embodiment, in step S4, the related information corresponding to each drawing includes the drawing name, drawing number, and specific content of the drawing, and these information are then transmitted back to the CAD operation recognition module for processing through the data transmission conversion module and displayed on the user interface.
In a preferred embodiment, in the step S5, the user may define the naming mode of the file name, define the drawing name, the drawing number, and the drawing by setting the keyword format, and use the combination mode of the drawing information which can be identified by the proprietary database as the output print file name.
In a preferred embodiment, in step S5, the drawing information identified by the proprietary database is sorted in the natural sequence of drawing numbers, and the printed drawing information is output in an excel file format as a drawing catalog.
The invention also provides a system for realizing the CAD drawing file batch processing method, which comprises the following steps: the data transmission conversion module is used for carrying out data transmission through the operating system and the CAD software program, and the transmitted data is converted into a data form which can be identified by the operating system through the module so as to enable the operating system and the CAD software program to be mutually identified;
The CAD operation identification module is used for processing operation instructions of CAD in the program, including object identification, related attribute acquisition, printing operation and logic operation;
The data storage module is used for storing the internal operation parameters and related setting parameters of the device and recording predefined frame block information;
And the user interface module is used for the interaction platform of the user and the program interface.
Compared with the prior art, the invention has the following advantages:
Firstly, the CAD drawing file batch processing method links CAD software through the COM technology, the system is independent of a CAD software program parent body and is not influenced by update or change of the version of the program, relevant parameters of the system are not required to be set repeatedly, and the printing workflow is simplified.
Secondly, the CAD drawing file batch processing method of the invention carries out preprocessing through the linked CAD current file, saves relevant coordinate information as a special database of the drawing, does not need to set drawing configuration each time, and further simplifies the operation flow of users.
Thirdly, the CAD drawing file batch processing method saves the specific coordinate position of the drawing frame to be printed in the space system, drawing names, drawing numbers and other information together, generates the printing file names corresponding to the drawing names, and further simplifies the printing work flow without modifying the printed file names, standardizes the file name naming mode and is beneficial to filing files.
Fourth, the CAD drawing file batch processing method can output the printed drawing information in an excel format, so that manual writing of drawing catalogues is simplified, and writing efficiency is improved.
Fifthly, the CAD drawing file batch processing method simplifies complicated drawing printing and catalogue writing operations of a user, and greatly improves working efficiency.
Drawings
FIG. 1 is a schematic diagram of a CAD drawing file batch processing system of the present invention;
FIG. 2 is a schematic flow chart of a CAD drawing file batch processing method of the present invention;
FIG. 3is a block diagram of a user interface for an embodiment of the present invention.
Detailed Description
The following describes the embodiments of the present invention in detail with reference to examples, but they are not to be construed as limiting the invention. While at the same time becoming clearer and more readily understood by way of illustration of the advantages of the present invention.
The CAD drawing file batch processing system shown in FIG. 1 comprises: the data transmission conversion module is used for carrying out data transmission through the operating system and the CAD software program, and the transmitted data is converted into a data form which can be identified by the operating system through the module so as to enable the operating system and the CAD software program to be mutually identified; the CAD operation identification module is used for processing operation instructions of CAD in the program, including object identification, related attribute acquisition, printing operation and logic operation; the data storage module is used for storing the internal operation parameters and related setting parameters of the device and recording predefined frame block information; and the user interface module is used for the interaction platform of the user and the program interface.
The CAD drawing file batch processing method as shown in FIG. 2 comprises the following steps:
S1: in the data transmission conversion module, CAD drawing files are linked through a COM technology to form an effective data transmission channel, after the channel is established, all blocks in a block manager in the CAD file are obtained, the blocks are matched with a program preset drawing block to be printed (the block name attribute can be passed), and the printing drawing block actually used in the CAD drawing file is obtained through filtering. It should be noted that, the data transmitted by these programs and CAD files are all converted by the data transmission conversion module. The data conversion is because the operating system cannot identify the internal data structure of the program by applying the COM technology, and the data needs to be converted into a data form which can be identified by the system.
In the CAD operation recognition module, the data transmission conversion module and the CAD drawing file are not as fast as possible to form effective transmission because the program operation is too fast, so that the data transmission conversion module is required to judge whether the data is legal or not, if the data is legal, the data is directly converted to the CAD operation recognition module, if the data is illegal, the data is connected with the CAD drawing file for transmission after waiting for corresponding time until the data is judged to be legal, and if the data is still judged to be illegal after the set time is exceeded, the transmission is failed.
The COM technology, component object model (Component Object Model), is a set of software component specifications and interface standards developed by microsoft corporation. It mainly defines how the software components interact and communicate with each other, regardless of the programming language in which they are implemented, on what operating system they run, and whether they are on different machines in the same process or network. In COM technology, components interact through interfaces. An interface is a series of predefined methods so that a component can provide functionality to the outside world without exposing its internal implementation details. COM technology has language independence and platform independence, meaning components written in different programming languages can interoperate through COM implementations, and COM components can run on different operating system platforms. This capability makes COM an important technological base for achieving software reuse, system integration, and network communication.
CAD, autoCAD, is a piece of computer-aided design (CAD) software developed by Autodesk, inc. in the United states, and is widely used in the fields of two-dimensional drawing, detailed drawing, design documentation, basic three-dimensional design, etc. The software provides a powerful design platform for users, enabling designers to more efficiently complete a series of tasks from conceptual design to construction drawing.
S2: the CAD operation identification module preprocesses the frame blocks to be printed, obtains the positions (such as drawing names, drawing numbers, drawing frame and the like coordinates of drawings) of relevant information to be identified in the frame blocks to be printed, generally, the positions of objects to be identified relative to the frames are relatively fixed, the position information of the objects to be identified in each block in the frame blocks to be printed is obtained, and the information is stored through the data storage module to be used as a proprietary database of the drawing.
The to-be-printed frame blocks are preset, blocks with drawing printing ranges as boundaries are defined according to different printing ranges, the blocks contain specific ranges of objects to be identified, and optionally, a line object can be used as a range frame of the identification object.
S3: and the user selects a frame of the to-be-processed printing drawing in the CAD drawing through the user interface module, and a list of the to-be-printed frames in the full-drawing paper file is obtained. The frame name can be used as a block filter when selecting, and the selecting mode can be a mode of scanning full-image objects one by one or selecting objects by a user frame, and no matter what mode is adopted, the preset frame block name to be printed is preferably adopted as the frame block selecting filter.
The user interface is a platform or interface for the user to interact with the system. The purpose of the user interface is to provide an intuitive, easy-to-use, efficient way for the user to understand and manipulate the product or service, thereby obtaining a good experience. As shown in fig. 3, an example of a user interface is provided.
S4: the CAD operation identification module reads the generated special database (generated in step S2) of the drawing from the data storage module, applies the special database to each frame block in the to-be-printed frame list, finds out the object needing to be identified in the drawing through identifying the position of the object, acquires the relevant information corresponding to each drawing, acquires the relevant information including but not limited to the drawing name, drawing number and specific content of the drawing, and then transmits the information to the CAD operation identification module for processing through the data transmission conversion module and displays the information to the user interface. The position information of the object to be identified in each block in the frame block to be printed is in an intra-block coordinate system and is required to be converted into a current drawing coordinate system.
S5: the user confirms whether the information is correct and provides the possibility to modify the relevant information. And after confirming the error, calling a printer in the CAD software program parent body, and outputting PDF format files of the printing drawings one by one to the file path where the drawings are located. The invention can define the naming mode of the file name by self, and define the combination mode of drawing information identified by the proprietary databases such as drawing names, drawing numbers, drawings and the like by setting the keyword form, and the combination mode is used as the output printing file name. The method can also output the drawing catalogue in a file form through drawing information identified by the special database. The content of the drawing catalog is also information which is relevant and identified in the drawing. Alternatively, the drawing information identified by the proprietary database (generated in step S2) may be sorted in the natural sequence of drawing numbers, and the printed drawing information is output in an excel file format as a drawing catalog.
The foregoing is merely exemplary embodiments of the present invention, and it should be noted that any changes and substitutions that may be easily contemplated by those skilled in the art within the scope of the present invention are intended to be covered by the present invention, and the remaining non-detailed description is included in the prior art.

Claims (10)

1. A CAD drawing file batch processing method is characterized in that: the method comprises the following steps:
S1: linking the CAD drawing files through a COM technology, matching with a program preset to-be-printed drawing block, and filtering to obtain a printed drawing block actually used in the CAD drawing files;
S2: preprocessing a frame block to be printed, obtaining position coordinates of an object to be identified in the frame block to be printed, and storing the position coordinates by a data storage module to be used as a proprietary database of the drawing;
S3: a user selects a picture frame of a to-be-processed printing drawing in the CAD drawing through a user interface module, and a list of the picture frames to be printed in the full-drawing paper file is obtained;
S4: reading a special database, applying the special database to each frame block in a to-be-printed frame list, and finding out an object needing to be identified information in the drawing through identifying the position of the object to obtain related information corresponding to each drawing;
S5: after confirming that the information is correct, a user calls a printer in the CAD software program parent body, and PDF format files for printing the drawing are output to the file path where the drawing is located one by one.
2. The CAD drawing file batch processing method according to claim 1, wherein: in step S1, the CAD drawing files are linked by the COM technology to form an effective data transmission channel, the transmitted data is converted by the data conversion module, after the channel is established, all blocks in the block manager in the CAD drawing files are obtained, and are matched with the program preset to-be-printed frame blocks, and the print frame blocks actually used in the CAD drawing files are obtained by filtering.
3. The CAD drawing document batch processing method according to claim 2, wherein: in step S2, the frame blocks to be printed are preset blocks bordered by the printing range of the drawing, and are defined as different frame blocks according to different printing ranges, and each frame block contains a range frame of the object to be identified.
4. The CAD drawing file batch processing method according to claim 3, wherein: in step S2, the position coordinates of the object to be identified in the frame block to be printed are obtained, where the position coordinates include a drawing name, a drawing number and a drawing frame.
5. The CAD drawing file batch processing method according to claim 4, wherein: in the step S3, a preset frame block name to be printed is adopted as a frame block selection filter, and the selection mode can be a mode of scanning full-image objects one by one or selecting objects by a user frame.
6. The CAD drawing file batch processing method according to claim 5, wherein: in step S4, the CAD operation recognition module reads the generated proprietary database of the drawing from the data storage module, applies the database to each frame block in the to-be-printed frame list, and finds the object to be recognized in the drawing according to the position of the recognized object, thereby obtaining the related information corresponding to each drawing.
7. The CAD drawing file batch processing method according to claim 6, wherein: in step S4, the relevant information corresponding to each drawing includes the drawing name, drawing number, and specific content of the drawing, and these information are transmitted back to the CAD operation recognition module for processing through the data transmission conversion module, and displayed on the user interface.
8. The CAD drawing file batch processing method according to claim 7, wherein: in step S5, the user may define the naming mode of the file name, define the drawing name, drawing number and drawing by setting the keyword form, and use the combination mode of the drawing information which can be identified by the proprietary database as the output print file name.
9. The CAD drawing file batch processing method according to claim 8, wherein: in step S5, the drawing information identified by the proprietary database is sequenced in the natural sequence of the drawing numbers, and the printed drawing information is output in an excel file format as a drawing catalog.
10. A system for implementing the CAD drawing file batch processing method of any one of claims 1 to 9, characterized in that: comprising
The data transmission conversion module is used for carrying out data transmission through the operating system and the CAD software program, and the transmitted data is converted into a data form which can be identified by the operating system through the module so as to enable the operating system and the CAD software program to be mutually identified;
The CAD operation identification module is used for processing operation instructions of CAD in the program, including object identification, related attribute acquisition, printing operation and logic operation;
The data storage module is used for storing the internal operation parameters and related setting parameters of the device and recording predefined frame block information;
And the user interface module is used for the interaction platform of the user and the program interface.
CN202410292205.5A 2024-03-14 2024-03-14 CAD drawing file batch processing system and method thereof Pending CN118394286A (en)

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)

Similar Documents

Publication Publication Date Title
JP4909576B2 (en) Document editing apparatus, image forming apparatus, and program
EP1810124B1 (en) Document managing system and method thereof
US8711419B2 (en) Preserving user applied markings made to a hardcopy original document
JP3836527B2 (en) Apparatus and method for image editing of structural images
JP2007150858A5 (en)
US20050237573A1 (en) Image processing apparatus and method
US20070291026A1 (en) Method and device for preparing a parts catalog
CN112052038A (en) Method and device for generating front-end interface
CN112496553A (en) Method and system for printing card based on printing template
CN108230236B (en) Digital image automatic imposition method and digitally published picture imposition method
US8255797B2 (en) Information processing apparatus and method
JPH09223007A (en) Input sheet system
JP5404969B1 (en) Electronic manual browsing device and system
KR0121574B1 (en) Data processing apparatus and editing apparatus using the same
CN118394286A (en) CAD drawing file batch processing system and method thereof
JP4834919B2 (en) Automatic typesetting system
JP2003085160A (en) Source file forming device
JP7154982B2 (en) Information processing device, control method, and program
JP4288972B2 (en) Layout system, layout support system, layout support program, and layout support method
JPH0635987A (en) Device and mehtod for preparing circuit diagram
JP4334987B2 (en) DTP editing apparatus having area designation function and data cutout function
JP6817523B2 (en) Information processing device, control method of information processing device, and program
JP2581389B2 (en) How to edit links
JPH10235939A (en) Equipment for preparing document wherein braille character and figure are present mixedly
JP2002280800A (en) Creation method of conversion table

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