CN113642091B - Drawing-based change hanging method and device, electronic equipment and storage medium - Google Patents

Drawing-based change hanging method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113642091B
CN113642091B CN202111200754.8A CN202111200754A CN113642091B CN 113642091 B CN113642091 B CN 113642091B CN 202111200754 A CN202111200754 A CN 202111200754A CN 113642091 B CN113642091 B CN 113642091B
Authority
CN
China
Prior art keywords
file
drawing file
original
axle
data
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
CN202111200754.8A
Other languages
Chinese (zh)
Other versions
CN113642091A (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.)
Shenzhen Xumi Yuntu Space Technology Co Ltd
Original Assignee
Shenzhen Xumi Yuntu Space 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 Shenzhen Xumi Yuntu Space Technology Co Ltd filed Critical Shenzhen Xumi Yuntu Space Technology Co Ltd
Priority to CN202111200754.8A priority Critical patent/CN113642091B/en
Publication of CN113642091A publication Critical patent/CN113642091A/en
Application granted granted Critical
Publication of CN113642091B publication Critical patent/CN113642091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The disclosure provides a drawing-based change hooking method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring an original drawing file and a changed drawing file, and converting the original drawing file and the changed drawing file into the original drawing file and the changed drawing file in a unified format; based on the original drawing files with the uniform format and the shaft network data in the changed drawing files, associating the drawings of the changed drawing files with the uniform format to the drawings of the original drawing files with the uniform format by using a circle note hanging mode so as to establish an association relationship between the changed drawing files with the uniform format and the original drawing files with the uniform format; and acquiring the circle note attribute, generating a rewriting file according to the circle note attribute, and performing rewriting operation on the original drawing file by using the rewriting file so as to rewrite the circle note graph to the original drawing file. This openly can realize the automation of change and articulate, reduced the consuming time of change articulate the operation, promoted the convenience and the accuracy that the change articulated.

Description

Drawing-based change hanging method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the technical field of drawing change, and in particular, to a drawing-based change hooking method and apparatus, an electronic device, and a storage medium.
Background
In the construction of building engineering, a large amount of drawings are generated from the design of construction drawings to the completion of the construction, and sometimes the drawings in the construction process need to be revised and adjusted according to actual construction requirements, and the revision and the adjustment of the drawings are called as the change of the drawings. In an actual scene, data separated from the original drawing is usually data, but for convenience of a designer to directly view specific change information (such as a position where a change occurs) in the drawing, the change needs to be hung on the drawing.
In the prior art, the change information usually exists in a form of a paper file, for example, a drawing change person writes the change information in a text description manner in a change description, so when hanging the change on a drawing, the change information needs to be manually hung in the drawing in a manual drawing manner according to the description information in the change description, for example, a change position is marked in a cloud line drawing manner. However, the manual labeling change hanging mode increases the time consumption of hanging operation, hanging errors are easy to occur, when the change and the version of the drawing are more, the corresponding relation between the change and the drawing is very easy to be disordered when the relation between the change and the drawing is established by manually drawing a cloud line and a text description mode, and the like, and in addition, the change description of the paper version is easy to lose and damage.
Disclosure of Invention
In view of this, the embodiments of the present disclosure provide a method and an apparatus for hooking change based on a drawing, an electronic device, and a storage medium, so as to solve the problems in the prior art that hooking operation is time-consuming, hooking errors are easily caused, a corresponding relationship between a change and a drawing is disordered, and a change description is easily lost and damaged.
In a first aspect of the embodiments of the present disclosure, a method for modifying a hooking connection based on a drawing is provided, including: acquiring an original drawing file and a changed drawing file generated after changing the drawing of the original drawing file; converting the original drawing file and the change drawing file into an original drawing file and a change drawing file which meet the requirement of a preset type and have a unified format; based on the original drawing files with the uniform format and the shaft network data in the changed drawing files, associating the drawings of the changed drawing files with the uniform format to the drawings of the original drawing files with the uniform format by using a circle note hanging mode so as to establish an association relationship between the changed drawing files with the uniform format and the original drawing files with the uniform format; and acquiring the circle note attribute, generating a rewriting file according to the circle note attribute, and performing rewriting operation on the original drawing file by using the rewriting file so as to rewrite the circle note graph to the original drawing file.
In a second aspect of the embodiments of the present disclosure, a drawing-based change hanging device is provided, including: the acquisition module is configured to acquire an original drawing file and a changed drawing file generated after a drawing of the original drawing file is changed; the conversion module is configured to convert the original drawing file and the changed drawing file into the original drawing file and the changed drawing file which meet the requirement of a preset type and have a unified format; the association module is configured to associate the drawings of the changed drawing files in the unified format with the drawings of the original drawing files in the unified format in a way of circling and hooking based on the original drawing files in the unified format and the shaft network data in the changed drawing files so as to establish an association relationship between the changed drawing files in the unified format and the original drawing files in the unified format; and the rewriting module is used for acquiring the circle note attribute, generating a rewriting file according to the circle note attribute, and performing rewriting operation on the original drawing file by using the rewriting file so as to rewrite the circle note graph to the original drawing file.
In a third aspect of the embodiments of the present disclosure, an electronic device is provided, which includes a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method when executing the program.
In a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program, which when executed by a processor, implements the steps of the above-mentioned method.
The embodiment of the present disclosure adopts at least one technical scheme that can achieve the following beneficial effects:
the method comprises the steps of obtaining an original drawing file and a changed drawing file generated after a drawing of the original drawing file is changed; converting the original drawing file and the change drawing file into an original drawing file and a change drawing file which meet the requirement of a preset type and have a unified format; based on the original drawing files with the uniform format and the shaft network data in the changed drawing files, associating the drawings of the changed drawing files with the uniform format to the drawings of the original drawing files with the uniform format by using a circle note hanging mode so as to establish an association relationship between the changed drawing files with the uniform format and the original drawing files with the uniform format; and acquiring the circle note attribute, generating a rewriting file according to the circle note attribute, and performing rewriting operation on the original drawing file by using the rewriting file so as to rewrite the circle note graph to the original drawing file. The automatic hooking device can realize automatic hooking between the change drawing and the original drawing without manual hooking operation by means of the change description of the paper edition, reduces time consumption of the change hooking operation, is not easy to cause hooking errors, has disordered change corresponding relation and has the problems of easy loss, damage and the like of the change description, and improves convenience and accuracy of change hooking.
Drawings
To more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without inventive efforts.
FIG. 1 is a schematic diagram of a relationship between a change and a construction blueprint in an actual application scene;
fig. 2 is a schematic flow chart of a method for modifying a hooking connection based on a drawing according to an embodiment of the present disclosure;
FIG. 3 is a schematic workflow diagram of a system according to an embodiment of the present disclosure in an actual scenario;
FIG. 4 is a schematic structural diagram of a hitch coupler based on a drawing according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the disclosed embodiments. However, it will be apparent to one skilled in the art that the present disclosure may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present disclosure with unnecessary detail.
In the field of building construction, a large number of drawings, such as design drawings, construction drawings, completion drawings and the like, are involved in the whole flow operation of the whole building construction, and the drawings may be checked and modified at each stage of the building construction process, and the modification of the drawings can be regarded as the change of the drawings. Because the prior change hanging mode based on offline change paper files draws change information to a construction blueprint has the following problems:
1) because the change hooking is completed on the basis of the paper version files on line, the problems of loss, damage and the like of the change drawing files are easy to occur in the practical process of the actual scene.
2) The versions of the change and construction blueprints are various, and the association relationship between the change and construction blueprints is established by simply depending on the text description, so that the problems of disordered corresponding relationship between the change and construction blueprints and the like are easily caused.
3) The incidence relation between the change drawing and the construction blueprint is established by means of text description, changes need to be hung on the construction blueprint in a mode of manually drawing a cloud line on the construction blueprint, the time consumption of the hanging process is long, and errors are prone to occurring.
Therefore, a scheme is needed to be provided, which can reduce the difficulty of change hooking operation, avoid the change hooking error caused by manually drawing a cloud line, avoid the confusion of the corresponding relation between the change and the drawing, avoid the loss of documents such as paper change explanation and drawing, improve the change hooking efficiency of the construction blueprint, and realize automatic change hooking.
The following describes a relationship between a change and a construction blueprint, taking the construction blueprint in the field of real estate building construction as an example, with reference to the accompanying drawings. FIG. 1 is a schematic diagram of a relationship between a change and a construction blueprint in an actual application scenario. As shown in fig. 1, the relationship between the change and the construction blueprint mainly includes the following contents:
the drawing change may also be referred to as a design change, and the change may include both a description of the change and a drawing change. The change instruction can be based on the drawing standard of the national construction drawing, and can supplement, confirm and modify the problems of error, omission, collision, deficiency and the like in the original construction blueprint, and the change instruction can describe changed position information, change reasons and other information (such as material information of objects and the like) which cannot be described by depending on geometric figures and three-dimensional sizes in the drawing in a text form.
The alteration drawing may be a drawing generated according to an alteration of an original drawing, where the alteration drawing is used to indicate a modification made to the original drawing (such as an original construction blueprint), and the alteration drawing may only include a modified geometric figure corresponding to a modification position, so that the alteration drawing may be regarded as a patch file generated after the original drawing is modified. In an actual scene, the change drawings are not directly drawn on the construction blueprints, and the drawings for guiding construction are independently provided, and after all the construction of the building is completed, all the change drawings and the construction blueprints are uniformly combined to form a completion drawing. The change drawing is a drawing file which is independently provided for modifying the original drawing, so that the change drawing can be regarded as the change drawing corresponding to the original drawing.
In the existing scene of changing the construction blueprint, the change generally comprises a change description and a change drawing, wherein the change drawing is a drawing explanation of the change description, and the change description and the change drawing are combined to form a modification description for the construction blueprint; the changed drawings and the construction blueprints can be linked in a cloud coil casting mode, and a final as-built drawing is generated according to the construction blueprints and the changed drawings.
Here, the change refers to the change and adjustment of the construction blueprint, and in the prior art, the change is usually presented in the form of a paper document, and the changed paper document describes the information such as the occurrence position and the area on the construction blueprint in detail by means of characters besides the modification of the drawing itself by means of the form of the drawing. After the changed paper file is issued to the constructor, the constructor can know the information such as the position, the area and the like of the change on the construction blueprint according to the text description.
It should be noted that, the embodiment of the present disclosure is described by taking a construction blueprint in the field of building construction as an example, however, the change hooking scheme provided by the embodiment of the present disclosure is not limited to the construction blueprint nor to the drawings in the field of building construction, and other scenarios that require establishing a connection between a change drawing and an original drawing based on the change drawing are also applicable. The execution main body of the embodiment of the disclosure may be a change hooking tool in an intelligent drawing system for building construction, or an independent change hooking system, and the application scenario and the execution main body do not limit the disclosure.
Fig. 2 is a schematic flow chart of a method for modifying a hooking connection based on a drawing according to an embodiment of the present disclosure. The drawing-based change hooking method in fig. 2 may be executed by a server, and as shown in fig. 2, the drawing-based change hooking method may specifically include:
s201, acquiring an original drawing file and a changed drawing file generated after changing the drawing of the original drawing file;
s202, converting the original drawing file and the changed drawing file into an original drawing file and a changed drawing file which meet the requirement of a preset type and have a unified format;
s203, based on the original drawing files with the uniform format and the shaft network data in the changed drawing files, associating the drawings of the changed drawing files with the uniform format to the drawings of the original drawing files with the uniform format by using a circle note hanging mode so as to establish an association relationship between the changed drawing files with the uniform format and the original drawing files with the uniform format;
and S204, acquiring the circle note attribute, generating a rewriting file according to the circle note attribute, and performing rewriting operation on the original drawing file by using the rewriting file so as to rewrite the circle note graph to the original drawing file.
Specifically, the original drawing file may be a drawing file corresponding to the construction blueprint, the original drawing file may be stored in a drawing library of the system server in advance, when the corresponding original drawing file is changed, the server calls the original drawing file, and the change is hooked on the line in a cloud coil annotation manner according to the uploaded change drawing, so that an association relationship between the change drawing and the original drawing is established. The original drawing file can be a two-dimensional drawing file or a three-dimensional drawing file, and the drawing format of the original drawing file can be DWG, RVT, SKP, 3DS and other formats.
The shaft net is a net formed by building axes drawn in a building drawing, comprises a linear shaft net, an oblique shaft net, an arc shaft net and the like, and consists of a positioning axis (such as the central line of a wall or a column in a building structure), a mark size (such as the distance between the positioning axes of a marked building) and a shaft number. The shaft net is a main frame for building drawing, main supporting members of the building are positioned and arranged according to the shaft net, the well-known and orderly effect is achieved, and the shaft number is a number defined by the shaft line.
Further, the alteration drawing includes a geometric figure corresponding to the modification position of the original drawing, for example: the length of a section of stair in the original drawing is 15 sections, the length of the stair is changed into 17 sections by a construction designer, then the construction designer needs to independently draw a change drawing for the changed stair, and the change drawing comprises a stair with the length of 17 sections; and the change drawing also shows the shaft network where the stair is located, the shaft number of the shaft network is the same as that of the shaft network where the stair is located in the original drawing, and the position where the change occurs can be located through the shaft number corresponding to the shaft network, for example, the transverse shafts of the shaft network are B1 and B2, the longitudinal shafts of the shaft network are A1 and A2, and the region where the change occurs can be determined through the shaft network region composed of B1, B2, A1 and A2.
It should be noted that the modifying hanging may be regarded as inserting the modification into the original drawing according to the modification drawing, so as to implement annotation on the original drawing. For example, the original drawing is annotated in a cloud coil annotation mode to display the position and information of the change, and the change is hung in the original drawing, so that the incidence relation between the change drawing and the construction blueprint can be established, and a basis is provided for further realizing visual hanging display.
According to the technical scheme provided by the embodiment of the disclosure, an original drawing file and a changed drawing file generated after the drawing of the original drawing file is changed are obtained; converting the original drawing file and the change drawing file into an original drawing file and a change drawing file which meet the requirement of a preset type and have a unified format; based on the original drawing files with the uniform format and the shaft network data in the changed drawing files, associating the drawings of the changed drawing files with the uniform format to the drawings of the original drawing files with the uniform format by using a circle note hanging mode so as to establish an association relationship between the changed drawing files with the uniform format and the original drawing files with the uniform format; and acquiring the circle note attribute, generating a rewriting file according to the circle note attribute, and performing rewriting operation on the original drawing file by using the rewriting file so as to rewrite the circle note graph to the original drawing file. The automatic hooking device can realize automatic hooking between the change drawing and the original drawing without manual hooking operation by means of the change explanation of the paper edition, reduces time consumption of the change hooking operation, is not easy to cause hooking errors, and solves the problems that the change corresponding relation is disordered and the change explanation is easy to lose and damage and the like.
In some embodiments, obtaining a change drawing file generated after a drawing change for an original drawing file includes: after the geometric figures in the drawing of the original drawing file are modified, generating a modified drawing file according to the modified geometric figures and the axis network corresponding to the modified geometric figures; the original drawing file and the changed drawing file comprise a plurality of layer files, and each layer file corresponds to one layer in the drawing.
Specifically, the alteration drawing file is based on a drawing which is provided separately after geometric figures in the original drawing are modified, for example: in the actual construction process, the original 15 sections of stairs need to be changed into 17 sections of stairs, so that a 17-section stair needs to be drawn in a single drawing, and the drawing is the same as the axle network to which the 15 sections of stairs belong in the original drawing, and the drawing obtained according to the drawing mode can be used as a change drawing of the original drawing. The alteration drawing may only contain geometric figures and no text information.
Further, the layer is a concept in graphic software, for example, in a construction blueprint drawn by AutoCAD software, the construction blueprint may be a drawing formed by overlapping a plurality of layers. One layer in the drawing corresponds to one layer file, that is, the drawing data is actually stored in a layer data manner, that is, a complete drawing file includes layer files or layer data corresponding to all layers. In practical application, the alteration drawing may adopt a drawing file with the same format as the original drawing.
In some embodiments, converting the original drawing file and the alteration drawing file into the original drawing file and the alteration drawing file with unified formats meeting the requirements of predetermined types includes: respectively extracting corresponding geometric figure data and attribute data from the original drawing file and the changed drawing file by using a preset calling function; according to the data types corresponding to the geometric figure data and the attribute data and a preset conversion rule corresponding to the data types, performing conversion operation on the geometric figure data and the attribute data to obtain the geometric figure data and the attribute data meeting the preset type requirement; and regenerating an original drawing file and a changed drawing file in a unified format according to the geometric figure data and the attribute data which meet the preset type requirement.
Specifically, because the formats of drawings drawn by different graphic engines are different, and the graphic engines installed on different terminals may also be different, in order to facilitate loading and displaying of drawing files with different formats in the graphic engines of different terminals, the drawing files with different formats need to be converted into drawing files with a uniform format, so that the purpose of presenting the drawing files at multiple ends is achieved.
After the server receives the change drawing and the construction blueprint, the drawing conversion service is called to convert the drawing into the drawing with the general format, the drawing with the general format can be used by a web end engine and a mobile end engine, namely, the drawing with the general format can be opened by different graphic engines and renders geometric figures, and the drawing files with different formats can be opened by different engines by converting the drawing files with different formats into the uniform format. The method is convenient for a user to browse drawings in real time, measure, paint brush, layer management, cloud coil annotation, drawing comparison and other operations on the terminal provided with different graphic engines.
Further, the calling function may be considered as an API interface provided by the graphics software of the called object, and the API interfaces of different pieces of software may be configured in advance in a server of the auditing system, and specifically, an API interface installation package provided by different pieces of software may be obtained, and the API interface may be configured in a computing program corresponding to the format conversion service in the server through the installation package. It should be noted that, the embodiments of the present disclosure do not limit the specific content of the calling function (i.e., the API interface), and the calling functions provided by different graphics software are not the same. In practical applications, the API interface is provided by the service side of different graphics software, and therefore, the specific content of the calling function does not constitute a limitation to the present technical solution.
Geometry data includes, but is not limited to, the following geometries: points, lines, arcs, ellipses, parabolas, quadratic curves, polylines, NURBS curves, NURBS surfaces, planes, cylinders, spheres, and torus, and attribute data including, but not limited to, the following attributes: layer, view, color, material, style, and text.
It should be noted that drawing files in different formats are converted into drawing files in a unified format, where the unified format is a unique unified format generated based on the conversion scheme of the embodiment of the present disclosure, and the drawing files in the unified format may be opened by different software or graphics engines.
Here, by converting the drawing into the drawing in the general format, in the process, the database can keep the association between the drawing file in the original format and the drawing file in the general format, and the server can also find the drawing file in the general format corresponding to the drawing by querying the database while previewing the drawing by the engine of any port.
In some embodiments, performing a conversion operation on the geometry data and the attribute data according to a data type corresponding to the geometry data and the attribute data and a preset conversion rule corresponding to the data type includes: converting the geometric figure data and the attribute data into geometric figure data and attribute data meeting the requirements of a preset type according to a preset mapping relation of classes among different data types and a data conversion rule corresponding to the classes; wherein a class is used to represent a collection of objects having the same properties and construction as the geometry data and property data that meet the requirements of a predetermined type.
Specifically, in the embodiment of the present disclosure, a unified type library is preconfigured, and a mapping relationship between classes of different data object types is preconfigured in the unified type library, that is, a class, such as a linear class, a point class, and a circular arc class, is defined for a type to which each data object belongs. A class refers to a collection of a set of objects having the same properties and methods, which provides a uniform abstract description for all objects belonging to the class. In practical application, when defining the corresponding class for the data object, the attribute and the representation mode of the data object of the same type can be encapsulated into the class of the data object according to the requirements of the preset format of the invention on different data object types, that is, compared with the original data object, the attribute and the representation mode of the original data object can be constructed into the attribute and the representation mode defined by the format of the invention through the class. Thus, in the disclosed embodiments, a class may be considered as a way of constructing an object, i.e., according to which a data object of one class may be converted into an object of another class.
Further, in the embodiment of the present disclosure, conversion rules between different types of data objects may be written into a class (i.e., a construction manner), and functions of different data objects may be mapped to functions required by a uniform format through the conversion rules, and the conversion rules may be regarded as a conversion relationship of the functions. In the following, a description is given of a function conversion between information of data objects by using a conversion rule, taking a point as a data object as an example, where a function of a point pair in a DWG file is "origin ()"; the function at the point in the RVT is Rpoint (); the function of the point in the SKP file is Kpoint (); mapping the different function data to Lpoint () by using a conversion rule; through the operation, the points in the files with different formats can be converted into the points in the file with the uniform format. The content in the bracket may be parameter or attribute information of the point.
According to the technical scheme provided by the embodiment of the disclosure, the class of the data object in the initial format file is mapped to the class of the object in the uniform format of the invention through the uniform type library, and because the representation modes of the objects in the files in different formats are different, the functions of the objects in the files in different formats are corresponding to the functions of the objects in the format of the invention through the conversion rule, and the unification of the representation modes of the objects in the files in different formats is realized through the conversion, thereby achieving the unification of the data structure.
In some embodiments, associating the drawing of the changed drawing file with the drawing of the original drawing file with the unified format by using a circle annotation hooking mode based on the axle network data in the original drawing file with the unified format and the axle network data in the changed drawing file comprises: extracting first axle network layer data and second axle network layer data from an original drawing file and a changed drawing file with a uniform format respectively, and acquiring axle numbers in the first axle network layer data and the second axle network layer data; matching the axle number in the second axle network layer data with the axle number in the first axle network layer data so as to determine an axle network area corresponding to the drawing of the changed drawing file with the uniform format in the drawing of the original drawing file with the uniform format, and taking the axle network area as the changed area; according to the corresponding coordinates of the shaft network area in the drawings of the original drawing files with the uniform format, associating the drawings of the changed drawing files with the uniform format to the drawings of the original drawing files with the uniform format in a circle annotation hanging mode so as to mark the changed area in the drawings of the original drawing files with the uniform format; and the shaft network area is a closed area formed by the axis corresponding to the shaft number determined according to the matching result.
Specifically, in order to determine the changed hub axle network region according to the axle number in the change drawing, it is necessary to extract the hub axle network layer data in the original drawing file and the change drawing file, where the hub axle network layer data is a layer file corresponding to a hub axle network layer, and the hub axle network layer file is a file corresponding to a hub axle network layer of the drawing, and therefore, the hub axle network layer file includes data (such as the axle number) of all the hub axles corresponding to the drawing. Because the drawing generally corresponds to a plurality of layer files, the layer files can be identified according to the identifiers of the shaft network layer files, so that which layer files belong to the shaft network layer files can be judged, and the identified shaft network layer files can be extracted.
In some embodiments, matching the axle number in the second axis network layer data with the axle number in the first axis network layer data includes: and converting the shaft number into an ASCII code, comparing the ASCII code corresponding to the shaft number in the second shaft network layer data with the ASCII code corresponding to the shaft number in the first shaft network layer data, determining the shaft number with the same ASCII code, and taking the shaft number with the same ASCII code as a matching result.
Specifically, after the axle network layer data corresponding to the original drawing file and the modified drawing file are obtained, the axle numbers in the axle network layer data can be further obtained, the axle numbers corresponding to the respective drawing files are converted into ASCII codes, and the axle numbers can be searched through the ASCII codes.
According to the technical scheme provided by the embodiment of the disclosure, the axes with the same axis number can be quickly found by comparing the axis number in the construction blueprint with the axis number in the change blueprint, and the axis network area is quickly positioned according to the closed area formed by the axes, so that the changed area is further determined according to the axis network area, the efficiency of positioning the changed area is greatly improved, and the time consumed by hanging change is reduced.
In some embodiments, determining the corresponding axis network region of the drawing of the uniform-format alteration drawing file in the drawing of the uniform-format original drawing file comprises: according to the axle numbers with the same ASCII codes, determining the corresponding axle lines of the axle numbers with the same ASCII codes from the drawings of the original drawing files with the uniform format, determining a closed area formed by the axle lines in the drawings of the original drawing files with the uniform format, and taking the closed area as an axle network area; the axis numbers having the same ASCII code include a horizontal axis number and a vertical axis number corresponding to the axis network.
Specifically, the axle network may be considered as a network composed of axes, and in a layer displayed on a drawing, the axle network is arranged in a structure of a shape like a Chinese character jing, and a closed region in the middle of the shape like a Chinese character jing corresponds to an axle network region. That is to say, the embodiment of the present disclosure realizes the positioning of the modification area by comparing the shaft numbers between the modification drawing and the original drawing, that is, the shaft numbers are used to look up the shaft lines, and the closed area formed by the shaft lines is used as the area where the modification occurs (i.e., the area corresponding to the modified geometric figure). In practical applications, a complete axle network comprises at least four axes, namely two transverse axis and two longitudinal axis, and the four axes jointly enclose an axle network area.
In some embodiments, the coordinates corresponding to the hub area in the drawing of the unified format original drawing file include: determining the vertex coordinates of the closed graph corresponding to the axle network area in the drawing of the original drawing file with the uniform format according to the closed graph corresponding to the axle network area, calculating the geometric center point of the axle network area according to the vertex coordinates, and taking the geometric center point of the axle network area as a reference center point for hanging change.
Specifically, after the area of the axis network is determined, the position of the cloud loop note needs to be further determined according to the area of the axis network in combination with cloud line information, in practical application, the determination is performed by further calculating the relationship between the geometric center point of the cloud line and the axis network, that is, the coordinate of the geometric center point in the drawing corresponding to the area of the axis network is determined, and the reference point of the cloud loop note (that is, the center point of the cloud line) is determined according to the coordinate of the geometric center point.
Further, the axis network region may be an axis network region in the modified drawing or an axis network region in the original drawing, and since the final labeling of the cloud line modification is implemented in the original drawing, when the axis network region is the axis network region corresponding to the modified drawing, the coordinates of the axis network region corresponding to the modified drawing need to be mapped to the axis network region of the original drawing according to a transformation matrix between the coordinates of the modified drawing and the coordinates of the original drawing. In practical application, the transformation matrix may be defined according to a format corresponding to an actual drawing and a data requirement, and therefore, a detailed description is not provided.
In some embodiments, the method for hooking the note in a circle includes cloud note hooking, and associating the drawing of the changed drawing file with the uniform format with the drawing of the original drawing file with the uniform format by using the method for hooking the note in a circle so as to establish an association relationship between the changed drawing file with the uniform format and the original drawing file with the uniform format, including: and generating a cloud coil annotation layer corresponding to the change of the original drawing with the uniform format according to the coordinate of the reference center point and the cloud line attribute information, loading the cloud coil annotation layer into the original drawing file with the uniform format, and establishing a mapping relation among the ID of the changed drawing file, the ID of the cloud coil annotation layer and the ID of the original drawing file.
Specifically, the cloud coil label is presented in the original drawing in a layer mode, so that in order to establish an association relationship between the cloud coil label (which can represent a changed position) and the original drawing, after a reference central point corresponding to a cloud line is determined, the cloud coil label layer can be generated according to the reference central point and cloud line attribute information, the cloud coil label layer is loaded into a file of the original drawing, and when a graphic engine calls the original drawing file, the cloud coil label layer in the original drawing file can be loaded, so that a construction blueprint with the cloud coil label is rendered.
Further, the change drawing file and the original drawing file in the above embodiment may both be regarded as drawing files in a general format obtained after format conversion, and therefore, the cloud coil annotation layer is actually directly loaded into the drawing file corresponding to the construction blueprint in the format, that is, the layer file corresponding to the cloud coil annotation layer is inserted into the drawing file corresponding to the construction blueprint, and a mapping relationship between the cloud coil annotation layer, the change drawing file, and the original drawing file is established. The association relationship between the cloud coil annotation and the drawing is established, so that the three data files can be called according to the association relationship in the following process, for example, in a hanging visual tool of a terminal, the identification of a change drawing is clicked, the cloud coil annotation automatically jumps to a change position, the cloud coil annotation data and the drawing data can be stored in a server, and the cloud coil annotation and the drawing data are automatically loaded when the cloud coil annotation is carried out.
According to the technical scheme provided by the embodiment of the disclosure, the change is articulated to the construction blueprint in a way of cloud coil casting on the line, namely the cloud coil is cast to the construction blueprint middle area with a general format, the incidence relation between the change and the construction blueprint is established, the user can quickly click to skip and check in a visual articulating tool of the terminal, the user can conveniently and quickly position the occurrence position or area of a certain change on the construction blueprint, and the change blueprint corresponding to a certain coil casting on the construction blueprint is quickly positioned.
In some embodiments, the original drawing file is a DWG format file, and the writeback file is a vector diagram file; acquiring the circle note attribute, generating a rewriting file according to the circle note attribute, and executing rewriting operation on the original drawing file by using the rewriting file, wherein the rewriting operation comprises the following steps: the method comprises the steps of obtaining an original drawing file in a DWG format and cloud coil annotation attributes, generating a cloud line vector diagram according to the cloud line attributes, and inserting the cloud line vector diagram into a cloud coil annotation layer file corresponding to the original drawing file in the DWG format by using an API (application programming interface) corresponding to the original drawing file in the DWG format so as to render a cloud coil annotation layer in a drawing of the original drawing file in the DWG format; the cloud coil note attributes comprise the center point, the width, the height, the line type and the color of the cloud line.
Specifically, after the association relationship between the change and the construction blueprint is established, since the drawing inserted into the cloud coil annotation layer is the original drawing file in the general format, in order to implement the cloud coil annotation in the actual original drawing file, the cloud coil annotation information needs to be written back into the original construction blueprint. The purpose of the rewriting is that if the rewriting is not carried out, the cloud coil is displayed on an independent layer, which is equivalent to an independent layer of cloud coil display in the construction blueprint, and only when the cloud coil display layer is superposed on other layers of the construction blueprint, the cloud coil display is overlapped with other layers for viewing, and the final cloud coil display can be seen, so that the cloud coil display can be seen only on the hanging tool. If the construction blueprint is downloaded to the local end and is opened by other graphic engine software, the cloud coil note cannot be seen. And the cloud coil annotation information can be annotated in the construction blueprint in the original DWG format through back writing so as to be convenient to view.
Further, during the back writing, the attributes of the cloud coil labels, such as the corner coordinates, line type, color, character coordinates, character size, character color and the like of the cloud lines, can be acquired, and a vector diagram in a json file format is generated according to the attribute information of the cloud lines; and then, loading the vector diagram corresponding to the cloud coil string into the original construction blueprint by using a graphic software plug-in (such as an Autocad write-back plug-in) which is configured on the terminal in advance and calling an API (application program interface) interface by using the write-back plug-in, namely redrawing the cloud line in the construction blueprint in the original DWG format. In addition, in practical application, in addition to the cloud coil casting mode, the changing position can be marked in a dot drawing mode, a star marking mode and the like, and the relation between the changing position and the construction blueprint is established.
According to the technical scheme provided by the embodiment of the disclosure, the cloud coil annotation information is rewritten to the original construction blueprint in the DWG format through the rewriting plug-in, so that the cloud coil annotation is directly drawn on the original construction blueprint, namely, the changed position is circled on the construction blueprint; after the construction blueprint is downloaded to the local end, any graphic software is used for opening, actual cloud coil annotation information can be seen, the construction blueprint which is completed through rewriting can be downloaded and exported, a completion drawing which is fused with the position change information is obtained, and the drawing generation efficiency is improved.
In some embodiments, the method further comprises: acquiring change description information corresponding to a change drawing file with a uniform format, and creating an association relation between the change description information and a cloud coil annotation layer; the change description information includes change description information corresponding to the drawing of the change drawing file with the uniform format.
Specifically, in order to conveniently check the change information actually generated at the change position corresponding to the cloud coil label, the change description corresponding to the change can be sent to the cloud server together, the cloud server creates the association relationship between the change description information and the cloud coil label layer, and because the mapping relationship between the cloud coil label layer and the change drawing and the original drawing is established before, the mapping relationship is also indirectly established between the change description and the change drawing and the original drawing, based on the mapping relationship, the change description information corresponding to the change coil label can be quickly positioned in the hooking tool of the terminal, so that a user can conveniently know the specific change information in detail.
Furthermore, in practical application, because the volume of the drawing file is large, when the transmission of the drawing is realized in each link, the drawing file data can be compressed to obtain binary data, the drawing file of the binary data is used as a transmission object, and the binary drawing file is decompressed after being received by the terminal or the cloud server, so that the transmission efficiency of the drawing data is improved.
According to the technical scheme provided by the embodiment of the disclosure, the change drawing and the construction blueprint are uploaded to a cloud server of the system, and the change drawing and the construction blueprint are converted in a unified format by using a format conversion function to form a drawing file in a unified data format, so that the drawing file can be conveniently released to different graphic engines for display at a later stage; the change of the drawing is hung on the construction blueprint in an online cloud coil injection mode, the incidence relation between the change and the construction blueprint is established, and a user can quickly click, position, skip and check based on an online hanging tool; and finally, reversely writing the cloud coil annotation into the original construction blueprint, and directly displaying the blueprint with the cloud coil annotation information after downloading the construction blueprint. The automatic hooking device can realize automatic hooking between the change drawing and the original drawing without manual hooking operation by means of the change explanation of the paper edition, reduces time consumption of the change hooking operation, is not easy to cause hooking errors, has disordered change corresponding relation, and has the problems of easy loss, damage and the like of the change explanation.
Based on the above description of the embodiment of the change hooking method based on drawings, the following describes an implementation flow of the change hooking method based on drawings in an actual scene with reference to specific drawings, and fig. 3 is a schematic view of a work flow of a system related to the embodiment of the present disclosure in the actual scene. As shown in fig. 3, the change hooking process in the actual scene mainly includes the following contents:
when the construction project is completed, the construction blueprint is modified in the construction process, so that a customer can clearly know the difference between the actual construction situation and the construction blueprint, and the completion drawing needs to be submitted and filed after the construction is completed. In the prior art, when drawing an as-built drawing, a method is adopted to show the relationship between a change and a construction blueprint by manually drawing a cloud line on the construction blueprint, namely, manually drawing the cloud line, in combination with the occurrence items and the occurrence positions of the change.
A user uploads a construction blueprint and a change drawing to a change sign system, the construction blueprint and the change drawing are distributed to a conversion service through the change sign system, the conversion service performs light weight on the drawing, namely the construction blueprint and the change drawing are converted into a drawing file with a uniform format, and then the change sign system loads the light weight file (namely the drawing file with the uniform format); and performing cloud coil annotation in the construction blueprint by using a change hooking module in the change tagging system, and establishing an association relation between the change blueprint and the construction blueprint. Returning the incidence relation between the change drawing and the construction blueprint to a change and consistency labeling system through a hanging event hanging module, acquiring cloud coil label attributes, such as attribute data of angular point coordinates, line types, colors, character coordinates, character sizes, character colors and the like of cloud lines, by the change and consistency labeling system, and generating a write-back file (such as a json file) based on the cloud coil label attributes; after a writeback module in the variable consistent labeling system acquires a writeback file in a json format, a circle note graph is drawn in the DWG drawing file based on cloud circle note attributes called by an API (including API _ point, API _ lineType, API _ color, API _ textHeight, API _ textColor and the like) of the DWG drawing file by calling a calling function corresponding to a construction blueprint (namely an original drawing file) in a DWG format. And finally, pushing the drawing file in the DWG format which is completed by rewriting to a variable consistent signature system, wherein the drawing file marked with the cloud line can be downloaded in the variable consistent signature system by a user, and the drawing file at the moment can be regarded as an as-built drawing.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 4 is a schematic structural diagram of a hitch device according to a drawing according to an embodiment of the present disclosure. As shown in fig. 4, the drawing-based hitch change device includes:
an obtaining module 401 configured to obtain an original drawing file and a modified drawing file generated after a drawing of the original drawing file is modified;
a conversion module 402 configured to convert the original drawing file and the changed drawing file into an original drawing file and a changed drawing file in a unified format meeting the predetermined type requirement;
the association module 403 is configured to associate the drawing of the changed drawing file with the unified format with the drawing of the original drawing file with the unified format in a way of circling and hooking based on the original drawing file with the unified format and the hub network data in the changed drawing file, so as to establish an association relationship between the changed drawing file with the unified format and the original drawing file with the unified format;
the rewriting module 404 obtains the circle attribute, generates a rewriting file according to the circle attribute, and performs rewriting operation on the original drawing file by using the rewriting file so as to rewrite the circle pattern into the original drawing file.
In some embodiments, after modifying the geometric figure in the drawing of the original drawing file, the obtaining module 401 in fig. 4 generates a modified drawing file according to the modified geometric figure and an axis network corresponding to the modified geometric figure; the original drawing file and the changed drawing file comprise a plurality of layer files, and each layer file corresponds to one layer in the drawing.
In some embodiments, the conversion module 402 of fig. 4 extracts the geometric data and the attribute data corresponding to each other from the original drawing file and the modified drawing file respectively by using a preset calling function; according to the data types corresponding to the geometric figure data and the attribute data and a preset conversion rule corresponding to the data types, performing conversion operation on the geometric figure data and the attribute data to obtain the geometric figure data and the attribute data meeting the preset type requirement; and regenerating an original drawing file and a changed drawing file in a unified format according to the geometric figure data and the attribute data which meet the preset type requirement.
In some embodiments, the conversion module 402 in fig. 4 converts the geometric data and the attribute data into geometric data and attribute data meeting the requirements of a predetermined type according to a preset mapping relationship between classes of different data types and a data conversion rule corresponding to the classes; wherein a class is used to represent a collection of objects having the same properties and construction as the geometry data and property data that meet the requirements of a predetermined type.
In some embodiments, the association module 403 in fig. 4 extracts the first axis network layer data and the second axis network layer data from the original drawing file and the modified drawing file in the unified format, and obtains the axle numbers in the first axis network layer data and the second axis network layer data; matching the axle number in the second axle network layer data with the axle number in the first axle network layer data so as to determine an axle network area corresponding to the drawing of the changed drawing file with the uniform format in the drawing of the original drawing file with the uniform format, and taking the axle network area as the changed area; according to the corresponding coordinates of the shaft network area in the drawings of the original drawing files with the uniform format, associating the drawings of the changed drawing files with the uniform format to the drawings of the original drawing files with the uniform format in a circle annotation hanging mode so as to mark the changed area in the drawings of the original drawing files with the uniform format; and the shaft network area is a closed area formed by the axis corresponding to the shaft number determined according to the matching result.
In some embodiments, the association module 403 in fig. 4 identifies, according to a preset identifier of the axicon layer data, the axicon layer data in the original drawing file with the unified format and the axicon layer data in the modified drawing file with the unified format, so as to extract the first axicon layer data from the original drawing file with the unified format and extract the second axicon layer data from the modified drawing file with the unified format; the first and second axis network layer data are respectively stored in the original drawing files in the unified format and the axis network layer files in the changed drawing files in the unified format.
In some embodiments, the association module 403 in fig. 4 converts the axle number into an ASCII code, compares the ASCII code corresponding to the axle number in the second axle layer data with the ASCII code corresponding to the axle number in the first axle layer data, determines the axle number with the same ASCII code, and takes the axle number with the same ASCII code as the matching result.
In some embodiments, the association module 403 in fig. 4 determines, according to the axle number with the same ASCII code, an axle line corresponding to the axle number with the same ASCII code from the drawing of the original drawing file with the unified format, and determines a closed area surrounded by the axle line in the drawing of the original drawing file with the unified format, and takes the closed area as an axle network area; the axis numbers having the same ASCII code include a horizontal axis number and a vertical axis number corresponding to the axis network.
In some embodiments, the association module 403 in fig. 4 determines, according to the closed graph corresponding to the axicon region, vertex coordinates of the closed graph corresponding to the axicon region in the drawing of the original drawing file with the uniform format, calculates a geometric center point of the axicon region according to the vertex coordinates, and uses the geometric center point of the axicon region as a reference center point for modifying hitching.
In some embodiments, the loop annotation hooking manner includes cloud loop annotation hooking, and the association module 403 in fig. 4 generates a cloud loop annotation layer corresponding to a change of the original drawing in the unified format according to the coordinate of the reference central point and the cloud attribute information, loads the cloud loop annotation layer into the original drawing file in the unified format, and establishes a mapping relationship between the change drawing file ID, the cloud loop annotation layer ID, and the original drawing file ID.
In some embodiments, the original drawing file is a DWG format file, the writeback file is a vector diagram file, the writeback module 404 of fig. 4 acquires the original drawing file in the DWG format and the cloud coil label attribute, generates a cloud line vector diagram according to the cloud line attribute, and inserts the cloud line vector diagram into the cloud coil label layer file corresponding to the original drawing file in the DWG format by using the API interface corresponding to the original drawing file in the DWG format, so as to render the cloud coil label layer in the drawing of the original drawing file in the DWG format; the cloud coil note attributes comprise the center point, the width, the height, the line type and the color of the cloud line.
In some embodiments, the association module 403 in fig. 4 obtains change instruction information corresponding to a change drawing file in a unified format, and creates an association relationship between the change instruction information and a cloud coil annotation layer; the change description information includes change description information corresponding to the drawing of the change drawing file with the uniform format.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.
Fig. 5 is a schematic structural diagram of an electronic device 5 provided in the embodiment of the present disclosure. As shown in fig. 5, the electronic apparatus 5 of this embodiment includes: a processor 501, a memory 502 and a computer program 503 stored in the memory 502 and operable on the processor 501. The steps in the various method embodiments described above are implemented when the processor 501 executes the computer program 503. Alternatively, the processor 501 implements the functions of the respective modules/units in the above-described respective apparatus embodiments when executing the computer program 503.
Illustratively, the computer program 503 may be partitioned into one or more modules/units, which are stored in the memory 502 and executed by the processor 501 to accomplish the present disclosure. One or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 503 in the electronic device 5.
The electronic device 5 may be a desktop computer, a notebook, a palm computer, a cloud server, or other electronic devices. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that fig. 5 is merely an example of the electronic device 5, and does not constitute a limitation of the electronic device 5, and may include more or less components than those shown, or combine certain components, or be different components, e.g., the electronic device may also include input-output devices, network access devices, buses, etc.
The Processor 501 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 502 may be an internal storage unit of the electronic device 5, for example, a hard disk or a memory of the electronic device 5. The memory 502 may also be an external storage device of the electronic device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the electronic device 5. Further, the memory 502 may also include both internal storage units and external storage devices of the electronic device 5. The memory 502 is used for storing computer programs and other programs and data required by the electronic device. The memory 502 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus/computer device and method may be implemented in other ways. For example, the above-described apparatus/computer device embodiments are merely illustrative, and for example, a division of modules or units, a division of logical functions only, an additional division may be made in actual implementation, multiple units or components may be combined or integrated with another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
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 disclosure 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 modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present disclosure may implement all or part of the flow of the method in the above embodiments, and may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the above methods and embodiments. The computer program may comprise computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain suitable additions or additions that may be required in accordance with legislative and patent practices within the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals or telecommunications signals in accordance with legislative and patent practices.
The above examples are only intended to illustrate the technical solutions of the present disclosure, not to limit them; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present disclosure, and are intended to be included within the scope of the present disclosure.

Claims (15)

1. A method for changing and hooking based on a drawing is characterized by comprising the following steps:
acquiring an original drawing file and a changed drawing file generated after changing the drawing of the original drawing file;
converting the original drawing file and the change drawing file into an original drawing file and a change drawing file which meet the requirement of a preset type and have a unified format;
determining the axle network layer data in the original drawing file and the changed drawing file with the uniform format, determining a changed axle network area according to an axle number in the axle network layer data, and judging the position of a cloud coil label according to the axle network area and cloud line information so as to associate the drawing of the changed drawing file with the uniform format to the drawing of the original drawing file with the uniform format in a coil label hanging mode according to the position of the cloud coil label, so as to establish an association relationship between the changed drawing file with the uniform format and the original drawing file with the uniform format;
acquiring the circle note attribute, generating a rewriting file according to the circle note attribute, and performing rewriting operation on the original drawing file by using the rewriting file so as to rewrite the circle note graph to the original drawing file.
2. The method of claim 1, wherein obtaining a change drawing file generated after a drawing change for the original drawing file is performed comprises:
after the geometric figures in the drawing of the original drawing file are modified, generating the change drawing file according to the modified geometric figures and the axis network corresponding to the modified geometric figures;
the original drawing file and the changed drawing file comprise a plurality of layer files, and each layer file corresponds to one layer in the drawing.
3. The method of claim 1, wherein converting the original drawing file and the change drawing file into a unified format of original drawing file and change drawing file meeting predetermined type requirements comprises:
respectively extracting corresponding geometric figure data and attribute data from the original drawing file and the changed drawing file by using a preset calling function;
according to the data types corresponding to the geometric figure data and the attribute data and a preset conversion rule corresponding to the data types, performing conversion operation on the geometric figure data and the attribute data to obtain geometric figure data and attribute data meeting the requirements of preset types;
and regenerating an original drawing file and a changed drawing file with a unified format according to the geometric figure data and the attribute data which meet the preset type requirement.
4. The method according to claim 3, wherein the performing a conversion operation on the geometry data and the attribute data according to a data type corresponding to the geometry data and the attribute data and a preset conversion rule corresponding to the data type comprises:
converting the geometric figure data and the attribute data into the geometric figure data and the attribute data which meet the requirements of the preset type according to the preset mapping relation of classes among different data types and the data conversion rule corresponding to the classes;
wherein the class is used for representing a set of objects having the same attributes and construction modes as the geometric data and attribute data meeting the predetermined type requirements.
5. The method of claim 1, wherein the determining of the axis network layer data in the unified original drawing file and the changed drawing file, determining a changed axis network region according to an axis number in the axis network layer data, and determining a position of a cloud coil label according to the axis network region and cloud line information, so as to associate the drawing of the changed drawing file with the drawing of the unified original drawing file by using a coil label hanging mode according to the position of the cloud coil label, comprises:
extracting first axle network layer data and second axle network layer data from the original drawing file and the changed drawing file with the uniform format respectively, and acquiring axle numbers in the first axle network layer data and the second axle network layer data;
matching the axle number in the second axle network layer data with the axle number in the first axle network layer data so as to determine an axle network area corresponding to the drawing of the uniform-format alteration drawing file in the drawing of the uniform-format original drawing file, and taking the axle network area as an alteration area;
according to the corresponding coordinates of the shaft network area in the drawing of the original drawing file with the uniform format, associating the drawing of the changed drawing file with the uniform format to the drawing of the original drawing file with the uniform format in the way of the circle annotation hanging so as to mark the changed area in the drawing of the original drawing file with the uniform format;
and the shaft network area is a closed area formed by the axis corresponding to the shaft number determined according to the matching result.
6. The method of claim 5, wherein the extracting first and second networking layer data from the unified original and modified drawing files, respectively, comprises:
according to the preset identification of the axle network layer data, identifying the axle network layer data in the original drawing file with the uniform format and the change drawing file with the uniform format so as to extract the first axle network layer data from the original drawing file with the uniform format and extract the second axle network layer data from the change drawing file with the uniform format;
and the first and second axis network layer data are respectively stored in the axis network layer files in the original drawing file with the uniform format and the changed drawing file with the uniform format.
7. The method according to claim 5, wherein matching the axle number in the second axis network layer data with the axle number in the first axis network layer data comprises:
and converting the axle number in the first axle network layer data and the axle number in the second axle network layer data into ASCII codes, comparing the ASCII codes corresponding to the axle number in the second axle network layer data with the ASCII codes corresponding to the axle number in the first axle network layer data, determining the axle number with the same ASCII codes, and taking the axle number with the same ASCII codes as a matching result.
8. The method of claim 5, wherein the determining the corresponding area of the axonometric coverage of the drawing of the unified blueprint change file in the drawing of the unified raw blueprint file comprises:
according to the axle number with the same ASCII code, determining an axle line corresponding to the axle number with the same ASCII code from the drawing of the original drawing file with the uniform format, determining a closed area surrounded by the axle line in the drawing of the original drawing file with the uniform format, and taking the closed area as an axle network area;
wherein, the axis numbers with the same ASCII code comprise a horizontal axis number and a vertical axis number corresponding to the axis network.
9. The method of claim 5, wherein the corresponding coordinates of the hub region in the drawing of the unified raw drawing file comprise:
determining the vertex coordinates of the closed graph corresponding to the axle network area in the drawing of the original drawing file with the uniform format according to the closed graph corresponding to the axle network area, calculating the geometric center point of the axle network area according to the vertex coordinates, and taking the geometric center point of the axle network area as a reference center point for hanging change.
10. The method according to claim 9, wherein the circle annotation hooking manner comprises cloud circle annotation hooking, and the associating of the drawing of the changed drawing file of the unified format with the drawing of the original drawing file of the unified format by using the circle annotation hooking manner so as to establish an association relationship between the changed drawing file of the unified format and the original drawing file of the unified format comprises:
and generating a cloud coil annotation layer corresponding to the change of the original drawing in the unified format according to the coordinate of the reference center point and the cloud line attribute information, loading the cloud coil annotation layer into the original drawing file in the unified format, and establishing a mapping relation among a change drawing file ID, a cloud coil annotation layer ID and the original drawing file ID.
11. The method of claim 10, wherein the original drawing file is a DWG format file and the writeback file is a vector diagram file;
the acquiring the circle note attribute, generating a rewriting file according to the circle note attribute, and performing rewriting operation on the original drawing file by using the rewriting file, wherein the rewriting operation comprises the following steps:
the method comprises the steps of obtaining an original drawing file in a DWG format and cloud coil annotation attributes, generating a cloud line vector diagram according to the cloud coil annotation attributes, and inserting the cloud line vector diagram into a cloud coil annotation layer file corresponding to the original drawing file in the DWG format by using an API (application program interface) corresponding to the original drawing file in the DWG format so as to render the cloud coil annotation layer in a drawing of the original drawing file in the DWG format;
the cloud coil mark property comprises the center point, the width, the height, the line type and the color of a cloud line.
12. The method of claim 1, further comprising:
acquiring change description information corresponding to the change drawing file with the uniform format, and creating an association relation between the change description information and the cloud coil annotation layer; and the change description information comprises change description information corresponding to the drawing of the change drawing file with the unified format.
13. A change hitch arrangement based on drawing, comprising:
the acquisition module is configured to acquire an original drawing file and a changed drawing file generated after a drawing of the original drawing file is changed;
the conversion module is configured to convert the original drawing file and the changed drawing file into an original drawing file and a changed drawing file which meet the requirement of a preset type and have a unified format;
the association module is configured to determine the axle network layer data in the original drawing file and the changed drawing file with the uniform format, determine a changed axle network area according to an axle number in the axle network layer data, and judge the position of a cloud coil label according to the axle network area and cloud line information, so that the drawing of the changed drawing file with the uniform format is associated to the drawing of the original drawing file with the uniform format by using a coil label hooking mode according to the position of the cloud coil label, and an association relation between the changed drawing file with the uniform format and the original drawing file with the uniform format is established;
and the rewriting module is used for acquiring the circle note attribute, generating a rewriting file according to the circle note attribute, and performing rewriting operation on the original drawing file by using the rewriting file so as to rewrite the circle note graph to the original drawing file.
14. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of any one of claims 1 to 12 when executing the program.
15. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 12.
CN202111200754.8A 2021-10-15 2021-10-15 Drawing-based change hanging method and device, electronic equipment and storage medium Active CN113642091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111200754.8A CN113642091B (en) 2021-10-15 2021-10-15 Drawing-based change hanging method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111200754.8A CN113642091B (en) 2021-10-15 2021-10-15 Drawing-based change hanging method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113642091A CN113642091A (en) 2021-11-12
CN113642091B true CN113642091B (en) 2022-01-28

Family

ID=78426986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111200754.8A Active CN113642091B (en) 2021-10-15 2021-10-15 Drawing-based change hanging method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113642091B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117251923B (en) * 2023-11-15 2024-03-12 深圳市四方智源科技有限公司 BIM model and two-dimensional drawing bidirectional parallel response type design method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622476B (en) * 2012-03-01 2014-02-12 成都鹏业软件股份有限公司 CAD (Computer Aided Design) drawing integration system for field of building amount of computation
CN105740484A (en) * 2014-12-10 2016-07-06 镇江雅迅软件有限责任公司 Method for intelligently associating design content of AutoCAD (Auto Computer Aided Design)
US10733775B1 (en) * 2019-02-15 2020-08-04 Procore Technologies, Inc. Generating technical drawings from building information models
CN111859494A (en) * 2019-04-23 2020-10-30 巧夺天宫(深圳)科技有限公司 Building model creating method and device and intelligent terminal
CN112765097A (en) * 2021-01-07 2021-05-07 珠海格力电器股份有限公司 Drawing file storage method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113642091A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
McHenry et al. An overview of 3d data content, file formats and viewers
CN108108962A (en) The online methods of exhibiting and device of Building Information Model BIM difference in version
CN109670222B (en) Model or drawing online difference comparison method, device and system
CN113642091B (en) Drawing-based change hanging method and device, electronic equipment and storage medium
CN116126809B (en) Building information model data storage conversion method based on national standard
CN111881809A (en) CAD drawing based primitive identification method and identification device
US20220035970A1 (en) Three-Dimensional (3D) Modeling Systems and Methods for Automatically Generating Photorealistic, Virtual 3D Package and Product Models from 3D and Two-Dimensional (2D) Imaging Assets
CN114756555B (en) Multi-source heterogeneous three-dimensional model data processing method and system
CN114443577A (en) Drawing processing method, device, equipment and storage medium
CN110704143A (en) Page generation method and device
CN109634611B (en) Mobile terminal three-dimensional model ply file analysis and display method based on OpenGL
CN111339599A (en) Conversion method from BIM model to GIS model
CN109976744B (en) Visual programming method, system and terminal equipment
CN113515792A (en) Intelligent checking method and device for graph model
Smolander OPRR: a model for modelling systems development methods
CN116305420B (en) Highway maintenance digital twin body construction method, system, equipment and medium
CN113468626B (en) Drawing generation method and device, electronic equipment and storage medium
CN113610512A (en) Electronic signature generation method, device, equipment and storage medium
CN116956838A (en) Project determining method and device for engineering quantity list
CN115375812A (en) CAD data rendering method and device, electronic equipment and storage medium
CN115170765A (en) Model processing system, method and device
CN113744417A (en) Dimension marking method of complex node model
CN103093496B (en) A kind of graphics Simulation method and system
CN113284217B (en) Method, device, equipment and storage medium for realizing semi-automatic drawing
CN117115805B (en) Random irregular object identification method and device under Unreal Engine platform

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