Nothing Special   »   [go: up one dir, main page]

CN117725641A - Web visualization method, device, equipment and medium for CAD data - Google Patents

Web visualization method, device, equipment and medium for CAD data Download PDF

Info

Publication number
CN117725641A
CN117725641A CN202311799000.8A CN202311799000A CN117725641A CN 117725641 A CN117725641 A CN 117725641A CN 202311799000 A CN202311799000 A CN 202311799000A CN 117725641 A CN117725641 A CN 117725641A
Authority
CN
China
Prior art keywords
data
cad data
cad
effective
preset
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
CN202311799000.8A
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.)
Inspur Intelligent Technology Co Ltd
Inspur Shandong Agricultural Internet Co Ltd
Original Assignee
Inspur Intelligent Technology Co Ltd
Inspur Shandong Agricultural Internet 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 Inspur Intelligent Technology Co Ltd, Inspur Shandong Agricultural Internet Co Ltd filed Critical Inspur Intelligent Technology Co Ltd
Priority to CN202311799000.8A priority Critical patent/CN117725641A/en
Publication of CN117725641A publication Critical patent/CN117725641A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the specification discloses a web visualization method, device, equipment and medium of CAD data, wherein the method comprises the following steps: determining a corresponding CAD file based on the current work task to load the CAD file into preset geographic information system software; performing dimension reduction processing on CAD data in the CAD file based on preset geographic information system software to obtain effective CAD data; carrying out coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information so as to carry out data conversion on the configured effective CAD data and obtain effective format CAD data; performing data cleaning based on the current work task and the data attribute of the CAD data in the effective format to obtain initial display CAD data; and carrying out format conversion on the initial display CAD data based on a preset conversion tool to obtain the CAD data to be displayed, so as to publish the CAD data to be displayed as web services based on a preset plugin library for display.

Description

Web visualization method, device, equipment and medium for CAD data
Technical Field
The present disclosure relates to the field of data viewing technologies, and in particular, to a method, an apparatus, a device, and a medium for web visualization of CAD data.
Background
Computer aided design (CAD, computer Aided Design) refers to tools that assist designers in designing with computers and their graphics devices. In the process of product research, development, design and manufacturing, design engineers need to frequently construct the design of the three-dimensional CAD model of the product according to the requirements of designers, auditors, manufacturing staff, clients and the like in the enterprise or outside, and repeatedly modify the design details. In the daily use process of the CAD data, namely in a scene of daily work based on the CAD data, a plurality of technicians may be required to process the complex task together, so how to access and share the CAD data by a plurality of people is an important link for realizing personnel cooperative processing in the use process of the CAD data.
The current mode of viewing CAD data is mainly to open the viewing by downloading special software, and downloading additional software also faces the risk of binding advertisements and even implanting viruses. The common CAD data can only be opened by using a local computer, so that the effect of simultaneous access and sharing of multiple persons is difficult to achieve, the online simultaneous access and viewing of multiple persons cannot be supported, and the data is difficult to directly acquire and display in a visual and simple mode, so that the work pushing speed of the collaborative operation based on the CAD data is relatively slow in daily requirement.
Disclosure of Invention
To solve the above technical problems, one or more embodiments of the present disclosure provide a method, apparatus, device, and medium for web visualization of CAD data.
One or more embodiments of the present disclosure adopt the following technical solutions:
one or more embodiments of the present specification provide a web visualization method of CAD data, the method comprising:
determining a corresponding CAD file based on a current work task so as to load the corresponding CAD file into preset geographic information system software;
performing dimension reduction processing on the CAD data in the CAD file based on the preset geographic information system software to obtain effective CAD data of an effective data layer;
carrying out coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information so as to carry out data conversion on the configured effective CAD data and obtain effective format CAD data;
based on the current work task and the data attribute of the effective format CAD data, carrying out data cleaning on the effective format CAD data to obtain initial display CAD data;
and carrying out format conversion on the initial display CAD data based on a preset conversion tool to obtain the CAD data to be displayed, so as to release the CAD data to be displayed as web services based on a preset plugin library for display.
Optionally, in one or more embodiments of the present disclosure, determining a corresponding CAD file based on a current task, and loading the corresponding CAD file into preset geographic information system software, including:
inquiring a CAD file corresponding to a current work task according to an acquisition instruction corresponding to the current work task uploaded by a user;
determining whether the CAD file can be acquired or not based on the role information of the user and the authority information of the CAD file;
if yes, each layer file corresponding to the CAD file is selected, and each layer file is loaded into a workbench of the preset geographic information system software; the preset geographic information system software comprises the following steps: arcMap tool.
Optionally, in one or more embodiments of the present disclosure, performing, based on the preset geographic information system software, dimension reduction processing on CAD data in the CAD file to obtain effective CAD data of an effective data layer, which specifically includes:
acquiring a component popup layer of each layer file in the CAD file based on the preset geographic information system software;
determining a fixed component popup layer of each layer file in the CAD file based on the CAD version corresponding to the CAD file;
and deleting the CAD data corresponding to the fixed component ejection layer in the CAD file to obtain effective CAD data of the effective data layer.
Optionally, in one or more embodiments of the present disclosure, the configuring the coordinate system for the effective CAD data according to preset projection coordinate configuration information specifically includes:
acquiring data frame attributes corresponding to each layer in the effective CAD data based on the preset geographic information system software;
triggering a corresponding projection coordinate system according to the tab corresponding to the data frame attribute;
carrying out coordinate system custom configuration on the effective CAD data corresponding to each layer according to the corresponding projection coordinate system configuration information; wherein the projection coordinate system configuration information includes: scale range, banded range.
Optionally, in one or more embodiments of the present disclosure, performing data conversion on the configured effective CAD data to obtain effective format CAD data, which specifically includes:
generating the effective CAD data preset export instruction based on preset export parameters; wherein the preset derived parameters include: element selection range, type selection range;
performing data conversion on the corresponding effective CAD data based on the preset export instruction to obtain effective format CAD data; the data format of the CAD data in the effective format is a grid pattern data format.
Optionally, in one or more embodiments of the present disclosure, based on the data attribute of the current task and the valid format CAD data, performing data cleaning on the valid format CAD data to obtain initial presentation CAD data, which specifically includes:
determining a data attribute matched with the current work task based on the current work task;
acquiring a data structure of the effective format CAD data to determine the data attribute of each effective format CAD data based on editing information of the data structure;
determining whether the data attribute matched with the current work task is consistent with the data attribute of the CAD data in the effective format;
if the CAD data are inconsistent, deleting the CAD data in the effective format to obtain the filtered initial display CAD data.
Optionally, in one or more embodiments of the present disclosure, format converting the initial CAD data based on a preset converting tool to obtain CAD data to be displayed, so as to publish the CAD data to be displayed as a web service based on a preset plugin library, which specifically includes:
performing data conversion on the initial display data based on a preset conversion tool in the preset geographic information system software to obtain CAD data to be displayed; the format of the CAD data to be displayed is a geoJson format;
acquiring a specified database corresponding to web display in the preset plugin library, and loading the CAD data to be displayed to a web terminal for rendering based on a loading function in the specified database to obtain a web page project of the web terminal;
and publishing the webpage engineering as a web service through a server corresponding to the web terminal so as to acquire the CAD data to be displayed based on the web terminal for displaying.
One or more embodiments of the present specification provide a web visualization apparatus of CAD data, the apparatus comprising:
the loading unit is used for determining a corresponding CAD file based on the current work task so as to load the corresponding CAD file into preset geographic information system software;
the dimension reduction unit is used for carrying out dimension reduction processing on the CAD data in the CAD file based on the preset geographic information system software to obtain effective CAD data of an effective data layer;
the conversion unit is used for carrying out coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information so as to carry out data conversion on the configured effective CAD data and obtain effective format CAD data;
the data cleaning unit is used for cleaning the data of the effective format CAD data based on the current work task and the data attribute of the effective format CAD data to obtain initial display CAD data;
the display unit is used for carrying out format conversion on the initial display CAD data based on a preset conversion tool to obtain the CAD data to be displayed, so that the CAD data to be displayed is published as web services based on a preset plugin library to be displayed.
One or more embodiments of the present specification provide a web visualization apparatus for CAD data, the apparatus comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
determining a corresponding CAD file based on a current work task so as to load the corresponding CAD file into preset geographic information system software;
performing dimension reduction processing on the CAD data in the CAD file based on the preset geographic information system software to obtain effective CAD data of an effective data layer;
carrying out coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information so as to carry out data conversion on the configured effective CAD data and obtain effective format CAD data;
based on the current work task and the data attribute of the effective format CAD data, carrying out data cleaning on the effective format CAD data to obtain initial display CAD data;
and carrying out format conversion on the initial display CAD data based on a preset conversion tool to obtain the CAD data to be displayed, so as to release the CAD data to be displayed as web services based on a preset plugin library for display.
One or more embodiments of the present specification provide a non-volatile computer storage medium storing computer-executable instructions configured to:
determining a corresponding CAD file based on a current work task so as to load the corresponding CAD file into preset geographic information system software;
performing dimension reduction processing on the CAD data in the CAD file based on the preset geographic information system software to obtain effective CAD data of an effective data layer;
carrying out coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information so as to carry out data conversion on the configured effective CAD data and obtain effective format CAD data;
based on the current work task and the data attribute of the effective format CAD data, carrying out data cleaning on the effective format CAD data to obtain initial display CAD data;
and carrying out format conversion on the initial display CAD data based on a preset conversion tool to obtain the CAD data to be displayed, so as to release the CAD data to be displayed as web services based on a preset plugin library for display.
The above-mentioned at least one technical scheme that this description embodiment adopted can reach following beneficial effect:
and determining a corresponding CAD file based on the current work task, and loading the corresponding CAD file into preset geographic information system software so as to perform dimension reduction processing on CAD data in the CAD file based on the preset geographic information system software, thereby reducing the processing pressure of invalid data processing on memory calculation and further improving the processing efficiency of web visualization. The method has the advantages that the method obtains the initial display CAD data by carrying out data cleaning on the CAD data in the effective format, realizes the filtering of irrelevant attribute data, reduces the pressure of subsequent rendering, directly accesses and views the relevant data through a browser on the premise of not installing relevant software tools by carrying out format conversion on the initial display CAD data and then releasing the initial display CAD data into web services, thereby improving convenience and widening the display form of the CAD data.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a schematic flow chart of a web visualization method for CAD data according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of CAD data in a CAD file in an application scenario provided in an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a data attribute viewing interface of CAD data in an application scenario according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of CAD data in an effective format in an application scenario provided in the embodiments of the present disclosure;
fig. 5 is a schematic diagram of web service presentation in an application scenario provided in an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of an internal structure of a web visualization device for CAD data according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a web visualization device for CAD data according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram of an internal structure of a nonvolatile storage medium according to an embodiment of the present disclosure.
Detailed Description
The embodiment of the specification provides a web visualization method, device, equipment and medium for CAD data.
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present disclosure.
As shown in fig. 1, in one or more embodiments of the present disclosure, a flow diagram of a web visualization method for CAD data is provided. As can be seen from fig. 1, in one or more embodiments of the present description, a CAD data web visualization method, the method includes the steps of:
s101: and determining a corresponding CAD file based on the current work task so as to load the corresponding CAD file into preset geographic information system software.
In order to realize the viewing of CAD data through a browser without installing a related software tool, in the embodiment of the present disclosure, CAD files to be viewed need to be determined first so as to process CAD data therein, so that corresponding CAD files are determined according to a current task, and thus, the corresponding CAD files are loaded into preset geographic information system software, that is, an arcMap tool. In the tool. Specifically, in one or more embodiments of the present disclosure, determining a corresponding CAD file based on a current task, and loading the corresponding CAD file into preset geographic information system software, which specifically includes the following procedures:
firstly, according to an acquisition instruction corresponding to a current work task uploaded by a user, inquiring a CAD file corresponding to the current work task. Then, in order to ensure the security of the CAD data, it is necessary to determine whether the current user has the right to acquire the CAD file according to the role information of the user and the right information of the CAD file, thereby determining whether the CAD file can be acquired. If yes, each layer file corresponding to the CAD file is selected, and then each layer file is loaded into a workbench of preset geographic information system software. In one embodiment of an application scenario in the present specification, when a CAD file is loaded into preset geographic information system software, first, a CAD data ready to be loaded is imported into an arcMap tool, then, by selecting a layer, data is selectively added to the arcMap tool, and the CAD data is loaded into a workbench, and if the CAD file is a plurality of CAD files, the above operations are repeated.
S102: and performing dimension reduction processing on the CAD data in the CAD file based on the preset geographic information system software to obtain effective CAD data of the effective data layer.
In order to reduce the processing pressure of invalid data transmission on memory calculation, in the embodiment of the present disclosure, the CAD data shown in fig. 2 in the CAD file is subjected to dimension reduction processing according to preset geographic information system software, so as to obtain valid CAD data of the valid data layer, and then subsequent analysis processing is performed. Specifically, in one or more embodiments of the present disclosure, the dimension reduction process is performed on CAD data in a CAD file based on preset geographic information system software to obtain effective CAD data of an effective data layer, which specifically includes the following procedures:
firstly, based on preset geographic information system software, a component popup layer, namely a layer, of each layer file in the CAD file is obtained. And then, determining the fixed component popup layer of each layer file in the CAD file according to the CAD version corresponding to the CAD file. And deleting the CAD data corresponding to the fixed component ejection layer in the CAD file to obtain the effective CAD data of the effective data layer. That is, after the CAD data is imported into the preset geographic information system software based on the step S101 in a certain application scenario in the present specification, each CAD layer is generally composed of a plurality of layers, so that the invalid layer of the CAD is removed to obtain the valid CAD data of the valid data layer, and the deletion of the invalid layer reduces the data processing amount of the subsequent processing and the web rendering, so as to further improve the processing efficiency of the web visualization.
S103: and carrying out coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information so as to carry out data conversion on the configured effective CAD data and obtain the CAD data in an effective format.
Since the CAD data layer in the imported CAD file is free of a coordinate system. Therefore, in order to ensure the reliability of the subsequent data conversion, in one or more embodiments of the present disclosure, the effective CAD data is configured according to the preset projection coordinate configuration information, so as to implement data conversion on the configured effective CAD data, and obtain the CAD data in an effective format. Specifically, in one or more embodiments of the present disclosure, the coordinate system configuration is performed on the effective CAD data according to preset projection coordinate configuration information, which specifically includes the following procedures:
firstly, acquiring data frame attributes corresponding to each layer in effective CAD data based on preset geographic information system software. And triggering a projection coordinate system corresponding to the tab according to the tab corresponding to the data frame attribute. And then carrying out coordinate system custom configuration on the effective CAD data corresponding to each layer according to the corresponding projection coordinate system configuration information. The projection coordinate system configuration information includes: scale range, banded range. In a certain application scene of the specification, a projection coordinate system is unfolded through a coordinate system tab corresponding to the data frame attribute, and then proper projection coordinates are selected according to a CAD scale. Typically, a scale of 1:25000 and 1:50000 is used, and 6-degree banded projection is selected; the 1:10000 scale adopts 3-degree zonation.
Further, in one or more embodiments of the present disclosure, data conversion is performed on the configured valid CAD data to obtain valid format CAD data, which specifically includes the following procedures:
and generating a valid CAD data preset export instruction based on the preset export parameters. Wherein, preset derived parameters include: element selection range, type selection range. And then, carrying out data conversion on the corresponding effective CAD data based on a preset deriving instruction to obtain the CAD data in the effective format. The data format of the CAD data in the effective format is a grid pattern data format. In an embodiment of an application scenario in the present specification, effective format CAD data can be obtained by selecting a single Layer in a Group Layer Group, and then by selecting all elements and database types, deriving the single Layer data into shp data.
S104: and based on the current work task and the data attribute of the CAD data in the effective format, carrying out data cleaning on the CAD data in the effective format to obtain the CAD data for initial display.
Because the high-voltage line data and the low-voltage line data exist in the CAD data in the effective format in the aspect of circuit operation after the data is successfully derived, when the high-voltage line data is actually required to be rendered, the data is required to be cleaned by executing relevant processing on the data attribute. Thus, the method is applicable to a variety of applications. In the embodiment of the specification, according to the current work task and the data attribute of the CAD data in the effective format, the CAD data in the effective format is subjected to data cleaning to obtain the CAD data for initial display. Specifically, in one or more embodiments of the present disclosure, based on a current task and a data attribute of the CAD data in an effective format, the CAD data in the effective format is subjected to data cleaning to obtain the CAD data for initial presentation, which specifically includes the following steps:
firstly, determining data attributes matched with a current work task according to the current work task of a user, wherein an acquisition interface schematic diagram of the data attributes is shown in fig. 3, and after acquiring a data structure of the CAD data in the effective format, determining the data attributes of the CAD data in each effective format according to editing information of the data structure. And determining whether to perform data cleaning by determining whether the data attribute matched with the current work task is consistent with the data attribute of the CAD data in the effective format. If not, the valid format CAD data is deleted to obtain filtered initial presentation CAD data as shown in FIG. 4.
In addition, in an embodiment of an application scenario in the present specification, after a layer to be processed is selected, a data format of all data in an attribute table is obtained, and then corresponding data attributes can be obtained through editing information, and batch selection is performed on the data according to the attributes. After the batch selection, data editing can be performed, namely, the field attribute value batch editing is performed on the selected pieces of data through an attribute frame interface corresponding to the data attribute.
S105: and carrying out format conversion on the initial display CAD data based on a preset conversion tool to obtain the CAD data to be displayed, so as to release the CAD data to be displayed as web services based on a preset plugin library for display.
In order to realize cross-browser data presentation, in the embodiment of the present disclosure, data conversion is required so that a browser can directly access and view corresponding CAD data to be presented. Therefore, in the embodiment of the present disclosure, after the initial CAD data is obtained based on the step S104, format conversion is performed according to a preset conversion tool, so as to obtain CAD data to be displayed, so that the CAD data to be displayed is published as a web service according to a preset plugin library for displaying. Specifically, in one or more embodiments of the present disclosure, format conversion is performed on initial CAD data based on a preset conversion tool to obtain CAD data to be displayed, so that the CAD data to be displayed is published as a web service based on a preset plugin library for display, and the method specifically includes the following steps:
firstly, carrying out data conversion on initial display data based on a preset conversion tool in preset geographic information system software to obtain CAD data to be displayed. The format of the CAD data to be displayed is geoJson format. And then acquiring a designated database corresponding to the web presentation in the preset plugin library, and loading CAD data to be presented to the web end according to a loading function in the designated database to render the CAD data to obtain the web engineering of the web end. And publishing the webpage engineering as a web service through a server corresponding to the web terminal, so that CAD data to be displayed can be acquired based on the web terminal to be displayed as shown in FIG. 5. In a certain practical application scene of the specification, by means of a Cesium plugin library, the method is a cross-platform and cross-browser JavaScript library for displaying three-dimensional earth and map, specifically a Cesium GeoJsonDataSource.load () method, and the GeoJson data are loaded, so that CAD data are rendered and presented on a web side. The whole webpage engineering is published into a web service by using an nginx web server, and related data can be directly accessed and viewed through a browser later.
As shown in fig. 6, the embodiment of the present disclosure provides a schematic diagram of the internal structure of a web visualization device for CAD data. As can be seen from fig. 6, in one or more embodiments of the present disclosure, an apparatus includes:
the loading unit 601 is configured to determine a corresponding CAD file based on a current task, so as to load the corresponding CAD file into preset geographic information system software;
the dimension reduction unit 602 is configured to perform dimension reduction processing on CAD data in the CAD file based on the preset geographic information system software, so as to obtain effective CAD data of an effective data layer;
a conversion unit 603, configured to perform coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information, so as to perform data conversion on the configured effective CAD data, and obtain effective format CAD data;
the data cleaning unit 604 is configured to perform data cleaning on the valid format CAD data based on the current task and the data attribute of the valid format CAD data, so as to obtain initial presentation CAD data;
and the display unit 605 is configured to perform format conversion on the initial display CAD data based on a preset conversion tool, and obtain CAD data to be displayed, so as to issue the CAD data to be displayed as a web service based on a preset plugin library for display.
As shown in fig. 7, a schematic diagram of the internal structure of a web visualization device for CAD data is provided in one or more embodiments of the present description. As can be seen from fig. 7, in one or more embodiments of the present description, a web visualization apparatus for CAD data, the apparatus includes:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
determining a corresponding CAD file based on a current work task so as to load the corresponding CAD file into preset geographic information system software;
performing dimension reduction processing on the CAD data in the CAD file based on the preset geographic information system software to obtain effective CAD data of an effective data layer;
carrying out coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information so as to carry out data conversion on the configured effective CAD data and obtain effective format CAD data;
based on the current work task and the data attribute of the effective format CAD data, carrying out data cleaning on the effective format CAD data to obtain initial display CAD data;
and carrying out format conversion on the initial display CAD data based on a preset conversion tool to obtain the CAD data to be displayed, so as to release the CAD data to be displayed as web services based on a preset plugin library for display.
As shown in fig. 8, in one or more embodiments of the present specification, a schematic internal structure of a nonvolatile storage medium is provided. As can be seen from fig. 8, in one or more embodiments of the present description, a non-volatile storage medium stores computer-executable instructions capable of:
determining a corresponding CAD file based on a current work task so as to load the corresponding CAD file into preset geographic information system software;
performing dimension reduction processing on the CAD data in the CAD file based on the preset geographic information system software to obtain effective CAD data of an effective data layer;
carrying out coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information so as to carry out data conversion on the configured effective CAD data and obtain effective format CAD data;
based on the current work task and the data attribute of the effective format CAD data, carrying out data cleaning on the effective format CAD data to obtain initial display CAD data;
and carrying out format conversion on the initial display CAD data based on a preset conversion tool to obtain the CAD data to be displayed, so as to release the CAD data to be displayed as web services based on a preset plugin library for display.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, devices, non-volatile computer storage medium embodiments, the description is relatively simple, as it is substantially similar to method embodiments, with reference to the section of the method embodiments being relevant.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing is merely one or more embodiments of the present description and is not intended to limit the present description. Various modifications and alterations to one or more embodiments of this description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of one or more embodiments of the present description, is intended to be included within the scope of the claims of the present description.

Claims (10)

1. A web visualization method of CAD data, the method comprising:
determining a corresponding CAD file based on a current work task so as to load the corresponding CAD file into preset geographic information system software;
performing dimension reduction processing on the CAD data in the CAD file based on the preset geographic information system software to obtain effective CAD data of an effective data layer;
carrying out coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information so as to carry out data conversion on the configured effective CAD data and obtain effective format CAD data;
based on the current work task and the data attribute of the effective format CAD data, carrying out data cleaning on the effective format CAD data to obtain initial display CAD data;
and carrying out format conversion on the initial display CAD data based on a preset conversion tool to obtain the CAD data to be displayed, so as to release the CAD data to be displayed as web services based on a preset plugin library for display.
2. The web visualization method of CAD data according to claim 1, wherein determining a corresponding CAD file based on a current task, and loading the corresponding CAD file into preset geographic information system software, specifically comprises:
inquiring a CAD file corresponding to a current work task according to an acquisition instruction corresponding to the current work task uploaded by a user;
determining whether the CAD file can be acquired or not based on the role information of the user and the authority information of the CAD file;
if yes, each layer file corresponding to the CAD file is selected, and each layer file is loaded into a workbench of the preset geographic information system software; the preset geographic information system software comprises the following steps: arcMap tool.
3. The web visualization method of CAD data according to claim 1, wherein the performing the dimension reduction process on the CAD data in the CAD file based on the preset geographic information system software, to obtain the effective CAD data of the effective data layer, specifically comprises:
acquiring a component popup layer of each layer file in the CAD file based on the preset geographic information system software;
determining a fixed component popup layer of each layer file in the CAD file based on the CAD version corresponding to the CAD file;
and deleting the CAD data corresponding to the fixed component ejection layer in the CAD file to obtain effective CAD data of the effective data layer.
4. The web visualization method of CAD data according to claim 1, wherein the coordinate system configuration of the effective CAD data according to preset projection coordinate configuration information specifically comprises:
acquiring data frame attributes corresponding to each layer in the effective CAD data based on the preset geographic information system software;
triggering a corresponding projection coordinate system according to the tab corresponding to the data frame attribute;
carrying out coordinate system custom configuration on the effective CAD data corresponding to each layer according to the corresponding projection coordinate system configuration information; wherein the projection coordinate system configuration information includes: scale range, banded range.
5. The web visualization method of CAD data according to claim 1, wherein the performing data conversion on the configured effective CAD data to obtain CAD data in an effective format specifically comprises:
generating the effective CAD data preset export instruction based on preset export parameters; wherein the preset derived parameters include: element selection range, type selection range;
performing data conversion on the corresponding effective CAD data based on the preset export instruction to obtain effective format CAD data; the data format of the CAD data in the effective format is a grid pattern data format.
6. The web visualization method of CAD data according to claim 1, wherein the performing data cleaning on the CAD data in the effective format based on the data attribute of the CAD data in the effective format and the current task, to obtain the initial presentation CAD data, specifically comprises:
determining a data attribute matched with the current work task based on the current work task;
acquiring a data structure of the effective format CAD data to determine the data attribute of each effective format CAD data based on editing information of the data structure;
determining whether the data attribute matched with the current work task is consistent with the data attribute of the CAD data in the effective format;
if the CAD data are inconsistent, deleting the CAD data in the effective format to obtain the filtered initial display CAD data.
7. The web visualization method of CAD data according to claim 1, wherein format conversion is performed on the initially displayed CAD data based on a preset conversion tool, so as to obtain CAD data to be displayed, so as to publish the CAD data to be displayed as a web service based on a preset plugin library, and specifically comprising:
performing data conversion on the initial display data based on a preset conversion tool in the preset geographic information system software to obtain CAD data to be displayed; the format of the CAD data to be displayed is a geoJson format;
acquiring a specified database corresponding to web display in the preset plugin library, and loading the CAD data to be displayed to a web terminal for rendering based on a loading function in the specified database to obtain a web page project of the web terminal;
and publishing the webpage engineering as a web service through a server corresponding to the web terminal so as to acquire the CAD data to be displayed based on the web terminal for displaying.
8. A web visualization apparatus for CAD data, the apparatus comprising:
the loading unit is used for determining a corresponding CAD file based on the current work task so as to load the corresponding CAD file into preset geographic information system software;
the dimension reduction unit is used for carrying out dimension reduction processing on the CAD data in the CAD file based on the preset geographic information system software to obtain effective CAD data of an effective data layer;
the conversion unit is used for carrying out coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information so as to carry out data conversion on the configured effective CAD data and obtain effective format CAD data;
the data cleaning unit is used for cleaning the data of the effective format CAD data based on the current work task and the data attribute of the effective format CAD data to obtain initial display CAD data;
the display unit is used for carrying out format conversion on the initial display CAD data based on a preset conversion tool to obtain the CAD data to be displayed, so that the CAD data to be displayed is published as web services based on a preset plugin library to be displayed.
9. A web visualization device for CAD data, the device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
determining a corresponding CAD file based on a current work task so as to load the corresponding CAD file into preset geographic information system software;
performing dimension reduction processing on the CAD data in the CAD file based on the preset geographic information system software to obtain effective CAD data of an effective data layer;
carrying out coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information so as to carry out data conversion on the configured effective CAD data and obtain effective format CAD data;
based on the current work task and the data attribute of the effective format CAD data, carrying out data cleaning on the effective format CAD data to obtain initial display CAD data;
and carrying out format conversion on the initial display CAD data based on a preset conversion tool to obtain the CAD data to be displayed, so as to release the CAD data to be displayed as web services based on a preset plugin library for display.
10. A non-volatile storage medium storing computer-executable instructions, the computer-executable instructions being capable of:
determining a corresponding CAD file based on a current work task so as to load the corresponding CAD file into preset geographic information system software;
performing dimension reduction processing on the CAD data in the CAD file based on the preset geographic information system software to obtain effective CAD data of an effective data layer;
carrying out coordinate system configuration on the effective CAD data according to preset projection coordinate configuration information so as to carry out data conversion on the configured effective CAD data and obtain effective format CAD data;
based on the current work task and the data attribute of the effective format CAD data, carrying out data cleaning on the effective format CAD data to obtain initial display CAD data;
and carrying out format conversion on the initial display CAD data based on a preset conversion tool to obtain the CAD data to be displayed, so as to release the CAD data to be displayed as web services based on a preset plugin library for display.
CN202311799000.8A 2023-12-25 2023-12-25 Web visualization method, device, equipment and medium for CAD data Pending CN117725641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311799000.8A CN117725641A (en) 2023-12-25 2023-12-25 Web visualization method, device, equipment and medium for CAD data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311799000.8A CN117725641A (en) 2023-12-25 2023-12-25 Web visualization method, device, equipment and medium for CAD data

Publications (1)

Publication Number Publication Date
CN117725641A true CN117725641A (en) 2024-03-19

Family

ID=90199747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311799000.8A Pending CN117725641A (en) 2023-12-25 2023-12-25 Web visualization method, device, equipment and medium for CAD data

Country Status (1)

Country Link
CN (1) CN117725641A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160246899A1 (en) * 2015-02-25 2016-08-25 Onshape Inc. Multi-User Cloud Parametric Feature-Based 3D CAD System
CN111524212A (en) * 2020-04-23 2020-08-11 浙江精工钢结构集团有限公司 WebGL technology-based webpage-side CAD drawing viewing system and method
CN113792241A (en) * 2021-09-26 2021-12-14 上海数慧系统技术有限公司 Method and related device for overlaying and browsing DWG (discrete wavelet packet) file on Web map
CN114169027A (en) * 2021-12-16 2022-03-11 福建永福信息科技有限公司 Collaborative drawing method, collaborative client and collaborative system based on CAD platform
CN115375812A (en) * 2022-07-13 2022-11-22 上海数慧系统技术有限公司 CAD data rendering method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160246899A1 (en) * 2015-02-25 2016-08-25 Onshape Inc. Multi-User Cloud Parametric Feature-Based 3D CAD System
CN111524212A (en) * 2020-04-23 2020-08-11 浙江精工钢结构集团有限公司 WebGL technology-based webpage-side CAD drawing viewing system and method
CN113792241A (en) * 2021-09-26 2021-12-14 上海数慧系统技术有限公司 Method and related device for overlaying and browsing DWG (discrete wavelet packet) file on Web map
CN114169027A (en) * 2021-12-16 2022-03-11 福建永福信息科技有限公司 Collaborative drawing method, collaborative client and collaborative system based on CAD platform
CN115375812A (en) * 2022-07-13 2022-11-22 上海数慧系统技术有限公司 CAD data rendering method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
付喜梅;梁家智;: "异构CAD协同设计系统的集成与实现", 电脑与信息技术, no. 06, 15 December 2007 (2007-12-15), pages 15 - 18 *
刘志红, 涂晓斌, 杨健: "CAD文件的网上发布、管理系统设计与实现", 计算机与现代化, no. 01, 30 January 2004 (2004-01-30), pages 50 - 52 *

Similar Documents

Publication Publication Date Title
US8775923B1 (en) Web page restoration
CN105528418B (en) A kind of design documentation generation method and device
CN105260170B (en) A kind of accident deducing manoeuver method and system based on case
CN109543162A (en) More diagrammatic representation method, apparatus, computer equipment and the storage medium of data
EP3679496B1 (en) Method and device for infrastructure design using 3d reality data
CN106502699A (en) A kind of five application page processing method, apparatus and system
US20080288471A1 (en) Apparatus and method for providing a data marketplace
CN110110114B (en) Visualization method, device and storage medium for multi-source earth observation image processing
US10417924B2 (en) Visual work instructions for assembling product
CN110990345A (en) Method and device for online preview of Excel file
CN106933887A (en) A kind of data visualization method and device
CN108415697B (en) Configuration method and device of visual component
CN111176643A (en) Method for generating subsystem home page and computer readable storage medium
WO2018226349A1 (en) Vector graphics handling processes for user applications
CN105590241B (en) Self-adaptive electronic bill implementation method and system
CN113468261B (en) Method and system for constructing entity relationship of Internet of things based on graphic editing engine
CN109063223B (en) BIM model light weight method and device and BIM model processing method and system
CN117725641A (en) Web visualization method, device, equipment and medium for CAD data
CN103795799B (en) A kind of long-distance monitoring method and system
US20070225953A1 (en) Management system and management method of CAD data
CN108153845B (en) Method and device for exporting background image data
JP2018041177A (en) Information processing device, information processing method and program
CN109725973A (en) A kind of data processing method and data processing equipment
CN115934637A (en) Drawing file management method and device, storage medium and electronic equipment
KR102108574B1 (en) System and method for providing image file containing copyright information

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