Custom view generation method and device based on graphic model and electronic equipment

Through custom view generation rules, filtering and rendering graphic models, custom views that meet user needs are generated, which solves the problem that existing view customization methods cannot meet users' personal usage needs, and achieves efficient view generation and adjustment.

CN120372731APending Publication Date: 2025-07-25BEIJING TONGYU ZHICHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510504017.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-22
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

The existing view customization method cannot meet users' personal usage needs, and the operation is cumbersome and the results of customized views cannot be obtained instantly.

Method used

By obtaining the custom view generation rules corresponding to the user's settings, filtering the original graphic model, generating a two-dimensional view file that meets user's needs, and generating a custom view through rendering and refreshing, meeting the user's various usage needs.

Benefits of technology

Break the constraints of modeling rules on model views, meet users' various usage needs, improve the adjustment and usage efficiency of custom views, and shorten the usage methods of custom views.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120372731A_ABST
    Figure CN120372731A_ABST
Patent Text Reader

Abstract

The invention provides a custom view generation method and device based on a graphic model and electronic equipment, relates to the technical field of graphic models, and solves the technical problem that an existing view customization mode cannot meet personal use requirements of a user. The method comprises the following steps: acquiring a custom view generation rule correspondingly set by a user setting operation; filtering the original graphic model according to a user-defined view generation rule to obtain a target object and target relation data meeting the user-defined view generation rule; based on the target object and the target relation data, performing reprocessing according to a specified fixed format standard of the view file to generate a two-dimensional view file; rendering on a canvas based on the two-dimensional view file to generate a target custom view; and regenerating a new custom view by refreshing the target custom view in real time according to the custom view generation rule and the new graphic model, so that the content of the new custom view is kept consistent with the content of the new graphic model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of graphical models, and in particular, to a method, apparatus, and electronic device for generating a custom view based on a graphical model. Background Art

[0002] Currently, modeling languages in the prior art emerged from the perspective of being able to completely describe a system, and stipulated modeling methods and views. For example, SysML defines nine views: block definition diagram, internal block diagram, parameter diagram, package diagram, requirement diagram, activity diagram, sequence diagram, state machine diagram, and use case diagram; even though OPM defines one view, the modeling method is to refine the modeling of the system centered around the process. Through these views, the system can be described in detail or comprehensively, but it cannot meet the personal usage needs of users. Summary of the Invention

[0003] An object of the present invention is to provide a method, apparatus, and electronic device for generating a custom view based on a graphical model, so as to solve the technical problem that the existing view customization method cannot meet the personal usage needs of users.

[0004] In a first aspect, the present application provides a method for generating a custom view based on a graphical model, the method including:

[0005] Obtaining a custom view generation rule set according to a user setting operation; wherein, the custom view generation rule is used to represent elements concerned by a user corresponding to the user setting operation;

[0006] Obtaining an original graphical model, and filtering the original graphical model according to the custom view generation rule to obtain target things and target relationship data that meet the custom view generation rule, so as to extract target elements concerned by the user for the original graphical model from the original graphical model; wherein, the target elements include the target things and the target relationship data;

[0007] Based on the target things and the target relationship data, reprocessing is performed according to a specified fixed format standard of a view file to generate a two-dimensional view file;

[0008] Rendering is performed on a canvas based on the two-dimensional view file to generate a target custom view; the target custom view is used for multiple uses of the original graphical model; in the target custom view, by adding graphics and text for supplementarily describing the target custom view, or re-layoutting and sorting things and relationship data in the rendered target custom view, the target custom view generated according to the original graphical model meets the needs of the user;

[0009] Generate a new custom view by regenerating the target custom view in real time according to the custom view generation rule and the new graphical model, so that the new custom view is consistent with the content of the new graphical model.

[0010] In a possible implementation, obtaining the custom view generation rule set corresponding to the user setting operation includes at least one of the following:

[0011] Obtain a first selection operation for multiple second things, determine the second things to be displayed that are associated with the first thing as the display center from the multiple second things according to the first selection operation, determine whether the relationship type between the second things to be displayed and the first thing belongs to a direct relationship or an indirect relationship, determine the thing association situation of the first thing and the second things to be displayed in the entire original graphical model according to the relationship type between the first thing and the second things to be displayed, and determine the custom view generation rule based on the thing association situation; and / or,

[0012] Obtain a second selection operation for multiple third things, determine the target third thing to be displayed from the multiple third things according to the second selection operation, determine the other third things except the target third thing among the multiple third things as the redundant things to be filtered, and determine the custom view generation rule based on the target third thing and the redundant things to be filtered; and / or,

[0013] Obtain a third selection operation for instance values, determine the target attribute instance value corresponding to the general attribute according to the third selection operation, determine to display the fourth things with the target attribute instance value on one view so that the user can use the original graphical model through the attribute dimension, obtain a label adding operation for the fourth things, determine the custom label corresponding to the fourth things according to the label adding operation, and determine the custom view generation rule based on the fourth things with the target attribute instance value and the custom label, so as to filter the original graphical model through the custom label and generate a custom view;

[0014] If there are thing and relationship marking labels in the original graphical model, the third selection operation is used to select the target attribute instance value and / or select the target label; the target label is used to select things and relationships with or without the index label in the next filtering.

[0015] In a possible implementation, the custom view generation rule includes at least one of the following:

[0016] Generate a custom view using the rules of the modeling language itself; generate a custom view by filtering the original things in the original graphical model; generate a custom view using the thing attributes of the modeling elements.

[0017] In a possible implementation, after filtering the original graphical model according to the custom view generation rule to obtain target things and target relationship data that meet the custom view generation rule, it further includes:

[0018] If there are multiple identical target things, perform deduplication processing on the multiple identical target things to obtain one remaining target thing;

[0019] If there are duplicate identical relationships between two identical target things, perform deduplication processing on the duplicate identical relationships to obtain one remaining thing relationship between the two target things;

[0020] If there are non - duplicate different relationships between two identical target things, screen the non - duplicate different relationships according to the priority of the thing relationships to retain the target relationship with the highest priority, obtaining one remaining target relationship between the two target things.

[0021] In a possible implementation, based on the target things and the target relationship data, re - process according to the specified fixed format standard of the view file to generate a two - dimensional view file, including:

[0022] Re - organize the target things and the target relationship data according to the specified display requirement data of the things and the relationships between things and the specified fixed format requirement data of the view file to generate a new two - dimensional view file that can be displayed in the modeling software; wherein, the specified display requirement data includes that the display positions of two things with a direct relationship are adjacent and the things are non - overlapping in display.

[0023] In a possible implementation, after obtaining the original graphical model, it further includes:

[0024] Modify the original graphical model according to the custom view suggestion data to obtain a modified graphical model, and determine the modified accuracy corresponding to the modified graphical model;

[0025] If the modified accuracy is greater than the specified accuracy, perform the step of re - processing based on the target things and the target relationship data according to the specified fixed format standard of the view file to generate a two - dimensional view file.

[0026] In a possible implementation, the regenerating a new custom view by refreshing the target custom view in real time according to the custom view generation rule and the new graphical model includes:

[0027] In response to a manual refresh operation on the target custom view, determining a new graphical model in the refresh task corresponding to the manual refresh operation, and refreshing the target custom view according to the new graphical model and the custom view generation rule to regenerate a new custom view.

[0028] In a second aspect, the present application provides a custom view generation device based on a graphical model, including:

[0029] An acquisition module, configured to acquire a custom view generation rule set corresponding to a user setting operation; wherein, the custom view generation rule is used to characterize elements concerned by a user corresponding to the user setting operation;

[0030] A filtering module, configured to acquire an original graphical model, and filter the original graphical model according to the custom view generation rule to obtain a target thing and target relationship data that meet the custom view generation rule, so as to extract target elements concerned by the user for the original graphical model from the original graphical model; wherein, the target elements include the target thing and the target relationship data;

[0031] A processing module, configured to reprocess based on the target thing and the target relationship data according to a specified fixed format standard of a view file to generate a two-dimensional view file;

[0032] A rendering module, configured to render on a canvas based on the two-dimensional view file to generate a target custom view; the target custom view is used for multiple uses of the original graphical model; in the target custom view, by adding graphics and texts for supplementarily describing the target custom view, or re-layouting and sorting the things and relationship data in the rendered target custom view, the target custom view generated according to the original graphical model meets the user's requirements;

[0033] A refresh module, configured to regenerate a new custom view by refreshing the target custom view in real time according to the custom view generation rule and the new graphical model, so that the new custom view is consistent with the content of the new graphical model.

[0034] In a third aspect, the present application further provides an electronic device, including a memory and a processor, where a computer program executable on the processor is stored in the memory, and when the processor executes the computer program, the method described in the first aspect above is implemented.

[0035] In a fourth aspect, the present application further provides a computer-readable storage medium storing computer-executable instructions, which, when called and executed by a processor, cause the processor to execute the method described in the first aspect above.

[0036] The present application brings the following beneficial effects:

[0037] A method, apparatus, and electronic device for generating a custom view based on a graphical model provided by the present application can obtain a custom view generation rule set according to a user setting operation; wherein, the custom view generation rule is used to represent elements concerned by a user corresponding to the user setting operation; obtain an original graphical model, and filter the original graphical model according to the custom view generation rule to obtain a target thing and target relationship data that meet the custom view generation rule, so as to extract target elements concerned by the user for the original graphical model from the original graphical model; wherein, the target elements include the target thing and the target relationship data; based on the target thing and the target relationship data, reprocess according to a specified fixed format standard of a view file to generate a two-dimensional view file; render based on the two-dimensional view file on a canvas to generate a target custom view; in the target custom view, add graphics and text for describing the target custom view through an adding operation, and adjust the target thing and the target relationship data in the target custom view through an organizing operation and a sorting operation; the target custom view is used for multiple uses of the original graphical model; according to the custom view generation rule and a new graphical model, regenerate a new custom view by refreshing the target custom view in real time, so that the new custom view is consistent with the content of the new graphical model. In this solution, based on the original model, model elements, that is, elements concerned by the user, can be filtered from the model by means of a custom rule. The user can filter the elements of the model from the perspective of use, and then generate a view file that can be instantaneously displayed in a modeling software and rendered, and regenerate a new view that meets the user's needs for viewing and using. This not only breaks the bondage of the modeling rule on the model view, meets the user's various usage requirements for the model, and solves technical problems such as the inability of the existing view customization method to meet the user's personal usage needs.

[0038] To make the above objects, features, and advantages of the present application more obvious and understandable, the following specific preferred embodiments are given below in conjunction with the accompanying drawings and described in detail as follows. Description of the Drawings

[0039] To more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0040] Figure 1 is a view customization method in the prior art;

[0041] Figure 2 is a schematic flowchart of a custom view generation method based on a graphical model provided by an embodiment of the present application;

[0042] Figure 3 is a schematic structural diagram of a custom view generation device based on a graphical model provided by an embodiment of the present application;

[0043] Figure 4 shows a schematic structural diagram of an electronic device provided by an embodiment of the present application. Specific Embodiments

[0044] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions of the present application with reference to the drawings. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.

[0045] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes other steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products, or devices.

[0046] Currently, the view customization solutions in the prior art include establishing an extension or generalization relationship between the meta-classes of the original model and the existing model to complete the creation of the existing model. This view definition method can add some attributes to the existing model to describe the existing model. However, in this view method, the modeling rules will restrict the model view, and the ability of this customized view is limited. Different things in different views can only be obtained through generalization relationships and extension relationships, which cannot meet the personal usage needs of users. For example, as Figure 1As shown in the figure, the view customization method in the prior art includes the following steps: S01: Define the configuration items of the view configuration to configure the view prototype to be customized; S02: Create a model prototype of the customized view, and establish its relationship with other model prototypes to inherit the characteristics of the original model prototype and create new attributes unique to the view prototype; S03: Create an instance corresponding to the configuration item of the view configuration in step S01, and associate the instance with the customized view prototype in step S02 and configure other attributes; S04: After packing and exporting the multiple models created in step S02 into a compressed resource file in a specific format, import it into the project to be applied. The above view customization method based on MBSE can provide the ability of view customization for MBSE modeling software, thereby solving the problems of low development reusability and high maintenance cost of customized views for developers of MBSE modeling software. Moreover, by establishing an extension or generalization relationship between the meta-classes of the original model and the existing model, the creation of the existing model can be completed, some attributes can be added to the existing model, and the existing model can be described. This view definition method breaks through the limitations of the original nine types of views in SysML and can concentrate things that could not appear on one view before onto one view. However, the ability of this customized view is limited. Different things in different views can only be obtained through generalization relationships and extension relationships, which cannot meet the personal usage needs of users. Moreover, this method is cumbersome to operate. All content that wants to appear in the customized view needs to establish relationships to appear. Furthermore, the result of the customized view cannot be obtained immediately. The model and data need to be packed into a resource file in a specific format and imported into the software to view the customized view.

[0047] Based on this, the embodiments of the present application provide a method, device, and electronic device for generating a custom view based on a graphical model. Through this method, technical problems such as the inability of the above-mentioned existing view customization methods to meet the personal usage needs of users can be solved.

[0048] The embodiments of the present invention will be further introduced below with reference to the accompanying drawings.

[0049] Figure 2 It is a schematic flowchart of a method for generating a custom view based on a graphical model provided by an embodiment of the present application. As Figure 2 shown, the method includes:

[0050] Step S110, obtain the custom view generation rule set corresponding to the user setting operation.

[0051] Among them, the custom view generation rule is used to represent the elements concerned by the user corresponding to the user setting operation. The custom view generation rule is used to filter the original model. As an example, this step S110 may specifically include at least one of the following:

[0052] Obtain a first selection operation for multiple second things, determine, according to the first selection operation, a second thing to be displayed that has an association relationship with a first thing serving as a display center from the multiple second things, determine whether the type of relationship between the second thing to be displayed and the first thing belongs to a direct relationship or an indirect relationship, determine the thing association situation of the first thing and the second thing to be displayed in the entire original graphical model according to the type of relationship between the first thing and the second thing to be displayed, and determine a custom view generation rule based on the thing association situation; and / or,

[0053] Obtain a second selection operation for multiple third things, determine, according to the second selection operation, a target third thing to be displayed from the multiple third things, determine other third things in the multiple third things except the target third thing as redundant things to be filtered, and determine a custom view generation rule based on the target third thing and the redundant things to be filtered; and / or,

[0054] Obtain a third selection operation for instance values, determine, according to the third selection operation, a target attribute instance value corresponding to a general attribute, determine to concentrate fourth things with the target attribute instance value on one view for display, so that a user can use the original graphical model through the attribute dimension, obtain a label adding operation for the fourth things, determine a custom label corresponding to the fourth things according to the label adding operation, and determine a custom view generation rule based on the fourth things with the target attribute instance value and the custom label, so as to filter the original graphical model through the custom label and generate a custom view; if there are tags for things and relationship markings in the original graphical model, the third selection operation is used to select the target attribute instance value, and / or select the target label; the target label is used to select things and relationships with index labels or without specified labels in the next filtering step.

[0055] As an optional implementation manner, the custom view generation rule includes at least one of the following: generating a custom view by using the rules of the modeling language itself; generating a custom view by filtering the original things of the original graphical model; generating a custom view by using the thing attributes of the modeling elements.

[0056] Exemplarily, the custom view generation rules include, but are not limited to: First, generating a custom view using the rules of the modeling language itself: Select a target, set to display some other things that have a direct or indirect relationship with the central thing. Further, the types of direct or indirect relationships can be restricted. By this method, the association of the selected target in the entire model can be understood. Second, filtering things to generate a custom view: Select multiple things to be displayed and generate a custom view. In this way, redundant elements can be filtered out, and only the things related to the user relationship are displayed. Further, it is convenient to check whether there is a relationship between the selected things and what the relationship is. Third, generating a custom view using the attributes of the modeling elements: Select the instance values corresponding to the general attributes, and gather the things with this attribute instance value onto one view for display, which is convenient for users to use the model from the attribute dimension. Further, custom labels can be added to the things to achieve the method of generating a custom view through labels, further expanding the application scenarios of the custom view. For example, when it is no longer possible to gather the target things onto one graph through relationships, or when it is too cumbersome to select things one by one and establish relationships with them, different custom labels can be added to each thing during the modeling stage to achieve more diverse custom views.

[0057] Through the above-mentioned various processing methods, this solution supports filtering model elements through various methods such as the rules of the modeling language, the original things in the model, and the attributes of the model things. Moreover, it can also filter the model data through the method of custom labels, broadening the methods of custom views. Furthermore, not only can the rules of the modeling language itself be used, but new views can also be generated through the method of custom rules.

[0058] Step S120, obtain the original graphic model, and filter the original graphic model according to the custom view generation rules to obtain the target things and target relationship data that meet the custom view generation rules, so as to extract the target elements that the user is concerned about in the original graphic model.

[0059] Among them, the target elements include target things and target relationship data. In the embodiments of the present application, the model data of the original graphic model is filtered according to the view generation rules, and the things that meet the rules and the relationships between the things are left.

[0060] Step S130, based on the target things and target relationship data, reprocess according to the specified fixed format standard of the view file to generate a two-dimensional view file.

[0061] In a possible implementation, step S130 may specifically include the following steps: reorganize the target thing and target relationship data according to the specified display requirement data of things and the relationship between things and the specified fixed format requirement data of the view file to generate a new two-dimensional view file that can be displayed in the modeling software; where the specified display requirement data includes that the display positions of two directly related things are adjacent and the things are displayed without overlap.

[0062] Reorganize the recorded things and thing relationships according to the format requirements of the view file and the general display requirements of things and relationships to generate a new view file. Among them, the general display requirements of the relationships of things include: things cannot overlap; two directly related things are generally adjacent in position.

[0063] Step S140, render on the canvas based on the two-dimensional view file to generate a target custom view.

[0064] The target custom view is used for multiple uses of the original graphic model. In the target custom view, by adding graphics and text for supplementary description of the target custom view, or reorganizing and sorting the thing and relationship data in the rendered target custom view, the target custom view generated according to the original graphic model meets the user's needs.

[0065] In the target custom view, add graphics and text for describing the target custom view through an adding operation, and adjust the target thing and target relationship data in the target custom view through an organizing operation and a sorting operation; the target custom view is used for multiple uses of the original graphic model.

[0066] In this step, present the view file on the canvas to complete the generation of the custom view. Specifically, load and render the view file on the canvas to generate a custom view. In the custom view, the things and relationships can be manually organized and sorted, and some only descriptive graphics and texts can also be added to explain the custom view, thereby enhancing the readability and value density of the custom view.

[0067] Step S150, regenerate a new custom view by refreshing the target custom view in real time according to the custom view generation rule and the new graphic model, so that the new custom view is consistent with the content of the new graphic model.

[0068] As an alternative embodiment, this step S150 may specifically include the following steps: in response to a manual refresh operation for a target custom view, determine a new graphic model in the refresh task corresponding to the manual refresh operation, and refresh the target custom view according to the new graphic model and the custom view generation rule to regenerate a new custom view. For example, according to the custom view generation rule and the new model data, manually refresh to regenerate a new custom view to make it consistent with the latest model content. Through this processing method, the refresh efficiency is improved.

[0069] In the embodiments of the present application, based on the original model, model elements can be filtered from the model (i.e., extract the elements that the user is concerned about) by means of custom rules. The user can filter the model elements from the usage perspective, and then generate a view file that can be instantaneously displayed in the modeling software and rendered, regenerate a new view that meets the user's needs for viewing and using. This not only breaks the bondage of the modeling rules on the model view, meets the user's various usage requirements for the model, but also broadens the user's way of reusing the original model. Moreover, the method of reorganizing the filtered data into a view file for rendering and displaying in the software shortens the usage path of the custom view and improves the adjustment and usage efficiency of the custom view.

[0070] The above steps will be introduced in detail below.

[0071] In some embodiments, after the above step S120, the method may further include the following steps: if there are multiple identical target things, perform deduplication processing on the multiple identical target things to obtain one remaining target thing; if there is a duplicate identical relationship between two identical target things, perform deduplication processing on the duplicate identical relationship to obtain one remaining thing relationship between the two target things; if there is a non-duplicate different relationship between two identical target things, screen the non-duplicate different relationships according to the priority of the thing relationships to retain the target relationship with the highest priority, and obtain one remaining target relationship between the two target things.

[0072] Exemplarily, for things, deduplication is performed, and only one of the same things is retained. For thing relationships, deduplication is performed. There is only one relationship between two identical things. If there are non-duplicate thing relationships, retain the thing relationship with the highest priority according to the priority of the thing relationships, ensuring that there is only one thing relationship between two identical things. Through this processing method, the view display efficiency of things and thing relationships is improved.

[0073] In some embodiments, after obtaining the original graphical model in the above step S120, the method may further include the following steps: modifying the original graphical model according to the custom view suggestion data to obtain a modified graphical model, and determining the modified accuracy corresponding to the modified graphical model; if the modified accuracy is greater than the specified accuracy, then perform the step of reprocessing based on the target object and target relationship data according to the specified fixed format standard of the view file to generate a two-dimensional view file.

[0074] In the embodiments of the present application, the custom view is a secondary use of the original model. To ensure the logic and maintainability of the original model, the modification based on the custom view does not directly modify the objects and relationships filtered from the original model, but modifies in the original model, and then regenerates the custom view after ensuring the correctness of the original model. Through this processing method, the logic and maintainability of the original model are ensured.

[0075] Figure 3 A structural schematic diagram of a custom view generation device based on a graphical model is provided.

[0076] As Figure 3 shown, the custom view generation device 300 based on the graphical model includes:

[0077] An acquisition module 301, configured to acquire a custom view generation rule set corresponding to a user setting operation; wherein, the custom view generation rule is used to represent the elements concerned by the user corresponding to the user setting operation;

[0078] A filtering module 302, configured to acquire an original graphical model, and filter the original graphical model according to the custom view generation rule to obtain target object and target relationship data that meet the custom view generation rule, so as to extract target elements concerned by the user for the original graphical model from the original graphical model; wherein, the target elements include the target object and the target relationship data;

[0079] A processing module 303, configured to reprocess based on the target object and the target relationship data according to the specified fixed format standard of the view file to generate a two-dimensional view file;

[0080] A rendering module 304, configured to perform rendering on a canvas based on the two-dimensional view file to generate a target custom view; the target custom view is used for multiple uses of the original graphic model; in the target custom view, by adding graphics and text for supplementarily describing the target custom view, or re-layouting and sorting the thing and relationship data in the rendered target custom view, the target custom view generated according to the original graphic model meets the user's requirements;

[0081] A refreshing module 305, configured to regenerate a new custom view by refreshing the target custom view in real time according to the custom view generation rule and the new graphic model, so that the new custom view is consistent with the content of the new graphic model.

[0082] The custom view generation device based on a graphic model provided by an embodiment of the present application has the same technical features as the custom view generation method based on a graphic model provided by the foregoing embodiment, so it can also solve the same technical problems and achieve the same technical effects.

[0083] An electronic device provided by an embodiment of the present application, such as Figure 4 shown, the electronic device 400 includes a processor 402 and a memory 401. A computer program that can run on the processor is stored in the memory. When the processor executes the computer program, the steps of the method provided by the foregoing embodiment are implemented.

[0084] See Figure 4 , the electronic device further includes: a bus 403 and a communication interface 404. The processor 402, the communication interface 404, and the memory 401 are connected through the bus 403; the processor 402 is configured to execute an executable module stored in the memory 401, such as a computer program.

[0085] Among them, the memory 401 may include a high-speed random access memory (Random Access Memory, abbreviated as RAM), and may also include a non-volatile memory, such as at least one disk memory. Through at least one communication interface 404 (which can be wired or wireless), a communication connection between the system network element and at least one other network element is realized, and the Internet, a wide area network, a local area network, a metropolitan area network, etc. can be used.

[0086] The bus 403 may be an ISA bus, a PCI bus, an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 4 only a bidirectional arrow is used in

[0087] Among them, the memory 401 is used to store a program. After receiving an execution instruction, the processor 402 executes the program. The method executed by the device defined by the process disclosed in any embodiment of the present application can be applied to the processor 402 or implemented by the processor 402.

[0088] The processor 402 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 402 or by instructions in the form of software. The above-mentioned processor 402 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as being executed by the hardware decoding processor, or completed by a combination of the hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 401, and the processor 402 reads the information in the memory 401 and combines its hardware to complete the steps of the above method.

[0089] Corresponding to the above-mentioned method for generating a custom view based on a graphical model, an embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and run by a processor, the computer-executable instructions cause the processor to run the steps of the above-mentioned method for generating a custom view based on a graphical model.

[0090] The custom view generation device based on a graphical model provided by an embodiment of the present application may be specific hardware on a device, or software or firmware installed on the device, etc. For the device provided by the embodiment of the present application, its implementation principle and the resulting technical effects are the same as those of the foregoing method embodiment. For the sake of brief description, for parts not mentioned in the device embodiment, reference may be made to the corresponding content in the foregoing method embodiment. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the foregoing-described system, device, and unit can all refer to the corresponding processes in the foregoing method embodiment, and will not be elaborated herein.

[0091] In the embodiments provided in the present application, it should be understood that the disclosed device and method can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some communication interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical, or other form.

[0092] For another example, the flowcharts and block diagrams in the accompanying drawings show the possible architectures, functions, and operations of the device, method, and computer program product according to multiple embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of the code, and the module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order from that marked in the accompanying drawings. For example, two consecutive blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0093] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0094] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.

[0095] If the above-mentioned function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application, in essence, or the part that makes a contribution to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the custom view generation method based on a graphical model described in various embodiments of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs that can store program codes.

[0096] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. In addition, the terms "first", "second", "third", etc. are only used for distinguishing descriptions and cannot be understood as indicating or implying relative importance.

[0097] Finally, it should be noted that the above-mentioned embodiments are only specific implementation manners of the present application, used to illustrate the technical solutions of the present application, rather than limiting them. The protection scope of the present application is not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that any person skilled in the art within the technical scope disclosed in the present application can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application. All should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for generating a custom view based on a graphical model, characterized in that The method includes: Obtaining a custom view generation rule set corresponding to a user setting operation; wherein, the custom view generation rule is used to characterize the elements concerned by the user corresponding to the user setting operation; Obtaining an original graphic model, and filtering the original graphic model according to the custom view generation rule to obtain a target thing and target relationship data that meet the custom view generation rule, so as to extract the target elements concerned by the user for the original graphic model from the original graphic model; wherein, the target elements include the target thing and the target relationship data; Based on the target thing and the target relationship data, reprocessing is performed according to the specified fixed format standard of the view file to generate a two-dimensional view file; Rendering on a canvas based on the two-dimensional view file to generate a target custom view; in the target custom view, graphics and text for describing the target custom view are added through an addition operation, and the target thing and the target relationship data are adjusted in the target custom view through an organization operation and a sorting operation; the target custom view is used for multiple uses of the original graphic model; Rendering on a canvas based on the two-dimensional view file to generate a target custom view; the target custom view is used for multiple uses of the original graphic model; in the target custom view, graphics and text for supplementarily describing the target custom view are added, or the things and relationship data in the rendered target custom view are rearranged and sorted, so that the target custom view generated according to the original graphic model meets the user's requirements; According to the custom view generation rule and a new graphic model, a new custom view is regenerated by refreshing the target custom view in real time, so that the new custom view is consistent with the content of the new graphic model.

2. The method according to claim 1, wherein The obtaining of the custom view generation rule set corresponding to the user setting operation includes at least one of the following: Obtaining a first selection operation for multiple second things, determining, according to the first selection operation, a second thing to be displayed that has an association relationship with a first thing as a display center from the multiple second things, determining whether the relationship type between the second thing to be displayed and the first thing belongs to a direct relationship or an indirect relationship, determining the thing association situation of the first thing and the second thing to be displayed in the entire original graphic model according to the relationship type between the first thing and the second thing to be displayed, and determining a custom view generation rule based on the thing association situation; and / or, Obtaining a second selection operation for multiple third things, determining a target third thing to be displayed from the multiple third things according to the second selection operation, determining other third things in the multiple third things except the target third thing as redundant things to be filtered, and determining a custom view generation rule based on the target third thing and the redundant things to be filtered; and / or, Obtain a third selection operation for instance values, determine the target attribute instance value corresponding to the general attribute according to the third selection operation, determine to concentrate the fourth set of things with the target attribute instance value on one view for display, so that the user can use the original graphical model through the attribute dimension, and obtain a label adding operation for the fourth set of things. Determine the custom label corresponding to the fourth set of things according to the label adding operation, and determine a custom view generation rule based on the fourth set of things with the target attribute instance value and the custom label, so as to filter the original graphical model through the custom label and generate a custom view; If there are tags for marking things and relationships in the original graphical model, the third selection operation is used to select the target attribute instance value and / or select the target tag; the target tag is used to select things and relationships with index tags or without specified tags in the next filtering.

3. The method according to claim 2, wherein The custom view generation rule includes at least one of the following: Generate a custom view using the rules of the modeling language itself; generate a custom view by filtering the original things in the original graphical model; generate a custom view using the thing attributes of the modeling elements.

4. The method according to claim 1, wherein After filtering the original graphical model according to the custom view generation rule to obtain the target things and target relationship data that meet the custom view generation rule, it further includes: If there are multiple identical target things, perform deduplication processing on the multiple identical target things to obtain one remaining target thing; If there are duplicate identical relationships between two identical target things, perform deduplication processing on the duplicate identical relationships to obtain one remaining thing relationship between the two target things; If there are non-repetitive different relationships between two identical target things, screen the non-repetitive different relationships according to the priority of the thing relationships to retain the target relationship with the highest priority, and obtain one remaining target relationship between the two target things.

5. The method according to claim 1, characterized in that Based on the target things and the target relationship data, reprocess them according to the specified fixed format standard of the view file to generate a two-dimensional view file, including: Reorganize the target things and the target relationship data according to the specified display requirement data of the things and the relationships between things and the specified fixed format requirement data of the view file to generate a new two-dimensional view file that can be displayed in the modeling software; among them, the specified display requirement data includes that the display positions of two directly related things are adjacent and the things are non-overlapping in display.

6. The method according to claim 1, characterized in that, After obtaining the original graphical model, it further includes: Modify the original graphical model according to the custom view suggestion data to obtain a modified graphical model, and determine the modified accuracy corresponding to the modified graphical model; If the modified accuracy is greater than the specified accuracy, execute the step of reprocessing the target things and the target relationship data according to the specified fixed format standard of the view file to generate a two-dimensional view file.

7. The method according to claim 1, characterized in that, Regenerating a new custom view by refreshing the target custom view in real time according to the custom view generation rule and the new graphic model includes: In response to a manual refresh operation for the target custom view, determining a new graphic model in the refresh task corresponding to the manual refresh operation, and refreshing the target custom view according to the new graphic model and the custom view generation rule to regenerate a new custom view.

8. A custom view generation device based on a graphical model, characterized in that Including: An acquisition module, configured to acquire a custom view generation rule set by a user setting operation; wherein, the custom view generation rule is used to represent elements concerned by the user corresponding to the user setting operation; A filtering module, configured to acquire an original graphic model, and filter the original graphic model according to the custom view generation rule to obtain a target thing and target relationship data that meet the custom view generation rule, so as to extract target elements concerned by the user for the original graphic model from the original graphic model; wherein, the target elements include the target thing and the target relationship data; A processing module, configured to reprocess based on the target thing and the target relationship data according to a specified fixed format standard of a view file to generate a two-dimensional view file; A rendering module, configured to render on a canvas based on the two-dimensional view file to generate a target custom view; the target custom view is used for multiple uses of the original graphic model; in the target custom view, by adding graphics and texts for supplementarily describing the target custom view, or re-layouting and sorting the things and relationship data in the rendered target custom view, the target custom view generated according to the original graphic model meets the user's requirements; A refresh module, configured to regenerate a new custom view by refreshing the target custom view in real time according to the custom view generation rule and the new graphic model, so that the new custom view is consistent with the content of the new graphic model.

9. An electronic device, comprising a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 above are implemented.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and run by the processor, the computer-executable instructions cause the processor to run the method according to any one of claims 1 to 7.