CN112286516A - Component construction method and component construction device - Google Patents

Component construction method and component construction device Download PDF

Info

Publication number
CN112286516A
CN112286516A CN202011191681.6A CN202011191681A CN112286516A CN 112286516 A CN112286516 A CN 112286516A CN 202011191681 A CN202011191681 A CN 202011191681A CN 112286516 A CN112286516 A CN 112286516A
Authority
CN
China
Prior art keywords
component
slave
reference surface
parameters
main
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.)
Withdrawn
Application number
CN202011191681.6A
Other languages
Chinese (zh)
Inventor
尤勇敏
其他发明人请求不公开姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiuling Jiangsu Digital Intelligent Technology Co Ltd
Original Assignee
Jiuling Jiangsu Digital Intelligent 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 Jiuling Jiangsu Digital Intelligent Technology Co Ltd filed Critical Jiuling Jiangsu Digital Intelligent Technology Co Ltd
Priority to CN202011191681.6A priority Critical patent/CN112286516A/en
Publication of CN112286516A publication Critical patent/CN112286516A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The application provides a component building method and a component building device, wherein the component building method comprises the steps of displaying a component drawing interface; receiving a subject component drawing instruction through the component drawing interface; analyzing the main component drawing instruction to obtain main component parameters, drawing based on the main component parameters and displaying the main component on the component drawing interface; receiving, by the component drawing interface, a reference surface drawing instruction based on the body component; analyzing the reference surface drawing instruction to obtain a reference surface parameter, and displaying a reference surface on the component drawing interface based on the reference surface parameter, wherein the reference surface is associated with at least one surface of the main component; generating a family instance of slave components based on the reference plane; the method comprises the steps of generating slave components for building a slave relationship with a main component according to family examples of the slave components, so as to solve the problem that building relationship information is lacked among the components when a model is built based on Revit software in the prior art.

Description

Component construction method and component construction device
Technical Field
The application relates to the technical field of BIM modeling, in particular to a component building method and a component building device.
Background
In order to meet the construction requirement of rapid development of cities in China, shorten the design and construction period of steel structure buildings and control the construction cost, the digital technology is applied to the field of buildings. Building Information Modeling (BIM) technology is more and more widely applied, and when BIM is constructed, Revit software of Autodesk company is more widely applied.
The Revit software has family types based on walls and surfaces, cannot meet the requirement of refined industrial part classification, and is uniformly set as the type of a conventional model family based on the surfaces in order to facilitate code placement and meet the use of various scenes. When a calling family is researched and developed and a model is built in a scene, a plane which cannot be selected and obtained in software is created in a code, so that a complete model is placed and built under various conditions of the family. The surface-based component created by the method can only move in the direction of a two-dimensional plane created during generation, no matter the model created by using the surface-based conventional model family or the metric conventional model family is used, no construction relation information exists between the components, and the loose part model can only be packed and used as a group when necessary.
Therefore, when a model is built based on Revit software in the prior art, building relation information between components is lacked.
Disclosure of Invention
The embodiment of the application provides a component building method and a component building device, which are used for solving the technical problem that building relation information is lacked among components when a model is built through current software.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
the embodiment of the application provides a component building method, which comprises the following steps:
displaying a component drawing interface;
receiving a subject component drawing instruction through the component drawing interface;
analyzing the main component drawing instruction to obtain main component parameters, drawing based on the main component parameters and displaying the main component on the component drawing interface;
receiving, by the component drawing interface, a reference surface drawing instruction based on the body component;
analyzing the reference surface drawing instruction to obtain a reference surface parameter, and displaying a reference surface on the component drawing interface based on the reference surface parameter, wherein the reference surface is associated with at least one surface of the main component;
generating a family instance of slave components based on the reference plane;
the slave component is presented in the component drawing interface according to the family instance of the slave component.
In the component construction method provided in the embodiment of the present application, the step of analyzing the main component drawing instruction to obtain a main component parameter, drawing based on the main component parameter, and displaying the main component on the component drawing interface includes:
analyzing the main body component drawing instruction to obtain main body component parameters, wherein the main body component parameters comprise a plurality of main body surface parameters;
generating a plurality of body surfaces of the body member based on the plurality of body surface parameters;
displaying the plurality of body surfaces on the member drawing interface to display the body member.
In the component construction method provided by the embodiment of the application, the plurality of main body surface parameters comprise main body plane parameters and main body curved surface parameters; the step of generating a plurality of body surfaces of the body member based on the plurality of body surface parameters comprises:
generating a body plane of the body member based on the body plane parameters;
generating a body surface of the body member based on the body surface parameters;
and displaying the main body plane and the main body curved surface on the component drawing interface.
In the component construction method provided in the embodiment of the present application, the step of analyzing the reference surface drawing instruction to obtain a reference surface parameter, and displaying the reference surface on the component drawing interface based on the reference surface parameter includes:
analyzing the reference surface drawing instruction to obtain a single reference surface parameter, wherein the single reference surface parameter is related to a main body surface parameter of one main body surface in the plurality of main body surfaces;
displaying a reference surface on the component drawing interface based on the single reference surface parameter, wherein the reference surface is associated with a related body surface, and the normal vector direction of the reference surface is on a first side of the related body surface;
obtaining the attribute of the reference surface through the component drawing interface, wherein the attribute of the reference surface comprises the name of the reference surface, and the name of the reference surface is related to the name of the related body surface.
In the component building method provided in the embodiment of the present application, the step of generating a family instance of a slave component based on the reference plane includes:
acquiring the reference surface through the component drawing interface;
acquiring a target surface through the reference surface;
receiving, by the component drawing interface, a slave component generation instruction based on the target surface;
and analyzing the slave component generation instruction to obtain a slave component parameter, and generating the family instance of the slave component based on the slave component parameter.
In the component construction method provided in the embodiment of the present application, the step of analyzing the slave component generation instruction to obtain a slave component parameter, and generating a family instance of the slave component based on the slave component parameter includes:
analyzing the slave component generation instruction to obtain slave component parameters, wherein the slave component parameters comprise absolute coordinates, family types, directions, main primitives and structure types of slave components to be generated;
generating a family instance of the slave component based on the slave component parameter.
In the component construction method provided in the embodiment of the present application, the step of analyzing the slave component generation instruction to obtain a slave component parameter, and generating a family instance of the slave component based on the slave component parameter includes:
analyzing the slave component generation instruction to obtain slave component parameters, wherein the slave component parameters comprise relative coordinates, family types, directions, main primitives and structure types of slave components to be generated, and the relative coordinates comprise relative coordinates of the slave components to be generated and the main components;
generating a family instance of the slave component based on the slave component parameter.
In the component building method provided in the embodiment of the present application, the step of displaying the slave component in the component drawing interface according to the family instance of the slave component includes:
generating the slave component from the family instance of the slave component;
displaying the slave member in the member rendering interface, the slave member being located on the first side of the associated body surface.
In the component construction method provided in the embodiment of the present application, the step of analyzing the reference surface drawing instruction to obtain a reference surface parameter, and displaying the reference surface on the component drawing interface based on the reference surface parameter includes:
analyzing the reference surface drawing instruction to obtain multiple reference surface parameters, wherein the multiple reference surface parameters are related to the main body surface parameters of at least two main body surfaces in the main body component;
displaying a plurality of reference surfaces on the component drawing interface based on the multi-reference surface parameters, wherein the plurality of reference surfaces are respectively associated with related body surfaces;
obtaining attributes of the plurality of reference surfaces through the component drawing interface, wherein the attributes of the reference surfaces comprise names of the reference surfaces, and the names of the reference surfaces are related to the names of the related reference surfaces.
Simultaneously, this application embodiment still provides a device is built to component, and it includes:
the first display module is used for displaying the drawing interface;
the first receiving module is used for receiving a main body component drawing instruction through the component drawing interface;
the first analysis module is used for analyzing the main component drawing instruction to obtain main component parameters, drawing based on the main component parameters and displaying the main component on the component drawing interface;
a second receiving module, configured to receive, through the component drawing interface, a reference surface drawing instruction based on the body component;
the second analysis module is used for analyzing the reference surface drawing instruction to obtain a reference surface parameter and displaying a reference surface on the component drawing interface based on the reference surface parameter, wherein the reference surface is associated with at least one surface of the main component; and
a generation module for generating a family instance of a slave component based on the reference plane;
wherein the first display module is further configured to display the slave component in the component drawing interface according to the family instance of the slave component.
The beneficial effect of this application: the application provides a component building method and a component building device. In the Revit second development, a reference plane is called from a family instance of a main component through naming of the reference plane, a target plane is obtained through the reference plane, and a slave component family instance is generated based on the target plane. The method has the advantages that the slave components for constructing the slave relationship with the main component are generated according to the family examples of the slave components in the Revit, and the problem that the construction relationship information is lacked among the components when the model is constructed based on Revit software in the prior art is solved. Meanwhile, when the slave component family instance is generated based on the target surface, the slave component can be positioned by using the relative coordinates between the slave component and the main component, so that the calculation of the three-dimensional coordinates during code generation is simplified without calculating the absolute coordinates of each slave component for a model which has a plurality of slave components and main components and is built fixedly or regularly.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a component construction method provided in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a body member according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a single reference plane based on the body member of FIG. 2 provided by an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a positional relationship between a single slave frame and a master frame according to an embodiment of the present application;
FIG. 5 is a schematic illustration of multiple reference surfaces based on the body member of FIG. 2 provided by an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a positional relationship between two slave frames and a main body member according to an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating a positional relationship between a plurality of master components and a plurality of slave components according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram of a framework of a component construction apparatus provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The application provides a component building method and a component building device. In the Revit second development, a reference plane is called from a family instance of a main component through naming of the reference plane, a target plane is obtained through the reference plane, and a slave component family instance is generated based on the target plane. The method has the advantages that the slave components for constructing the slave relationship with the main component are generated according to the family examples of the slave components in the Revit, and the problem that the construction relationship information is lacked among the components when the model is constructed based on Revit software in the prior art is solved. Meanwhile, when the slave component family instance is generated based on the target surface, the slave component can be positioned by using the relative coordinates between the slave component and the main component, so that the calculation of the three-dimensional coordinates during code generation is simplified without calculating the absolute coordinates of each slave component for a model which has a plurality of slave components and main components and is built fixedly or regularly.
The component construction method of the present application will be explained below in connection with specific component construction embodiments.
Referring to fig. 1, fig. 1 is a schematic flow chart of a component building method provided in the embodiment of the present application. The component building method comprises the following steps:
s101: and displaying a component drawing interface.
Specifically, the component drawing interface includes a drawing interface based on Revit software, etc., and the component can be drawn on the basis of a surface and a wall in the drawing interface of Revit.
S102: receiving a subject component drawing instruction through the component drawing interface.
Specifically, the body member drawing instruction may be a code or specifically a drawing operation instruction or the like.
S103: and analyzing the main component drawing instruction to obtain main component parameters, drawing based on the main component parameters and displaying the main component on the component drawing interface.
Specifically, the present application may include: analyzing the main body component drawing instruction to obtain main body component parameters, wherein the main body component parameters comprise a plurality of main body surface parameters, and the plurality of main body surface parameters can comprise main body plane parameters and/or main body curved surface parameters; generating a plurality of body surfaces of the body member based on the plurality of body surface parameters; generating a body plane of the body member, as based on the body plane parameters; generating a body surface of the body member based on the body surface parameters; and displaying the plurality of body surfaces on the component drawing interface, such as displaying the body plane and/or the body curved surface on the component drawing interface, so as to display the body component.
Specifically, please refer to fig. 2, fig. 2 is a schematic structural diagram of a main body component according to an embodiment of the present application. The main body member in fig. 2 is a schematic top view structure of square steel, and the method of displaying the main body member at the member drawing interface will be described in detail below with reference to the case of displaying the square steel member at the member drawing interface.
And receiving a drawing instruction of the main body component square steel through the component drawing interface, and analyzing the drawing instruction of the main body component square steel to obtain a plurality of main body surface parameters of the main body component square steel. The plurality of body surface parameters may include the length and width of each surface of the body member square steel, and the distance between the inner surface and the outer surface, i.e., the thickness of the body member square steel. Wherein each surface of the square steel of the main body component is a plane.
Based on a plurality of body surface parameters of the body member square steel, a plurality of body surfaces of the body member square steel are generated and displayed at the member drawing interface, as shown in the top view of the body member square steel of fig. 2, in fig. 2, the inner surface 20 and the outer surface 10 of the body member square steel 100 are equally divided into EQ by center lines a1-a2 and B1-B2, the center lines a1-a2 and B1-B2 are reference lines of the body member square steel 100, and the center lines a1-a2 and B1-B2 vertically intersect and are fixed and do not move at the position of the member drawing interface 1000. The length or width of the outer surface 10 of the body member square steel 100 may be set according to actual requirements, for example, the length of two opposite outer surfaces is 40, the width of the other two opposite outer surfaces is 20, the length of the outer surface 10 is equally divided by the center lines B1-B2 to EQ, and the width of the outer surface 10 is equally divided by the center lines a1-a2 to EQ, as shown in fig. 2, it is understood that the values of the length and the width shown in the figure are merely illustrative, and the application is not limited thereto. The size of outer surface 10 varies with length and/or width, and inner surface 20 may vary with the variation of outer surface 10. Different sizes of body member square bars 100 may be displayed at the member drawing interface 1000 by obtaining different lengths and/or widths at the member drawing interface 1000.
S104: receiving, by the component drawing interface, a reference surface drawing instruction based on the body component.
Specifically, the reference surface drawing instruction includes a drawing operation instruction and the like.
S105: and analyzing the reference surface drawing instruction to obtain a reference surface parameter, and displaying a reference surface on the component drawing interface based on the reference surface parameter, wherein the reference surface is associated with at least one surface of the main component.
Specifically, the step may include: analyzing the reference surface drawing instruction to obtain a single reference surface parameter, wherein the single reference surface parameter is related to a main body surface parameter of one main body surface in the plurality of main body surfaces; displaying a reference surface on the component drawing interface based on the single reference surface parameter, wherein the reference surface is associated with a related body surface, and the normal vector direction of the reference surface is on a first side of the related body surface; obtaining the attribute of the reference surface through the component drawing interface, wherein the attribute of the reference surface comprises the name of the reference surface, and the name of the reference surface is related to the name of the related body surface.
Referring to fig. 3, fig. 3 is a schematic diagram of a single reference plane based on the body member of fig. 2 according to an embodiment of the present disclosure. The method for creating a reference surface based on the body member will be specifically described below with reference to fig. 3 by taking the example of creating a reference surface based on the square steel of the body member in fig. 2.
And receiving a reference surface drawing instruction based on the main body component square steel through a component drawing interface, and analyzing the reference surface drawing instruction based on the main body component square steel to obtain a single reference surface parameter. The single reference surface parameter is related to a main body surface parameter of the main body component square steel, and if related, the single reference surface parameter is the same as the main body surface parameter of the main body component square steel. The selection of the main body surface parameters related to the single reference surface parameters is determined based on the actual requirements of the building component, for example, the main body surface of the main body component is determined based on the building position of the slave component on the main body component, and the main body surface parameters corresponding to the main body surface are the main body surface parameters related to the single reference surface parameters.
The reference surface is displayed on the component drawing interface based on the single reference surface parameter, such as the reference surface 30 shown in fig. 3, the reference surface 30 is associated with an outer surface of the square steel of the main body component, and the association means that the reference surface 30 is coincident with an outer surface of the square steel of the main body component, so that the reference surface 30 is bound with the outer surface of the square steel of the main body component, and the reference surface 30 changes along with the change of the square steel of the main body component. It should be noted that, in fig. 3, for clarity of illustrating the difference between the reference surface 30 and the outer surface 10 and the inner surface 20 of the square steel 100 of the main body member, the reference surface 30 is indicated by a thick solid line; meanwhile, for the sake of convenience of the following description about the positional relationship, the side of B1 toward the center line B1-B2, the side of B2 toward the center line B1-B2, the side of a1 toward the center line a1-a2, the side of a2 toward the center line a1-a2 in the member drawing interface 1000 of the present application, is referred to as the left side, the right side, the lower side, and the upper side. The reference plane 30 in fig. 3 coincides with the right outer surface of the main body member square steel 100, and the normal vector direction of the reference plane 30 is on the first side of the right outer surface of the main body member square steel 100, which is the right side of the right outer surface of the main body member square steel 100, and the direction indicated by the arrow of the straight line X with the arrow in fig. 3 is the normal vector direction of the reference plane 30.
The normal vector direction of the reference surface 30 can be determined by the drawing direction of the reference surface 30, and as shown in fig. 3, the arrowed line Y indicates the drawing direction of the reference surface 30, and is parallel to the center line a1-a 2. The reference surface 30 is drawn from the upper side to the lower side, and the normal vector direction of the reference surface 30 is on the right side of the right outer surface of the body member square steel 100; of course, when the reference surface 30 is drawn from the lower side to the upper side, the normal vector direction of the reference surface 30 is on the left side of the right outer surface of the body member square bar 100.
After the reference surface 30 is generated by the component drawing interface, the attribute of the reference surface 30 is obtained through the component drawing interface, the attribute of the reference surface 30 includes the name of the reference surface 30, the name of the reference surface 30 is related to the name of the right outer surface of the body component square steel 100, for example, the name of the reference surface 30 can be defined as the right reference surface. The resulting reference surface 30 and the name of the reference surface 30 are stored in the square steel family along with the body member square steel.
S106: based on the reference plane, a family instance of a slave component is generated.
Specifically, the step may include: acquiring the reference surface through the component drawing interface; acquiring a target surface through the reference surface; receiving, by the component drawing interface, a slave component generation instruction based on the target surface; analyzing the slave component generation instruction to obtain slave component parameters, wherein the slave component parameters comprise absolute coordinates, a family type, a direction, a main primitive and a structure type of the slave component to be generated, and generating a family instance of the slave component based on the slave component parameters.
Specifically, a method of generating a family example of slave components, such as angle steels, will be described below in connection with the above-described body component square steels and reference planes based on the body component square steels.
In the second development of Revit, a Reference surface (Reference) is called from a square steel Family By a method of selecting a Family instance (Family), and since the generated Reference surface has been named in step S105 and the Name of the Reference surface is defined as a right Reference surface, the Reference surface (Get Reference By Name) can be obtained By Name in the square steel Family.
And acquiring a target surface through the called Reference surface (Reference), wherein the Reference surface and the target surface are different in type, the target surface is a working Plane (Sketch Plane), and the code for generating the family instance of the dependent construction angle steel can be edited based on the working Plane (Sketch Plane).
And receiving a slave component generation instruction based on the target surface through the component drawing interface, and analyzing the slave component generation instruction to obtain slave component parameters. The dependent component parameters comprise absolute coordinates, Family Type (Family Symbol), direction, body primitive (Element) and structure Type (Structural Type) of the angle steel of the dependent component to be generated, and the Family Instance of the angle steel of the dependent construction is generated by a method for generating a New Family Instance (New Family Instance) based on the dependent component parameters. The absolute coordinates of the slave component angle steel are generated through code calculation, the family type is the angle steel family, the direction refers to the position of the slave component angle steel relative to the main component square steel, the main primitive refers to that the family instance of the slave component angle steel is created based on the target surface (namely the Sketch Plane), and the structure type is non-structure type (NonStreuctural).
S107: the slave component is presented in the component drawing interface according to the family instance of the slave component.
Specifically, the step may include: generating the slave component from the family instance of the slave component; displaying the slave member in the member rendering interface, the slave member being located on the first side of the associated body surface.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a positional relationship between a single slave frame and a main body member according to an embodiment of the present application. The method of creating the slave member will be described below with reference to fig. 4 based on the body member square bar built in the above steps, the reference plane, and the created slave member angle bar.
The slave component angle is generated in Revit by calling the code of the family instance of the slave component angle generated in step S106, and the generated slave component angle is presented in the component drawing interface, as shown in fig. 4. The attributes of the slave component angle steel can be obtained through the slave component angle steel of the component drawing interface, the attributes of the slave component angle steel comprise the name, constraint and size of the slave component angle steel, wherein the constraint of the slave component means that the slave component angle steel is constrained by the main component angle steel; the dimensions of the slave angle refer to the width, thickness, chamfer, etc. of the slave angle.
With reference to fig. 4, the slave component angle steel 200 and the main component square steel 100 build a slave relationship, and since the slave component angle steel 200 is created based on the reference surface 30 and the reference surface 30 is bound with the right outer surface 10 of the main component square steel 100, the slave component angle steel 200 can change with the change of the position of the main component square steel 100, so that the main component square steel 100 and the slave component angle steel 200 are no longer two scattered components, and the problem of lack of building relationship information between the components when a model is built based on Revit software in the prior art is solved.
In the present embodiment, the slave angle steel 200 is built on the right outer surface 10 of the main body member square steel 100 as an example, but the present invention is not limited thereto, and the slave angle steel 200 may be built on another outer surface 10 or inner surface 20 of the main body member square steel 100 based on the above-described component building method.
In one embodiment, unlike the embodiments described above, multiple slave components are built on the same body component. Specifically, in step S105, the step of analyzing the reference surface drawing instruction to obtain a reference surface parameter, and displaying a reference surface on the component drawing interface based on the reference surface parameter includes: analyzing the reference surface drawing instruction to obtain multiple reference surface parameters, wherein the multiple reference surface parameters are related to the main body surface parameters of at least two main body surfaces in the main body component; displaying a plurality of reference surfaces on the component drawing interface based on the multi-reference surface parameters, wherein the plurality of reference surfaces are respectively associated with related body surfaces; obtaining attributes of the plurality of reference surfaces through the component drawing interface, wherein the attributes of the reference surfaces comprise names of the reference surfaces, and the names of the reference surfaces are related to the names of the related reference surfaces.
Specifically, the method of creating multiple reference surfaces is still explained based on the body member square steel in the above-described embodiment as an example. Referring to fig. 5, fig. 5 is a schematic view of a multi-reference plane based on the main body member of fig. 2 according to an embodiment of the present disclosure. Fig. 5 also creates a second reference surface 40 on the lower outer surface 10 of the body member square bar 100, compared to the single reference surface of fig. 3, the name of the second reference surface 40 being related to the name of the lower outer surface 10 of the body member square bar 100, as can be defined as the lower reference surface. The normal vector direction of the second reference surface 40 is on the lower side of the lower outer surface 10 of the body member square steel 100, and the direction indicated by the arrow of the straight line M with an arrow in fig. 5 is the normal vector direction of the second reference surface 40.
The normal vector direction of the second reference surface 40 can be determined by the drawing direction of the second reference surface 40, and as shown in fig. 5, the arrowed line N indicates the drawing direction of the second reference surface 40, and the arrowed line N is parallel to the center line B1-B2. The second reference surface 40 is drawn from the right side to the left side, and the normal vector direction of the second reference surface 40 is at the lower side of the outer surface of the lower side of the body member square steel 100; of course, when the second reference surface 40 is drawn from the left side to the right side, the normal vector direction of the second reference surface 40 is on the upper side of the lower outer surface of the body member square steel 100. It will be appreciated that if two slave members are to be created based on the same body surface of a body member, with the two slave members being located on either side of the same body surface, then two reference surfaces are to be created based on the same location on the body member, both reference surfaces being coincident with the same body surface of the body member, but with the two reference surfaces being drawn in opposite directions so that the normal vectors of the two reference surfaces are in opposite directions.
Two reference surfaces are created on the outer surface of the main body component square steel, so that two slave component angle steels 200 can be built on the corresponding outer surface 10 of the main body component square steel 100 based on the two reference surfaces, as shown in fig. 6, and fig. 6 is a schematic diagram of the position relationship between the two slave components and the main body component provided by the embodiment of the application. Since the two slave angle steels 200 are disposed at different angles, the two slave angle steels 200 shown in fig. 6 have different shapes. It is understood that the present embodiment is only described by taking the construction of two slave components on the main component as an example, and the present application is not limited thereto, and more slave components can be constructed on the main component based on the component construction method of the present application. For other descriptions, please refer to the above embodiments, which are not repeated herein.
In one embodiment, unlike the above-described embodiments, in step S106, relative coordinates may be employed when generating a family instance of a slave component.
Specifically, the group Instance and dependent component parameters of the dependent component are generated based on the dependent component parameters, and include relative coordinates, a group Type (Family Symbol), a direction, a body primitive (Element), and a structure Type (Structural Type) of the angle steel of the dependent component to be generated, and the group Instance of the dependent construction angle steel is generated by a method of generating a New group Instance (New Family Instance) based on the dependent component parameters. The relative coordinates of the slave component angle steel comprise the relative coordinates of the slave component to be generated and the master component, a family type, namely an angle steel family, the direction refers to the position of the slave component angle steel relative to the square steel of the master component, the master primitive refers to that a family instance of the slave component angle steel is created based on a target Plane (namely Sketch Plane), and the structure type is a non-structure type (non structural).
Referring to fig. 7, fig. 7 is a schematic diagram illustrating a positional relationship between a plurality of master components and a plurality of slave components according to an embodiment of the present disclosure. In fig. 7, the position of each slave member angle 200 and the corresponding main member square steel 100 is fixed such that the relative distance of each slave member angle 200 with respect to the corresponding main member square steel 100 is the same, that is, the relative coordinate value of each slave member angle 200 and the corresponding main member square steel 100 is the same. Thus, when the slave component angle steel 200 is built, only the relative coordinates of the slave component angle steel 200 relative to the main component square steel need to be calculated for positioning generation, and only one time of calculation is needed, and the absolute coordinates of the slave component angle steel 200 at each position do not need to be calculated. Therefore, by positioning the slave component by using the relative coordinates between the slave component and the main component, the absolute coordinates of each slave component do not need to be calculated for a model which comprises a plurality of slave components and main components and is built between the slave components and the main components in a fixed mode or can be regularly circulated, and the operation of three-dimensional coordinates in code generation is simplified. For other descriptions, please refer to the above embodiments, which are not repeated herein.
The present application is not limited to the above example of the component building method provided in the embodiment of the present application, and by using the component building method of the present application, it is also possible to continue building other sub-dependent components on the dependent component, and implement building dependent building relations for components of a plurality of different families.
Based on the component building method, the embodiment of the application further provides a component building device. Fig. 8 is a schematic diagram of a framework of a component building apparatus provided in an embodiment of the present application, and referring to fig. 8, the component building apparatus provided in the embodiment includes:
a first display module 300, configured to display a drawing interface;
a first receiving module 400, configured to receive a body component drawing instruction through the component drawing interface;
the first analysis module 500 is configured to analyze the main component drawing instruction to obtain a main component parameter, draw based on the main component parameter, and display the main component on the component drawing interface;
a second receiving module 600, configured to receive, through the component drawing interface, a reference surface drawing instruction based on the body component;
a second parsing module 700, configured to parse the reference surface drawing instruction to obtain a reference surface parameter, and display a reference surface on the component drawing interface based on the reference surface parameter, where the reference surface is associated with at least one surface of the main component; and
a generating module 800 for generating a family instance of a slave component based on the reference plane;
wherein the first display module 300 is further configured to display the slave component in the component drawing interface according to the family instance of the slave component.
The embodiment of the application also provides computer equipment which can comprise the component building device provided by the embodiment. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. Which computer program, when executed by a processor, is operative to implement the component building method as described in the above embodiments. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor. To this end, the present application provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps of any one of the component building methods provided in the present application.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Because the instructions stored in the storage medium can execute the steps of any one of the component building methods provided in the embodiments of the present application, beneficial effects that can be achieved by the component building methods provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described again here.
The component construction method, the component construction device, and the computer device provided by the embodiment of the present application are described in detail above with reference to a storage medium, and a specific example is applied in the present application to explain the principle and the implementation manner of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A method of building a component, comprising:
displaying a component drawing interface;
receiving a subject component drawing instruction through the component drawing interface;
analyzing the main component drawing instruction to obtain main component parameters, drawing based on the main component parameters and displaying the main component on the component drawing interface;
receiving, by the component drawing interface, a reference surface drawing instruction based on the body component;
analyzing the reference surface drawing instruction to obtain a reference surface parameter, and displaying a reference surface on the component drawing interface based on the reference surface parameter, wherein the reference surface is associated with at least one surface of the main component;
generating a family instance of slave components based on the reference plane;
the slave component is presented in the component drawing interface according to the family instance of the slave component.
2. The component construction method according to claim 1, wherein the step of parsing the body component drawing instruction to obtain body component parameters, drawing and displaying the body component on the component drawing interface based on the body component parameters comprises:
analyzing the main body component drawing instruction to obtain main body component parameters, wherein the main body component parameters comprise a plurality of main body surface parameters;
generating a plurality of body surfaces of the body member based on the plurality of body surface parameters;
displaying the plurality of body surfaces on the member drawing interface to display the body member.
3. The component building method according to claim 2, wherein the plurality of body surface parameters includes a body plane parameter and a body curved surface parameter; the step of generating a plurality of body surfaces of the body member based on the plurality of body surface parameters comprises:
generating a body plane of the body member based on the body plane parameters;
generating a body surface of the body member based on the body surface parameters;
and displaying the main body plane and the main body curved surface on the component drawing interface.
4. The component construction method according to claim 2, wherein the step of analyzing the reference surface drawing command to obtain a reference surface parameter and displaying a reference surface on the component drawing interface based on the reference surface parameter comprises:
analyzing the reference surface drawing instruction to obtain a single reference surface parameter, wherein the single reference surface parameter is related to a main body surface parameter of one main body surface in the plurality of main body surfaces;
displaying a reference surface on the component drawing interface based on the single reference surface parameter, wherein the reference surface is associated with a related body surface, and the normal vector direction of the reference surface is on a first side of the related body surface;
obtaining the attribute of the reference surface through the component drawing interface, wherein the attribute of the reference surface comprises the name of the reference surface, and the name of the reference surface is related to the name of the related body surface.
5. The component construction method according to claim 4, wherein the step of generating a family instance of a slave component based on the reference plane comprises:
acquiring the reference surface through the component drawing interface;
acquiring a target surface through the reference surface;
receiving, by the component drawing interface, a slave component generation instruction based on the target surface;
and analyzing the slave component generation instruction to obtain a slave component parameter, and generating the family instance of the slave component based on the slave component parameter.
6. The component building method according to claim 5, wherein the step of parsing the slave component generation instruction to obtain slave component parameters and generating the family instance of the slave component based on the slave component parameters comprises:
analyzing the slave component generation instruction to obtain slave component parameters, wherein the slave component parameters comprise absolute coordinates, family types, directions, main primitives and structure types of slave components to be generated;
generating a family instance of the slave component based on the slave component parameter.
7. The component building method according to claim 5, wherein the step of parsing the slave component generation instruction to obtain slave component parameters and generating the family instance of the slave component based on the slave component parameters comprises:
analyzing the slave component generation instruction to obtain slave component parameters, wherein the slave component parameters comprise relative coordinates, family types, directions, main primitives and structure types of slave components to be generated, and the relative coordinates comprise relative coordinates of the slave components to be generated and the main components;
generating a family instance of the slave component based on the slave component parameter.
8. The component construction method according to claim 5, wherein the step of presenting the slave component in the component drawing interface according to the family instance of the slave component comprises:
generating the slave component from the family instance of the slave component;
displaying the slave member in the member rendering interface, the slave member being located on the first side of the associated body surface.
9. The component construction method according to any one of claims 1 to 8, wherein the step of analyzing the reference surface drawing command to obtain a reference surface parameter and displaying a reference surface on the component drawing interface based on the reference surface parameter comprises:
analyzing the reference surface drawing instruction to obtain multiple reference surface parameters, wherein the multiple reference surface parameters are related to the main body surface parameters of at least two main body surfaces in the main body component;
displaying a plurality of reference surfaces on the component drawing interface based on the multi-reference surface parameters, wherein the plurality of reference surfaces are respectively associated with related body surfaces;
obtaining attributes of the plurality of reference surfaces through the component drawing interface, wherein the attributes of the reference surfaces comprise names of the reference surfaces, and the names of the reference surfaces are related to the names of the related reference surfaces.
10. A component construction apparatus, comprising:
the first display module is used for displaying the drawing interface;
the first receiving module is used for receiving a main body component drawing instruction through the component drawing interface;
the first analysis module is used for analyzing the main component drawing instruction to obtain main component parameters, drawing based on the main component parameters and displaying the main component on the component drawing interface;
a second receiving module, configured to receive, through the component drawing interface, a reference surface drawing instruction based on the body component;
the second analysis module is used for analyzing the reference surface drawing instruction to obtain a reference surface parameter and displaying a reference surface on the component drawing interface based on the reference surface parameter, wherein the reference surface is associated with at least one surface of the main component; and
a generation module for generating a family instance of a slave component based on the reference plane;
wherein the first display module is further configured to display the slave component in the component drawing interface according to the family instance of the slave component.
CN202011191681.6A 2020-10-30 2020-10-30 Component construction method and component construction device Withdrawn CN112286516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011191681.6A CN112286516A (en) 2020-10-30 2020-10-30 Component construction method and component construction device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011191681.6A CN112286516A (en) 2020-10-30 2020-10-30 Component construction method and component construction device

Publications (1)

Publication Number Publication Date
CN112286516A true CN112286516A (en) 2021-01-29

Family

ID=74354101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011191681.6A Withdrawn CN112286516A (en) 2020-10-30 2020-10-30 Component construction method and component construction device

Country Status (1)

Country Link
CN (1) CN112286516A (en)

Similar Documents

Publication Publication Date Title
CN104346830B (en) The path of second point is arrived in first point of design connection in three-dimensional scenic
Kim et al. Interactive modeler for construction equipment operation using augmented reality
CN113010937B (en) Parametric modeling method of member section steel bar and related device
JP5011916B2 (en) Shape refinement device, shape refinement method, shape refinement program, and machine CAD device
CN113094770B (en) Drawing generation method and device, computer equipment and storage medium
JP4681527B2 (en) Height-restricted area information creation device, height-restricted area information creation method, and height-restricted area information creation program
EP2360608A2 (en) Computer method and apparatus for creating sketch geometry
CN113688545B (en) Visualization method and system for finite element post-processing result and data processing terminal
Su et al. Life cycle approach to construction workspace modeling and planning
CN110737944A (en) floor slab generation method and generation device based on Revit
CN109544702A (en) Three-dimension varying processing method, device, electronic equipment and storage medium
CN113724401A (en) Three-dimensional model cutting method and device, computer equipment and storage medium
CN111079215A (en) Method and device for determining ramp engineering quantity and electronic equipment
JP4888013B2 (en) Height limit calculation device, height limit calculation method, and height limit calculation program
CN106846431B (en) Unified Web graph drawing system supporting multiple expression forms
CN106503171B (en) Vector data processing method and device
CN112015405A (en) Interface layout file generation method, interface generation method, device and equipment
US20050128198A1 (en) Method and apparatus for generating three-dimensional finite element mesh
CN113065180B (en) GIM analysis method, GIM analysis device, GIM analysis equipment and storage medium
CN112286516A (en) Component construction method and component construction device
CN115270262A (en) WebGL-based overbreak and undermining data analysis and visualization method
CN107038176B (en) Method, device and equipment for rendering web graph page
CN112287443B (en) Method and device for generating structural floor slab, electronic equipment and storage medium
Bocevska et al. An example of application design using solidworks application programming interface
CN112530026A (en) Association method and device of components

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20210129

WW01 Invention patent application withdrawn after publication