CN112465980A - Component model conversion method, modeling method and device and electronic equipment - Google Patents

Component model conversion method, modeling method and device and electronic equipment Download PDF

Info

Publication number
CN112465980A
CN112465980A CN202011497309.8A CN202011497309A CN112465980A CN 112465980 A CN112465980 A CN 112465980A CN 202011497309 A CN202011497309 A CN 202011497309A CN 112465980 A CN112465980 A CN 112465980A
Authority
CN
China
Prior art keywords
component model
converted
model
component
target
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.)
Granted
Application number
CN202011497309.8A
Other languages
Chinese (zh)
Other versions
CN112465980B (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.)
Glodon Co Ltd
Original Assignee
Glodon 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 Glodon Co Ltd filed Critical Glodon Co Ltd
Priority to CN202011497309.8A priority Critical patent/CN112465980B/en
Publication of CN112465980A publication Critical patent/CN112465980A/en
Application granted granted Critical
Publication of CN112465980B publication Critical patent/CN112465980B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Architecture (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of engineering construction, in particular to a component model conversion method, a modeling method, a device and electronic equipment, wherein the component model conversion method comprises the steps of obtaining a component model to be converted and a target component type of the component model to be converted; processing the attribute of the component model to be converted based on the target component type; and determining a target component model corresponding to the type of the target component according to the processing result. After the target component type of the component model to be converted is obtained, the attribute of the component model to be converted is processed, and the target component model corresponding to the component model to be converted can be determined.

Description

Component model conversion method, modeling method and device and electronic equipment
Technical Field
The invention relates to the technical field of engineering construction, in particular to a component model conversion method, a modeling method, a device and electronic equipment.
Background
In civil engineering and construction Information Modeling (BIM) software, whether a 3D model converted from a 2D drawing or a directly created 3D model or a model imported into the software through a 3D file, it is highly likely that the generated component model is not intended by itself in the process. For example, a frame beam should be generated, and a foundation beam is generated as a result, that is, the component type of the component model should be generated is the frame beam, and the component type of the component model generated is the foundation beam; or steel columns should be generated, resulting in the generation of frame columns, i.e. the component types of the component models that should be generated are steel columns, the component types of the component models that should be generated are frame columns, etc. In this case, the calculation of the component engineering quantities is affected if the component models are not converted. This is because the calculation rules are different for component models of different component types, and therefore it is necessary to draw the corresponding component models correctly in the BIM model.
In the prior art, a manual mode is generally adopted for converting a component model, and specifically, after an original component model is manually deleted, the component model is manually redrawn according to a correct component model. However, this process inevitably increases the workload of modelers, reduces the modeling efficiency, and seriously affects the project progress.
Disclosure of Invention
In view of this, embodiments of the present invention provide a component conversion method, a modeling method, an apparatus, and an electronic device, so as to solve the problem of low modeling efficiency caused by component model conversion.
According to a first aspect, an embodiment of the present invention provides a component model conversion method, including:
acquiring a component model to be converted and a target component type of the component model to be converted;
processing the attribute of the component model to be converted based on the target component type;
and determining a target component model corresponding to the type of the target component according to the processing result. Model of component to be converted
According to the component model conversion method provided by the embodiment of the invention, after the target component type of the component model to be converted is obtained, the attribute of the component model to be converted is processed based on the target component type, so that the target component model corresponding to the component model to be converted can be determined.
With reference to the first aspect, in a first implementation manner of the first aspect, the processing the attribute of the component model to be converted based on the target component type includes:
performing attribute inspection on the component model to be converted to obtain a preset component model;
and performing attribute assignment on the preset component model based on the target component type.
According to the component model conversion method provided by the embodiment of the invention, the attribute of the component model to be converted is checked to ensure the reliability of the obtained attribute of the preset component model; and attribute assignment is carried out on the preset component model based on the target component type, so that the efficiency of attribute assignment is improved.
With reference to the first embodiment of the first aspect, in a second embodiment of the first aspect, the performing an attribute check on the component model to be converted to obtain a preset component model, where the component model to be converted includes:
checking whether the component model to be converted has an attached primitive or not;
and when the accessory primitive exists in the component model to be converted, processing the accessory primitive of the component model to be converted to obtain a preset component model.
According to the component model conversion method provided by the embodiment of the invention, the accessory primitives of the component model to be converted are checked, and the accessory primitives are processed when the accessory primitives exist in the component model to be converted, so that the component model to be converted can be accurately replaced by the processed component model.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the processing the dependent primitive of the component model to be converted to obtain a preset component model includes:
sending first prompt information whether to delete the attached graphics primitives;
responding to a first selection operation of the first prompt message, wherein the first selection operation is determined based on the preset model;
and correspondingly processing the accessory primitives of the component model to be converted based on the first selection operation to obtain a preset component model.
According to the component model conversion method provided by the embodiment of the invention, the first prompt information is sent out when the accessory primitive of the component model to be converted exists, so that a user can correspondingly select the accessory primitive of the component model to be converted based on the first prompt information, and further, the accessory primitive of the component model to be converted is correspondingly processed, so that the processed component model can meet the requirements of the user.
With reference to the second implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the checking whether there are dependent primitives in the component model to be converted includes:
inquiring the primitive relation corresponding to the component model to be converted;
and determining whether the component model to be converted has an auxiliary primitive or not based on the primitive relation.
According to the component model conversion method provided by the embodiment of the invention, whether the accessory primitive exists can be directly determined through the primitive relation corresponding to the component model to be converted, and the component model conversion efficiency is improved.
With reference to the first embodiment of the first aspect, in a fifth embodiment of the first aspect, the performing an attribute check on the model of the component to be converted further includes:
carrying out illegal attribute check on the component model to be converted;
and when the component model to be converted has illegal attributes, sending out second prompt information of failure in conversion of the component model of the component to be converted.
According to the component model conversion method provided by the embodiment of the invention, the illegal attribute check is carried out on the component model to be converted, so that the legality of the subsequently determined target component model can be ensured, the condition that the target component model is obtained after the target component model is determined subsequently is avoided, and the modeling efficiency is improved.
With reference to the first embodiment of the first aspect, in a sixth embodiment of the first aspect, the performing an attribute check on the component model to be converted to obtain a preset component model further includes:
checking whether the component model to be converted has auxiliary information;
and when the accessory information exists in the component model to be converted, processing the accessory information of the component model to be converted to obtain the preset component model.
According to the component model conversion method provided by the embodiment of the invention, when the accessory information exists in the component model to be converted, the extracted accessory information of the component model is processed on the basis of the component model to be converted, so that the accuracy of the determined target component model can be ensured.
With reference to the sixth implementation manner of the first aspect, in the seventh implementation manner of the first aspect, the processing the accessory information of the component model to be converted to obtain the preset component model includes:
sending out third prompt information for judging whether to delete the auxiliary information;
responding to a third selection operation of the second prompt message, wherein the third selection operation is determined based on the preset model;
and correspondingly processing the auxiliary information of the component model to be converted based on the third selection operation to obtain the preset component model.
According to the component model conversion method provided by the embodiment of the invention, the specific processing mode of the auxiliary information is determined in a man-machine interaction mode, so that the target component model obtained after processing can meet the user requirements.
With reference to the first implementation manner of the first aspect, in an eighth implementation manner of the first aspect, the assigning attributes to the preset component model based on the target component type includes:
generating a name of the preset component model based on the target component type;
checking the preset component model under the same name;
and performing attribute assignment on the preset component model based on the result of the homonymy check.
According to the component model conversion method provided by the embodiment of the invention, the component model to be converted is subjected to the homonymy check, so that the failure of component model conversion caused by homonymy after the target component model is determined subsequently can be avoided, and the efficiency and the accuracy of component model conversion are improved.
With reference to the eighth implementation manner of the first aspect, in the ninth implementation manner of the first aspect, the assigning attributes to the preset component model based on the result of the homonymy check includes:
prompting the processing mode of the same-name component model;
responding to a fourth selection operation of the processing mode;
and based on the fourth selection operation, performing attribute assignment on the component model to be converted by adopting the attribute value of the component model with the same name as the preset component model, or performing attribute assignment on the component model to be converted again.
The component model conversion method provided by the embodiment of the invention provides a processing mode of the same-name component model for a user, so that the name processing of the component model to be converted is carried out based on the selection of the user, the processed name can be ensured to meet the requirements of the user, and the unification of the naming rules of each component model is ensured.
With reference to the first aspect or any one of the first to ninth embodiments of the first aspect, in a tenth embodiment of the first aspect, the determining, according to the processing result, a target component model corresponding to the target component type includes:
forming a target component model by using the processed result;
adjusting an operation in response to a property of the target component model;
and adjusting the attribute of the target component model based on the attribute adjusting operation, and determining the target component model corresponding to the target component type.
According to the component model conversion method provided by the embodiment of the invention, the target component model is generated after the attributes of the component model to be converted are processed, and then the attributes of the component model are adjusted based on the formed target component model, so that the accuracy of the finally determined target component model can be ensured.
According to a second aspect, an embodiment of the present invention further provides a modeling method, including:
according to the first aspect of the present invention or the component model conversion method described in any embodiment of the first aspect, component model conversion is performed on each component model to be converted in a preset building model, and a target component model corresponding to each component model to be converted is determined;
and replacing the corresponding component model to be converted by utilizing each target component model so as to determine the target building model corresponding to the preset building model.
According to the modeling method provided by the embodiment of the invention, after the target component type of the component model to be converted is obtained, the attribute of the component model to be converted is processed, and the target component model corresponding to the component model to be converted can be determined, so that the automatic conversion of the component model to be converted can be accurately realized, the modeling is not required to be carried out again, and the modeling efficiency is improved.
According to a third aspect, an embodiment of the present invention further provides a component model conversion apparatus, including:
the device comprises an acquisition module, a conversion module and a conversion module, wherein the acquisition module is used for acquiring a component model to be converted and a target component type of the component model to be converted;
the processing module is used for processing the attribute of the component model to be converted based on the target component type;
and the first determination module is used for determining a target component model corresponding to the target component type based on the processing result.
According to the component model conversion device provided by the embodiment of the invention, after the target component type of the component model to be converted is obtained, the attribute of the component model to be converted is processed, so that the target component model corresponding to the component model to be converted can be determined, the automatic conversion of the component model to be converted can be accurately realized, the modeling is not required to be carried out again, and the modeling efficiency is improved.
According to a fourth aspect, an embodiment of the present invention further provides a modeling apparatus, including:
a conversion module, configured to perform component model conversion on each component model to be converted in a preset building model according to the first aspect of the present invention or the component model conversion method described in any embodiment of the first aspect, and determine a target component model corresponding to each component model to be converted;
and the second determining module is used for replacing the corresponding component model to be converted by using each target component model so as to determine the target building model corresponding to the preset building model.
According to the modeling device provided by the embodiment of the invention, after the target component type of the component model to be converted is obtained, the attribute of the component model to be converted is processed, and the target component model corresponding to the component model to be converted can be determined, so that the automatic conversion of the component model to be converted can be accurately realized, the modeling is not required to be carried out again, and the modeling efficiency is improved.
According to a fifth aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, and the processor executing the computer instructions to perform the component model conversion method according to the first aspect or any one of the embodiments of the first aspect, or the modeling method according to the second aspect.
According to a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the component model conversion method described in the first aspect or any one of the embodiments of the first aspect, or the modeling method described in the second aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow diagram of a component model transformation method according to an embodiment of the invention;
FIG. 2 is a schematic illustration of a component model transformation according to an embodiment of the invention;
FIG. 3 is a flow chart of a component model transformation method according to an embodiment of the invention;
FIG. 4 is a flow diagram of a component model transformation method according to an embodiment of the invention;
FIG. 5 is a schematic illustration of how a model of a component of the same name is processed according to an embodiment of the invention;
FIG. 6 is a flow diagram of a modeling method according to an embodiment of the invention;
FIG. 7 is a block diagram of a component model conversion apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram of the structure of a modeling apparatus according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. 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 invention.
For the convenience of the following description, the terms referred to below are explained herein as follows:
(1) graphics primitive
The graphic element is the smallest operable display unit in the graphic information engineering. Such as: a pillar, which is shown as a cuboid in the graphical software and is described as a primitive; the primitive can be adjusted in length, width, height, reinforcing steel bar information and other attributes.
(2) Component
When most core characteristics of a group of primitives are the same, in order to avoid repeated definition, the group of primitives are merged into a member, and definition of common characteristic data is completed in the member; such as: one set of 400 × 3000 square columns is the same member, and the other set of 3000-high cylinders with a radius of 500 is the other member.
(3) Component model
The model formed by each component is called a component model.
(4) Component type
When a group of components belong to the same category from the business, the components are marked as a category and are described by component types. For example: columns, beams, walls, panels, are different types of components.
In accordance with an embodiment of the present invention, there is provided a component model transformation method embodiment, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
In this embodiment, a component model transformation method is provided, which can be used in electronic devices, such as computers, mobile phones, tablet computers, and the like, and fig. 1 is a flowchart of a component model transformation method according to an embodiment of the present invention, as shown in fig. 1, the flowchart includes the following steps:
s11, acquiring the component model to be converted and the target component type of the component model to be converted.
The model of the component to be converted can be determined in a preset building model by a user, and then the electronic equipment can acquire the model of the component to be converted in response to the selection operation of the user. The target component type can also be determined by a user on a human-computer interaction interface provided by the electronic equipment, and the electronic equipment can obtain the target component type in response to the determination operation of the user.
For example, the electronic device may provide two ways for the user to confirm the component model to be converted and the target component type:
(1) triggering a function command of component conversion, selecting a component model to be converted, and selecting a target component type;
(2) and selecting a component model to be converted, triggering a function command converted by the component, and selecting a target component type.
In some optional implementations of the present embodiment, fig. 2 illustrates a selection interface for a type of target component provided by an electronic device. For example, if the user selects a base beam on the interface, the type of target component acquired by the electronic device is the base beam.
And S12, processing the attributes of the component model to be converted based on the target component type.
The electronic equipment acquires the model of the component to be converted and the type of the target component, and can correspondingly process the data of the model of the component to be converted and the type of the target component, so that the processed model of the component can accurately replace the model of the component to be processed. The attributes may be attached information, attached primitives, and names of the component model to be processed. The specific attribute to be processed may be set according to the actual situation, and is not limited herein.
Further, the electronic device also processes the attributes of the component model to be converted according to the type of the target component. For example, the attribute value of the component model to be converted may be set according to the attribute value of the target component type to obtain the target component model.
Details about this step will be described later.
And S13, determining a target component model corresponding to the target component type based on the processing result.
After the electronic device performs the processing of S12, that is, the attributes of the component model to be converted are processed, the electronic device may determine the target component model corresponding to the component model to be converted. For example, the model subjected to the S12 attribute processing may be directly identified as the target component model, or the model subjected to the S12 attribute processing may be adaptively adjusted to identify the target component model.
Details about this step will be described later.
According to the component model conversion method provided by the embodiment, after the target component type of the component model to be converted is obtained, the attribute of the component model to be converted is processed, and the target component model corresponding to the component model to be converted can be determined.
In this embodiment, a component model transformation method is provided, which can be used in electronic devices, such as computers, mobile phones, tablet computers, and the like, fig. 3 is a flowchart of the component model transformation method according to the embodiment of the present invention, and as shown in fig. 3, the flowchart includes the following steps:
s21, acquiring the component model to be converted and the target component type of the component model to be converted.
Please refer to S11 in fig. 1, which is not repeated herein.
And S22, processing the attribute of the component model to be converted based on the target component type.
In the embodiment, the attribute processing involved by the component model to be converted includes attribute checking and attribute assignment. The attribute check may include checking of attached primitives and attached information of the component model to be converted. It should be noted that, in the following steps, there is no order requirement between the processing of the accessory primitives and the accessory information by the electronic device, and the specific execution order may be set according to the actual situation.
Exemplarily, the above S22 may include the following steps:
s221, performing attribute check on the component model to be converted to obtain a preset component model.
As described above, after the electronic device obtains the component model to be converted, it checks the attached primitives and the attached information, and performs corresponding processing, so as to obtain the preset component model.
In an optional implementation manner of this embodiment, the step S221 may include the following steps:
(1) and checking whether the component model to be converted has the attached primitive or not.
The accessory primitives are primitives which do not belong to the component model to be converted, but the primitives and the component model to be converted have an attachment relation, for example, a wall surface, skirting, doors and windows and the like are arranged on the wall, and the component model to be converted is a wall model, so the wall surface, the skirting and the doors and windows are all the accessory primitives of the wall model.
The electronic equipment can perform model analysis on the component model to be converted to determine whether the component model has an attached primitive or not; in the process of establishing each component model, the component model and the corresponding accessory primitive have an association relationship, and then the electronic device may also check whether the component model to be converted has an accessory primitive by using the association relationship.
For example, the step (1) may include the steps of:
and (1.1) inquiring the primitive relation corresponding to the component model to be converted.
A database for storing the correspondence between each component model and its dependent primitives may be maintained in the electronic device, for example, the component model and its dependent primitives are represented by a parent-child relationship correspondence table.
And (1.2) determining whether the component model to be converted has an auxiliary primitive or not based on the primitive relation.
Continuing to use the above example, in the parent-child relationship table, the wall is a parent, the wall surface, the skirting, the door and window and the like on the wall are children, the relationships are stored in the database, and the electronic device can judge whether the member model to be converted has the attached primitive or not through the parent-child relationship table.
When the member model to be converted has the accessory primitive, executing the step (2); otherwise, performing (3).
Whether the accessory primitives exist can be directly determined through the primitive relation corresponding to the component model to be converted, and the component model conversion efficiency is improved.
(2) And processing the accessory primitives of the component model to be converted to obtain the preset component model.
After the electronic device determines that the accessory primitive exists in the component model to be converted in step (1), it needs to determine whether the accessory primitive of the component model to be converted needs to be deleted. For example, the component model to be converted is a wall model, and a door or window does not exist in the target component model corresponding to the component model to be converted theoretically, so that the electronic device can automatically delete the accessory primitives in the wall model.
The electronic equipment can also determine whether the accessory primitives of the component model to be converted need to be deleted in a human-computer interaction mode.
Specifically, the step (2) may include the steps of:
and (2.1) sending first prompt information whether to delete the auxiliary primitive.
In this embodiment, the first prompt information sent by the electronic device is used as a human-computer interaction interface for the user to select on the interface.
And (2.2) responding to the first selection operation of the first prompt message.
And the user correspondingly selects on the interface according to the human-computer interaction interface provided based on the electronic equipment. Accordingly, the electronic device determines what processing of the extracted dependent primitive is required in response to the first selection operation.
And (2.3) correspondingly processing the accessory primitives of the component model to be converted based on the first selection operation to obtain the preset component model.
When the electronic equipment determines that the first selection operation is a deletion operation, the electronic equipment deletes the accessory primitives of the component model to be converted.
Optionally, the electronic device may send first prompt information to each accessory primitive in the component model to be converted in sequence, so that a user can confirm the processing mode of each accessory primitive in sequence; or sending a first prompt message to all the attached primitives in the component model to be converted, so that the user can determine the batch processing mode of all the primitives in the component model to be converted in batch.
And sending first prompt information when the accessory primitive exists in the component model to be converted, so that a user can correspondingly select the accessory primitive based on the first prompt information, and further correspondingly process the accessory primitive of the component model to be converted, and the processed component model can meet the requirements of the user.
(4) Checking whether the model of the component to be converted has auxiliary information.
The auxiliary information is information belonging to a component model to be converted, for example, whether the raft is a raft with a side slope or a raft, and the side slope is the auxiliary information of the raft. The electronic device can determine whether the accessory information exists by performing attribute analysis on the component model to be converted.
When the accessory information exists in the component model to be converted, executing the step (5); otherwise, step (6) is executed.
(5) And processing the auxiliary information of the component model to be converted to obtain a preset component model.
When the electronic device determines that the accessory information exists in the model of the component to be converted, the electronic device can analyze whether the accessory information needs to be reserved on the basis of the preset model, namely, whether the accessory information exists in the preset model is legal or not, and if the accessory information does not exist in the preset model, the accessory information needs to be deleted.
Exemplarily, the step (5) may include the steps of:
and (5.1) sending out third prompt information for judging whether to delete the auxiliary information.
After confirming that the accessory information exists in the component model to be converted, the electronic equipment can send out third prompt information to inquire whether the user needs to delete the accessory information. The third prompt message may be a voice prompt, an interface prompt, or the like.
And (5.2) responding to a third selection operation of the second prompt message.
The user provides a third selection operation to the electronic device on the basis of the second prompt message, and the electronic device can respond to the third selection operation of the user so as to determine a specific processing mode of the auxiliary information subsequently.
And (5.3) correspondingly processing the auxiliary information of the component model to be converted based on the third selection operation to obtain the preset component model.
If the third selection operation is deleting the auxiliary information, the electronic equipment deletes the auxiliary information of the component model to be converted; if the third selection operation is to retain the auxiliary information, the electronic device retains the auxiliary information of the component model to be converted.
The specific processing mode of the auxiliary information is determined in a man-machine interaction mode, so that the target component model obtained after processing can meet the user requirements.
(6) And carrying out illegal attribute check on the component model to be converted.
For example, if the component template to be converted is a cast-in-place slab with a thickness of 50mm or less, i.e. the target component template is provided with a thickness of 50mm or less, and if the type of the target component to be converted is a raft slab, and the thickness of the raft slab is required to be more than 50mm, then the component template to be converted is illegal at this time.
When the component model to be converted has illegal attributes, executing (7); otherwise, S222 is executed.
(7) And sending out second prompt information of failure of component model conversion of the component to be converted.
When the electronic equipment confirms that the component model to be converted has illegal attributes, second prompt information can be sent out to inform a user that the component model of the component to be converted fails to be converted.
When confirming that the component model conversion fails, the current component model conversion may be ended, or the user may be prompted to perform the component model conversion again, and so on.
S222, attribute assignment is carried out on the preset component model based on the type of the target component.
After the electronic equipment obtains the preset component model, the electronic equipment can directly assign the attribute of the preset component model by using the component corresponding to the target component type; the amplitude of the attribute can be customized according to the requirement, and the like.
In some optional implementations of this embodiment, the step S222 may include the following steps:
(1) based on the target component type, a name of a preset component model is generated.
And the electronic equipment sequentially generates the names of the preset component models according to the selected target component types. For example, if the target component type is a wall, then the name of the preset component model generated here may be wall 1, or other user-defined name.
(2) And carrying out the same-name check on the preset component model.
The electronic equipment checks the component models to be converted by the same name to determine whether the component models with the same name exist in the preset models.
The method provides a processing mode of the same-name component model for a user, so that the name processing of the component model to be converted is carried out based on the selection of the user, the processed name can be ensured to meet the requirements of the user, and the unification of the naming rules of all the component models is ensured.
(3) And performing attribute assignment on the preset component model based on the result of the homonymy check.
In the process of checking the same name, if the component model same as the preset component model is checked to exist, the electronic device can prompt a user that a duplicate name appears at the moment, whether attribute assignment can be carried out on the preset component model by using the attribute value of the component model with the same name or not, and the like.
Exemplarily, the step (3) includes the steps of:
and (3.1) prompting a processing mode of the component model with the same name.
When the electronic device triggers the homonymy check on the component model to be converted, it may present an interface as shown in fig. 5, on which several processing manners for processing the homonymy component model are provided.
And (3.2) responding to a fourth selection operation of the processing mode.
The user makes a selection on the interface illustrated in fig. 5 to determine a specific processing manner for the model of the homonymous component, and accordingly, the electronic device may determine the processing manner of the current homonymous component in response to a fourth selection operation of the user on the processing manner.
And (3.3) based on the fourth selection operation, performing attribute assignment on the component model to be converted by adopting the attribute value of the component model with the same name as the preset component model, or performing attribute assignment on the component model to be converted again.
After the electronic equipment determines the processing modes of the current components with the same name, each processing mode corresponds to the attribute assignment mode, and the names and the attribute values of the component models to be converted are correspondingly processed by using the determined processing modes.
And S23, determining a target component model corresponding to the target component type based on the processing result.
Please refer to S13 in fig. 1, which is not described herein again.
According to the component model conversion method provided by the embodiment, the accessory primitives of the component model to be converted are checked, and when the accessory primitives exist in the component model to be converted, the component model to be converted is processed based on the component model to be converted, so that the processed component model can accurately replace the component model to be converted. Meanwhile, when the accessory information exists in the component model to be converted, the extracted accessory information of the framework model is processed on the basis of the component model to be converted, and the accuracy of the determined target component model can be guaranteed.
In this embodiment, a component model transformation method is provided, which can be used in electronic devices, such as computers, mobile phones, tablet computers, and the like, fig. 4 is a flowchart of the component model transformation method according to the embodiment of the present invention, and as shown in fig. 4, the flowchart includes the following steps:
s31, acquiring the component model to be converted and the target component type of the component model to be converted.
Please refer to S11 in fig. 1, which is not repeated herein.
And S32, processing the attributes of the component model to be converted based on the target component type.
Please refer to S12 in fig. 3 for details, which are not described herein.
And S33, determining a target component model corresponding to the target component type based on the processing result.
Exemplarily, the above S33 may include the following steps:
s331, a target member model is formed using the processed result.
After the electronic device performs the processing based on S32, a corresponding target member model can be formed.
S332, responding to the attribute adjusting operation of the target component model.
If the user has a place of dissatisfaction with the automatically generated target component model, fine adjustment of the attributes of the target component model is required. Accordingly, the electronic device adjusts the operation in response to the user's attributes of the target component model.
S333, adjusting the attribute of the target component model based on the attribute adjusting operation to determine the target component model.
The electronic equipment correspondingly adjusts the attribute of the target component model based on the attribute adjustment operation of the user, so that the target component model corresponding to the component model to be converted can be determined.
According to the component model conversion method provided by the embodiment, the target component model is generated after the attributes of the component model to be converted are processed, and then the attributes of the component model are adjusted based on the formed target component model, so that the accuracy of the finally determined target component model can be ensured.
It should be noted here that, specifically, which of the attached primitive, the attached information, and the illegal attribute needs to be checked for the component model to be converted, corresponding setting may be performed according to an actual situation, no sequential relationship exists between the checks, and a specific execution sequence may also be set according to the actual situation, which is not limited herein.
In accordance with an embodiment of the present invention, there is provided a modeling method embodiment, it should be noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
In this embodiment, a modeling method is provided, which can be used in electronic devices, such as computers, mobile phones, tablet computers, and the like, fig. 6 is a flowchart of a component model transformation method according to an embodiment of the present invention, and as shown in fig. 6, the flowchart includes the following steps:
and S41, performing component model conversion on each component model to be converted in the preset building model according to the component model conversion method in any embodiment, and determining a target component model corresponding to each component model to be converted.
The preset model may be a model automatically generated after the target drawing is imported, or a model obtained by adaptively modifying the automatically generated model, and the like, and the preset model is not limited. For details, please refer to the detailed description of the above embodiments, which is not repeated herein.
And S42, replacing the corresponding component model to be converted by using each target component model to determine a target building model corresponding to the preset building model.
After determining the target component models corresponding to the component models to be converted, the electronic device may replace the corresponding component models to be converted with the determined target component models, so as to determine the target building models corresponding to the preset building models.
The electronic equipment can sequentially determine target component models corresponding to the component models to be converted, and replace the component models to be converted with the target component models; or batch processing of the component model to be converted, etc., and is not limited herein.
According to the modeling method provided by the embodiment, after the target component type of the component model to be converted is obtained, the attribute of the component model to be converted is processed, and the target component model corresponding to the component model to be converted can be determined, so that automatic conversion of the component model to be converted can be accurately achieved, modeling is not required to be carried out again, and modeling efficiency is improved.
In this embodiment, a component conversion device or a modeling device is further provided, and the device is used to implement the above embodiments and preferred embodiments, which have already been described and will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
The present embodiment provides a component switching apparatus, as shown in fig. 7, including:
an obtaining module 51, configured to obtain a component model to be converted and a target component type of the component model to be converted;
a processing module 52, configured to process the attribute of the component model to be converted based on the target component type;
and a first determining module 53, configured to determine, based on the processing result, a target component model corresponding to the target component type.
The component model conversion device provided by this embodiment can determine the target component model corresponding to the component model to be converted by processing the attribute of the target component type of the component model to be converted after acquiring the target component type, and can accurately realize automatic conversion of the component model to be converted without modeling again, thereby improving the modeling efficiency.
The present embodiment provides a modeling apparatus, as shown in fig. 8, including:
a conversion module 61, configured to perform component model conversion on each component model to be converted in a preset building model according to the component model conversion method described in any one of the foregoing embodiments, and determine a target component model corresponding to each component model to be converted;
and a second determining module 62, configured to replace the corresponding component model to be converted with each target component model, so as to determine a target building model corresponding to the preset building model.
The modeling apparatus provided in this embodiment can determine the target component model corresponding to the component model to be converted by processing the attribute of the target component type after acquiring the target component type of the component model to be converted, thereby accurately implementing automatic conversion of the component model to be converted without modeling again, and improving the modeling efficiency.
The component model conversion means or modeling means in this embodiment is presented in the form of functional units, where a unit refers to an ASIC circuit, a processor and memory executing one or more software or fixed programs, and/or other devices that can provide the above-described functionality.
Further functional descriptions of the modules are the same as those of the corresponding embodiments, and are not repeated herein.
An embodiment of the present invention further provides an electronic device, which has the framework model conversion apparatus shown in fig. 7 or the modeling apparatus shown in fig. 8.
Referring to fig. 9, fig. 9 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 9, the electronic device may include: at least one processor 71, such as a CPU (Central Processing Unit), at least one communication interface 73, memory 74, at least one communication bus 72. Wherein a communication bus 72 is used to enable the connection communication between these components. The communication interface 73 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 73 may also include a standard wired interface and a standard wireless interface. The Memory 74 may be a high-speed RAM Memory (volatile Random Access Memory) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 74 may alternatively be at least one memory device located remotely from the processor 71. Wherein the processor 71 may be in connection with the apparatus described in fig. 7 or 8, an application program is stored in the memory 74, and the processor 71 calls the program code stored in the memory 74 for performing any of the above-mentioned method steps.
The communication bus 72 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 72 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
The memory 74 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 74 may also comprise a combination of memories of the kind described above.
The processor 71 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of CPU and NP.
The processor 71 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 74 is also used for storing program instructions. Processor 71 may call program instructions to implement a component transformation method as shown in the embodiments of fig. 1, 3 and 4 of the present application, or a modeling method as shown in the embodiment of fig. 6 of the present application.
Embodiments of the present invention further provide a non-transitory computer storage medium, where computer-executable instructions are stored, and the computer-executable instructions may execute the component conversion method or the modeling method in any of the above method embodiments. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (16)

1. A component model conversion method, comprising:
acquiring a component model to be converted and a target component type of the component model to be converted;
processing the attribute of the component model to be converted based on the target component type;
and determining a target component model corresponding to the type of the target component according to the processing result.
2. The method of claim 1, wherein the processing the attributes of the component model to be transformed based on the target component type comprises:
performing attribute inspection on the component model to be converted to obtain a preset component model;
and performing attribute assignment on the preset component model based on the target component type.
3. The method according to claim 2, wherein the performing the property check on the component model to be converted to obtain a preset component model comprises:
checking whether the component model to be converted has an attached primitive or not;
and when the accessory primitive exists in the component model to be converted, processing the accessory primitive of the component model to be converted to obtain a preset component model.
4. The method according to claim 3, wherein the processing the accessory primitives of the component model to be converted to obtain the preset component model comprises:
sending first prompt information whether to delete the attached graphics primitives;
responding to a first selection operation of the first prompt message;
and correspondingly processing the accessory primitives of the component model to be converted based on the first selection operation to obtain a preset component model.
5. The method according to claim 3, wherein the checking whether the component model to be converted has an accessory primitive comprises:
inquiring the primitive relation corresponding to the component model to be converted;
and determining whether the component model to be converted has an auxiliary primitive or not based on the primitive relation.
6. The method of claim 2, wherein the performing a property check on the component model to be converted further comprises:
carrying out illegal attribute check on the component model to be converted;
and when the component model to be converted has illegal attributes, sending out second prompt information of failed conversion of the component model to be converted.
7. The method according to claim 2, wherein the performing the property check on the component model to be converted to obtain a preset component model further comprises:
checking whether the component model to be converted has auxiliary information;
and when the accessory information exists in the component model to be converted, processing the accessory information of the component model to be converted to obtain the preset component model.
8. The method according to claim 7, wherein the processing the accessory information of the component model to be converted to obtain the preset component model comprises:
sending out third prompt information for judging whether to delete the auxiliary information;
responding to a third selection operation of the second prompt message;
and correspondingly processing the auxiliary information of the component model to be converted based on the third selection operation to obtain the preset component model.
9. The method of claim 2, wherein assigning attributes to the pre-set component model based on the target component type comprises:
generating a name of the preset component model based on the target component type;
checking the preset component model under the same name;
and performing attribute assignment on the preset component model based on the result of the homonymy check.
10. The method of claim 9, wherein assigning attributes to the pre-defined building block model based on the result of the homonymy check comprises:
prompting the processing mode of the same-name component model;
responding to a fourth selection operation of the processing mode;
and based on the fourth selection operation, performing attribute assignment on the component model to be converted by adopting the attribute value of the component model with the same name as the preset component model, or performing attribute assignment on the component model to be converted again.
11. The method according to any one of claims 1-10, wherein determining the target component model corresponding to the target component type according to the processing result comprises:
generating a target component model by using the processed result;
adjusting an operation in response to a property of the target component model;
and adjusting the attribute of the target component model based on the attribute adjusting operation, and determining the target component model corresponding to the target component type.
12. A modeling method, comprising:
the component model conversion method according to any one of claims 1 to 11, wherein component model conversion is performed on each component model to be converted in a preset building model, and a target component model corresponding to each component model to be converted is determined;
and replacing the corresponding component model to be converted by utilizing each target component model so as to determine the target building model corresponding to the preset building model.
13. A component model conversion apparatus, characterized by comprising:
the device comprises an acquisition module, a conversion module and a conversion module, wherein the acquisition module is used for acquiring a component model to be converted and a target component type of the component model to be converted;
the processing module is used for processing the attribute of the component model to be converted based on the target component type;
and the first determination module is used for determining a target component model corresponding to the target component type based on the processing result.
14. A modeling apparatus, comprising:
the conversion module is used for performing component model conversion on each component model to be converted in a preset building model according to the component model conversion method of any one of claims 1 to 11, and determining a target component model corresponding to each component model to be converted;
and the second determining module is used for replacing the corresponding component model to be converted by using each target component model so as to determine the target building model corresponding to the preset building model.
15. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the component transformation method of any one of claims 1-11 or to perform the modeling method of claim 12.
16. A computer-readable storage medium storing computer instructions for causing a computer to perform the component transformation method of any one of claims 1-11 or to perform the modeling method of claim 12.
CN202011497309.8A 2020-12-17 2020-12-17 Component model conversion method, modeling device and electronic equipment Active CN112465980B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011497309.8A CN112465980B (en) 2020-12-17 2020-12-17 Component model conversion method, modeling device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011497309.8A CN112465980B (en) 2020-12-17 2020-12-17 Component model conversion method, modeling device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112465980A true CN112465980A (en) 2021-03-09
CN112465980B CN112465980B (en) 2024-07-05

Family

ID=74802913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011497309.8A Active CN112465980B (en) 2020-12-17 2020-12-17 Component model conversion method, modeling device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112465980B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105138780A (en) * 2015-09-01 2015-12-09 北京海颐威工程技术有限公司 Device for rapidly establishing three-dimensional building information model
JP2016045868A (en) * 2014-08-26 2016-04-04 大成建設株式会社 Building survey support apparatus
WO2017101487A1 (en) * 2015-12-14 2017-06-22 乐视控股(北京)有限公司 Method and device for submitting transcoding attribute information
CN109325300A (en) * 2018-09-29 2019-02-12 中民筑友科技投资有限公司 Outer profile models loading method, system, device and computer readable storage medium
CN109670256A (en) * 2018-12-26 2019-04-23 中民筑友科技投资有限公司 Non-stress rebar model generation method, system, device and storage medium in component
CN109684737A (en) * 2018-12-26 2019-04-26 中民筑友科技投资有限公司 Rebar model generation method, system and device and readable storage medium storing program for executing in component model
CN110781537A (en) * 2019-09-20 2020-02-11 久瓴(上海)智能科技有限公司 Building modeling method and device, computer equipment and readable storage medium
CN111243079A (en) * 2019-12-12 2020-06-05 万翼科技有限公司 Three-dimensional model establishing method and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016045868A (en) * 2014-08-26 2016-04-04 大成建設株式会社 Building survey support apparatus
CN105138780A (en) * 2015-09-01 2015-12-09 北京海颐威工程技术有限公司 Device for rapidly establishing three-dimensional building information model
WO2017101487A1 (en) * 2015-12-14 2017-06-22 乐视控股(北京)有限公司 Method and device for submitting transcoding attribute information
CN109325300A (en) * 2018-09-29 2019-02-12 中民筑友科技投资有限公司 Outer profile models loading method, system, device and computer readable storage medium
CN109670256A (en) * 2018-12-26 2019-04-23 中民筑友科技投资有限公司 Non-stress rebar model generation method, system, device and storage medium in component
CN109684737A (en) * 2018-12-26 2019-04-26 中民筑友科技投资有限公司 Rebar model generation method, system and device and readable storage medium storing program for executing in component model
CN110781537A (en) * 2019-09-20 2020-02-11 久瓴(上海)智能科技有限公司 Building modeling method and device, computer equipment and readable storage medium
CN111243079A (en) * 2019-12-12 2020-06-05 万翼科技有限公司 Three-dimensional model establishing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
薛刚;王晓飞;冯涛;: "BIM-5D在大型机电安装工程中的应用研究", 建筑科学, no. 12 *

Also Published As

Publication number Publication date
CN112465980B (en) 2024-07-05

Similar Documents

Publication Publication Date Title
CN111488640B (en) Bridge engineering design file generation device, computer equipment and storage medium
CN111143923A (en) Model processing method and related device
CN113127347B (en) Interface testing method, device, equipment and readable storage medium
CN113420355B (en) Floor processing method and device and electronic equipment
CN111753347B (en) Component screening method based on Revit primitives, revit platform and storage medium
CN111338616A (en) Protocol analysis code generation method and device and electronic equipment
CN113191671B (en) Engineering amount calculating method and device and electronic equipment
CN110782523A (en) BIM-based building model checking method and system
CN111985014B (en) Modeling method and system based on standard atlas
CN112465980A (en) Component model conversion method, modeling method and device and electronic equipment
CN113192203A (en) Primitive processing method and device, electronic equipment and storage medium
CN112988267A (en) Loading method and device, storage medium and electronic equipment
CN112650689A (en) Test method, test device, electronic equipment and storage medium
CN117236111A (en) Fastener parametric modeling method and device, terminal equipment and storage medium
CN116595839A (en) System for generating structural analysis model
CN109766526B (en) Form preservation method and device, storage medium and electronic equipment
CN111753346B (en) Linear member profile generating method, revit platform and storage medium
CN110850136A (en) Oscilloscope test method, terminal equipment and computer readable storage medium
CN115238338A (en) Component model updating method and device and electronic equipment
CN112765715A (en) Parameter adjusting method and device for building frame, electronic equipment and storage medium
CN111078518B (en) Data acquisition method, terminal device and computer readable storage medium
CN112200490A (en) Information method and system for engineering quality safety manual
CN112580123A (en) Editing method and device of beam graphics primitives, electronic equipment and readable storage medium
CN109104322B (en) Method, device, readable storage medium and system for solving FL-NET communication fault
CN113779655A (en) Generation method and device of distribution box system diagram and electronic equipment

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