Disclosure of Invention
In order to solve the above problems, the present application provides a cross-view size labeling and copying method, a terminal, and a storage medium, so as to solve the problem of label missing in cross-view size copying and improve the work efficiency.
In order to solve the technical problem, the application adopts a technical scheme that: a cross-view dimensioning replication method is provided, the method comprising: in response to an input copy instruction, copying a first size label of the currently selected first member in the first view; in response to the input paste instruction, searching a second component which is the same as the component information of the first component in the second view; if the position range of the second component is the same as that of the first component, marking the second component by using the copied first size mark; or if the position range of the second component is different from the position range of the first component, calculating a first distance corresponding to the position range of the second component, and marking the second component by adopting the first distance.
Wherein the first member is a wall member; finding a second component in the second view that is identical to the component information of the first component, comprising: acquiring a first central line of a first component; projecting the first centerline toward an elevation of the second view; searching a second component which is coincident with the first central line projection and has the same component information in the second view; wherein the component information includes a component family category and a type name.
Wherein the first member is a wall penetrating member; finding a second component in the second view that is identical to the component information of the first component, comprising: dividing a wall body where the first member is located into a plurality of wall body sections; searching a second member with the same member information as the first member in the same wall body section of the second view; wherein the component information includes a component family category and a type name.
If the position range of the second component is the same as that of the first component, the copied first size mark is adopted to mark the second component, and the method comprises the following steps: if the position range of the second member is the same as the position range of the first member and the projection of the second member and the first member are at the same position, the second member is labeled with the copied first size label.
If the position range of the second component is the same as that of the first component, the copied first size mark is adopted to mark the second component, and the method comprises the following steps: if the position range of the second member is the same as that of the first member, but the projection of the second member and the first member are not at the same position, calculating a first distance between the second member and at least one adjacent third member or at least one adjacent axis; the second member is labeled with the copied first size label and the range of positions of the second member is labeled with the first distance.
Wherein, the method also comprises: if a second component which is the same as the component information of the first component cannot be found in the second view, acquiring a second central line of the first component; projecting a second centerline toward an elevation of the second view; and finding a fourth component in the second view which coincides with the projection of the second centre line, and marking the fourth component with the copied first dimension mark.
Wherein, the method also comprises: if a second component which is the same as the component information of the first component cannot be found in the second view, acquiring the component size corresponding to the first size label; a fifth component of the same size as the component in the second view is found and labeled with the copied first size label.
The first size label comprises a label style and coordinate information.
In order to solve the above technical problem, another technical solution adopted by the present application is: there is provided a terminal comprising a processor and a memory, wherein the memory is for storing a computer program which, when executed by the processor, is for implementing the above-mentioned cross-view dimensioning replication method.
In order to solve the above technical problem, the present application adopts another technical solution: there is provided a computer readable storage medium for storing a computer program which, when executed by a processor, is adapted to implement the cross-view dimensioning replication method described above.
The beneficial effects of the embodiment of the application are that: different from the prior art, according to the cross-view dimensioning and copying method provided by the application, a first dimensioning of a first component to be copied and a second dimensioning within a corresponding position range of the first component are selected in a first view, a second component with the same component information as that of the first component is searched in a second view according to the first dimensioning, and the second component is selected to be marked by adopting the first or second dimensioning based on the position relationship between the first component and the second component. Through the mode, when the size of the cross-view is copied, the first component with the position range different from that of the second component is not required to be deleted, the second view can obtain complete size marking, and the working efficiency can be improved.
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. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures. 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.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
Referring to fig. 1, fig. 1 is a schematic diagram of cross-view size duplication and label deletion, the left side of fig. 1 is a view to be duplicated and a corresponding component and a size label, and the right side is a view to be pasted and a corresponding component and a size label, it can be seen that a component corresponding to the missing part of the right side label in fig. 1 is displaced from a component at a corresponding position on the left side, so that after the size label in the view to be duplicated is duplicated, the corresponding component in the view to be pasted does not have a separate size label. Therefore, to solve the above problems, the present application provides the following embodiments:
referring to fig. 2, fig. 2 is a schematic flowchart of a cross-view dimension marking and copying method according to a first embodiment of the present application, which specifically includes the following steps:
step S21: in response to the input copy instruction, the first dimensioning of the currently selected first component is copied in the first view.
The first view is a view to be copied, the first component is a component to be copied, and the copying instruction is generated after a designer selects the first component in the first view and executes copying operation; optionally, the copy instruction may also be automatically generated and responded when the terminal detects that there are corresponding other views in the display interface of the terminal after the designer selects the size label of the first component.
In some embodiments, the replicated first dimensioning, may include a marking pattern, such as a diagonal length of the replicated first dimensioning, an arrow pattern of the dimensioning, an angle of the arrow, etc.; optionally, in order to facilitate the next copying, the copying of the coordinate information of the first member may be further included when the first size of the copied first member is marked.
It is understood that after step S21, a second view needs to be selected in response to the input switching instruction; the designer may switch the second view by clicking the second view through a terminal or an external device, or may switch the second view through a key switch instruction in an entity or a virtual keyboard, for example, a key instruction such as ALT + TAB or WIN + TAB.
Step S22: in response to the input paste instruction, a second component identical to the component information of the first component is searched in the second view.
Specifically, in an embodiment, when the first component is a wall component, a first center line of the first component in the first view is obtained, then the first center line is projected to an elevation of the second view, whether a second component which is coincident with the projection of the first center line and has the same component information as the first component exists in the second view is searched, and if the second component exists, the first component and the second component are determined to be the same component. Wherein the component information includes a component family category and a type name.
Alternatively, in another embodiment, at this time, the first member may be a wall penetrating member such as a door, a window, a hole, an elevator, or the like; the wall body where the first member is located in the first view may be divided into a plurality of wall body segments, then in each same wall body segment in the second view, whether a second member having the same member information as the first member exists is searched, and if so, it is determined that the first member and the second member are the same member.
Step S23: if the range of positions of the second member is the same as the range of positions of the first member, the second member is marked with the copied first size mark.
In an embodiment, if the position range of the second member is the same as the position range of the first member, and the projection of the second member and the projection of the first member are at the same position, it indicates that there is no relative displacement between the first member and the second member, and the second member may be directly marked with the copied first size mark.
In a specific scenario, after a designer copies the size label of the first component and pastes the size label in the second view, the terminal can search for a second component with the same component information and position as the first component in the second view, and label the second component by using the first size label.
Alternatively, in another embodiment, if the position range of the second member is the same as the position range of the first member, but the projection of the second member is not at the same position as the projection of the first member, it indicates that a relative displacement has occurred between the first member and the second member, and at this time, the method of judgment in the near principle may be adopted to judge the wall penetrating member or the axis near the second member, thereby calculating the second distance between the second member and the adjacent at least one third member or the adjacent at least one axis, and marking the second member with the copied first dimension mark, and marking the position range of the second member with the second distance.
The marking of the position range of the second component refers to marking the size of the distance between the second component and an adjacent third component or an axis by using the calculated at least one second distance, and then combining the copied first size marking to finish the size marking of the second component.
Similarly, after the designer copies the size label of the first component and pastes the size label in the second view, the terminal can search for a second component which is the same as the component information of the first component but different in position in the second view, and label the second component according to the calculated second distance and the first size label.
Different from the prior art, in the cross-view dimension marking and copying method provided in this embodiment, when performing cross-view dimension marking and copying, by finding the second component in the second view, which is the same as the component information of the first component, the dimension marking information of the first component can be directly copied to the second component, so that the work efficiency is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a cross-view dimension marking and copying method according to a second embodiment of the present application, which specifically includes the following steps:
step S31: in response to the input copy instruction, the first dimensioning of the currently selected first component is copied in the first view.
It should be noted that the position range corresponding to the first member in the present embodiment is different from the position range of the second member calculated in the first embodiment; the positional range in the present embodiment refers to a distance width between two adjacent axes in the corresponding range of the first member, and the positional range of the first embodiment refers to at least one distance width between the second member and the adjacent axis or member.
It is understood that the switching command input by the designer needs to be responded after step S31.
Step S32: in response to the input paste instruction, a second component identical to the component information of the first component is searched in the second view.
Steps S31 to S32 are the same as steps S21 to S22, and are not described herein again.
Step S33: and if the position range of the second member is different from the position range of the first member, calculating a first distance corresponding to the position range of the second member, and marking the second member by adopting the first distance.
In one embodiment, if the position range of the second member is different from the position range of the first member, it indicates that a relative displacement is generated between the first member and the second member, and the generated displacement distance is larger and is not in the same position range; the first member and the second member are not in the same axial line range, and at this time, a first distance corresponding to the position range of the second member, that is, a distance between two adjacent axial lines of the second member, may be calculated, and the second member is labeled by using the first distance, but only the distance between two adjacent axial lines of the second member is labeled at this time, and the distance between the second member and the adjacent axial lines is not labeled.
Specifically, the position of the axis or the member near the second member may be determined by using the principle of proximity, and then the second member is positioned to the end point of the adjacent left and right nearest members or the axis to determine the marking range, so that the first distance is automatically calculated by the plug-in, and finally the marking of the second member is realized.
In a specific scenario, after the designer copies the dimension label of the first component and pastes the first component in the second view, the terminal can perform dimension label on the second component which is the same as the component information of the first component but has a different position range.
Different from the prior art, in the cross-view dimension marking and copying method provided in this embodiment, when performing cross-view dimension marking and copying, a second component that is the same as component information of the first component but has a different position range is found in the second view, and the position range of the second component is calculated, so that the displaced second component is subjected to dimension marking, the second view can have complete dimension marking, and the work efficiency can be improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a cross-view dimension marking and copying method according to a third embodiment of the present application, which specifically includes the following steps:
step S41: in response to the input copy instruction, the first dimensioning of the currently selected first component is copied in the first view.
Step S42: in response to the input paste instruction, a second component identical to the component information of the first component is searched in the second view.
Steps S41 to 42 are the same as steps S21 to S22, and are not described herein.
Step S43: and if the second component which is the same as the component information of the first component cannot be found in the second view, acquiring a second central line of the first component.
If a second component having the same component information as the first component does not exist in the second view, it indicates that the component type of the component in the second view is changed.
Step S44: the second centerline is projected toward the elevation of the second view.
Step S45: and finding a fourth component in the second view which coincides with the projection of the second centre line, and marking the fourth component with the copied first dimension mark.
The projection of the central lines is overlapped, that is, the projection of the second central line of the first component is completely overlapped with the projection of the central line of the fourth component, and it is explained that the position range of the first component is the same as the position range of the second component, and the sizes of the two components are also the same, that is, the fourth component can be marked by using the copied first size mark.
In a specific scenario, referring to fig. 5, for example, the first component is a door component, the fourth component is a window component, and after the designer copies the size label of the door component and pastes the size label in the second view, the terminal can search for the window component coinciding with the projection of the center line of the door component in the second view, and size label the fourth component with the first size label. The first member and the fourth member may be other physical members, and are not limited to the door and the window.
By the mode, when cross-view size marking copying is carried out, the fourth component which is superposed with the first component in a projection mode is searched in the second view, size marking information of the first component can be directly copied to the fourth component, even if no component with the same component information exists in the second view, complete size marking can still be obtained, and working efficiency is improved.
Referring to fig. 6, fig. 6 is a schematic flowchart of a fourth embodiment of the cross-view dimension marking and copying method of the present application, which specifically includes the following steps:
step S61: in response to the input copy instruction, the first dimensioning of the currently selected first component is copied in the first view.
Step S62: in response to the input paste instruction, a second component identical to the component information of the first component is searched in the second view.
Steps S61 to 62 are the same as steps S21 to S22, and are not described herein.
Step S63: and if the second component which is the same as the component information of the first component cannot be found in the second view, acquiring the component size corresponding to the first size label.
If a second component with the same component information as the first component does not exist in the second view, the component type of the component in the second view is changed, and at this time, the component can be searched by acquiring the component size of the first component.
Step S64: a fifth component of the same size as the component in the second view is found and labeled with the copied first size label.
In a specific scenario, for example, the first member is a door member, the fifth member is an elevator member, and after the designer copies the size label of the door member and pastes the copied size label in the second view, the terminal can search for the elevator member with the same size as the member of the door member in the second view, and size-label the elevator member with the first size label. The first member and the fifth member may be other physical members, and are not limited to the door and the elevator member.
By the mode, when cross-view size marking copying is carried out, the fifth component with the same size information as the first component is searched in the second view, and the size marking information of the first component can be directly copied to the second component, so that even if no component with the same component information exists in the second view, complete size marking can be still obtained, and the working efficiency is improved.
In a specific scenario, the process steps of the fourth embodiment may be executed to perform cross-view size labeling replication, and after a failure of finding components with the same size and different component information occurs, the process steps of the third embodiment may be further executed to obtain and complete size labeling between components with overlapped centerline projections; in another specific scenario, the flow steps of the third embodiment and the fourth embodiment may also be executed in parallel, subject to the realization of cross-view size replication of the components; in another specific scenario, the flow steps of the third embodiment may be executed first, and if the execution fails, the flow steps of the fourth embodiment may be executed continuously. Are not limited herein.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an embodiment of the terminal of the present application.
The terminal 70 of the present embodiment comprises aprocessor 71 and amemory 72, thememory 72 being coupled to theprocessor 71, for example by a data bus.
Thememory 72 is used for storing a computer program, and the computer program is used for implementing the cross-view dimension marking copy method as follows when being executed by the processor 71:
in response to an input copy instruction, copying a first size label of the currently selected first member in the first view; in response to the input paste instruction, searching a second component which is the same as the component information of the first component in the second view; if the position range of the second component is the same as that of the first component, marking the second component by using the copied first size mark; or if the position range of the second component is different from the position range of the first component, calculating a first distance corresponding to the position range of the second component, and marking the second component by adopting the first distance.
It should be noted that the terminal 70 of this embodiment is a physical terminal based on the foregoing method embodiments, and the implementation principle and steps are similar, and are not described herein again. Therefore, when being executed by theprocessor 71, the computer program may also implement other method steps in any of the above embodiments, which are not described herein again.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an embodiment of a computer-readable storage medium according to the present application.
The computer-readable storage medium 80 of the present embodiment is used for storing acomputer program 81, and thecomputer program 81 is used for implementing the following cross-view dimensioning replication method when executed by a processor:
in response to an input copy instruction, copying a first size label of the currently selected first member in the first view; in response to the input paste instruction, searching a second component which is the same as the component information of the first component in the second view; if the position range of the second component is the same as that of the first component, marking the second component by using the copied first size mark; or if the position range of the second component is different from the position range of the first component, calculating a first distance corresponding to the position range of the second component, and marking the second component by adopting the first distance.
It should be noted that the method steps executed by thecomputer program 81 of the present embodiment are based on the above-mentioned method embodiments, and the implementation principle and steps are similar. Therefore, when being executed by the processor, thecomputer program 81 may also implement other method steps in any of the above embodiments, which are not described herein again.
Embodiments of the present application may be implemented in software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a part of the embodiments of the present application, and not intended to limit the scope of the present application, and all equivalent devices or equivalent processes performed by the content of the present application and the attached drawings, or directly or indirectly applied to other related technical fields, are also included in the scope of the present application.