CN112214622A - Data processing method and device for rapidly displaying AutoCAD drawing - Google Patents

Data processing method and device for rapidly displaying AutoCAD drawing Download PDF

Info

Publication number
CN112214622A
CN112214622A CN202011135671.0A CN202011135671A CN112214622A CN 112214622 A CN112214622 A CN 112214622A CN 202011135671 A CN202011135671 A CN 202011135671A CN 112214622 A CN112214622 A CN 112214622A
Authority
CN
China
Prior art keywords
data
drawing file
display
file
acquiring
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
CN202011135671.0A
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.)
Lanju Beijing Digital Technology Co ltd
Original Assignee
Lanju Beijing Digital Technology 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 Lanju Beijing Digital Technology Co ltd filed Critical Lanju Beijing Digital Technology Co ltd
Priority to CN202011135671.0A priority Critical patent/CN112214622A/en
Publication of CN112214622A publication Critical patent/CN112214622A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/56Information retrieval; Database structures therefor; File system structures therefor of still image data having vectorial format

Abstract

The invention provides a data processing method and a data processing device for rapidly displaying an AutoCAD drawing, which comprise the following steps: acquiring a drawing file; analyzing the drawing file to obtain basic data in the drawing file; generating standardized data according to the basic data in the drawing file; acquiring display parameters, adjusting the standardized data according to the display parameters, acquiring display data, and outputting data in different formats, so that the drawing can be displayed on multiple terminals and multiple platforms without plug-ins; and acquiring the display parameters based on different display platforms. That is to say, according to the file format that display platform can demonstrate, the server carries out format adjustment to standardized data to show at display platform more convenient, high-efficient, quick.

Description

Data processing method and device for rapidly displaying AutoCAD drawing
Technical Field
The invention relates to a data processing technology, in particular to a data processing method and device for rapidly displaying an AutoCAD drawing.
Background
With the development of the times and the progress of the society, the current software product projects of computer aided design are various, and the opening and storage formats are different, such as various format files of PDF, DWF, BMP, JPG, TIF, PNG and the like. The terminal is very inconvenient to use in the internet environment, and a quick and convenient processing method is not available, so that terminals with different file formats cannot be displayed quickly.
The traditional solution is that a plug-in is added to a display terminal to convert the format of an acquired drawing file, and the conversion process not only affects the use of the display terminal, but also has slow conversion speed and low working efficiency. For example, electronic drawings in the DWG format are widely applied to various design industries, but the DWG drawings can only be subjected to operations such as drawing modification and annotation in local application software AutoCAD, which is very inconvenient. Even if the existing method can be opened outside application software, only DWG format conversion or plug-in addition and the like are performed, so that the method is inconvenient to use, single in function, short of effective, rapid and convenient processing method, slow in opening speed and low in working efficiency; for example, the file is converted into various formats such as PDF, DWF, BMP, JPG, TIF and PNG to be opened, and the file is converted into a format required by the user to be stored after browsing is finished, the conversion process is very complicated and inefficient, the performance requirements on a computer and the like are high, the efficiency is low, the format converted finally is not uniform, the use is inconvenient, and the user experience is very poor and mistakes are easy to make. Meanwhile, in the prior art, a method for rapidly and uniformly opening drawing files with different formats on multiple terminals is also lacked.
Disclosure of Invention
The invention provides a data processing method and a data processing device for rapidly displaying an AutoCAD drawing, which aim to solve the problems of slow conversion speed and low working efficiency in the prior art. In order to achieve the above object, according to an aspect of the embodiments of the present invention, there is provided a data processing method for quickly displaying an AutoCAD drawing, the method including: acquiring a drawing file; analyzing the drawing file to obtain basic data in the drawing file; generating standardized data according to the basic data in the drawing file; acquiring display parameters, adjusting the standardized data according to the display parameters, and acquiring display data so as to display; and acquiring the display parameters based on a display platform.
In the above scheme, analyzing the drawing file to obtain the basic data in the drawing file includes: and converting the data in the drawing file into structured and unstructured data according to file coding, data storage format and the like.
In the above scheme, generating standardized data according to the basic data in the drawing file includes: performing data conversion according to the data type of the basic data and the basic graph in the drawing file to generate standardized data; the normalized data includes at least: standard geometry data and generic data.
In the above solution, the display parameters at least include: a display format; adjusting the normalized data according to the display parameters, including: adjusting the standardized data according to the display format.
In the above scheme, generating standardized data according to the basic data in the drawing file further includes: judging whether the plurality of basic data meet multiplexing conditions or not, and obtaining a judgment result; if the judgment result is yes, only one basic data in the plurality of basic data is reserved, and only one reference is reserved in the other basic data.
In the foregoing scheme, the multiplexing condition includes: the scaling of the plurality of basic data of the same class is different; or the rotation angles of the plurality of basic data of the same class are different; or the positions of the plurality of basic data of the same class are different, and the like.
In the scheme, explanatory characters, graphic characters and graphics in the drawing file are identified; the text of the explanatory words is packaged separately and output and displayed; and packaging the text of the graphic characters and the graphics together, and outputting and displaying.
In the above scheme, after identifying the explanatory text, the graphic text and the graphic in the drawing file, the method includes: outputting and displaying according to the meanings of the descriptive characters and the graphic characters in the drawing file; or outputting and displaying according to the scene of the graph in the drawing file; or carrying out output display and the like according to the coverage range of the graph in the drawing file.
According to another aspect of the embodiments of the present invention, there is provided a data processing apparatus for rapidly displaying an AutoCAD drawing, the apparatus including: the analysis unit is used for acquiring a drawing file; analyzing the drawing file to obtain basic data in the drawing file; the conversion unit is used for generating standardized data according to the basic data in the drawing file; the adjusting unit is used for acquiring display parameters, adjusting the standardized data according to the display parameters, and acquiring display data so as to display the display data; and acquiring the display parameters based on a display platform.
According to another aspect of the embodiments of the present invention, there is provided an electronic apparatus, including: a memory, a processor and a responsive program stored in the memory for execution by the processor, the processor being responsive to any of the steps of the data processing method described above when executing the responsive program.
The data processing method and device for rapidly displaying the AutoCAD drawing, provided by the invention, are used for acquiring a drawing file; analyzing the drawing file to obtain basic data in the drawing file; generating standardized data according to the basic data in the drawing file; acquiring display parameters, adjusting the standardized data according to the display parameters, and acquiring display data so as to display; and acquiring the display parameters based on a display platform. That is to say, according to the format of the display platform capable of supporting the display file, the server adjusts the format of the standardized data, so that the display is performed on the display platform more quickly and efficiently.
Drawings
FIG. 1 is a schematic diagram of an implementation flow of a data processing method for rapidly displaying an AutoCAD drawing according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of data classification provided by an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another implementation provided by the embodiment of the present invention;
FIG. 4 is a schematic flow chart of another implementation provided by the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Fig. 1 is a schematic view of an implementation flow of a data processing method for rapidly displaying an AutoCAD drawing according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
step S101, acquiring a drawing file;
specifically, the drawing file may be a file of various formats such as PDF, DWF, BMP, JPG, TIF, PNG, and the like.
Further, the drawing file source and transmission storage are uploaded to a server or a remote cloud service (including but not limited to original files, authorized files, CAD files, non-CAD files, and disassembled and fused for such files) by means of network transmission, distribution, integration and the like, wherein the variation processing is integrally uploaded to the server or performed on the files. The server obtains the drawing file from the client, so as to further process the drawing file, and the client may be one or more of devices such as a mobile phone, a tablet Computer, a PC (Personal Computer), a notebook Computer, and the like, including but not limited to the above terminals.
Step S102, analyzing a drawing file to obtain basic data in the drawing file;
specifically, a drawing format of the image file is determined, and the image file is analyzed according to the drawing format to obtain data content in the drawing. The basic data at least comprises basic geometric types, coordinates, attribute values, custom geometric types, coordinates, attribute values, and further comprises derived data, split assembly data and the like generated thereby. For example: the circle in the drawing, the corresponding basic data is the information such as the center point, the diameter and the like of the circle; straight lines in the drawing, corresponding basic data are information such as a starting point and an ending point; the corresponding basic data of the artistic words in the drawing is information such as characters, colors, fonts and the like of the artistic words.
Furthermore, the analysis technology relates to the related knowledge of a plurality of subjects such as C/C + + programming technology, file processing, memory management, data structure algorithm, geometry and graphics. Parsing techniques include, but are not limited to, C/C + +, Java, C # #, VB, python, etc. programming techniques, as well as the gist, structure, algorithm, application model, etc. in the subject methods involved. The scope includes the use of the method, phase change packaging, dismantling and the like, including but not limited to autonomous development, third party commercial cooperation, paid services and the like.
Step S103, generating standardized data according to basic data in the drawing file;
specifically, after analyzing the basic data in the graph paper file, processing and converting the basic data to form standardized data, namely, processing and converting the standardized data into universal images and characters which can be recognized by naked eyes; it can also be said that a computer language is converted into a language recognizable to the naked eye. For example: converting the circle center and the diameter information into a circle with a general format; converting the starting point and the ending point into straight lines in a general format; the characters are converted into artistic characters with colors and fonts.
Further, the processing technology and other technologies relate to the related knowledge of multiple subjects such as the C/C + + programming technology, file processing, memory management, data structure algorithm, geometry and graphics. The processing technology includes but is not limited to C/C + +, Java, C # #, VB, python and other programming technologies, and points, structures, algorithms, application models and the like in the covered subject methods. The scope includes the use of the method, phase change packaging, dismantling and the like, including but not limited to autonomous development, third party commercial cooperation, paid services and the like.
Step S104, acquiring display parameters, adjusting standardized data according to the display parameters, and acquiring display data for displaying; wherein the display parameters are obtained based on the display platform.
Specifically, the server acquires the display parameters of the display platform, and adjusts the standardized data according to the display parameters of the display platform, so that the standardized data corresponds to the display parameters, and the display of the display platform is facilitated. That is to say, according to the format of the display file supported by the display platform, the server adjusts the format of the standardized data, so that the display can be more quickly and efficiently performed on the real platform. For example: the display platform supports PDF file format, and the resolution is 1280 multiplied by 720; if the original file of the server is in a word file format and the resolution is 1366 × 768, the original file is converted into a PDF file format on the server, and the resolution is 1280 × 720.
Furthermore, according to the obtained standardized data, original paper graphs are displayed in high quality by utilizing the advantages of extreme simplicity, convenience, uniformity, high efficiency, interconnection, one-to-one correspondence and the like according to different devices and platforms and the combination of front-end development technology. Implementations of displays on platforms involving html, css, js, wasm, threejs, python, etc., include but are not limited to methods (method details), frameworks and solutions (solution details) derived therefrom to address this issue, such as: and realizing the application and deployment schemes such as HTML5, CSS3, Wasm, Threejs and the like. The display method preferably realizes intelligent and automatic operation according to effect display of the original image (a detailed display process is shown in the following figure), including but not limited to three-dimensional image display, three-dimensional model construction, generation, multi-view switching, processing, transformation and packaging based on basic data in the first step, standard data in the second step and the like.
In another embodiment, parsing the drawing file to obtain the basic data in the drawing file includes: analyzing the structured data of the drawing file; wherein the structured data comprises at least: file encoding and data storage formats.
Specifically, when the drawing file is analyzed, the file is analyzed by combining a file coding format and a data storage format on the basis of a binary file, and an autonomous research and development tool or a tool such as commercial cooperation software is adopted. For example: the original file is a DWG format file, data of the DWG file can be selectively obtained by adopting an Open Design Alliance tool set, and the analyzed data is converted into basic data of basic geometric figure elements according to a data bit storage format and a user-defined standard.
In another embodiment, as shown in fig. 2, generating the normalized data from the basic data in the drawing file includes: performing data conversion according to the data type of the basic data and the basic graph in the drawing file to generate standardized data; the normalized data includes at least: standard geometry data and generic data.
Specifically, data classification is performed according to the data type of the basic data, and then basic graphics are collected, so that a standard geometric graphic, namely a universal graphic, is formed, and the universal graphic can be directly converted according to a display format. For example: the data types may include: the map layer comprises a map layer name, colors and the like, and the entity type comprises geometric attributes and the like.
In another embodiment, the display parameters include at least: a display format; adjusting the normalized data according to the display parameters, comprising: the normalized data is adjusted according to the display format.
In another embodiment, as shown in fig. 3, generating the normalized data according to the basic data in the drawing file further includes:
step S201, judging whether a plurality of basic data meet multiplexing conditions or not, and obtaining a judgment result;
specifically, when a large amount of basic data exists, a large amount of space is occupied, and meanwhile, conversion efficiency is reduced in the process of processing a large amount of repeated data, so that the scheme is an optimization scheme of the scheme, wherein whether a large amount of repeated data exists in the large amount of data is identified firstly, and then the repeated data is picked out for processing. It is judged whether or not the plurality of pieces of basic data satisfy the multiplexing condition, that is, whether or not the large amount of data is duplicated.
Step S202, if the judgment result is yes, only one basic data in the plurality of basic data is reserved;
specifically, if a large amount of repeated data is determined, only one copy of the same basic data is retained, and the large amount of repeated basic data is deleted, so that the processing efficiency and the space memory are ensured.
In another embodiment, the multiplexing conditions include: the scaling of a plurality of basic data of the same class is different; or the rotation angles of a plurality of basic data of the same class are different; or the position of a plurality of pieces of basic data of the same class is different.
Specifically, the basic data of the large number of repetitions means: more than two basic data of the same type can be different in rotation angle, position and scaling, but the basic data is the same data in nature, and only part of the attributes are modified. For example: two identical triangles, one of which is placed in a positive way and the other of which is placed in a negative way, are considered as repeated basic data; two squares with identical size ratios, one near the header and the other near the footer, are also considered as repetitive base data.
In another embodiment, as shown in fig. 4, includes:
step S301, identifying explanatory characters, graphic characters and graphics in a drawing file;
step S302, the text of the explanatory words is packaged separately and output and displayed; and packaging the text of the graphic characters and the graphics together, and outputting and displaying.
Specifically, it is first identified whether the appearing text is explanatory text or graphic text, the graphic text being used to explain graphics, such as: the graphic characters are characters such as "as shown in fig. 5" and "as circular in fig. 6". The graphic characters and the graphics are displayed together, and the character description characters are not packaged and displayed together with the graphics, so that the complexity of character output is reduced, and the display and the output are high-efficient.
In another embodiment, after identifying the descriptive and graphical text and graphics in the drawing file, the method comprises: outputting and displaying according to the meanings of the descriptive characters and the graphic characters in the drawing file; or outputting and displaying according to the scene of the graph in the drawing file; or outputting and displaying according to the coverage range of the graph in the drawing file.
Specifically, when it is recognized that the meanings of the characters have the same meaning, they may be put together for output, for example: the three paragraphs are all for the description of fig. 1, and then the output can be taken as a whole according to the three paragraphs, which is easier for the reader to understand. Or to identify a scene in the graph, for example: and identifying that triangles appear in the three pictures, selecting the scenes with the triangles, and displaying the scenes independently or making association.
In another embodiment, the server comprises an existing mainstream operating system and software platform (not limited to windows, unix, Linux, mac, pad), and the like. Preferably, the opening speed on the platform is high, and the opening efficiency is improved by more than one time by using the method for opening. The display method involved in the method according to the claims includes but is not limited to the application of one or several of the following ways: open source SDKs, business collaboration SDKs, and the like.
The universal format can also be used as the user-defined format of the invention, the universal format can be quickly opened by using the method, and the user-defined format is better than the universal format. Preferably, in addition to the above method, the drawing electronic version format further includes: the drawing file DWG and other file formats such as DXF, JPG, PDF, DAE, etc. Preferably, in addition to the above method, the client terminal further comprises an existing mainstream operating system and a software platform (not limited to windows, unix, Linux, mac, pad). Preferably, the DWG format file is opened directly online. In addition, when the method is used for realizing quick opening, the data volume can be compressed by performing operations such as extraction, coupling, separation and the like on data of the same type of blocks and data of different blocks in the drawing; the efficiency is improved by carrying out classification and differential display on large explanatory words in the drawing, the bystander explanatory words of the drawing elements and the like; the method comprises the following steps of splitting and merging the large-data-volume drawings (according to drawing wishes, industry rules, basic usages and the like), or stripping and splitting a single drawing unit (combining industry standards, drawing habits, basic usages and the like) to achieve detailed positioning and identification. The invention adopts the user-defined data format to output to the JSON file, and can adjust the data file format or realize the real-time interaction and other modes according to the service mode and the application scene to achieve the purposes of improving the efficiency and the like.
In another embodiment, the invention provides a data processing device for rapidly displaying an AutoCAD drawing, comprising: the analysis unit is used for acquiring a drawing file; analyzing the drawing file to obtain basic data in the drawing file; the conversion unit is used for generating standardized data according to the basic data in the drawing file; the adjusting unit is used for acquiring display parameters, adjusting the standardized data according to the display parameters, and acquiring display data so as to display the display data; wherein the display parameters are obtained based on the display platform.
In another embodiment, the present invention also provides an electronic device including: the data processing system comprises a memory, a processor and a response program stored in the memory and executed by the processor, and is characterized in that the processor responds to the data processing method when executing the response program.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device may be a data processing device for rapidly displaying an AutoCAD drawing, and the data processing device 500 may be, for example, a handle, a mouse, a trackball, a mobile phone, a smart pen, a smart watch, a smart ring, a smart bracelet, a smart glove, or the like, as shown in fig. 5. The data processing apparatus 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and a user interface 503. The various components in the data processing device 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include a display, a keyboard, a mouse, a trackball, a click wheel, a key, a button, a touch pad, a touch screen, or the like, among others.
It will be appreciated that the memory 502 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 302 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 502 in embodiments of the present invention is used to store various types of data to support the operation of the data processing apparatus 500. Examples of such data include: any computer programs for operating on the data processing apparatus 500, such as an operating system 5021 and application programs 5022; music data; animation data; book information; video, drawing information, etc. The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 5022 may contain various applications such as a Media Player (Media Player), a Browser (Browser), etc. for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The Processor 501 may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. Processor 501 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 502 and the processor 501 reads the information in the memory 302 and in combination with its hardware performs the steps of the method described above.
In an exemplary embodiment, the data processing apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the foregoing methods.
The specific processor 501, when running the computer program, performs: acquiring a drawing file;
analyzing the drawing file to obtain basic data in the drawing file; generating standardized data according to basic data in a drawing file; acquiring display parameters, adjusting standardized data according to the display parameters, and acquiring display data so as to display; wherein the display parameters are obtained based on the display platform.
When the processor 501 runs the computer program, it further executes: analyzing the drawing file to obtain basic data in the drawing file, including: analyzing the structured data of the drawing file; wherein the structured data comprises at least: file encoding and data storage formats.
When the processor 501 runs the computer program, it further executes: acquiring standardized data according to basic data in a drawing file, wherein the standardized data comprises the following steps: performing data conversion according to the data type of basic data and a basic graph in a drawing file to obtain standardized data;
the normalized data includes at least: standard geometry data and generic data.
When the processor 501 runs the computer program, it further executes: the display parameters at least include: a display format; adjusting the normalized data according to the display parameters, comprising: the normalized data is adjusted according to the display format.
When the processor 501 runs the computer program, it further executes: obtaining standardized data according to basic data in a drawing file, and further comprising: judging whether the plurality of basic data meet multiplexing conditions or not, and obtaining a judgment result; if the judgment result is yes, only one basic data in the plurality of basic data is reserved.
When the processor 501 runs the computer program, it further executes: multiplexing conditions, including: the scaling of a plurality of basic data of the same class is different; or the rotation angles of a plurality of basic data of the same class are different; or the position of a plurality of pieces of basic data of the same class is different.
When the processor 501 runs the computer program, it further executes: identifying descriptive characters, graphic characters and graphics in a drawing file; the characters of the explanatory characters are independently packaged and output for display; and packaging the characters of the graphics and the characters together with the graphics, and outputting and displaying the characters and the graphics.
When the processor 501 runs the computer program, it further executes: after the description characters, the graphic characters and the graphics in the drawing file are identified, the method comprises the following steps: outputting and displaying according to the meanings of the descriptive characters and the graphic characters in the drawing file; or outputting and displaying according to the scene of the graph in the drawing file; or outputting and displaying according to the coverage range of the graph in the drawing file.
In an exemplary embodiment, the present invention further provides a computer readable storage medium, such as the memory 502 comprising a computer program, which is executable by the processor 501 of the data processing apparatus 500 to perform the aforementioned method steps. The computer readable storage medium can be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM; or may be a variety of devices including one or any combination of the above memories, such as a mobile phone, computer, tablet device, personal digital assistant, etc.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, performs: acquiring a drawing file; analyzing the drawing file to obtain basic data in the drawing file; generating standardized data according to basic data in a drawing file; acquiring display parameters, adjusting standardized data according to the display parameters, and acquiring display data so as to display; wherein the display parameters are obtained based on the display platform.
The computer program, when executed by the processor, further performs: analyzing the drawing file to obtain basic data in the drawing file, including: analyzing the structured data of the drawing file; wherein the structured data comprises at least: file encoding and data storage formats.
The computer program, when executed by the processor, further performs: generating standardized data according to basic data in a drawing file, wherein the standardized data comprises the following steps: performing data conversion according to the data type of the basic data and the basic graph in the drawing file to generate standardized data; the normalized data includes at least: standard geometry data and generic data.
The computer program, when executed by the processor, further performs: the display parameters at least include: a display format; adjusting the normalized data according to the display parameters, comprising: the normalized data is adjusted according to the display format.
The computer program, when executed by the processor, further performs: generating standardized data according to basic data in the drawing file, and further comprising: judging whether the plurality of basic data meet multiplexing conditions or not, and obtaining a judgment result; if the judgment result is yes, only one basic data in the plurality of basic data is reserved.
The computer program, when executed by the processor, further performs: multiplexing conditions, including: the scaling of a plurality of basic data of the same class is different; or the rotation angles of a plurality of basic data of the same class are different; or the position of a plurality of pieces of basic data of the same class is different.
The computer program, when executed by the processor, further performs: identifying descriptive characters, graphic characters and graphics in a drawing file; the characters of the explanatory characters are independently packaged and output for display; and packaging the characters of the graphics and the characters together with the graphics, and outputting and displaying the characters and the graphics.
The computer program, when executed by the processor, further performs: after the description characters, the graphic characters and the graphics in the drawing file are identified, the method comprises the following steps: outputting and displaying according to the meanings of the descriptive characters and the graphic characters in the drawing file; or outputting and displaying according to the scene of the graph in the drawing file; or outputting and displaying according to the coverage range of the graph in the drawing file.
By adopting the data processing method and the device for rapidly displaying the AutoCAD drawing, the drawing files with the DWG format and other formats are displayed through the internet with diversified thinking and multiple terminals and platforms, the drawing files with the DWG format can be preferably and directly opened and displayed, the complex operations such as online modification and verification and the like are supported after the drawing is displayed, paperless green office work is rapidly communicated, and the centralized and networked management of the drawing is very convenient. Compared with the drawing files opened in other modes, the drawing file quickly displaying is disordered in operation, has large difference with the main stream soft operation such as CAD software and the like, and is extremely poor in experience, the data processing method and the data processing device for quickly displaying the drawing can be adaptive to the current main stream software after the CAD drawing is opened on line, are high in compatibility, are familiar to the public with the functions of operation modification, labeling and the like, have no strangeness, and can quickly adapt to and meet the requirements of a large number of users.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A data processing method for rapidly displaying an AutoCAD drawing is characterized by comprising the following steps:
acquiring a drawing file;
analyzing the drawing file to obtain basic data in the drawing file;
generating standardized data according to the basic data in the drawing file;
acquiring display parameters, adjusting the standardized data according to the display parameters, and acquiring display data so as to display;
and acquiring the display parameters based on a display platform.
2. The method of claim 1, wherein parsing the drawing file to obtain basic data in the drawing file comprises:
and converting the data in the drawing file into structured or unstructured data according to file coding and data storage modes.
3. The method of claim 2, wherein generating normalized data from the base data in the drawing file comprises:
performing data conversion according to the data type of the basic data and the basic graph in the drawing file to generate standardized data;
the normalized data includes at least: standard geometry data and generic data.
4. The method of claim 3, wherein the display parameters comprise at least: a display format; adjusting the normalized data according to the display parameters, including:
adjusting the standardized data according to the display format.
5. The method of claim 3, wherein generating normalized data from the base data in the drawing file further comprises:
judging whether the plurality of basic data meet multiplexing conditions or not, and obtaining a judgment result;
if the judgment result is yes, only one basic data in the plurality of basic data is reserved.
6. The method of claim 5, wherein the multiplexing condition comprises:
the scaling of the plurality of basic data of the same class is different;
or the rotation angles of the plurality of basic data of the same class are different;
or the positions of the plurality of basic data of the same class are different.
7. The method of claim 1, further comprising:
identifying descriptive characters, graphic characters and graphics in the drawing file;
the text of the explanatory words is packaged separately and output and displayed;
and packaging the text of the graphic characters and the graphics together, and outputting and displaying.
8. The method of claim 6, wherein identifying descriptive and graphical text and graphics in the drawing file comprises:
outputting and displaying according to the meanings of the descriptive characters and the graphic characters in the drawing file;
or outputting and displaying according to the application scene of the graph in the drawing file;
or outputting and displaying according to the coverage range of the graph in the drawing file.
9. The utility model provides a data processing apparatus of show AutoCAD drawing fast which characterized in that, the device includes:
the analysis unit is used for acquiring a drawing file; analyzing the drawing file to obtain basic data in the drawing file;
the conversion unit is used for generating standardized data according to the basic data in the drawing file;
the adjusting unit is used for acquiring display parameters, adjusting the standardized data according to the display parameters, and acquiring display data so as to display the display data; and acquiring the display parameters based on a display platform.
10. An electronic device, characterized in that the electronic device comprises: memory, processor and a responsive program stored in the memory for execution by the processor, wherein the processor is responsive to the steps of the data processing method of any of claims 1 to 8 when executing the responsive program.
CN202011135671.0A 2020-10-22 2020-10-22 Data processing method and device for rapidly displaying AutoCAD drawing Pending CN112214622A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011135671.0A CN112214622A (en) 2020-10-22 2020-10-22 Data processing method and device for rapidly displaying AutoCAD drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011135671.0A CN112214622A (en) 2020-10-22 2020-10-22 Data processing method and device for rapidly displaying AutoCAD drawing

Publications (1)

Publication Number Publication Date
CN112214622A true CN112214622A (en) 2021-01-12

Family

ID=74056369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011135671.0A Pending CN112214622A (en) 2020-10-22 2020-10-22 Data processing method and device for rapidly displaying AutoCAD drawing

Country Status (1)

Country Link
CN (1) CN112214622A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112800503A (en) * 2021-01-26 2021-05-14 嘉博联合设计股份有限公司 Method and system for converting CAD drawing derived from Revit into standardized drawing
CN114172893A (en) * 2021-11-30 2022-03-11 比姆泰客信息科技(上海)有限公司 Web front-end CAD file large data volume display method based on cloud storage

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008024872A2 (en) * 2006-08-22 2008-02-28 Autodesk, Inc. Drawing interoperability between different computer-aided design applications
JP2008112387A (en) * 2006-10-31 2008-05-15 Toyota Motor Corp Cad data conversion device and method
CN103823839A (en) * 2013-12-20 2014-05-28 柳州腾龙煤电科技股份有限公司 AutoCAD symbol configuration showing method based on gallery integration
CN105160068A (en) * 2015-08-05 2015-12-16 北京恒华伟业科技股份有限公司 Drawing conversion method and apparatus
WO2016050083A1 (en) * 2014-09-29 2016-04-07 苏州四方万象信息科技有限公司 Method for converting two-dimensional image of building into three-dimensional structure
CN105975218A (en) * 2016-04-28 2016-09-28 武汉开目信息技术有限责任公司 Graphic file browsing and printing device and method based on data converter
CN107239266A (en) * 2016-03-29 2017-10-10 罗森伯格技术(昆山)有限公司 A kind of method and device for showing CAD diagram paper without plug-in unit in WEB front-end
CN110414149A (en) * 2019-07-30 2019-11-05 沈阳智朗科技有限公司 A kind of analytic method and system based on AutoCAD pel drawing
CN110516383A (en) * 2019-08-30 2019-11-29 兰州深蓝图形技术有限公司 A kind of parsing of railway signals equipment vector graphics file, display methods and device
CN110968944A (en) * 2019-11-19 2020-04-07 金现代信息产业股份有限公司 Method for displaying and operating CAD drawing at Web front end
CN111524212A (en) * 2020-04-23 2020-08-11 浙江精工钢结构集团有限公司 WebGL technology-based webpage-side CAD drawing viewing system and method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008024872A2 (en) * 2006-08-22 2008-02-28 Autodesk, Inc. Drawing interoperability between different computer-aided design applications
JP2008112387A (en) * 2006-10-31 2008-05-15 Toyota Motor Corp Cad data conversion device and method
CN103823839A (en) * 2013-12-20 2014-05-28 柳州腾龙煤电科技股份有限公司 AutoCAD symbol configuration showing method based on gallery integration
WO2016050083A1 (en) * 2014-09-29 2016-04-07 苏州四方万象信息科技有限公司 Method for converting two-dimensional image of building into three-dimensional structure
CN105160068A (en) * 2015-08-05 2015-12-16 北京恒华伟业科技股份有限公司 Drawing conversion method and apparatus
CN107239266A (en) * 2016-03-29 2017-10-10 罗森伯格技术(昆山)有限公司 A kind of method and device for showing CAD diagram paper without plug-in unit in WEB front-end
CN105975218A (en) * 2016-04-28 2016-09-28 武汉开目信息技术有限责任公司 Graphic file browsing and printing device and method based on data converter
CN110414149A (en) * 2019-07-30 2019-11-05 沈阳智朗科技有限公司 A kind of analytic method and system based on AutoCAD pel drawing
CN110516383A (en) * 2019-08-30 2019-11-29 兰州深蓝图形技术有限公司 A kind of parsing of railway signals equipment vector graphics file, display methods and device
CN110968944A (en) * 2019-11-19 2020-04-07 金现代信息产业股份有限公司 Method for displaying and operating CAD drawing at Web front end
CN111524212A (en) * 2020-04-23 2020-08-11 浙江精工钢结构集团有限公司 WebGL technology-based webpage-side CAD drawing viewing system and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CONSTANTINEXUE: "开放设计联盟介绍 ODA (Open Design Alliance) Int roduction", pages 1 - 2, Retrieved from the Internet <URL:https://blog.csdn.net/ConstantineXue/article/details/5284823> *
肖起年;: "基于DWGDirectX读写DWG图纸文件的实现", 计算机系统应用, no. 03, pages 1 - 5 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112800503A (en) * 2021-01-26 2021-05-14 嘉博联合设计股份有限公司 Method and system for converting CAD drawing derived from Revit into standardized drawing
CN112800503B (en) * 2021-01-26 2022-09-06 嘉博联合设计股份有限公司 Method and system for converting CAD drawing derived by Revit into standardized drawing
CN114172893A (en) * 2021-11-30 2022-03-11 比姆泰客信息科技(上海)有限公司 Web front-end CAD file large data volume display method based on cloud storage

Similar Documents

Publication Publication Date Title
US9026900B1 (en) Invisible overlay for dynamic annotation
CN111240669B (en) Interface generation method and device, electronic equipment and computer storage medium
CN106951479B (en) Simulation data visualization cooperation application system and method based on cloud environment
CN110415319B (en) Animation production method and device based on PPT, electronic equipment and storage medium
TW201527990A (en) A font cloud service system
CN112214622A (en) Data processing method and device for rapidly displaying AutoCAD drawing
WO2023226371A1 (en) Target object interactive reproduction control method and apparatus, device and storage medium
WO2018121367A1 (en) Method, device, and system for constructing three-dimensional model
CN113655999B (en) Page control rendering method, device, equipment and storage medium
CN113778419B (en) Method and device for generating multimedia data, readable medium and electronic equipment
WO2018226349A1 (en) Vector graphics handling processes for user applications
KR101523328B1 (en) Method of providing pose-library for three-dimensional animation character, apparatus performing the same and storage media storing the same
CN112818457A (en) BIM (building information modeling) model intelligent generation method and system based on CAD (computer-aided design) drawing
CN113821201A (en) Code development method and device, electronic equipment and storage medium
JP7309811B2 (en) Data annotation method, apparatus, electronics and storage medium
CN106776994B (en) Application method and system of engineering symbols in engineering report forms and web pages
CN115510347A (en) Presentation file conversion method and device, electronic equipment and storage medium
CN104184791A (en) Image effect extraction
KR101771473B1 (en) Method and apparatus for generating responsive webpage
WO2023035935A1 (en) Data processing method and apparatus, and electronic device and storage medium
KR101771475B1 (en) Method and apparatus for generating responsive webpage
CN114443022A (en) Method for generating page building block and electronic equipment
CN115018975A (en) Data set generation method and device, electronic equipment and storage medium
CN113781608A (en) Animation editing method and device
US10915599B2 (en) System and method for producing transferable, modular web pages

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