Method, equipment and medium for positioning revalued attribute and object instance to which revalued attribute belongs
By using space tree structure and interactive layer identification buttons in building information software, the problem of difficult to identify and locate differentiated values of private attributes of building components in the existing technology is solved, and rapid positioning and intuitive comparison are achieved, and management efficiency is improved. and user experience.
Patent Information
- Application Number
- CN202411145597.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2025-01-03
AI Technical Summary
When existing building information software deals with the private attributes of multiple building components, it is difficult to quickly identify and locate differentiated attribute values, resulting in poor user experience when facing a large amount of data, affecting management efficiency.
The spatial tree structure is used to perform extremely fast index positioning at the database level, and a multi-dimensional data structure is formed through encoding dimensions, private attributes are quickly positioned, and identification buttons are added to the interactive layer to realize intuitive comparison and positioning of differentiated attribute values.
It realizes the rapid identification and positioning of components and instances containing differentiated attribute values, directly checking detailed values, improving management efficiency and user experience, and can quickly locate instance positions in the model and intuitively compare the values before and after modification.
Smart Images

Figure CN119248770A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data management, and in particular to a method, device and medium for locating a value-changing attribute and an object instance to which it belongs. Background Art
[0002] In software for building informationization, building components have attributes to express and describe the characteristics of the components, such as geometric characteristics, business characteristics, etc. Attributes are important parameter basis for building components when modeling in software, and are also the basic data source for subsequent applications after modeling, such as engineering quantity calculation, construction organization management simulation, etc. Detailed, rich, comprehensive, and multi-dimensional attribute data can support the application of building digital models in as many business scenarios as possible, and meet the simulation application of buildings in the entire life cycle, the entire process, and multiple fields. In software for engineering quantity calculation, the attributes of components are generally divided into public attributes and private attributes. Public attributes mean that the attribute value of this attribute of an instance can only be inherited from the class; after modification, the attribute values of this attribute of the class and all its instances are all modified synchronously; private attributes mean that the attribute value of this attribute of an instance is inherited from the class by default, but the value can be customized to make it different from the value of the class, that is, the value change is only effective for the current instance and does not affect the class and other instances of the class. By default, the private attribute (instance attribute) value of a building component will inherit the public attribute (class attribute) value. Users can customize the values of private attributes (instance attributes) to make them different from the values of public attributes (class attributes).
[0003] In a construction project, there are many types of building components, each component contains many attributes, each component has a huge number of instances, and the values of the same attribute in different instances also vary. Therefore, based on the convenience and traceability of data management, it is necessary to be able to clearly know: which components contain instance attributes that are different from the public attributes (class attributes) values, which specific attributes they are, on which instances they are located, and what are the values of the attribute on these instances, etc.
[0004] The existing technical solution adopts the following method: if there are multiple attributes, as long as any attribute value is customized (that is, its value is no longer inherited from the default value of the class attribute), the graphical display of the instance will change (color change, fill style change, etc.). That is, the fact that these instances "contain customized attributes" can be known through the difference in visual styles, but it is impossible to know:
[0005] Which attribute values have been customized and modified, with no obvious visual difference before and after as a prompt; what are the modified values, which need to be compared by human eyes one by one; which instances correspond to each modified value, for example, there are 10 instances of "class 1", 3 of which change the value of attribute A to a, and another 4 change the value of attribute A to a', and the remaining three are the same as the class attribute and have not been customized. Therefore, it is necessary to know which instances have the value of A a, which have the value of A', and which have not changed the value, etc.
[0006] Although the current software in the industry supports the application of private attributes (instance attributes) and public attributes (class attributes), it does not go deep into the scenario where the content is clearly known. This makes software users at a loss when faced with a huge amount of data in a project, seriously affecting the user experience and work efficiency, and making it impossible to achieve refined management. Summary of the invention
[0007] In view of this, the present invention provides a method, device and medium for locating attributes with changed values and their corresponding object instances, which can identify components containing differentiated instance attribute values, instances containing differentiated attribute values in components, and attribute entries containing differentiated attribute values in components, and can also quickly locate the location of the instance in the model, directly check the detailed values of the differentiated instance attributes, and intuitively compare the values before and after the modification.
[0008] The present invention provides a method for locating a property whose value has been changed and an object instance to which it belongs, comprising the following steps:
[0009] Step 1: Create a new component and set component properties;
[0010] Step 2, arranging components, i.e. instantiating components;
[0011] Step 3: At the database level, use the spatial tree structure to quickly index and locate the target, as follows:
[0012] Step 31, abstract the business concept into linear space: encode each dimension used in the query;
[0013] Step 32, integrating the dimensions and their codes in step 31 into the data structure to form a multi-dimensional spatial tree data structure;
[0014] Step 33, when querying a specific object, the codes of each dimension are integrated to obtain an integer index code; Step 34, the obtained index code is used to quickly locate the target private attribute in the private attribute index master table;
[0015] Step 35, after indexing the target in the private attribute index master table, find the target object in the database;
[0016] Step 4: Add a logo to the interaction layer.
[0017] Among them, in step 4, the specific method of adding an identifier in the interactive layer is: for the attributes whose attribute values have been modified, add an identifier button; click the identifier to add an index target object list; for the target objects queried in the database through step 35, display them in the index target object list; double-click a data in the list to quickly locate the target object's graphic element in the drawing area, where positioning refers to enlarging the object graphic element and displaying it in the center of the drawing area.
[0018] Wherein, in the step 1, the component attribute information is recorded in the data table 1 of the database; wherein the data table 1 is used to record the components and their attributes; the newly created component attributes are inherited from the relevant settings at the engineering level by default.
[0019] Among them, in the step 2, arranging the components means instantiating the components, and then recording the instance properties in the data table 2 of the database; wherein the data table 2 is used to record the component instance, the position coordinates in the drawing space and other properties; the instance properties are inherited from the component properties by default.
[0020] The dimensions in step 31 include floor, component type, component ID, component instance ID and instance attribute ID.
[0021] Among them, in step 33, the specific objects include which floor, which component type, which component ID, which instance ID and which attribute is customized to release the inheritance relationship from the parent; wherein, modifying the attribute value releases the inheritance relationship, and the value is unique to the current instance and is only effective for the current instance.
[0022] The present invention provides an electronic device, which includes a processor and a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the method of locating the changed attribute and the object instance to which it belongs as described in the present invention.
[0023] The present invention provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program is used to execute the method of locating a changed attribute and its corresponding object instance as described in the present invention.
[0024] Beneficial effects:
[0025] 1. The method of the present invention creates a new component in the data table of the database, and uses the spatial tree structure to quickly index and locate the target at the database level; adds an identifier at the interaction layer, and adds an identifier button to the modified attribute whose attribute value has been modified. By clicking the identifier, the index target object list is added to locate the changed attribute and its object instance.
[0026] 2. The method of the present invention identifies components that contain differentiated instance attribute values, instances that contain differentiated attribute values in components, and attribute entries that contain differentiated attribute values in components, and can quickly locate the location of the instances in the model, directly check the detailed values of the differentiated instance attributes, and intuitively compare the values before and after modification.
[0027] 3. The device of the present invention is used to implement the method of the present invention, by creating a new component in the data table of the database, and using the spatial tree structure to quickly index and locate the target at the database level; adding an identifier at the interaction layer, and adding an identifier button to the modified attributes of the modified attribute values, and by clicking the identifier, adding the index target object list, thereby locating the changed attribute and its corresponding object instance.
[0028] 4. In the device of the present invention, components containing differentiated instance attribute values, instances containing differentiated attribute values in components, and attribute entries containing differentiated attribute values in components are identified, and the location of the instances can be quickly located in the model, the detailed values of the differentiated instance attributes can be directly checked, and the values before and after modification can be intuitively compared.
[0029] 5. The medium of the present invention is used to implement the method of the present invention, by creating a new component in the data table of the database, and using the spatial tree structure to quickly index and locate the target at the database level; adding an identifier at the interactive layer, adding an identifier button to the modified attribute whose attribute value has been modified, and adding the index target object list by clicking the identifier to locate the changed attribute and its object instance.
[0030] 6. In the medium of the present invention, components containing differentiated instance attribute values, instances containing differentiated attribute values in components, and attribute entries containing differentiated attribute values in components are identified, and the location of the instances can be quickly located in the model, the detailed values of the differentiated instance attributes can be directly checked, and the values before and after modification can be intuitively compared. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a specific application flow chart of the method according to the embodiment of the present invention.
[0032] Figure 2 This is an example of attribute appearance identification in the method embodiment of the present invention.
[0033] Figure 3 This is a schematic diagram of a non-modal box that pops up an instance list with differentiated instance attribute values after clicking an attribute appearance mark in an embodiment of the method of the present invention.
[0034] Figure 4 This is a block diagram for directly observing the values before and after modification in an embodiment of the method of the present invention, with a property list on the left and a pop-up window on the right.
[0035] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0036] The present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0037] The present invention provides a method for locating a property whose value has been changed and an object instance to which it belongs, comprising the following steps:
[0038] Step 1, create a new component: record the component attribute information into the data table 1 of the database; wherein, the data table 1 is used to record the components and their attributes; the attributes of the newly created component are inherited from the relevant settings at the project level by default;
[0039] Step 2, arranging components, i.e. instantiating the components, and then recording the instance properties in data table 2 of the database; wherein data table 2 is used to record the component instance, the position coordinates in the drawing space and other properties; the instance properties are inherited from the component properties by default;
[0040] Step 3: At the database level, use the spatial tree structure to quickly index and locate the target, as follows:
[0041] Step 31, abstract the business concept into a linear space: encode each dimension used in the query (floor, component type, component ID, component instance ID, instance attribute ID);
[0042] Step 32, establishing a multi-dimensional spatial tree data structure: integrating the above dimensions and their encodings into the data structure to form a multi-dimensional spatial tree data structure;
[0043] Step 33, when querying a specific object (which floor, which component type, which component ID, which instance ID, which attribute is customized and has been removed from the parent inheritance relationship), the codes of each dimension are integrated to obtain an integer index code; wherein, modifying the attribute value means removing the inheritance relationship, and the value is unique to the current instance and is only effective for the current instance;
[0044] Step 34, using the obtained index code to quickly locate the target private attribute in the private attribute index master table (hereinafter referred to as the "master table", equivalent to the "index directory");
[0045] Without the processing of step 31 to step 33 of the present invention, when indexing the target private attribute in this step, it is necessary to traverse and compare one by one in the general table to find the target object, and it is impossible to achieve extreme speed.
[0046] Step 35, after the target is indexed in the private attribute index master table, the target object is quickly found in the database through data table 1 and data table 2.
[0047] Step 4, adding an identifier in the interactive layer, specifically: for the attributes whose attribute values have been modified, add an identifier button; click the identifier to add the index target object list; for the target object queried in the database through step 35, display it in the index target object list; because the database records the spatial coordinate position of the instance in the drawing area, double-click a data in the list to quickly locate the target object's primitive in the drawing area, where positioning means enlarging the object primitive and displaying it in the center of the drawing area.
[0048] The specific application process of the method of the present invention is illustrated by taking a specific software application example in the field of construction. The specific process is as follows: Figure 1 As shown, the following steps are included:
[0049] Step 11, create a new component and set component properties (i.e. class properties);
[0050] Step 21, arrange the components in the drawing area, that is, instantiate: select the instance, and the instance properties of the component are displayed in the property list, as follows:
[0051] Among the attributes, some attributes can be private, that is, they are private to the current instance; some can only be public, that is, they can only be used as class attributes. In the software, different colors are used to distinguish the two: private attributes are represented by black text; public attributes are represented by blue color.
[0052] The effect of modifying only public attributes is that the class and all its instances must be modified synchronously; the modified attributes are class attributes;
[0053] When an instance is selected, the private attributes are modified. The attributes of the currently selected instance are modified, and the class and other instances are not modified synchronously. When the class is selected instead of the instance, the class attributes of the current class are modified. The instantiated objects are not modified synchronously, and the newly instantiated objects are instantiated according to the modified class attributes.
[0054] Step 31, after selecting the instance, modify the private attributes in the attribute list; that is, modify the instance attributes;
[0055] Step 41, in the attribute list, a flag appears for the attribute, indicating that there are differentiated instance attribute values, such as Figure 2 As shown, the button behind the attribute name "Top elevation (m)" After clicking, a list of instances with differentiated instance attribute values pops up: a non-modal box, such as Figure 3 As shown, the list shows all instance objects with customized attribute values for this attribute; the display is divided into three levels:
[0056] The root node is the current component (i.e., class, i.e. Figure 3 KZ 1), the second-level nodes are the set attribute values (as shown in the screenshot: when attribute value == C30, when attribute value == C45, when attribute value == C55), and the third-level nodes are all instances contained in each attribute value;
[0057] like Figure 3 As shown, when you double-click the third-level tree node, the corresponding graphic object (instance) is positioned in the drawing area; the so-called positioning means: the object is displayed in the center of the drawing area viewport and scaled to a size that adapts to the current size of the viewport.
[0058] Figure 2 , the button to the right of the property value Indicates that the restored value is the default value. The default value refers to the class attribute value of the parent. Figure 3 The pop-up window is a non-modal window, and it pops up by clicking the button marked in the corresponding attribute entry in the attribute list, so you can directly observe the value before and after the modification: Figure 4 The left side is the attribute list, and the right side is the pop-up window. By comparison, we can see that the class attribute is C30, and there is an instance with a value of C80 in the modified instance.
[0059] The embodiment of the present application also provides an electronic device, Figure 5The structure of the electronic device provided by the embodiment of the present invention is shown. For example, the electronic device 50 may include a processor 51, a memory 52 and a transmission device 53. The processor 51 is used to execute the method of locating the changed value attribute and the object instance to which it belongs mentioned in the above embodiment, wherein the processor and the memory may be connected by a bus or other means, taking the bus connection as an example. The transmission device may be connected to the processor and the memory by wire or wirelessly. The memory, as a non-transient computer-readable storage medium, may be used to store non-transient software programs, non-transient computer executable programs and modules, such as the program instructions / modules corresponding to the method of locating the changed value attribute and the object instance to which it belongs in the embodiment of the present application. The processor executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory, that is, the method of locating the changed value attribute and the object instance to which it belongs in the above method embodiment. The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required by at least one function; the storage data area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. The one or more modules are stored in the memory, and when executed by the processor, the method of locating the changed attribute and its object instance in the embodiment is executed.
[0060] As another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the device described in the above embodiment; or it may be a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium may be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method of locating the changed value attribute and its object instance described in the present application.
[0061] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for locating a property whose value has been changed and an object instance to which it belongs, characterized in that: The steps include: Step 1: Create a new component and set component properties; Step 2, arranging components, i.e. instantiating components; Step 3: At the database level, use the spatial tree structure to quickly index and locate the target, as follows: Step 31, abstract the business concept into linear space: encode each dimension used in the query; Step 32, integrating the dimensions and their codes in step 31 into the data structure to form a multi-dimensional spatial tree data structure; Step 33, when querying a specific object, the codes of each dimension are integrated to obtain an integer index code; Step 34, using the obtained index code to quickly locate the target private attribute in the private attribute index master table; Step 35, after indexing the target in the private attribute index master table, find the target object in the database; Step 4: Add a logo to the interaction layer.
2. The method according to claim 1, characterized in that In step 4, the specific method of adding an identifier in the interactive layer is: for the attributes whose attribute values have been modified, add an identifier button; click the identifier to add an index target object list; for the target objects queried in the database through step 35, display them in the index target object list; double-click a data in the list to quickly locate the target object's graphic element in the drawing area, where positioning refers to enlarging the object graphic element and displaying it in the center of the drawing area.
3. The method according to claim 2, characterized in that In the step 1, the component attribute information is recorded in the data table 1 of the database; wherein, the data table 1 is used to record the components and their attributes; the newly created component attributes are inherited from the engineering-level related settings by default.
4. The method according to claim 2, characterized in that In the step 2, arranging components means instantiating the components, and then recording the instance properties in the data table 2 of the database; wherein the data table 2 is used to record the properties of the component instance, the position coordinates in the drawing space, etc.; the properties of the instance are inherited from the properties of the component by default.
5. The method according to claim 3 or 4, characterized in that The dimensions in step 31 include floor, component type, component ID, component instance ID and instance attribute ID.
6. The method according to claim 5, characterized in that In step 33, the specific objects include which floor, which component type, which component ID, which instance ID and which attribute is customized to release the inheritance relationship from the parent; wherein, modifying the attribute value releases the inheritance relationship, and the value is unique to the current instance and is only effective for the current instance.
7. An electronic device, characterized in that: The electronic device includes a processor and a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the method for locating the changed attribute and its object instance as described in any one of claims 1-6.
8. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and the computer program is used to execute the method of locating a changed attribute and its corresponding object instance as described in any one of claims 1 to 6.
