A function switching method and system
By using a click-and-draw function switching method, the function calls in the steel structure drawing process are simplified, the drawing efficiency and smoothness are improved, and the high-efficiency drawing needs of large-scale construction projects are met.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TIANJIN YOUGOU SOFTWARE TECHNOLOGY CO LTD
- Filing Date
- 2025-07-01
- Publication Date
- 2026-07-21
AI Technical Summary
Traditional steel structure drafting operations are inefficient in terms of function access, especially in large-scale construction projects where frequent clicks are required, resulting in low drawing efficiency and difficulty in meeting project deadlines.
The system adopts a click-and-draw function switching method. By displaying a function panel on the screen, the user can keep clicking and slide the mouse to select the function area. When the click is canceled, the system automatically switches to the selected function environment, which is simplified to a draw-like operation and reduces the dependence on absolute position.
It significantly improves the smoothness and efficiency of steel structure drawing, reduces the frequency of function switching, enhances users' muscle memory and operational proficiency, and adapts to large-scale drawing needs.
Smart Images

Figure CN122431579A_ABST
Abstract
Description
[0001] Divisional application This invention was filed on July 1, 2025, with application number 2025109089540, and is a divisional application of an invention patent entitled "A Drawing Operation Method, System and Program Product". Technical Field
[0002] This invention relates to the field of steel structure drafting technology, specifically to a function switching method and system. Background Technology
[0003] The main steps in steel structure drafting are as follows: First, draw preliminary design drawings based on design requirements, that is, draw multiple steel structures (i.e., components) and clarify their structural form, component dimensions and connection methods; then, refine the detailed drawings, such as marking the material specifications and processing requirements of the components; next, convert the drawing data into actual processing dimensions through layout and material numbering, and then input the data into the factory for component preparation. In the process of drawing 3D architectural models of steel components and annotating 2D machining detail drawings, there is a large number of requirements for calling various functions. The traditional function call operation is as follows: 1) Click the right mouse button to bring up the menu list; 2) Stop clicking the right mouse button; 3) Move the mouse up and down to place the mouse cursor at a candidate option in the menu list; 4) Click the left mouse button to select the corresponding candidate option, and then the computer system responds with the corresponding function.
[0004] However, the applicant noted that for large-scale construction projects, the number of design drawings is very large, often involving millions of graphic drawing operations (such as menu selection, drawing, etc.), so the traditional menu selection method is very inefficient. Summary of the Invention
[0005] The purpose of this invention is to provide a drawing operation method, system, and program product that partially solves or alleviates the above-mentioned deficiencies in the prior art, improves the drawing efficiency in the steel structure drawing process, and reduces the drawing workload to a certain extent.
[0006] To solve the aforementioned technical problems, the present invention specifically adopts the following technical solution: A first aspect of the present invention is to provide a drawing operation method, comprising the steps of: S101, in response to a first trigger signal triggered by the user at the first contact point, a first function panel is displayed on the current display interface, the first function panel including: at least two primary function areas arranged in a ring around the first contact point; S102, the user holds the first trigger signal during the first time period and moves from the first contact point to the second contact point; S103, define an indicator direction line based on the first contact and the second contact; S104, when the indicator direction line is located in one of the primary function areas and the user stops triggering the first trigger signal, it indicates that the corresponding primary function area is selected; S105, when the user selects the primary function area, the current operating environment is switched to the operating environment corresponding to the primary function area.
[0007] In some embodiments, it also includes: In the current display interface, the direction line is displayed using indicator icons.
[0008] In some embodiments, one of the primary functional areas covers a first angular range; correspondingly, S104 includes: Calculate the angle between the indicated direction line and the set reference reference; Based on the included angle, the first angle range of the current position of the indicator direction line is identified, and the primary functional area where the indicator direction line is located is identified accordingly.
[0009] In some embodiments, the first trigger signal is triggered when the user clicks the right or left mouse button.
[0010] In some embodiments, the first function panel disappears from the current display interface when the user stops triggering the first trigger signal. In some embodiments, the method further includes: responding to a second trigger signal triggered by the user to select one of the secondary function areas; In some embodiments, when a user selects one of the primary function areas, a second function panel is displayed extending outward from the periphery of the first function panel. The second function panel includes at least two secondary function areas arranged in a ring around the first function panel.
[0011] In some embodiments, the functional area is displayed in a fan shape or a fan-like shape.
[0012] In some embodiments, it also includes: When the indicator direction line is located in one of the primary functional areas, the corresponding primary functional area is displayed using the second display mode, and the other primary functional areas are displayed using the first display mode.
[0013] In some embodiments, the intersection of two adjacent functional areas is an angular boundary; correspondingly, the method further includes: Calculate the first angle difference between the direction indicator line and the adjacent angle boundary; When the first angle difference is less than a preset difference threshold, two functional areas on both sides of the angle boundary are identified. The functional area currently occupied by the indicator direction line is displayed using a first sub-display mode; another corresponding functional area is displayed using a second sub-display mode; and the remaining functional areas are displayed using a second display mode.
[0014] In some embodiments, it also includes: In the first time period, multiple sets of drawing operations by the user are recorded. Each set of drawing operations includes the relative position of the operation line with respect to a set reference datum. The operation line is defined by the first operation point and the second operation point controlled by the user. Calculate the positional difference between at least two operating lines; When the position difference is less than a preset position threshold, the corresponding drawing operation is recorded as an operation group; The recommended layout position of the priority functional area is calculated based on the multiple phase positions corresponding to the operation group.
[0015] The present invention also provides a drawing operating system, comprising: The first trigger module is used to respond to a first trigger signal triggered by the user at the first contact point and display a first function panel on the current display interface. The first function panel includes at least two primary function areas arranged in a ring around the first contact point. The holding trigger module is used to record the second contact point when the user holds the first trigger signal during a first time period and moves from the first contact point to the second contact point; A direction line calculation module is used to define an indicator direction line based on the first contact point and the second contact point; The selected module is used to indicate that the corresponding primary function area is selected when the indicator direction line is located in one of the primary function areas and the user stops triggering the first trigger signal. The switching module is used to switch the current operating environment to the operating environment corresponding to the primary function area when the user selects the primary function area.
[0016] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in any of the embodiments.
[0017] Beneficial technical effects: It is worth noting that in traditional steel structure drawing scenarios, the technical approach used for multi-functional drawing operations is as follows: select functions from the menu based on the absolute position of the touch point. Specifically, it requires at least two clicks: first, click the right mouse button to display the menu, move the cursor up and down to the absolute position of the function to be selected (stop clicking at this point), and then select the menu by clicking the left mouse button a second time.
[0018] However, the inventors discovered that this two-step click-based absolute location selection method is extremely inefficient in scenarios involving large volumes of steel structure drawings. Especially as the complexity of steel structure drawings increases, this touch-based multi-click operation leads to frequent switching between function selection and steel material drawing, resulting in low efficiency and making it difficult to meet the time constraints of steel structure companies.
[0019] In contrast to traditional technical approaches, this invention provides a completely opposite click-and-draw function switching path. This click-and-draw scheme uses a non-fixed position selection method for function selection, which helps to improve the smoothness of operation when dealing with a large amount of drawing involving frequent function switching.
[0020] Specifically, in this single-click-and-draw-line scheme, the user can preferably open the function panel directly by clicking the right mouse button and keeping the right button clicked. They can then select a function area by sliding / rotating the mouse (the mouse position is indicated by lines on the interface, similar to a line drawing operation). After clicking, the user can automatically switch to the selected state (e.g., interruption). In other words, this invention provides a function selection method that visually and functionally approximates a line drawing operation, and employs a single-point, single-operation approach throughout the entire function selection process, thereby significantly improving the smoothness of operation.
[0021] The single-point, single-operation method (or, single-click line drawing method) proposed in this invention is highly consistent with steel structure drawing operations (such as drawing components), which helps to improve the smoothness of steel structure drawing to a great extent.
[0022] The high degree of consistency is reflected in at least the following aspects: 1) The line drawing operation is highly consistent with the user's operation of drawing steel (for example, when a user draws a steel component, they usually drag from one point to another); 2) Only one click is required (without the need for frequent switching under different click operations), that is, the user's hand operation is highly consistent in a selected function scenario.
[0023] This consistent operation, especially in repetitive scenarios like steel structure drawing, helps users develop muscle memory, thereby improving operational fluency and efficiency. Furthermore, this highly consistent and smooth operation minimizes the disruption to the user's drawing flow caused by function switching.
[0024] From another perspective, the click-and-draw operation provided by this invention abandons conventional thinking (i.e., the user must move the cursor to the absolutely precise position of the option, and different operations must be performed using different hand movements). Instead, it only needs to identify the user's movement trend (such as the position of the first and second touch points). For the user, only a certain angle range of drawing operations is required to select the function area. Furthermore, this recognition of movement trend (rather than absolutely precise position) makes selection simpler, as the user does not need to move to an absolutely precise position but only needs to draw a line within a general angle range (such as sliding to the right, sliding to the upper right, sliding to the upper left, etc.). Therefore, for professional drafting engineers, it is easier to achieve highly smooth operations between function selection and steel structure drawing. Secondly, it helps users develop muscle memory more easily under frequent operation, that is, users are more likely to improve their proficiency with the click-and-draw operation, and can quickly select the required function area by muscle memory during long-term drawing operations. Attached Figure Description To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. The elements or parts in the drawings are not necessarily drawn to scale. Obviously, the drawings described below are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any creative effort.
[0025] Figure 1 This is a schematic diagram of the method flow in an exemplary embodiment of the present invention; Figure 2 This is a schematic diagram of the layout of the primary functional area in an exemplary embodiment of the present invention; Figure 3 This is a schematic diagram of the layout of the primary functional area in another exemplary embodiment of the present invention. Figure 4 This is a schematic diagram of the layout of the secondary functional areas in an exemplary embodiment of the present invention. Figure 5 This is a schematic diagram of the layout of the secondary functional area in another exemplary embodiment of the present invention; Figure 6 This is a schematic diagram of the layout of the functional areas in another exemplary embodiment of the present invention; Figure 7 This is a schematic diagram of the trajectory of a user's touch point in an exemplary embodiment of the present invention; Figure 8 This is a schematic diagram of an exemplary steel structure drawing of the present invention; Figure 9 This is a schematic diagram of another exemplary steel structure drawing of the present invention.
[0026] Summary of reference numerals in the attached diagram: 101, primary functional area; 102, directional indicator line; 102a, first contact point; 102b, second contact point; 102c, third contact point; 103, secondary functional area; 104, indicator; 105, angle boundary. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0028] In this document, suffixes such as "module," "part," or "unit" used to denote elements are used only for the purpose of illustrative purposes and have no specific meaning in themselves. Therefore, "module," "part," or "unit" may be used interchangeably.
[0029] In this document, the terms "upper," "lower," "inner," "outer," "front," "rear," "one end," and "the other end," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the present invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the present invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0030] In this document, unless otherwise explicitly specified and limited, the terms "installed," "equipped with," "connected," etc., should be interpreted broadly. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, a direct connection, or an indirect connection through an intermediate medium; it can be a connection within two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0031] In this document, "and / or" includes any and all combinations of one or more of the listed related items.
[0032] In this article, "multiple" means two or more, that is, it includes two, three, four, five, etc.
[0033] As used in this specification, the term "about" typically means + / -5% of the value, more typically + / -4% of the value, more typically + / -3% of the value, more typically + / -2% of the value, even more typically + / -1% of the value, and even more typically + / -0.5% of the value.
[0034] In this specification, certain embodiments may be disclosed in a range-bound format. It should be understood that this "range-bound" description is merely for convenience and brevity and should not be construed as a rigid limitation on the disclosed range. Therefore, the description of a range should be considered as having specifically disclosed all possible subranges and the individual numerical values within those ranges. For example, a description of the range 1-6 should be considered as having specifically disclosed subranges such as from 1 to 3, from 1 to 4, from 1 to 5, from 2 to 4, from 2 to 6, from 3 to 6, etc., and the individual numbers within those ranges, such as 1, 2, 3, 4, 5, and 6. This rule applies regardless of the breadth of the range.
[0035] In this article, "touchpoint" refers to the location of a user's operation point within the current computing system (such as a display interface). For example, operation points are typically marked on the display interface using cursors, arrows, or other markers. For instance, when a user moves an external input device such as a mouse, the operation point moves along with the mouse. As another example, when the display interface is a touchscreen, the user can touch the touchscreen with their finger or other triggers (drawing pens), and the area where the finger or trigger contacts the touchscreen can be identified as an operation point. In other words, the operation point indicates the user's current position.
[0036] The typical steel structure drafting process includes: First, creating a 3D building model (BIM model) based on the design blueprints, which involves drawing multiple steel components and specifying their structural form, component dimensions, and connection methods. Connection methods for steel components include bolted connections and welding. Next, a bill of materials and 2D detailed fabrication drawings are generated from the 3D building model, with the material specifications and fabrication dimensions of the components marked on the 2D drawings. Then, the 2D drawings are printed and sent to the workshop for steel component fabrication. Workshop fabrication generally includes processes such as layout, material marking, cutting, drilling, assembly, welding, grinding, painting, and component inspection.
[0037] See Figure 8 , Figure 9As shown, each illustration depicts a typical steel structure drawing. It can be seen that steel structure drawings contain a large number of components and exhibit complex structures, making the drafting work extremely demanding for engineers. To address this, this invention provides a click-and-draw function switching method for steel structure drawing scenarios, significantly alleviating or reducing the tedious drafting tasks for engineers.
[0038] Example 1: See Figure 1 As shown, the present invention provides a drawing operation method, including the following steps: S101, in response to a first trigger signal triggered by the user at the first contact point, a first function panel (also referred to as a wheel) is displayed on the current display interface. The first function panel includes at least two function areas arranged in a ring around a point (such as a target point). For example, the first function panel includes at least two primary function areas 101 arranged in a ring around the first contact point, see [link to previous section]. Figures 2-7 ; In some embodiments, the target point can be a pre-set point. Alternatively, the coordinates of the target point can be adaptively adjusted based on the user's touch point (e.g., the location of the user's cursor can be considered the location of the touch point). For example, when the user shifts to the left, the touch point can move to the left accordingly, and the target point can also move to the left accordingly. In other words, the target point can be located at or near the touch point (i.e., the coordinate difference between the target point and the current touch point is less than a preset first threshold).
[0039] Preferably, the target point is the first contact point, and the at least two functional areas include at least two primary functional areas arranged in a ring around the first contact point.
[0040] In some embodiments, the user triggers the first trigger signal by clicking the mouse; preferably, clicking the left or right mouse button triggers the first trigger signal. S102, the user holds the first trigger signal during the first time period and moves from the first contact point to the second contact point; For example, when a user clicks the right mouse button at the first touch point, the click state is maintained, and the mouse is moved to the second touch point while still in the click state.
[0041] For example, when a user moves the mouse to the lower right, it is equivalent to the user's operation point moving from the first contact point to the lower right and then to the second contact point.
[0042] S103, define an indicator direction line based on the first contact and the second contact; S104, when the indicator direction line is located in one of the primary function areas and the user stops triggering the first trigger signal, it indicates that the corresponding primary function area is selected; S105, when the user selects the primary function area, the current operating environment is switched to the operating environment corresponding to the primary function area.
[0043] In other words, in this embodiment, when the user opens the first function panel and selects a function area, the same trigger signal will be continuously emitted (such as keeping the right mouse button clicked or keeping the left mouse button clicked).
[0044] In some embodiments, the method includes the steps of: An indicator is used to display the directional line formed by the first contact and the second contact. For example... Figure 2 As shown, visualizing the direction of the indicator can help users quickly select functions.
[0045] Below, in order to more clearly illustrate the process of the single-line operation provided by the present invention, Figure 2 The operation method is illustrated by example: When the user right-clicks at the first contact point 102a, the display shows multiple primary function areas 101, each covering a certain angle range (e.g., ...). Figure 2 For example, the angle range covered by a primary function area is approximately 45°. Subsequently, the user holds down the right mouse button and moves the mouse to the second touch point 102b.
[0046] Obtain the first coordinates of the first contact point 102a and the second coordinates of the second contact point 102b; Calculate the angle between the straight line formed by the first coordinate and the second coordinate (used to represent the indicated direction line) and the reference datum; Determine which primary functional area the included angle falls within, such as... Figure 2 As shown, the indicator line is currently located in the interrupted area; if the user interrupts the right-click operation, it means the interrupted area is selected. At this point, the function panel also disappears from the interface.
[0047] Specifically, in this single-click-and-draw-line scheme, the user can preferably open the function panel directly by clicking the right mouse button and keeping the right button clicked. The user can then select a function area by sliding / rotating the mouse (the mouse position is indicated by lines on the interface, similar to a line drawing operation). Afterward, de-clicking automatically switches the operating environment to the selected state (e.g., interruption). In other words, this invention provides a function selection method that visually and functionally approximates a line drawing operation, and uses a single click and a single operation throughout the entire function selection process, thereby significantly improving the smoothness of operation.
[0048] Understandable Figure 2 The positions of the first and second contacts are marked only for ease of understanding of the scheme. In the actual display interface, it is possible to choose not to display the first and second contacts.
[0049] In some embodiments, one of the primary functional areas covers a first angular range, such as... Figure 2 As shown, the moving area, interruption area, alignment area... all displaying the object area cover the first angle range. Correspondingly, S104 includes: Calculate the angle between the indicated direction line and the set reference reference; Based on the included angle, the first angle range of the current position of the indicator direction line is identified, and the primary functional area where the indicator direction line is located is identified accordingly.
[0050] For example, when the direction indicator line is detected to be located within a region corresponding to a first angle range, the functional area corresponding to that first angle range is identified. Subsequently, when the user stops triggering the first trigger signal, it is assumed that the user has selected the corresponding primary functional area.
[0051] For example, in some embodiments, a rectangular coordinate system is created in the display interface, and the first angle range of a certain function area A is 0-90°. When it is detected that the angle between the indicator direction line and the X-axis (equivalent to the reference datum) is 60°, it is considered that the user is currently trying to select function area A.
[0052] For example, in some embodiments, a reference coordinate system may be preset in the display interface, and the corresponding reference reference may be an axis in the reference coordinate system, such as the horizontal axis or the vertical axis.
[0053] In some embodiments, the steps further include: When a user selects one of the primary function areas, a second function panel extends outwards from the periphery of the first function panel. The second function panel includes at least two secondary function areas arranged in a ring around the first function panel. That is, multiple sub-function areas can be correspondingly set under one function area, such as... Figures 4-5 As shown.
[0054] For example, in some embodiments, the alignment area is provided with five sub-functional areas (i.e., secondary functional areas), such as the standard view area, the plane area, the three-point view area, and the two-point view area, etc. Figure 5 As shown.
[0055] In some embodiments, the steps further include: In response to a second trigger signal issued by the user, one of the secondary function areas is selected.
[0056] In other words, in addition to the click-and-draw operation, this invention also provides a click-to-select method. For example, in this embodiment, the user can first click the right mouse button to bring up the display panel, and then the user can click the left mouse button to confirm whether to select the current function area.
[0057] In other words, this invention also retains the user's original operating habits. The user can press the right mouse button and immediately release it. At this time, a wheel function panel (such as the first function panel) will pop up. The user can move the cursor to the corresponding function area by sliding and rotating, and then click the left mouse button to start the function.
[0058] Alternatively, in some embodiments, users can select a function area by entering text commands. For example, in some embodiments, different function areas can be labeled with different numbers (each function area can be labeled as 1, 2, 3..., or a, b, c... respectively), and the user manually enters the number of each function area to select the corresponding function area. The function areas display the numbering information to assist the user in making quick selections.
[0059] In some embodiments, the first trigger signal is triggered when the user clicks the right or left mouse button.
[0060] In some embodiments, at least one function icon is displayed on the function area. For example... Figures 2-5 As shown, each functional area displays a function icon to indicate the meaning of the function.
[0061] Preferably, when the direction indicator line is located in one of the functional areas (e.g. Figure 3 As shown, if the direction indicator line is located in the interruption area, then the corresponding function icon (such as the interruption icon) will be displayed synchronously in the central area of the first function panel (i.e., the area surrounded by each primary function area) to prompt the user about the current selection area.
[0062] In some embodiments, the steps further include: When the user stops triggering the first trigger signal, the first function panel disappears from the current display interface. In some embodiments, the primary functional area is displayed in a fan shape or a fan-like shape.
[0063] In some embodiments, the direction line is displayed using indicator 104 in the current display interface.
[0064] For example, in some embodiments, the step of displaying the direction line using indicator 104 includes: Record the first coordinate of the first contact point 102a and the second coordinate of the second contact point 102b; The indicator is generated in a ray along the first coordinate, with the tip of the indicator pointing in the direction of the second coordinate (see [reference]). Figure 2 (As shown).
[0065] In some embodiments, it also includes: When the indicator direction line is located in one of the functional areas (such as a primary functional area or a secondary functional area), the corresponding functional area is displayed using a second display mode, and the other functional areas are displayed using a first display mode.
[0066] The first display method and the second display method have different display attributes, which can be one or more of the following: color, brightness, area, etc.
[0067] In this embodiment, when the indicator line is located in one of the functional areas, it is considered that the functional area has been initially selected, and the initially selected functional area and the unselected functional area are displayed separately.
[0068] For example, in some embodiments, the brightness of the functional area (i.e., the selected area) where the indicator line is located can be increased to distinguish between the selected and unselected areas. Alternatively, in some embodiments, different display colors can be used to distinguish between the selected and unselected areas.
[0069] In some embodiments, the intersection of two adjacent functional areas is an angular boundary, corresponding to... Figure 6 For example, the method further includes: Calculate the first angular difference between the direction indicator line 102 and the adjacent angular boundary 105; An angular boundary 105 is formed between two adjacent functional areas (such as two primary functional areas 101), and the adjacent angular boundary refers to the angular boundary that is closest to the current direction line.
[0070] When the first angle difference is less than a preset difference threshold, two functional areas on both sides of the angle boundary are identified. The functional area currently occupied by the indicator direction line is displayed using a first sub-display mode; another corresponding functional area is displayed using a second sub-display mode; and the remaining functional areas are displayed using a second display mode.
[0071] The first sub-display mode and the second sub-display mode have different display attributes.
[0072] In this embodiment, when the user's final direction line is close to the angular boundary of the two functional areas, it is preferable to display the synchronous difference between the two functional areas, such as simultaneously increasing the brightness of the two functional areas compared to other functional areas, so as to prompt the user to pay attention to whether there is a deviation in the current selection.
[0073] In some embodiments, the method further includes the step of: S106, identify the stop time when the first trigger signal is stopped; S107, acquire at least one third contact point recorded during a first time period before the said stop time (e.g., the target duration is usually very short, such as 0.1s, 0.2s, etc.); S108, define a first indicator direction line based on the first contact and the second contact, and define a second indicator direction line based on the first contact and the third contact; S109, determine whether the first direction indicator line and the second direction indicator line are located in the same functional area; If so, it is assumed that the user has selected the corresponding function area.
[0074] Conversely, if the first and second directional indicator lines are located in different functional areas, the functional area can be tentatively determined using either the first or second directional indicator line. Correspondingly, the steps also include: S110, when the first functional area (i.e. the selected functional area, which can be a first-level functional area or a first-level functional area) is determined by the first indicator direction line, the operation record under the second time period is recorded. S111, when it is detected that the user re-issues the first trigger signal for switching function areas in the second time period, the second function area selected by the first trigger signal is recorded; Prioritizes, the second time period refers to the period during which the user does not save any drawing operations. For example, the period between when the user immediately re-activates the function panel after it disappears (i.e., after the stop time) is defined as the second time period. Alternatively, if the user performs at least one drawing operation after the function panel disappears, but deletes or fails to save the operation, the period between when the function panel is re-activated is defined as the second time period. Correspondingly, in this embodiment, when the user does not activate the selected function area and directly selects a new function area, the corresponding selection is marked as an incorrect selection.
[0075] S112, when the second functional area is the functional area where the second indicator direction line is located, the probability of misoperation is generated or updated. For example, in some embodiments, the total number of times a user selects a function area over a period of time can be recorded, and the ratio of the total number of incorrect selections to the total number of selections is the probability of misoperation. For example, if a user issues 10 trigger signals, i.e. performs 10 function switches, and 4 of them are marked as incorrect selections, then the probability of misoperation can be recorded as 0.4.
[0076] S113, when the probability of misoperation is greater than a preset probability threshold, an update mechanism for the first trigger signal is generated.
[0077] For example, in some embodiments, the update mechanism for the first trigger signal is to filter the touch information recorded during the first time period preceding the stop time. That is, to filter the tail operations of click-and-draw operations, a tail filtering mechanism is proposed.
[0078] In other words, when calculating the direction indicator line, the direction indicator line is defined by the first contact 102a and the third contact 102c.
[0079] In other words, the present invention includes the following tail-end operation filtering steps: Identify the moment when the first trigger signal stops being triggered; Acquire the third contact point recorded during the first time period prior to the stated stop time; The direction indicator line is defined based on the first and third contacts.
[0080] Alternatively, in some embodiments, it is preferred to define the indicator direction line with a third contact only when a conflict between the first and second indicator direction lines is detected.
[0081] In some embodiments, the above filtering steps are enabled only when the probability of misoperation is greater than a preset probability threshold.
[0082] It should be noted that this tail filtering mechanism for click-and-draw operation can mitigate or reduce the impact of errors by skilled drafting engineers.
[0083] The applicant noted that, especially for skilled drafting engineers, the drawing speed is typically quite fast. For example, once a ribbon is selected, drawing begins immediately. The mouse is then quickly moved to the next point of operation (i.e., the starting point for drawing the component). See also Figure 7As shown, under the continuous drawing habits of skilled engineers, the mouse may turn prematurely. For example, the user moves the mouse from the third contact point 102c to the second contact point 102b, but the user actually intends to complete the selection at the second contact point 102b, thus causing a selection error. In other words, because the user's sliding operation is too fast, the transmission of the first trigger signal may not be stopped in time. The tail filtering mechanism provided by this invention can effectively reduce the degree of drawing errors made by skilled engineers under rapid drawing conditions.
[0084] Furthermore, in some embodiments, the method includes: (1) During the first time period, record multiple sets of drawing operations of the user. Each set of drawing operations includes: the relative position of the operation line with respect to the set reference datum. The operation line is defined by the first operation point and the second operation point controlled by the user. For example, in the process of drawing steel structures, users repeatedly draw multiple components, such as steel beams, steel columns, steel trusses, etc. The drawing method is typically as follows: the user provides a signal to draw a steel column, then clicks the left mouse button to define the starting point of the column (this can be recorded as the first operation point), holds down the left mouse button and moves the mouse to the end point of the column, then releases the left mouse button to complete the drawing of the column (correspondingly, the end point is recorded as the second operation point). This drawing operation can be recorded during the user's long drawing process.
[0085] (2) Calculate the position difference between at least two operating lines; In this embodiment, the straight line formed by connecting the first operating point and the second operating point can be defined as the operating line. For example, the relative position can be the angle between the operating line and a set reference datum, and the corresponding position difference can be the difference in the angle.
[0086] (3) When the position difference is less than the preset position threshold, the corresponding drawing operation record (or, in other words, identified / classified) is grouped into an operation group; In other words, when two or more operation lines are located in close proximity, the operation lines (or their corresponding drawing operations) can be recorded as an operation group.
[0087] (4) Calculate the recommended layout range (or recommended layout position) of the priority functional area based on the multiple phase positions (such as included angle) corresponding to the operation group.
[0088] For example, in some embodiments, multiple included angles are recorded within an operation group, and the recommended placement position can be an angle range defined by the maximum and minimum included angles. Alternatively, in some embodiments, included angles that occur more frequently (e.g., more than a set frequency) among multiple relative positions can be selected as candidate included angles, and the maximum and minimum included angles can be selected from the candidate included angles to define the angle range (i.e., define the recommended placement position).
[0089] In some embodiments, different functional areas are defined with different priorities, such as first priority and second priority. For example, functional areas may include: first priority functional area and second priority functional area.
[0090] Preferably, the method includes: sending a first recommendation signal, the first recommendation signal being used to recommend setting the first priority functional area at the recommended arrangement position.
[0091] In other words, in this embodiment, the preferred position distribution of the click-and-dash function area is designed in accordance with the user's sliding operation habits, so as to help guide the user to select frequently used function areas and form muscle memory.
[0092] In some embodiments, the method further includes: Get the first angular range of the priority function area in the current display interface (that is, the current angular range); Calculate the second angle difference between the corresponding first angle range and the recommended layout range; When the second angle difference is less than the preset angle threshold, a first adjustment signal is generated; In response to the first adjustment signal, an adjustment function area corresponding to the priority function area can be generated in the display interface, and the function panel (such as the first function panel or the second function panel) can be updated and arranged according to the adjustment function area. Furthermore, the original priority function area and adjustment function area can be displayed in different ways on the interface to prompt the user to make the current adjustment, so that the user can fine-tune the subsequent drawing direction. When the second angle difference is greater than the angle threshold, a second adjustment signal is generated; for example, the second adjustment signal can prompt the user to adjust the function area in the form of voice or text.
[0093] In other words, based on the degree of difference between the user's component drawing habits and the current functional area distribution, the present invention provides users with a classification adjustment scheme to improve the smoothness of operation (so that the user's component drawing habits and commonly used function selection operations have a high degree of similarity) while avoiding over-adjustment, so as not to affect the user's accumulation of muscle memory.
[0094] In other words, the classification and adjustment scheme proposed in this embodiment can, to a large extent, adaptively adjust the layout of functional areas while minimizing disruption to the user's original operational memory. This avoids frequent switching or excessively large switching amplitudes, which could lead to conflicts between the user's original operational memory and the adjusted layout.
[0095] In some embodiments, the priority of different functional areas can be determined based on application parameters. For example, in some embodiments, the application parameters can be the recorded frequency of user selection of a functional area; if the frequency of selection of a functional area is greater than a preset first selection frequency, it is identified as having the highest priority. As another example, the application parameters may include drawing type or project type; correspondingly, the priority of functional areas can be differentiated based on the drawing type and project type.
[0096] In some embodiments, the priority of the ribbon can be set manually by the user.
[0097] In some embodiments, the number and type of function areas in the first or second function panel can be set by the user.
[0098] Preferably, in some embodiments, only a few frequently used functions are selected for the function area settings. For example, in some embodiments, the number of function areas in the first function panel is preferably around 3-8. For example, in some embodiments, the number of function areas in the first function panel is preferably 3-9. For example, in some embodiments, the number of function areas in the first function panel is preferably around 3-10. The present invention does not impose any limitations on this.
[0099] In some embodiments, the display properties of function panels or function areas can also be set by the user. For example, display properties include: display color, font style (such as font type, color, size, etc.).
[0100] Example 2 The present invention also provides a drawing operating system, comprising: The first trigger module is used to respond to a first trigger signal triggered by the user at the first contact point and display a first function panel on the current display interface. The first function panel includes at least two primary function areas arranged in a ring around the first contact point. The holding trigger module is used to record the second contact point when the user holds the first trigger signal during a first time period and moves from the first contact point to the second contact point; A direction line calculation module is used to define an indicator direction line based on the first contact point and the second contact point; The selected module is used to indicate that the corresponding primary function area is selected when the indicator direction line is located in one of the primary function areas and the user stops triggering the first trigger signal. The switching module is used to switch the current operating environment to the operating environment corresponding to the primary function area when the user selects the primary function area.
[0101] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described in any of the embodiments.
[0102] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0103] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a computer terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0104] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A function switching method, characterized in that, Including the following steps: S101, in response to a first trigger signal triggered by the user at the first contact point, a first function panel is displayed on the current display interface, the first function panel including: at least two primary function areas arranged in a ring around the first contact point; S102, the user holds the first trigger signal during the first time period and moves from the first contact point to the second contact point; S103, define an indicator direction line based on the first contact and the second contact; S104, when the indicator direction line is located in one of the primary function areas and the user stops triggering the first trigger signal, it indicates that the corresponding primary function area is selected; S105, when the user selects the primary function area, the current operating environment is switched to the operating environment corresponding to the primary function area.
2. The method according to claim 1, characterized in that, Also includes: In the current display interface, the direction line is displayed using indicator icons.
3. The method according to claim 1, characterized in that, When a user selects one of the primary function areas, a second function panel is displayed extending from the periphery of the first function panel. The second function panel includes at least two secondary function areas arranged in a ring around the first function panel.
4. The method according to claim 1, characterized in that, It also includes the following steps: The user selects the corresponding function area by entering text commands.
5. The method according to any one of claims 1-4, characterized in that, It also includes the following steps: When the directional line is located in one of the function areas, the corresponding function icon is simultaneously displayed in the center area of the first function panel to indicate the current selection area to the user.
6. The method according to any one of claims 1-4, characterized in that, Different functional areas are defined with different priorities. Correspondingly, the functional areas include: a first priority functional area and a second priority functional area; the method includes: sending a first recommendation signal, which is used to recommend setting the first priority functional area at a recommended arrangement position.
7. The method according to claim 6, characterized in that, The priority of different functional areas is determined based on application parameters.
8. The method according to claim 7, characterized in that, The application parameter is the frequency of user selection of the function area. When the frequency of selection of the function area is greater than the preset first selection frequency, the function area is identified as the first priority. And / or, the priority of the function area is set manually by the user.
9. The method according to any one of claims 6, characterized in that, Also includes: In the first time period, multiple sets of drawing operations by the user are recorded. Each set of drawing operations includes the relative position of the operation line with respect to a set reference datum. The operation line is defined by the first operation point and the second operation point controlled by the user. Calculate the positional difference between at least two operating lines; When the position difference is less than a preset position threshold, the corresponding drawing operation is recorded as an operation group; The recommended layout position of the priority functional area is calculated based on the multiple phase positions corresponding to the operation group.
10. A function switching system, characterized in that, include: The first trigger module is used to respond to a first trigger signal triggered by the user at the first contact point and display a first function panel on the current display interface. The first function panel includes at least two primary function areas arranged in a ring around the first contact point. The holding trigger module is used to record the second contact point when the user holds the first trigger signal during a first time period and moves from the first contact point to the second contact point; A direction line calculation module is used to define an indicator direction line based on the first contact point and the second contact point; The selected module is used to indicate that the corresponding primary function area is selected when the indicator direction line is located in one of the primary function areas and the user stops triggering the first trigger signal. The switching module is used to switch the current operating environment to the operating environment corresponding to the primary function area when the user selects the primary function area.