CN114048539A - CAD file analysis and rule judgment method and related device - Google Patents

CAD file analysis and rule judgment method and related device Download PDF

Info

Publication number
CN114048539A
CN114048539A CN202111493770.0A CN202111493770A CN114048539A CN 114048539 A CN114048539 A CN 114048539A CN 202111493770 A CN202111493770 A CN 202111493770A CN 114048539 A CN114048539 A CN 114048539A
Authority
CN
China
Prior art keywords
information
target
determining
analyzing
screening
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111493770.0A
Other languages
Chinese (zh)
Inventor
陈挺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Wanyi Digital Technology Co ltd
Original Assignee
Wanyi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wanyi Technology Co Ltd filed Critical Wanyi Technology Co Ltd
Publication of CN114048539A publication Critical patent/CN114048539A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Theoretical Computer Science (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Architecture (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the application discloses a CAD file analysis and rule judgment method and a related device, which are applied to electronic equipment; the method comprises the following steps: acquiring drawing information of a drawing to be analyzed; determining target information in the drawing information through screening operation; determining a target picture according to the target information; extracting a target object from the target picture according to a target identification algorithm to obtain object information of the target object; analyzing and processing the object information to obtain primitive information; determining a plurality of target objects from the drawing information according to the primitive information; and analyzing the spatial position relations of the target objects to obtain a drawing judgment result, wherein the judgment result is used for indicating the target objects with problems in the spatial position relations. The accuracy and the efficiency of analyzing and judging the rule of the CAD file are improved.

Description

CAD file analysis and rule judgment method and related device
Technical Field
The application relates to the field of computer aided design, in particular to a CAD file analysis and rule judgment method and a related device.
Background
The CAD drawing is a mainstream drawing format at present and is used for various links such as building design, construction and the like. The CAD drawing contains information such as coordinates, axis network, primitives, drawing frames, labels and the like, and the drawing can express the design structure, size and position information of the building by utilizing the information.
With the rapid development of the building industry, the CAD drawings are more and more important in projects, the expression modes and the types of the CAD drawings are more and more, the complexity and the workload of manual review of the CAD drawings by a large project are more and more, all problems appearing in the drawings cannot be covered by the manual review mode, and the project cycle is slowed down in time.
Disclosure of Invention
The embodiment of the application provides a CAD file analysis and rule judgment method and a related device, aiming at improving the efficiency of CAD file analysis and rule judgment.
In a first aspect, an embodiment of the present application provides a method for analyzing a CAD file and determining rules, which is applied to an electronic device; the method comprises the following steps:
acquiring drawing information of a drawing to be analyzed;
determining target information in the drawing information through screening operation;
determining a target picture according to the target information;
extracting a target object from the target picture according to a target identification algorithm to obtain object information of the target object;
analyzing and processing the object information to obtain primitive information;
determining a plurality of target objects from the drawing information according to the primitive information;
and analyzing the spatial position relations of the target objects to obtain a drawing judgment result, wherein the judgment result is used for indicating the target objects with problems in the spatial position relations.
In a second aspect, an embodiment of the present application provides a CAD file parsing and rule determining device, which is applied to an electronic device, and the device includes: the acquisition unit is used for acquiring drawing information of a drawing to be analyzed; a first determination unit configured to determine target information in the drawing information through a screening operation; the second determining unit is used for determining a target picture according to the target information; the extraction unit is used for extracting a target object from the target picture according to a target identification algorithm to obtain object information of the target object; the first analysis unit is used for analyzing and processing the object information to obtain primitive information; the third determining unit is used for determining a plurality of target objects from the drawing information according to the primitive information; and the second analysis unit is used for analyzing the spatial position relations of the plurality of target objects to obtain a drawing judgment result, and the judgment result is used for indicating the target objects with problems in the spatial position relations.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the application, the electronic device first acquires drawing information of a drawing to be analyzed, then determines target information in the drawing information through a screening operation, then determines a target picture according to the target information, then extracts a target object from the target picture according to a target identification algorithm to obtain object information of the target object, then analyzes and processes the object information to obtain primitive information, then determines a plurality of target objects from the drawing information according to the primitive information, and finally analyzes spatial position relationships of the plurality of target objects to obtain a drawing judgment result, where the judgment result is used for indicating the target objects with problems in spatial position relationships. Therefore, the spatial relationship of the components in the CAD drawing can be judged quickly, the time for manual examination is saved, meanwhile, the analysis and rule judgment processes of the CAD file can be expanded through machine learning and configuration, and the accuracy and the efficiency of the analysis and rule judgment of the CAD file are improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for analyzing a CAD file and determining rules according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating another method for analyzing CAD files and determining rules according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4 is a block diagram of functional units of a CAD file parsing and rule determining apparatus according to an embodiment of the present disclosure;
fig. 5 is a block diagram illustrating functional units of another apparatus for CAD file parsing and rule determination according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, which have wireless communication functions, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic flow chart of a method for analyzing a CAD file and determining rules, which is applied to an electronic device according to an embodiment of the present application; the method comprises the following steps:
s101, acquiring drawing information of a drawing to be analyzed;
the drawing information includes contents such as layer information, drawing frame information, primitive information and the like.
S102, determining target information in the drawing information through screening operation;
the target information includes partial information that satisfies a preset condition in the layer information and/or the drawing frame information. For example, the spatial relationship of a member such as a "door" needs to be determined currently, so that the layer corresponding to the member such as the "door" can be screened out through the screening operation. The target information is the layer corresponding to the member "door".
S103, determining a target picture according to the target information;
the target picture may be a picture that only includes a layer corresponding to the determined component type, for example, if the determined component type is "gate", the target picture may only include a layer corresponding to "gate". Of course, if the layer corresponding to the determined component type is not screened out, the target picture may be a picture generated from the entire CAD drawing.
S104, extracting a target object from the target picture according to a target identification algorithm to obtain object information of the target object;
the image may be placed in a recognition model corresponding to a determined component type trained in advance to detect, so as to determine a target object and object information of the target object, that is, a component included in the determined component type is the target object, for example, the target object is a "door", and the object information may be pixel coordinate data of the target object, and the like.
S105, analyzing and processing the object information to obtain primitive information;
the graphic element is graphic data corresponding to an entity visible in a drawing and used for describing various graphic elements in the drawing (any graphic expression is formed by combining structures such as a plurality of different points and lines, and the points and the lines are basic graphic elements), and in the CAD drawing, the minimum graphic elements which can be identified, such as straight lines, arcs, marks and the like, can be called as the graphic elements. The primitive information is information that can accurately lock the position of the primitive in the drawing, and may be, for example, geometric coordinate information or vector information. For example, for the target object "gate", the corresponding primitive information may include vector information of two straight lines and one circular arc.
S106, determining a plurality of target objects from the drawing information according to the primitive information;
the drawing to be analyzed may include a plurality of target objects whose spatial position relationships need to be determined, for example, a plurality of members whose member types are "gates" included in one CAD drawing, and the primitive information corresponding to each target object is the same, so that a plurality of target objects may be determined according to the primitive information.
And S107, analyzing the spatial position relation of the target objects to obtain a drawing judgment result.
The determination result is used to indicate target objects with a problem in spatial position relationship, where the spatial position relationship may include whether each target object is intersected, and if the spatial position relationship between one target object and any one or more other target objects is intersected, the target object with the intersection may be determined to be a problem object.
In this example, the electronic device first obtains drawing information of a drawing to be analyzed, then determines target information in the drawing information through a screening operation, then determines a target picture according to the target information, then extracts a target object from the target picture according to a target identification algorithm to obtain object information of the target object, then analyzes and processes the object information to obtain primitive information, then determines a plurality of target objects from the drawing information according to the primitive information, and finally analyzes spatial position relationships of the target objects to obtain a drawing judgment result, wherein the judgment result is used for indicating the target objects with problems in the spatial position relationships. Therefore, the spatial relationship of the components in the CAD drawing can be judged quickly, the time for manual examination is saved, meanwhile, the analysis and rule judgment processes of the CAD file can be expanded through machine learning and configuration, and the accuracy and the efficiency of the analysis and rule judgment of the CAD file are improved.
In one possible example, the electronic device determines target information in the drawing information through a filtering operation, including: the electronic equipment determines a screening strategy, wherein the screening mode comprises accurate screening and fuzzy screening; determining layer information corresponding to each drawing according to the screening strategy and the drawing information, wherein the layer information comprises layer number and layer name; acquiring drawing frame information in the drawing information, wherein the drawing frame information comprises a drawing frame format, drawing frame parameters and a drawing frame size; determining that the target information includes the layer information and the drawing frame information.
Wherein the screening strategy comprises precise screening and fuzzy screening.
The layer information comprises the number of layers and the names of the layers. That is, the filtering may be performed according to the layer name, different types of components may use different naming rules, and the layer name may include a corresponding component type, for example, the layer name of the layer corresponding to the component of the type of "gate" may be similar to: "% DOOR%", "% DOOR%", and the like.
Wherein the frame information includes a frame format, frame parameters, and a frame size.
In specific implementation, the electronic device determines that the filtering policy is fuzzy query, obtains drawing information including "AF 1" and "AF 2", and determines that the drawing information corresponding to each drawing includes "AF 1 drawing layers including DOOR and ROOM" and "frame size of DOOR is 594: 1261 and frame size from rom 841: 1189 "; the "AF 2 layer includes an ROOM" and a frame size of the ROOM is 841: 1189 "; the electronic device obtains the drawing frame information 'ROOM' drawing frame size in the drawing information as 841: 1189 "and" rom frame size 841: 1189".
In this example, the electronic device determines a screening policy, then the electronic device determines layer information corresponding to each drawing according to the screening policy and the drawing information, and then the electronic device acquires drawing frame information in the drawing information; the accuracy of obtaining the picture frame information is improved, and the accuracy of analyzing the CAD file and judging the rule is improved.
In one possible example, the electronic device determines a target picture according to the target information, including: the electronic equipment acquires drawing range coordinates in the drawing frame information; the electronic equipment determines a drawing range according to the drawing range coordinate; and the electronic equipment generates a target picture according to the drawing range and the layer information.
In a specific implementation, the drawing range coordinate may be a drawing range coordinate of a component corresponding to the determined component type, or may be a drawing range coordinate of an entire drawing, the electronic device obtains the drawing range coordinate (x1, y1) in the drawing frame information, the electronic device determines the drawing range Q of the component or the drawing range Q of the entire CAD drawing according to the drawing range coordinate (x1, y1), and the electronic device generates the target picture P according to the drawing range and the drawing layer information.
In this example, it can be seen that, in the drawing frame information, the electronic device obtains drawing range coordinates in the drawing frame information, then the electronic device determines a drawing range according to the drawing range coordinates, and finally the electronic device generates a target picture according to the drawing range and the layer information; the accuracy of analyzing the CAD file and judging the rule is improved.
In one possible example, the analyzing processes the object information to obtain primitive information, including: determining the pixel coordinates of the target object in the target picture according to the object information; acquiring drawing coordinates of the target object according to the pixel coordinates; determining the coordinate range of the target object according to the drawing coordinates; and analyzing all the primitives in the coordinate range to obtain the primitive information of the primitive corresponding to the target object.
The pixel coordinates and the CAD original coordinates may be converted to obtain drawing coordinates, and the drawing coordinates may be used to indicate a range of a target object in a drawing, for example, the range may be represented by a rectangular box according to the drawing coordinates.
Therefore, in the embodiment, the target object is refined to the primitive level, so that the accuracy of determining the target object can be improved, and the judgment precision is improved.
In a possible example, before the extracting a target object from the target picture according to a target recognition algorithm and obtaining object information of the target object, the method further includes: and the electronic equipment carries out noise reduction and standardization processing on the target picture.
In one possible example, the method further comprises: the electronic equipment identifies the target object and determines the type of the target object; the electronic equipment classifies and stores the target object according to the type of the target object, and establishes a position index; the electronic equipment analyzes the position index corresponding to each target object in the target objects, and establishes a rule relation among the target objects, wherein the rule relation is used for indicating the spatial position relation of the target objects.
The denoising and standardizing processing comprises the steps of automatically denoising the objects, deleting the objects which do not meet the standard in the objects, and improving the accuracy and the speed of later-stage identification.
Wherein the regular relationship comprises a distance, an intersection, and a tangency.
In a specific implementation, the electronic device extracts objects DOOR1, DOOR2 and ROOM1 in the target picture, and the electronic device performs noise reduction and standardization processing on the objects DOOR1, DOOR2, DOOR3 and ROOM1 to determine target objects DOOR1 and ROOM 1; the electronic equipment identifies the target object, determines the type of the target object, and determines that the DOOR1 and the DOOR3 belong to a DOOR and the ROOM1 belongs to a ROOM; the electronic equipment classifies and stores DOOR1, DOOR3 and ROOM1 according to the types of the electronic equipment, and establishes position indexes of AF1-DOOR1, AF1-DOOR3 and AF1-ROOM 1; the electronic equipment analyzes the position indexes corresponding to DOOR1, DOOR3 and ROOM1, and establishes a rule relation: DOOR1 and DOOR3 belong to the same category, and are separated by 10 meters; ROOM1 comprises DOOR 1. When a user views the drawing, the spatial position relationship among the members in the drawing can be directly known according to the rule relationship.
In this example, it can be seen that, in the present example, an electronic device extracts an object in the target picture, then the electronic device performs denoising and normalization processing on the object to determine a target object, the electronic device performs identification processing on the target object to determine a type of the target object, then the electronic device classifies and stores the target object according to the type of the target object to establish a position index, and finally the electronic device analyzes the position index corresponding to each of the target objects in the plurality of target objects to establish a rule relationship between the plurality of target objects; the configurable expansion of the rules is carried out, the matching of different rule requirements is achieved, the requirement of the increasingly growing drawing rules and the rapid configuration of the building rules are met, the accurate adaptation is achieved, and the accuracy and the efficiency of CAD file analysis and rule judgment are improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of another CAD file parsing and rule determining method according to the embodiment of the present application, and the method is applied to an electronic device; as shown in the figure, the method for analyzing and judging the rules of the CAD file comprises the following steps:
s201, the electronic equipment acquires drawing information of a drawing to be analyzed;
s202, the electronic equipment determines a screening strategy;
s203, the electronic equipment determines the layer information corresponding to each drawing according to the screening strategy and the drawing information;
s204, the electronic equipment acquires drawing frame information in the drawing information;
s205, the electronic equipment determines a target picture according to the layer information and the picture frame information;
s206, the electronic equipment extracts a target object from the target picture according to a target identification algorithm to obtain object information of the target object;
s207, the electronic equipment analyzes and processes the object information to obtain primitive information;
s208, the electronic equipment determines a plurality of target objects from the drawing information according to the primitive information;
s209, the electronic equipment analyzes the spatial position relations of the target objects to obtain a drawing judgment result, and the judgment result is used for indicating the target objects with problems in the spatial position relations.
The CAD file analysis and rule judgment method and the related device are provided in the embodiment of the application, the drawing to be analyzed is analyzed through the CAD file processing system, the manual examination time is saved, meanwhile, the machine learning and configuration expansion can be realized in the process of analyzing and rule judgment of the CAD file, and the accuracy and the efficiency of analyzing and rule judgment of the CAD file are improved.
In addition, the electronic equipment determines a screening strategy, then determines layer information corresponding to each drawing according to the screening strategy and the drawing information, and then acquires the drawing frame information in the drawing information; the accuracy of obtaining the picture frame information is improved, and the accuracy of analyzing the CAD file and judging the rule is improved.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an electronic device 310 according to an embodiment of the present disclosure, and as shown in the figure, the electronic device 310 includes an application processor 320, a memory 330, a communication interface 340, and one or more programs 331, where the one or more programs 331 are stored in the memory 330 and configured to be executed by the application processor 320, and the one or more programs 331 include instructions for executing any step of the method embodiment. In a specific implementation, the application processor 320 is configured to perform any one of the steps performed by the electronic device in the above method embodiments, and when performing data transmission, such as sending, the communication interface 340 is optionally called to complete the corresponding operation.
Referring to fig. 4, fig. 4 is a block diagram of functional units of a device for analyzing CAD files and determining rules according to the embodiment of the present application, where the device 400 includes an obtaining unit 401 for obtaining drawing information of a drawing to be analyzed; a first determination unit 402 configured to determine target information in the drawing information through a screening operation; a second determining unit 403, configured to determine a target picture according to the target information; an extracting unit 404, configured to extract a target object from the target picture according to a target identification algorithm, so as to obtain object information of the target object; a first analyzing unit 405, configured to analyze and process the object information to obtain primitive information; a third determining unit 406, configured to determine a plurality of target objects from the drawing information according to the primitive information; and a second analysis unit 407, configured to analyze the spatial position relationships of the multiple target objects to obtain a drawing determination result, where the determination result is used to indicate a target object with a problem in the spatial position relationships.
In one possible example, in terms of the determining the target information in the drawing information through the filtering operation, the first determining unit 402 is specifically configured to: determining a screening strategy, wherein the screening mode comprises precise screening and fuzzy screening; determining layer information corresponding to each drawing according to the screening strategy and the drawing information, wherein the layer information comprises layer number and layer name; acquiring drawing frame information in the drawing information, wherein the drawing frame information comprises a drawing frame format, drawing frame parameters and a drawing frame size; determining that the target information includes the layer information and the drawing frame information.
In a possible example, in the aspect of determining a target picture according to the target information, the second determining unit 403 is specifically configured to: acquiring drawing range coordinates in the drawing frame information; determining a drawing range according to the drawing range coordinate; and generating a target picture according to the drawing range and the layer information.
In a possible example, in terms of analyzing and processing the object information to obtain primitive information, the first analyzing unit 405 is specifically configured to: determining the pixel coordinates of the target object in the target picture according to the object information; acquiring drawing coordinates of the target object according to the pixel coordinates; determining the coordinate range of the target object according to the drawing coordinates; and analyzing all the primitives in the coordinate range to obtain the primitive information of the primitive corresponding to the target object.
It can be understood that, since the method embodiment and the apparatus embodiment are different presentation forms of the same technical concept, the content of the method embodiment portion in the present application should be synchronously adapted to the apparatus embodiment portion, and is not described herein again.
In the case of using an integrated unit, as shown in fig. 5, fig. 5 is a block diagram of functional units of another CAD file parsing and rule determining apparatus provided in the embodiment of the present application. In fig. 5, the CAD file parsing and rule determining apparatus 500 includes: a processing module 512 and a communication module 511. The processing module 512 is used for controlling and managing actions of the CAD file parsing and rule determining device, for example, executing steps of the display acquisition unit 401, the first determination unit 402, the second determination unit 403, the extraction unit 404, the first analysis unit 405, the third determination unit 406, and the second analysis unit 407, and/or other processes for performing the techniques described herein. The communication module 611 is used for supporting the interaction between the CAD file parsing and rule determining apparatus and other devices. As shown in fig. 5, the CAD file parsing and rule determining device may further include a storage module 513, where the storage module 513 is used to store program codes and data of the CAD file parsing and rule determining device.
The Processing module 512 may be a Processor or a controller, and may be, for example, a Central Processing Unit (CPU), a general-purpose Processor, a Digital Signal Processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others. The communication module 511 may be a transceiver, an RF circuit or a communication interface, etc. The storage module 513 may be a memory.
All relevant contents of each scene related to the method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again. The screen management device 500 may perform the CAD file parsing and rule determining methods shown in fig. 1 and 2.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A CAD file analysis and rule judgment method is characterized by being applied to electronic equipment; the method comprises the following steps:
acquiring drawing information of a drawing to be analyzed;
determining target information in the drawing information through screening operation;
determining a target picture according to the target information;
extracting a target object from the target picture according to a target identification algorithm to obtain object information of the target object;
analyzing and processing the object information to obtain primitive information;
determining a plurality of target objects from the drawing information according to the primitive information;
and analyzing the spatial position relations of the target objects to obtain a drawing judgment result, wherein the judgment result is used for indicating the target objects with problems in the spatial position relations.
2. The method of claim 1, wherein the determining the target information in the drawing information through a screening operation comprises:
determining a screening strategy, wherein the screening mode comprises precise screening and fuzzy screening;
determining layer information corresponding to each drawing according to the screening strategy and the drawing information, wherein the layer information comprises layer number and layer name;
acquiring drawing frame information in the drawing information, wherein the drawing frame information comprises a drawing frame format, drawing frame parameters and a drawing frame size;
determining that the target information includes the layer information and the drawing frame information.
3. The method of claim 2, wherein the determining a target picture according to the target information comprises:
acquiring drawing range coordinates in the drawing frame information;
determining a drawing range according to the drawing range coordinate;
and generating a target picture according to the drawing range and the layer information.
4. The method of claim 1, wherein the analyzing the object information to obtain primitive information comprises:
determining the pixel coordinates of the target object in the target picture according to the object information;
acquiring drawing coordinates of the target object according to the pixel coordinates;
determining the coordinate range of the target object according to the drawing coordinates;
and analyzing all the primitives in the coordinate range to obtain the primitive information of the primitive corresponding to the target object.
5. A CAD file analysis and rule judgment device is characterized by being applied to electronic equipment; the device comprises:
the acquisition unit is used for acquiring drawing information of a drawing to be analyzed;
a first determination unit configured to determine target information in the drawing information through a screening operation;
the second determining unit is used for determining a target picture according to the target information;
the extraction unit is used for extracting a target object from the target picture according to a target identification algorithm to obtain object information of the target object;
the first analysis unit is used for analyzing and processing the object information to obtain primitive information;
the third determining unit is used for determining a plurality of target objects from the drawing information according to the primitive information;
and the second analysis unit is used for analyzing the spatial position relations of the plurality of target objects to obtain a drawing judgment result, and the judgment result is used for indicating the target objects with problems in the spatial position relations.
6. The apparatus according to claim 5, wherein, in the determining of the target information in the drawing information through the filtering operation, the first determining unit is specifically configured to:
determining a screening strategy, wherein the screening mode comprises precise screening and fuzzy screening;
determining layer information corresponding to each drawing according to the screening strategy and the drawing information, wherein the layer information comprises layer number and layer name;
acquiring drawing frame information in the drawing information, wherein the drawing frame information comprises a drawing frame format, drawing frame parameters and a drawing frame size;
determining that the target information includes the layer information and the drawing frame information.
7. The apparatus according to claim 6, wherein, in said determining a target picture according to the target information, the second determining unit is specifically configured to:
acquiring drawing range coordinates in the drawing frame information;
determining a drawing range according to the drawing range coordinate;
and generating a target picture according to the drawing range and the layer information.
8. The apparatus according to claim 7, wherein, in the analyzing the object information to obtain the primitive information, the first analyzing unit is specifically configured to:
determining the pixel coordinates of the target object in the target picture according to the object information;
acquiring drawing coordinates of the target object according to the pixel coordinates;
determining the coordinate range of the target object according to the drawing coordinates;
and analyzing all the primitives in the coordinate range to obtain the primitive information of the primitive corresponding to the target object.
9. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-4.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-4.
CN202111493770.0A 2021-01-13 2021-12-08 CAD file analysis and rule judgment method and related device Pending CN114048539A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110044470 2021-01-13
CN2021100444708 2021-01-13

Publications (1)

Publication Number Publication Date
CN114048539A true CN114048539A (en) 2022-02-15

Family

ID=80212492

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111493770.0A Pending CN114048539A (en) 2021-01-13 2021-12-08 CAD file analysis and rule judgment method and related device

Country Status (1)

Country Link
CN (1) CN114048539A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116110072A (en) * 2023-04-12 2023-05-12 江西少科智能建造科技有限公司 CAD drawing analysis method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116110072A (en) * 2023-04-12 2023-05-12 江西少科智能建造科技有限公司 CAD drawing analysis method and system
CN116110072B (en) * 2023-04-12 2023-08-15 江西少科智能建造科技有限公司 CAD drawing analysis method and system

Similar Documents

Publication Publication Date Title
EP3806064A1 (en) Method and apparatus for detecting parking space usage condition, electronic device, and storage medium
CN111832447B (en) Building drawing component identification method, electronic equipment and related product
US10296552B1 (en) System and method for automated identification of internet advertising and creating rules for blocking of internet advertising
TW201942766A (en) Device model identification method and apparatus, and processing device
CN112560862B (en) Text recognition method and device and electronic equipment
CN110968712B (en) BIM family model acquisition method, device and system
CN114116065B (en) Method and device for acquiring topological graph data object and electronic equipment
CN105320921A (en) Binocular positioning method and binocular positioning apparatus
US11893685B2 (en) Landform map building method and apparatus, electronic device and readable storage medium
US20160085831A1 (en) Method and apparatus for map classification and restructuring
CN110765893B (en) Drawing file identification method, electronic equipment and related product
CN115546809A (en) Table structure identification method based on cell constraint and application thereof
CN114048539A (en) CAD file analysis and rule judgment method and related device
CN111782758A (en) Drawing review result viewing method based on CAD and related device
CN112486384B (en) Picture examination processing method and related device
CN114444168A (en) Method and device for identifying wall column in building drawing, electronic equipment and storage medium
CN113870196A (en) Image processing method, device, equipment and medium based on anchor point cutting graph
CN111428430B (en) Method, device, equipment and medium for acquiring circuit device information in circuit design
CN110334327B (en) Automatic generation method and device of area information and storage device
CN111783561A (en) Picture examination result correction method, electronic equipment and related products
CN108734761B (en) Scene visualization method and device, electronic equipment and storage medium
CN111783180B (en) Drawing splitting method and related device
CN114612889A (en) Instrument information acquisition method and system, electronic equipment and storage medium
CN113610512A (en) Electronic signature generation method, device, equipment and storage medium
CN114419070A (en) Image scene segmentation method, device, equipment and 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230616

Address after: A601, Zhongke Naneng Building, No. 06 Yuexing 6th Road, Gaoxin District Community, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 518051

Applicant after: Shenzhen Wanyi Digital Technology Co.,Ltd.

Address before: 519000 room 105-24914, No.6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province (centralized office area)

Applicant before: WANYI TECHNOLOGY Co.,Ltd.