CN113568552B - Data structure comparison result display method and device and computer storage medium - Google Patents

Data structure comparison result display method and device and computer storage medium Download PDF

Info

Publication number
CN113568552B
CN113568552B CN202110871945.0A CN202110871945A CN113568552B CN 113568552 B CN113568552 B CN 113568552B CN 202110871945 A CN202110871945 A CN 202110871945A CN 113568552 B CN113568552 B CN 113568552B
Authority
CN
China
Prior art keywords
cad data
version
part number
version cad
marking
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.)
Active
Application number
CN202110871945.0A
Other languages
Chinese (zh)
Other versions
CN113568552A (en
Inventor
蔡蕾
杜宏艳
李鑫
储亚峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chery Automobile Co Ltd
Original Assignee
Chery Automobile 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 Chery Automobile Co Ltd filed Critical Chery Automobile Co Ltd
Priority to CN202110871945.0A priority Critical patent/CN113568552B/en
Publication of CN113568552A publication Critical patent/CN113568552A/en
Application granted granted Critical
Publication of CN113568552B publication Critical patent/CN113568552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/26Visual data mining; Browsing structured data
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Geometry (AREA)
  • Databases & Information Systems (AREA)
  • Evolutionary Computation (AREA)
  • Computational Linguistics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Automation & Control Theory (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Processing Or Creating Images (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a comparison result display method and device of a data structure and computer storage, and belongs to the technical field of automobiles. The method comprises the following steps: acquiring first version CAD data and second version CAD data of a target automobile, wherein the data use time of the first version CAD data is earlier than that of the second version CAD data; preprocessing the first version CAD data and the second version CAD data; comparing the preprocessed first version CAD data with the preprocessed second version CAD data according to a comparison rule; and visually displaying the comparison result on the first-version CAD data and the second-version CAD data through the color identification information. The embodiment of the application can compare the first version CAD data with the second version CAD data according to the comparison rule, so that users do not need to compare one by one, the comparison time is saved, the accuracy and the efficiency of comparison are improved, and the development period of a target automobile is shortened.

Description

Data structure comparison result display method and device and computer storage medium
Technical Field
The embodiment of the application relates to the technical field of automobiles, in particular to a comparison result display method and device of a data structure and a computer storage medium.
Background
With the rapid development of the automobile industry, competition in the industry is also becoming more and more intense. How to develop competitive products with the shortest period is a key to ensure the competitiveness of enterprises, wherein collaborative development is a key to shorten the development period, and collaborative development is independent of the support of CAD data of the products. At present, the application of the CAD data of the product almost covers the whole life cycle of product development, and is continuously and iteratively updated in the whole development process, and the change of the composition or the position of any one assembly numerical model can influence the safety, the performance, the arrangement space, the process, the logistics and other aspects of the automobile, if the related influence is discovered at the later stage of the project, reworking can be caused, time and labor are wasted, and even the stranding of the whole project can be caused, so that the enterprise cost is increased. Thus, it is often desirable to quickly identify differences in the CAD data structures of the two versions.
At present, a worker compares new-version CAD data with old-version CAD data one by one, but because manual comparison is long in time consumption and low in efficiency, difference result recording and checking are not visual, and a omission phenomenon easily occurs in the comparison process, the development period of an automobile is prolonged.
Disclosure of Invention
The embodiment of the application provides a comparison result display method and device of a data structure and a computer storage medium, which can be used for solving the problems of long data comparison time consumption, low efficiency, poor accuracy and poor display effect in the related technology, and long whole vehicle development period. The technical scheme is as follows:
in one aspect, a method for displaying a comparison result of a data structure is provided, the method comprising:
Acquiring first-version CAD (Computer AIDED DESIGN, computer-aided design) data and second-version CAD data of a target automobile, wherein the data use time of the first-version CAD data is earlier than the data use time of the second-version CAD data;
preprocessing the first version CAD data and the second version CAD data;
Comparing the preprocessed first version CAD data with the second version CAD data according to a comparison rule;
and visually displaying the comparison result on the first-version CAD data and the second-version CAD data through color identification information.
In some embodiments, the preprocessing the first version CAD data and the second version CAD data includes:
And storing the part numbers, the hierarchy information and the coordinate information of the parts in the first version CAD data and the second version CAD data into a specified file.
In some embodiments, before the preprocessing the first version CAD data and the second version CAD data, the method further includes:
determining whether the first version CAD data and the second version CAD data are issued according to the automobile identification of the target automobile;
And repairing the naming of the parts in the first version CAD data and the second version CAD data when the first version CAD data and the second version CAD data are not released.
In some embodiments, the comparing the preprocessed first version CAD data with the second version CAD data according to a comparison rule includes:
Searching the second version CAD data for a reference part number which is the same as a target part number by taking the first version CAD data structure as a reference, wherein the target part number is the part number of any part in the first version CAD data;
When the reference part number does not exist in the second version CAD data, performing first scene marking and first marking value marking at a position corresponding to the reference part number in the first version CAD data;
And when the reference part number exists in the second version CAD data, comparing the first version CAD data with the second version CAD data according to the level information and the coordinate information of the reference part number and the level information and the coordinate information of the target part number.
In some embodiments, the comparing the first version CAD data with the second version CAD data according to the hierarchy information and coordinate information of the reference part number and the hierarchy information and coordinate information of the target part number when the reference part number is present in the second version CAD data comprises:
determining whether the hierarchical information and the coordinate information of the reference part number are identical to the hierarchical information and the coordinate information of the target part number, respectively;
when the level information of the reference part number is inconsistent with the level information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, performing second scene marking and second marking value marking at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the hierarchy information of the reference part number is inconsistent with the hierarchy information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, third scene marking and third marking value marking are carried out at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the level information of the reference part number is consistent with the level information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, fourth scene marking and fourth marking value marking are carried out at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the hierarchy information of the reference part number is consistent with the hierarchy information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, fifth scene marking and fifth marking value marking are carried out at the position corresponding to the target part number in the first edition of CAD data and the position corresponding to the reference part number in the second edition of CAD data;
And searching the part numbers which are not marked in the second version CAD data, and marking a sixth scene mark and a sixth mark value at the positions corresponding to the part numbers which are not marked in the second version CAD data.
In some embodiments, after comparing the preprocessed first version CAD data with the second version CAD data according to the comparison rule, the method further comprises:
and writing all scene marks and mark values into corresponding positions of the structure files of the first version CAD data and the second version CAD data, wherein the scene marks and the mark values are used for representing the difference between the second version CAD data and the first version CAD data.
In some embodiments, the visually displaying the comparison results on the first version CAD data and the second version CAD data by color identification information comprises:
And when a visual viewing instruction is received, displaying the first version CAD data and the second version CAD data carrying the scene mark and the mark value mark, wherein different scene marks and different mark value marks correspond to different display colors in the first version CAD data and the second version CAD data.
In some embodiments, the displaying the first version CAD data and the second version CAD data carrying the scene mark and the mark value mark when the visual inspection instruction is received comprises:
when the visual checking instruction carries a structure checking range, displaying first version CAD data and second version CAD data carrying scene marks and mark value marks in the structure checking range, and hiding parts which do not accord with the structure checking range in the first version CAD data and the second version CAD data.
In another aspect, there is provided a comparison result display apparatus of a data structure, the apparatus comprising:
the acquisition module is used for acquiring first version CAD data and second version CAD data of the target automobile, wherein the data use time of the first version CAD data is earlier than that of the second version CAD data;
The preprocessing module is used for preprocessing the first version CAD data and the second version CAD data;
the comparison module is used for comparing the preprocessed first version CAD data with the second version CAD data according to comparison rules;
And the display module is used for visually displaying the comparison result on the first-version CAD data and the second-version CAD data through the color identification information.
In some embodiments, the preprocessing module is to:
And storing the part numbers, the hierarchy information and the coordinate information of the parts in the first version CAD data and the second version CAD data into a specified file.
In some embodiments, the apparatus further comprises:
the determining module is used for determining whether the first version CAD data and the second version CAD data are issued according to the automobile identification of the target automobile;
And the repair module is used for repairing the names of the parts in the first version CAD data and the second version CAD data when the first version CAD data and the second version CAD data are not released.
In some embodiments, the contrast module comprises:
The searching sub-module is used for searching the second version CAD data for the same reference part number as a target part number by taking the first version CAD data structure as a reference, wherein the target part number is the part number of any part in the first version CAD data;
A marking sub-module, configured to, when the reference part number does not exist in the second version CAD data, perform a first scene mark and a first mark value mark at a position corresponding to the reference part number in the first version CAD data;
And the comparison sub-module is used for comparing the first version CAD data with the second version CAD data according to the hierarchy information and the coordinate information of the reference part number and the hierarchy information and the coordinate information of the target part number when the reference part number exists in the second version CAD data.
In some embodiments, the contrast sub-module is to:
determining whether the hierarchical information and the coordinate information of the reference part number are identical to the hierarchical information and the coordinate information of the target part number, respectively;
when the level information of the reference part number is inconsistent with the level information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, performing second scene marking and second marking value marking at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the hierarchy information of the reference part number is inconsistent with the hierarchy information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, third scene marking and third marking value marking are carried out at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the level information of the reference part number is consistent with the level information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, fourth scene marking and fourth marking value marking are carried out at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the hierarchy information of the reference part number is consistent with the hierarchy information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, fifth scene marking and fifth marking value marking are carried out at the position corresponding to the target part number in the first edition of CAD data and the position corresponding to the reference part number in the second edition of CAD data;
And searching the part numbers which are not marked in the second version CAD data, and marking a sixth scene mark and a sixth mark value at the positions corresponding to the part numbers which are not marked in the second version CAD data.
In some embodiments, the apparatus further comprises:
And the writing module is used for writing all scene marks and mark values into corresponding positions of the structure files of the first version CAD data and the second version CAD data, wherein the scene marks and the mark values are used for representing the difference between the second version CAD data and the first version CAD data.
In some embodiments, the display module includes:
And the display sub-module is used for displaying the first version CAD data and the second version CAD data carrying the scene mark and the mark value mark when receiving the visual viewing instruction, and different scene marks and different mark value marks in the first version CAD data and the second version CAD data correspond to different display colors.
In some embodiments, the display submodule is to:
when the visual checking instruction carries a structure checking range, displaying first version CAD data and second version CAD data carrying scene marks and mark value marks in the structure checking range, and hiding parts which do not accord with the structure checking range in the first version CAD data and the second version CAD data.
In another aspect, a computer readable storage medium having instructions stored thereon, which when executed by a processor, perform any of the steps of the above-described method for displaying a comparison result of a data structure is provided.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
In the embodiment of the application, after the first version CAD data and the second version CAD data are acquired, the first version CAD data and the second version CAD data can be compared according to the comparison rule, so that a user does not need to compare one by one, the comparison time is saved, meanwhile, the comparison result between the first version CAD data and the second version CAD data can be identified through different color identification information, the display effect is improved, the accuracy and the efficiency of data comparison are further improved, and the development period of a target automobile is further shortened.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for displaying comparison results of a data structure according to an embodiment of the present application;
FIG. 2 is a flowchart of a comparison result display method of another data structure according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a comparison result display device with a data structure according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a comparison result display device with another data structure according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a comparison module according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a comparison result display device with another data structure according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a display module according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
Before explaining a comparison result display method of a data structure provided by an embodiment of the present application in detail, an application scenario provided by the embodiment of the present application is explained.
In the development process of the target automobile, CAD data of the target automobile can be updated, the CAD data of the target automobile runs through the whole development process, if whether the CAD data are updated or not can not be accurately identified, the target automobile can be reworked in the later development period, time and labor are wasted, and the automobile development period is prolonged. And the new version of CAD data and the old version of CAD data are compared one by one only by manpower, omission can occur, and inaccurate comparison is caused.
Based on such application scenes, the embodiment of the application provides a comparison result display method of a data structure, which can improve the comparison accuracy and efficiency.
Fig. 1 is a flowchart of a method for displaying a comparison result of a data structure according to an embodiment of the present application, where the method for displaying a comparison result of a data structure may include the following steps:
step 101: and acquiring first version CAD data and second version CAD data of the target automobile, wherein the data use time of the first version CAD data is earlier than the data use time of the second version CAD data.
Step 102: the first version CAD data and the second version CAD data are preprocessed.
Step 103: and comparing the preprocessed first version CAD data with the second version CAD data according to a comparison rule.
Step 104: and visually displaying the comparison result on the first-version CAD data and the second-version CAD data through the color identification information.
In the embodiment of the application, after the first version CAD data and the second version CAD data are acquired, the first version CAD data and the second version CAD data can be compared according to the comparison rule, so that a user does not need to compare one by one, the comparison time is saved, meanwhile, the comparison result between the first version CAD data and the second version CAD data can be identified through different color identification information, the display effect is improved, the accuracy and the efficiency of data comparison are further improved, and the development period of a target automobile is further shortened.
In some embodiments, preprocessing the first version CAD data and the second version CAD data includes:
and storing the part numbers, the hierarchy information and the coordinate information of the parts in the first version CAD data and the second version CAD data into a specified file.
In some embodiments, prior to preprocessing the first version CAD data and the second version CAD data, further comprising:
determining whether the first version CAD data and the second version CAD data are issued according to the automobile identification of the target automobile;
And when the first version CAD data and the second version CAD data are not released, repairing the naming of the parts in the first version CAD data and the second version CAD data.
In some embodiments, comparing the preprocessed first version CAD data with the second version CAD data according to a comparison rule, comprises:
Searching the second version CAD data for a reference part number which is the same as a target part number in the first version CAD data by taking the first version CAD data structure as a reference, wherein the target part number is the part number of any part in the first version CAD data;
when the reference part number does not exist in the second version CAD data, a first scene mark and a first mark value mark are carried out at the position corresponding to the reference part number in the first version CAD data;
And when the reference part number exists in the second version CAD data, comparing the first version CAD data with the second version CAD data according to the level information and the coordinate information of the reference part number and the level information and the coordinate information of the target part number.
In some embodiments, when the reference part number is present in the second version CAD data, comparing the first version CAD data with the second version CAD data based on the hierarchy information and coordinate information of the reference part number and the hierarchy information and coordinate information of the target part number, comprising:
Determining whether the hierarchical information and the coordinate information of the reference part number are identical to the hierarchical information and the coordinate information of the target part number, respectively;
when the level information of the reference part number is inconsistent with the level information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, performing second scene marking and second marking value marking at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the level information of the reference part number is inconsistent with the level information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, performing third scene marking and third marking value marking at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the level information of the reference part number is consistent with the level information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, performing a fourth scene mark and a fourth mark value mark at a position corresponding to the target part number in the first version CAD data and a position corresponding to the reference part number in the second version CAD data;
When the level information of the reference part number is consistent with the level information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, performing a fifth scene mark and a fifth mark value mark at a position corresponding to the target part number in the first version CAD data and at a position corresponding to the reference part number in the second version CAD data;
And searching the part number which is not marked in the second CAD data, and marking a sixth scene mark and a sixth mark value at a position corresponding to the part number which is not marked in the second version CAD data.
In some embodiments, after comparing the preprocessed first version CAD data with the second version CAD data according to a comparison rule, further comprising:
and writing all scene marks and mark values into corresponding positions of the structure files of the first version CAD data and the second version CAD data, wherein the scene marks and the mark values are used for representing the difference between the second version CAD data and the first version CAD data.
In some embodiments, visually displaying the comparison results on the first version of CAD data and the second version of CAD data via the color identification information includes:
When a visual viewing instruction is received, displaying the first version CAD data and the second version CAD data carrying scene marks and mark value marks, wherein different scene marks and different mark value marks correspond to different display colors in the first version CAD data and the second version CAD data.
In some embodiments, displaying the first version CAD data and the second version CAD data carrying the scene mark and the mark value mark upon receiving the visual inspection instruction comprises:
When the visual viewing instruction carries a structure viewing range, displaying first version CAD data and second version CAD data which carry scene marks and mark value marks in the structure viewing range, and hiding parts which do not accord with the structure viewing range in the first version CAD data and the second version CAD data.
All the above optional technical solutions may be combined according to any choice to form an optional embodiment of the present application, and the embodiments of the present application will not be described in detail.
Fig. 2 is a flowchart of a comparison result display method of a data structure according to an embodiment of the present application, where the comparison result display method of the data structure is applied to a terminal for illustration, and the comparison result display method of the data structure may include the following steps:
step 201: and the terminal acquires the first version CAD data and the second version CAD data of the target automobile.
The data use time of the first version CAD data is earlier than the data use time of the second version CAD data.
Since there are multiple development processes in the development stage of the target automobile, the CAD data of the target automobile may or may not be updated in each development process. Therefore, in order to determine whether the CAD data of the target car is updated in the current development flow, the terminal can acquire the first version CAD data and the second version CAD data of the target car, or in order to determine in which flow the CAD data of the target car is updated, the first version CAD data and the second version CAD data can also be acquired.
As an example, the terminal can acquire the first version CAD data and the second version CAD data of the target car upon receiving the comparison instruction.
It should be noted that the comparison instruction is triggered when the user acts on the terminal through a specified operation, and the specified operation can be a click operation, a sliding operation, a voice operation, or the like.
In some embodiments, the terminal can obtain the first version CAD data and the second version CAD data from a stored file, or from other devices or systems.
In some embodiments, the terminal is capable of loading the first version CAD data and the second version CAD data after the first version CAD data and the second version CAD data are acquired.
Step 202: the terminal preprocesses the first version CAD data and the second version CAD data.
Since there is a large amount of information about the parts in the CAD data, at least one of deletion, addition, position change, and the like of the parts is generally generated when the CAD data is changed, it is generally necessary to pre-process the first version CAD data and the second version CAD data in order to facilitate comparison of the first version CAD data and the second version CAD data.
As an example, the operation of the terminal for preprocessing the first version CAD data and the second version CAD data at least includes: and storing the part numbers, the hierarchy information and the coordinate information of the parts in the first version CAD data and the second version CAD data into a specified file.
Since the CAD data is changed in general to at least one of the part number, the hierarchy information, and the coordinate information of the part, the terminal can store the part number, the hierarchy information, and the coordinate information of the part in the first version CAD data and the second version CAD data in a designated file.
It should be noted that, the designated file is a file indicating that the data structure is to be compared, that is, the data stored in the designated file is the data to be compared.
In some embodiments, the terminal may store the part numbers, the hierarchy information, and the coordinate information of the parts in the first version CAD data and the second version CAD data in the same file, and may also store the part numbers, the hierarchy information, and the coordinate information of the parts in the first version CAD data and the second version CAD data in two files, respectively.
In some embodiments, in order to ensure the correctness and efficiency of data comparison, before preprocessing the first version CAD data and the second version CAD data, the terminal is further capable of determining whether both the first version CAD data and the second version CAD data have been published according to the data identifier of the target car; when the first version CAD data and the second version CAD data are not released, repairing the naming of the parts in the first version CAD data and the second version CAD data; the operations of step 202 described above are performed when the first version CAD data and the second version CAD data have been published.
It should be noted that the data state identifier is used to uniquely identify the data state, and the data state identifier can be at least one of any number, letter, text, and the like.
As an example, the terminal can find out from the version release list of the target automobile whether there is a version number identical to the version number of the first version CAD data and the version number of the second version CAD data, respectively, and when there is a version number identical to the version number of the first version CAD data and the version number of the second version CAD data, respectively, determine that both the first version CAD data and the second version CAD data have been released; when the version number identical to the version number of the first version CAD data does not exist, it is determined that the first version CAD data is not released, and when the version number identical to the version number of the second version CAD data does not exist, it is determined that the second version CAD data is not released.
In some embodiments, the terminal is capable of displaying a naming repair display interface, and when the terminal receives a repair instruction based on the naming repair display interface, repairing the part names in the first version CAD data and the second version CAD data according to the part numbers and the part names carried in the repair instruction.
It should be noted that the repair instruction is triggered when the user acts on the named repair display interface through the specified operation.
In some embodiments, the terminal is further capable of receiving a selection instruction prior to preprocessing the first version CAD data and the second version CAD data, and preprocessing the data structure selected by the selection instruction in the first version CAD data and the selected data structure in the second version CAD data.
Because it may be only necessary to compare some of the CAD data of different versions of the target car, and not all of the CAD data, the terminal may also be capable of receiving the selection command and preprocessing the data structure selected by the selection command.
The selection instruction is triggered when the user acts on the first version CAD data and the second version CAD data through a specified operation.
Step 203: and the terminal compares the preprocessed first version CAD data with the preprocessed second version CAD data according to the comparison rule.
As an example, the operation of the terminal comparing the preprocessed first version CAD data with the second version CAD data according to the comparison rule at least includes: searching the second version CAD data for a reference part number which is the same as the target part number by taking the first version CAD data structure as a reference, wherein the target part number is the part number of any part in the first version CAD data; when the reference part number does not exist in the second version CAD data, performing first scene marking and first marking value marking at the position corresponding to the reference part number in the first version CAD data; and when the reference part number exists in the second version CAD data, comparing the first version CAD data with the second version CAD data according to the level information and the coordinate information of the reference part number and the level information and the coordinate information of the target part number.
Since at least one of deletion, addition, and position change of a component is generally generated when CAD data is changed, the terminal can determine whether or not there is a deletion change in the first version CAD data and the second version CAD data for comparison. I.e. the terminal can look up the same reference part number as the target part number in the second version CAD data, based on the first version CAD data structure. If the reference part number appearing in the first version CAD data cannot be found in the second version CAD data, the condition that the part is deleted in the second version CAD data is explained, so that in order to enable a user to quickly find the change condition, the terminal can perform first scene marking and first marking value marking at the position corresponding to the target part number in the first version CAD data.
It should be noted that the scene mark includes a mark scene type and a scene description, wherein the scene type of the first scene is scene 1, the scene description is that the parts in the new structure are missing, and the parts in the original structure are present, and the parts in the new structure are not present. The tag value is used to tag the type of data change, and the first tag value can be Lose.
Since the part indicated by the target part number is not absent from the second version CAD data when the reference part number is present in the second version CAD data, the terminal can continue to determine the positions of the part of the reference part number and the part of the target part number. That is, the terminal can compare the first version CAD data with the second version CAD data according to the hierarchy information and the coordinate information of the reference part number and the hierarchy information and the coordinate information of the target part number.
In some embodiments, when the reference part number exists in the second version CAD data, the operation of the terminal comparing the first version CAD data with the second version CAD data according to the hierarchy information and the coordinate information of the reference part number and the hierarchy information and the coordinate information of the target part number at least includes: determining whether the hierarchical information and the coordinate information of the reference part number are identical to the hierarchical information and the coordinate information of the target part number, respectively; when the level information of the reference part number is inconsistent with the level information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, performing second scene marking and second marking value marking at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data; when the level information of the reference part number is inconsistent with the level information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, performing third scene marking and third marking value marking at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data; when the level information of the reference part number is consistent with the level information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, performing a fourth scene mark and a fourth mark value mark at a position corresponding to the target part number in the first version CAD data and a position corresponding to the reference part number in the second version CAD data; when the level information of the reference part number is consistent with the level information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, performing fifth scene marking and fifth marking value marking at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data; and searching the part numbers which are not marked in the second CAD data, and marking a sixth scene mark and a sixth mark value at positions corresponding to the part numbers which are not marked in the second version CAD data.
Since there may be an error in the coordinate information for some reasons, the terminal needs to determine whether an error between the coordinate information of the reference part number and the coordinate information of the target part number is greater than a preset value when determining whether the coordinate information of the reference part number is identical to the coordinate information of the target part number, and determines that the coordinate information of the reference part number is identical to the coordinate information of the target part number when the error between the coordinate information of the reference part number and the coordinate information of the target part number is greater than the preset value, and determines that the coordinate information of the reference part number is identical to the coordinate information of the target part number when the coordinate information of the reference part number is less than or equal to the preset value.
It should be noted that the preset value can be set in advance according to the requirement, for example, the preset value can be 5mm, 6mm, and the like.
Because the new part does not exist in the first version CAD data after the new part is added in the second version CAD data, the terminal needs to search the unmarked part number in the second CAD data at the end of data comparison, and the unmarked part number is the part number of the newly added part in the second version CAD data relative to the first version CAD data.
It should be noted that, the scene type of the second scene is scene 2, the scene descriptions are identical in part number, identical in coordinates, inconsistent in hierarchy, and the second flag value can be No. The third scene is scene 3, the scene description is that the part numbers are consistent, the coordinates are inconsistent, the hierarchy is inconsistent, and the third mark value can be No. The scene type of the fourth scene is scene 4, the scene description is that the part numbers are consistent, the coordinates are inconsistent, the layers are consistent, and the fourth mark value can be No. The fifth scene is scene 5, the scene description is part number consistent, coordinates consistent, hierarchy consistent, the fifth flag value can be Yes. The scene type of the sixth scene is scene 6, the scene is described as being newly added in the New structure, that is, the original structure does not exist in the New structure, and the sixth flag value can be New.
In some embodiments, after comparing the first version CAD data with the second version CAD data, the terminal can perform not only change-related marks in the second version CAD data, but also the same marks in the first version CAD data in order to enable the user to learn about changes that occur after the first version CAD data when viewing the first version CAD data. I.e. writing all scene marks and mark values in corresponding positions of the structure files of the first version CAD data and the second version CAD data, the scene marks and mark values marks being used to represent differences between the second version CAD data and the first version CAD data.
In some embodiments, the terminal is further capable of counting the number of parts that are marked after comparing the first version CAD data with the second version CAD data. For example, the terminal can respectively count the number of parts corresponding to different marking values or the number of parts corresponding to different scene types according to the marking values or the scene types.
In some embodiments, after comparing the preprocessed first version CAD data with the second version CAD data according to the comparison rule, the terminal is further capable of storing differences between the first version CAD data and the second version CAD data in the file.
Step 304: the terminal displays a comparison result between the first version CAD data and the second version CAD data.
In some embodiments, the terminal is further capable of displaying the first version CAD data and the second version CAD data, and the changes therebetween, after comparing the preprocessed first version CAD data with the second version CAD data according to the comparison rule.
As an example, the terminal is further capable of visually displaying the comparison result on the first-version CAD data and the second-version CAD data by color identification information.
In some embodiments, the operation of the terminal to visually display the comparison result on the first version CAD data and the second version CAD data by the color identification information comprises: when the terminal receives the visual viewing instruction, displaying the first version CAD data and the second version CAD data carrying the scene mark and the mark value mark, wherein different scene marks and different mark value marks correspond to different display colors in the first version CAD data and the second version CAD data.
It should be noted that, in order to make it clear for the user to know which changes have specifically occurred between the first version CAD data and the second version CAD data, the terminal can display different scene marks and different mark value marks by different display colors. For example, the scene mark of the first scene is displayed as yellow (color is represented as 255, 0), the scene mark of the second scene is displayed as cyan (color is represented as 0, 255, 255), the scene mark of the third scene is displayed as blue (color is represented as 0, 255), the scene mark of the fourth scene is displayed as brown (color is represented as 139, 35, 35), the scene mark of the fifth scene is displayed as magenta (color is represented as 255,0, 255), and the scene mark of the sixth scene is displayed as gray (color is represented as 190, 190, 190).
In some embodiments, the terminal is further capable of displaying the differences between the first version CAD data and the second version CAD data directly by different colors.
The visual checking instruction is triggered when the user acts on the terminal through the specified operation, and the visual checking instruction can carry the structure checking range. I.e. structural data that the user can need to view.
As an example, when the terminal receives the visual viewing instruction, the operation of displaying the first version CAD data carrying the scene mark and the mark value mark and the second version CAD data includes: when the visual checking instruction carries the structure checking range, displaying the first version CAD data and the second version CAD data which carry the scene mark and the mark value mark in the structure checking range, and hiding the parts which do not accord with the structure checking range in the first version CAD data and the second version CAD data.
In the embodiment of the application, after the first version CAD data and the second version CAD data are acquired, the terminal can automatically and rapidly compare the first version CAD data with the second version CAD data according to the comparison rule, so that a user does not need to compare one by one, the comparison time is saved, the accuracy and the efficiency of data comparison are improved, and the development period of a target automobile is shortened. The terminal can display the difference between the first version CAD data and the second version CAD data through different colors, or display the scene mark and the mark value mark between the first version CAD data and the second version CAD data through different colors, so that a user can quickly know the difference between the first version CAD data and the second version CAD data, and the user checking time is saved.
Fig. 3 is a schematic structural diagram of a comparison result display device with a data structure according to an embodiment of the present application, where the comparison result display device with a data structure may be implemented by software, hardware, or a combination of the two. The comparison result display apparatus of the data structure may include: an acquisition module 301, a preprocessing module 302, a comparison module 303 and a display module 304.
An acquiring module 301, configured to acquire first-version CAD data and second-version CAD data of a target automobile, where the data usage time of the first-version CAD data is earlier than the data usage time of the second-version CAD data;
a preprocessing module 302, configured to preprocess the first version CAD data and the second version CAD data;
A comparison module 303, configured to compare the preprocessed first version CAD data with the second version CAD data according to a comparison rule;
A display module 304 for visually displaying the comparison result on the first and second CAD data via color identification information
In some embodiments, the preprocessing module 302 is configured to:
And storing the part numbers, the hierarchy information and the coordinate information of the parts in the first version CAD data and the second version CAD data into a specified file.
In some embodiments, referring to fig. 4, the apparatus further comprises:
A determining module 305, configured to determine, according to the car identifier of the target car, whether both the first version CAD data and the second version CAD data have been published;
And the repairing module 306 is configured to repair the naming of the parts in the first version CAD data and the second version CAD data when the first version CAD data and the second version CAD data are not published.
In some embodiments, referring to fig. 5, the comparison module 303 includes:
A searching submodule 3031, configured to search, based on the first version CAD data structure, for a reference part number that is the same as a target part number in the second version CAD data, where the target part number is a part number of any part in the first version CAD data;
a marking sub-module 3032, configured to, when the reference part number does not exist in the second version CAD data, perform a first scene mark and a first mark value mark at a position corresponding to the reference part number in the first version CAD data;
And the comparison submodule 3033 is used for comparing the first version CAD data with the second version CAD data according to the level information and the coordinate information of the reference part number and the level information and the coordinate information of the target part number when the reference part number exists in the second version CAD data.
In some embodiments, the comparison sub-module 3033 is configured to:
determining whether the hierarchical information and the coordinate information of the reference part number are identical to the hierarchical information and the coordinate information of the target part number, respectively;
when the level information of the reference part number is inconsistent with the level information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, performing second scene marking and second marking value marking at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the hierarchy information of the reference part number is inconsistent with the hierarchy information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, third scene marking and third marking value marking are carried out at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the level information of the reference part number is consistent with the level information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, fourth scene marking and fourth marking value marking are carried out at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the hierarchy information of the reference part number is consistent with the hierarchy information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, fifth scene marking and fifth marking value marking are carried out at the position corresponding to the target part number in the first edition of CAD data and the position corresponding to the reference part number in the second edition of CAD data;
And searching the part numbers which are not marked in the second version CAD data, and marking a sixth scene mark and a sixth mark value at the positions corresponding to the part numbers which are not marked in the second version CAD data.
In some embodiments, referring to fig. 6, the apparatus comprises:
A writing module 307, configured to write all scene marks and mark values in corresponding positions of the structure files of the first version CAD data and the second version CAD data, where the scene marks and the mark values marks are used to represent differences between the second version CAD data and the first version CAD data.
In some embodiments, referring to fig. 7, the display module 304 includes:
And the display sub-module 3041 is used for displaying the first version CAD data and the second version CAD data carrying the scene mark and the mark value mark when the visual viewing instruction is received, and different scene marks and different mark value marks in the first version CAD data and the second version CAD data correspond to different display colors.
In some embodiments, the display sub-module 3041 is configured to:
when the visual checking instruction carries a structure checking range, displaying first version CAD data and second version CAD data carrying scene marks and mark value marks in the structure checking range, and hiding parts which do not accord with the structure checking range in the first version CAD data and the second version CAD data.
In the embodiment of the application, after the first version CAD data and the second version CAD data are acquired, the terminal can automatically and rapidly compare the first version CAD data with the second version CAD data according to the comparison rule, so that a user does not need to compare one by one, the comparison time is saved, the accuracy and the efficiency of data comparison are improved, and the development period of a target automobile is shortened. The terminal can display the difference between the first version CAD data and the second version CAD data through different colors, or display the scene mark and the mark value mark between the first version CAD data and the second version CAD data through different colors, so that a user can quickly know the difference between the first version CAD data and the second version CAD data, and the user checking time is saved.
It should be noted that: the comparison result display device of the data structure provided in the above embodiment only illustrates the division of the above functional modules when comparing and displaying the data structure, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the functions described above. In addition, the comparison result display device of the data structure provided in the above embodiment and the comparison result display method embodiment of the data structure belong to the same concept, and the specific implementation process of the comparison result display device of the data structure is detailed in the method embodiment, which is not described herein again.
Fig. 8 shows a block diagram of a terminal 800 according to an exemplary embodiment of the present application. The terminal 800 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 800 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, and the like.
In general, the terminal 800 includes: a processor 801 and a memory 802.
Processor 801 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 801 may be implemented in at least one hardware form of DSP (DIGITAL SIGNAL Processing), FPGA (Field-Programmable gate array), PLA (Programmable Logic Array ). The processor 801 may also include a main processor, which is a processor for processing data in an awake state, also referred to as a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 801 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 801 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
Memory 802 may include one or more computer-readable storage media, which may be non-transitory. Memory 802 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 802 is used to store at least one instruction for execution by processor 801 to implement the method of displaying contrast results for a data structure provided by an embodiment of the method of the present application.
In some embodiments, the terminal 800 may further optionally include: a peripheral interface 803, and at least one peripheral. The processor 801, the memory 802, and the peripheral interface 803 may be connected by a bus or signal line. Individual peripheral devices may be connected to the peripheral device interface 803 by buses, signal lines, or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 804, a display 805, a camera assembly 806, audio circuitry 807, a positioning assembly 808, and a power supply 809.
Peripheral interface 803 may be used to connect at least one Input/Output (I/O) related peripheral to processor 801 and memory 802. In some embodiments, processor 801, memory 802, and peripheral interface 803 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 801, the memory 802, and the peripheral interface 803 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 804 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 804 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 804 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 804 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 804 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: metropolitan area networks, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (WIRELESS FIDELITY ) networks. In some embodiments, the radio frequency circuit 804 may further include NFC (NEAR FIELD Communication) related circuits, which is not limited by the present application.
The display 805 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 805 is a touch display, the display 805 also has the ability to collect touch signals at or above the surface of the display 805. The touch signal may be input as a control signal to the processor 801 for processing. At this time, the display 805 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards. In some embodiments, the display 805 may be one, providing a front panel of the terminal 800; in other embodiments, the display 805 may be at least two, respectively disposed on different surfaces of the terminal 800 or in a folded design; in other embodiments, the display 805 may be a flexible display disposed on a curved surface or a folded surface of the terminal 800. Even more, the display 805 may be arranged in an irregular pattern other than rectangular, i.e., a shaped screen. The display 805 may be made of LCD (Liquid CRYSTAL DISPLAY), OLED (Organic Light-Emitting Diode), or other materials.
The camera assembly 806 is used to capture images or video. Optionally, the camera assembly 806 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 806 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
Audio circuitry 807 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, inputting the electric signals to the processor 801 for processing, or inputting the electric signals to the radio frequency circuit 804 for voice communication. For stereo acquisition or noise reduction purposes, a plurality of microphones may be respectively disposed at different portions of the terminal 800. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 801 or the radio frequency circuit 804 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, audio circuit 807 may also include a headphone jack.
The location component 808 is utilized to locate the current geographic location of the terminal 800 for navigation or LBS (Location Based Service, location-based services). The positioning component 808 may be a positioning component based on the United states GPS (Global Positioning System ), the Beidou system of China, the Granati system of Russia, or the Galileo system of the European Union.
A power supply 809 is used to power the various components in the terminal 800. The power supply 809 may be an alternating current, direct current, disposable battery, or rechargeable battery. When the power supply 809 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the terminal 800 also includes one or more sensors 810. The one or more sensors 810 include, but are not limited to: acceleration sensor 811, gyroscope sensor 812, pressure sensor 813, fingerprint sensor 814, optical sensor 815, and proximity sensor 816.
The acceleration sensor 811 can detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 800. For example, the acceleration sensor 811 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 801 may control the display screen 805 to display a user interface in a landscape view or a portrait view based on the gravitational acceleration signal acquired by the acceleration sensor 811. Acceleration sensor 811 may also be used for the acquisition of motion data of a game or user.
The gyro sensor 812 may detect a body direction and a rotation angle of the terminal 800, and the gyro sensor 812 may collect a 3D motion of the user to the terminal 800 in cooperation with the acceleration sensor 811. The processor 801 may implement the following functions based on the data collected by the gyro sensor 812: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
The pressure sensor 813 may be disposed at a side frame of the terminal 800 and/or at a lower layer of the display 805. When the pressure sensor 813 is disposed on a side frame of the terminal 800, a grip signal of the terminal 800 by a user may be detected, and the processor 801 performs left-right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 813. When the pressure sensor 813 is disposed at the lower layer of the display screen 805, the processor 801 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 805. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 814 is used to collect a fingerprint of a user, and the processor 801 identifies the identity of the user based on the fingerprint collected by the fingerprint sensor 814, or the fingerprint sensor 814 identifies the identity of the user based on the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the processor 801 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 814 may be provided on the front, back, or side of the terminal 800. When a physical key or vendor Logo is provided on the terminal 800, the fingerprint sensor 814 may be integrated with the physical key or vendor Logo.
The optical sensor 815 is used to collect the ambient light intensity. In one embodiment, the processor 801 may control the display brightness of the display screen 805 based on the intensity of ambient light collected by the optical sensor 815. Specifically, when the intensity of the ambient light is high, the display brightness of the display screen 805 is turned up; when the ambient light intensity is low, the display brightness of the display screen 805 is turned down. In another embodiment, the processor 801 may also dynamically adjust the shooting parameters of the camera module 806 based on the ambient light intensity collected by the optical sensor 815.
A proximity sensor 816, also referred to as a distance sensor, is typically provided on the front panel of the terminal 800. The proximity sensor 816 is used to collect the distance between the user and the front of the terminal 800. In one embodiment, when the proximity sensor 816 detects that the distance between the user and the front of the terminal 800 gradually decreases, the processor 801 controls the display 805 to switch from the bright screen state to the off screen state; when the proximity sensor 816 detects that the distance between the user and the front surface of the terminal 800 gradually increases, the processor 801 controls the display 805 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 8 is not limiting and that more or fewer components than shown may be included or certain components may be combined or a different arrangement of components may be employed.
The embodiment of the application also provides a non-transitory computer readable storage medium, which when the instructions in the storage medium are executed by a processor of the terminal, enables the terminal to execute the comparison result display method of the data structure provided in the above embodiment.
The embodiment of the application also provides a computer program product containing instructions, which when run on a terminal, cause the terminal to execute the comparison result display method of the data structure provided by the embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the present application is not intended to limit the embodiments of the present application, but is intended to cover any modifications, equivalents, improvements or alternatives falling within the spirit and principles of the embodiments of the present application.

Claims (7)

1. A method for displaying a comparison result of a data structure, the method comprising:
Acquiring first version computer-aided design (CAD) data and second version CAD data of a target automobile, wherein the data use time of the first version CAD data is earlier than that of the second version CAD data;
Storing part numbers, hierarchy information and coordinate information of parts in the first version CAD data and the second version CAD data into a specified file;
Comparing the preprocessed first version CAD data with the second version CAD data according to a comparison rule; visually displaying the comparison result on the first version CAD data and the second version CAD data through color identification information;
wherein comparing the preprocessed first version CAD data with the second version CAD data according to a comparison rule, comprises: searching the second version CAD data for a reference part number which is the same as a target part number by taking the first version CAD data structure as a reference, wherein the target part number is the part number of any part in the first version CAD data;
When the reference part number does not exist in the second version CAD data, performing first scene marking and first marking value marking at a position corresponding to the reference part number in the first version CAD data;
Determining whether the hierarchical information and the coordinate information of the reference part number are respectively identical to the hierarchical information and the coordinate information of the target part number when the reference part number exists in the second version CAD data; when the level information of the reference part number is inconsistent with the level information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, performing second scene marking and second marking value marking at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the level information of the reference part number is inconsistent with the level information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, third scene marking and third marking value marking are carried out at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the level information of the reference part number is consistent with the level information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, fourth scene marking and fourth marking value marking are carried out at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the hierarchy information of the reference part number is consistent with the hierarchy information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, fifth scene marking and fifth marking value marking are carried out at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
And searching the part numbers which are not marked in the second version CAD data, and marking a sixth scene mark and a sixth mark value at the positions corresponding to the part numbers which are not marked in the second version CAD data.
2. The method of claim 1, wherein before storing the part numbers, the hierarchy information, and the coordinate information of the parts in the first version CAD data and the second version CAD data in the designated file, further comprises:
determining whether the first version CAD data and the second version CAD data are issued according to the automobile identification of the target automobile;
And repairing the naming of the parts in the first version CAD data and the second version CAD data when the first version CAD data and the second version CAD data are not released.
3. The method of any of claims 1-2, wherein after comparing the preprocessed first version CAD data with the second version CAD data according to a comparison rule, further comprising:
and writing all scene marks and mark values into corresponding positions of the structure files of the first version CAD data and the second version CAD data, wherein the scene marks and the mark values are used for representing the difference between the second version CAD data and the first version CAD data.
4. The method of claim 1, wherein the visually displaying the comparison results on the first version CAD data and the second version CAD data by color identification information, comprises:
And when a visual viewing instruction is received, displaying the first version CAD data and the second version CAD data carrying the scene mark and the mark value mark, wherein different scene marks and different mark value marks correspond to different display colors in the first version CAD data and the second version CAD data.
5. The method of claim 4, wherein displaying the first version CAD data and the second version CAD data carrying scene marks and mark value marks when the visual inspection instruction is received comprises:
when the visual checking instruction carries a structure checking range, displaying first version CAD data and second version CAD data carrying scene marks and mark value marks in the structure checking range, and hiding parts which do not accord with the structure checking range in the first version CAD data and the second version CAD data.
6. A device for comparing data structures, the device comprising:
the acquisition module is used for acquiring first version CAD data and second version CAD data of the target automobile, wherein the data use time of the first version CAD data is earlier than that of the second version CAD data;
the preprocessing module is used for storing part numbers, level information and coordinate information of parts in the first version CAD data and the second version CAD data into a designated file;
the comparison module is used for comparing the preprocessed first version CAD data with the second version CAD data according to comparison rules;
the display module is used for visually displaying the comparison result on the first version CAD data and the second version CAD data through the color identification information;
Wherein, the comparison module includes:
The searching sub-module is used for searching the second version CAD data for the same reference part number as a target part number by taking the first version CAD data structure as a reference, wherein the target part number is the part number of any part in the first version CAD data;
A marking sub-module, configured to, when the reference part number does not exist in the second version CAD data, perform a first scene mark and a first mark value mark at a position corresponding to the reference part number in the first version CAD data;
A comparison sub-module, configured to determine, when the second version CAD data includes the reference part number, whether the hierarchy information and the coordinate information of the reference part number are identical to the hierarchy information and the coordinate information of the target part number, respectively; when the level information of the reference part number is inconsistent with the level information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, performing second scene marking and second marking value marking at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data; when the level information of the reference part number is inconsistent with the level information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, third scene marking and third marking value marking are carried out at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data; when the level information of the reference part number is consistent with the level information of the target part number and the coordinate information of the reference part number is inconsistent with the coordinate information of the target part number, fourth scene marking and fourth marking value marking are carried out at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
When the hierarchy information of the reference part number is consistent with the hierarchy information of the target part number and the coordinate information of the reference part number is consistent with the coordinate information of the target part number, fifth scene marking and fifth marking value marking are carried out at the position corresponding to the target part number in the first version CAD data and the position corresponding to the reference part number in the second version CAD data;
And searching the part numbers which are not marked in the second version CAD data, and marking a sixth scene mark and a sixth mark value at the positions corresponding to the part numbers which are not marked in the second version CAD data.
7. A computer readable storage medium having stored thereon instructions which, when executed by a processor, implement the steps of the method of any of the preceding claims 1 to 5.
CN202110871945.0A 2021-07-30 2021-07-30 Data structure comparison result display method and device and computer storage medium Active CN113568552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110871945.0A CN113568552B (en) 2021-07-30 2021-07-30 Data structure comparison result display method and device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110871945.0A CN113568552B (en) 2021-07-30 2021-07-30 Data structure comparison result display method and device and computer storage medium

Publications (2)

Publication Number Publication Date
CN113568552A CN113568552A (en) 2021-10-29
CN113568552B true CN113568552B (en) 2024-07-16

Family

ID=78169478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110871945.0A Active CN113568552B (en) 2021-07-30 2021-07-30 Data structure comparison result display method and device and computer storage medium

Country Status (1)

Country Link
CN (1) CN113568552B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115544986A (en) * 2022-08-23 2022-12-30 中船黄埔文冲船舶有限公司 A method for comparison and sorting of two versions of cable books

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634637A (en) * 2018-12-17 2019-04-16 奇瑞汽车股份有限公司 A kind of PDM system and BOM multi version CAD data disparity comparative approach
CN112100795A (en) * 2019-06-17 2020-12-18 北京广联达云图梦想科技有限公司 Method and device for comparing computer aided design drawings

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010102064A2 (en) * 2009-03-04 2010-09-10 Auto Prep, Llc Systems and methods for processing multiple drawings in a cad environment
US10192023B2 (en) * 2017-05-09 2019-01-29 General Electric Company Model comparison tool
US11498132B2 (en) * 2019-01-30 2022-11-15 General Electric Company Additive manufacturing systems and methods of calibrating for additively printing on workpieces
CN111144090A (en) * 2019-12-23 2020-05-12 网易(杭州)网络有限公司 File comparison method and device, electronic equipment and storage medium
CN113018870B (en) * 2021-04-17 2023-06-23 腾讯科技(深圳)有限公司 Data processing method, device and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634637A (en) * 2018-12-17 2019-04-16 奇瑞汽车股份有限公司 A kind of PDM system and BOM multi version CAD data disparity comparative approach
CN112100795A (en) * 2019-06-17 2020-12-18 北京广联达云图梦想科技有限公司 Method and device for comparing computer aided design drawings

Also Published As

Publication number Publication date
CN113568552A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN114494469B (en) Image processing method, device, equipment and storage medium
CN110095128B (en) Method, device, equipment and storage medium for acquiring missing road information
CN113064823B (en) Method and device for testing functions of parts of automobile and computer storage medium
CN112667835B (en) Works processing method, device, electronic device and storage medium
CN113722827B (en) CAD data creation method, device and computer storage medium
CN110990728B (en) Method, device, equipment and storage medium for managing interest point information
CN111857793B (en) Training method, device, equipment and storage medium of network model
CN111179628B (en) Positioning method and device for automatic driving vehicle, electronic equipment and storage medium
CN109886208B (en) Object detection method and device, computer equipment and storage medium
CN113627413B (en) Data labeling method, image comparison method and device
CN112989198B (en) Push content determination method, device, equipment and computer-readable storage medium
CN111770196B (en) Information synchronization method, device and storage medium
CN111427629B (en) Application starting method and device, vehicle equipment and storage medium
CN110738185B (en) Form object identification method, form object identification device and storage medium
CN113408989B (en) Automobile data comparison method and device and computer storage medium
CN113568552B (en) Data structure comparison result display method and device and computer storage medium
CN111859549B (en) Method and related equipment for determining weight and gravity center information of single-configuration whole vehicle
CN112804481B (en) Method and device for determining position of monitoring point and computer storage medium
CN111666076B (en) Layer adding method, device, terminal and storage medium
CN111754564B (en) Video display method, device, equipment and storage medium
CN113535039B (en) Method and device for updating page, electronic equipment and computer readable storage medium
CN113590877B (en) Method and device for obtaining labeled data
CN112365088B (en) Method, device and equipment for determining travel key points and readable storage medium
CN111984738B (en) Data association method, device, equipment and storage medium
CN113656893B (en) Pedestrian protection checking method and device and computer storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant