A method, device, component development tool, and storage medium for constructing a symbol library for SP3D software

Through visual operations, the symbol library is built in SP3D software, which solves the complex VB programming problems in traditional methods and realizes efficient and accurate symbol library generation.

CN118796184BActive Publication Date: 2025-08-22CHINA NUCLEAR IND 23 CONSTR +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410846161.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2025-08-22
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Traditional methods to build component symbols in SP3D software require writing a large amount of VB code, the process is complex, inefficient, and high technical requirements, making it prone to errors.

Method used

It provides a symbol library construction method and device, select and edit basic graphics through visual operations, establish a mapping relationship between symbols and SP3D software interfaces, and generate callable DLL and Bulkload files instead of manual encoding.

Benefits of technology

The symbol library construction process is simplified, the amount of manual labor and error rate is reduced, and the work efficiency and accuracy is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118796184B_ABST
    Figure CN118796184B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of component development technology, and in particular to a method, device, component development tool, and storage medium for constructing a symbol library for SP3D software. The method is applied to a component development tool; the component development tool provides a basic graphics library and a graphic display interface. The present application proposes a method for generating symbols after selecting and editing basic graphics, and establishing a mapping relationship between the basic body in the symbol and the interface in SP3D based on attribute editing to obtain a target symbol. Thereafter, the target symbol is compiled to generate a Bulkload file that can be recognized by the SP3D software. In this way, the method of constructing a target symbol library by visualization replaces the method of manually writing VB code for compilation, thereby simplifying the complexity of manually constructing the SP3D component library, reducing manual labor and the probability of error, and thus improving accuracy and work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of component development, and in particular to a method and device for constructing a symbol library for SP3D software, a component development tool, and a storage medium. Background Art

[0002] Smart Plant 3D (hereafter referred to as SP3D) is a layout design software system commonly used in the engineering design field. Creating component symbols in SP3D requires designers to write a large amount of VB code according to specific rules and then bulk-compile it to generate the corresponding components.

[0003] Traditional VB programming methods are complex, labor-intensive, and inefficient. They require designers to be very familiar with the SP3D software interface, which places high demands on technical skills and can easily lead to errors during input. To improve productivity, design software is needed to increase the efficiency of creating valves and supports. Summary of the Invention

[0004] In view of this, the object of the present invention is to provide a method, device, component development tool, and storage medium for constructing a symbol library for SP3D software.

[0005] In a first aspect, an embodiment of the present invention provides a method for constructing a symbol library for SP3D software, the method being applied to a component development tool; the component development tool providing a basic graphics library and a graphics display interface; the method comprising:

[0006] In response to a selection or drag operation and a parameter editing operation on a plurality of basic graphics in a basic graphics library, a symbol composed of the plurality of basic graphics is displayed in a graphic display interface;

[0007] In response to the attribute editing operation on the symbol, the symbol is adjusted according to the attribute editing operation, a mapping relationship between the basic bodies constituting the symbol and the interface of the SP3D software is established, and a target symbol with a custom name is obtained;

[0008] In response to the compilation operation for the target symbol, the target symbol is compiled to generate a DLL that can be called by the SP3D software and a Bulkload file in Excel format and stored in the specified path;

[0009] By combining all target symbols, a target symbol library recognizable by SP3D software is obtained.

[0010] In conjunction with the first aspect, the parameters include at least: coordinate parameters, size parameters;

[0011] In response to a selection operation and a parameter editing operation on a plurality of basic graphics in a basic graphics library, the step of displaying a primitive body composed of the plurality of basic graphics in a graphics display interface includes:

[0012] In response to a selection or drag operation on a first basic graphic in the basic graphic library, displaying the first basic graphic on the graphic display interface;

[0013] In response to a parameter editing operation on the first basic graphic, the first basic graphic is updated to obtain a first basic body;

[0014] In response to a selection or drag operation on at least one second basic graphic in the basic graphic library, displaying the second basic graphic on the graphic display interface with the origin of the updated first basic body as a base point;

[0015] For each second basic graphic, in response to a parameter editing operation on the second basic graphic, the second basic graphic is updated to obtain a second basic body;

[0016] The first primitive and the at least one second primitive are combined to obtain a symbol.

[0017] In conjunction with the first aspect, the attributes include interface mapping attributes and name attributes;

[0018] The steps of responding to an attribute editing operation on a symbol, adjusting the symbol according to the attribute editing operation, establishing a mapping relationship between a basic body constituting the symbol and an interface of the SP3D software, and obtaining a target symbol with a customized name include:

[0019] In response to the interface mapping property editing operation for the symbol, a mapping relationship between the primitive and the SP3D interface is established for each primitive constituting the symbol;

[0020] In response to the name attribute editing operation on the symbol, the name of the symbol is updated according to the customized name to obtain a target symbol with the customized name.

[0021] In conjunction with the first aspect, in response to a selection or drag operation and a parameter editing operation on a plurality of basic graphics in the basic graphics library, after the step of displaying a symbol composed of a plurality of basic graphics on a graphic display interface, the method further includes:

[0022] In response to a selection or editing operation on a target display mode for a symbol, the symbol in the graphical display interface switches from a current display mode to a target display mode.

[0023] In conjunction with the first aspect, the component development tool is connected to the SP3D software database; in response to a compilation operation for a target symbol, the target symbol is compiled to generate a DLL callable by the SP3D software and a Bulkload file in Excel format, including the following steps:

[0024] In response to the attachment operation for the target symbol, the target symbol is attached to the target level of the SP3D software database;

[0025] In response to a name editing operation on the attached target symbol, the custom name of the target symbol is updated according to the custom call name and stored;

[0026] When the preset check on the target symbol is successful, in response to the compilation operation on the target symbol, a DLL callable by the SP3D software and a Bulkload file in Excel format are generated and mounted to the specified storage path.

[0027] In conjunction with the first aspect, the step of combining all target symbols to obtain a target symbol library recognizable by the SP3D software includes:

[0028] Import the target symbols in the target symbol library into SP3D software;

[0029] For each target symbol, the target symbol is retrieved based on the interface corresponding to the target symbol and displayed on the display interface of the SP3D software.

[0030] In a second aspect, the present application provides a device for constructing a symbol library for SP3D software, the device being applied to a component development tool; the component development tool providing a basic graphics library and a graphics display interface; the device comprising:

[0031] A symbol construction module is used to respond to selection or drag operations and parameter editing operations on multiple basic graphics in the basic graphics library, and display a symbol composed of multiple basic graphics in a graphic display interface;

[0032] The attribute editing mapping module is used to respond to the attribute editing operation on the symbol, adjust the symbol according to the attribute editing operation, establish the mapping relationship between the basic body constituting the symbol and the interface of the SP3D software, and obtain the target symbol with a custom name;

[0033] The compilation module is used to respond to the compilation operation for the target symbol, compile the target symbol to generate a DLL and a Bulkload file in Excel format that can be called by the SP3D software, and store them in a specified path;

[0034] The target symbol library generation module is used to combine all target symbols to obtain a target symbol library that can be recognized by SP3D software.

[0035] In conjunction with the second aspect, the parameters include at least: coordinate parameters and size parameters; the symbol construction module includes:

[0036] A first basic graphic display module, configured to respond to a selection or drag operation on a first basic graphic in the basic graphic library and display the first basic graphic on a graphic display interface;

[0037] A first basic body display module is configured to respond to a parameter editing operation on the first basic graphic, update the first basic graphic, and obtain a first basic body;

[0038] A second basic graphic display module is configured to respond to a selection or drag operation on at least one second basic graphic in the basic graphic library and display the second basic graphic on the graphic display interface with the origin of the updated first basic body as a base point;

[0039] A second basic body display module, for each second basic graphic, responding to a parameter editing operation on the second basic graphic, updates the second basic graphic to obtain a second basic body;

[0040] The symbol determination module is configured to combine the first basic body and at least one second basic body to obtain a symbol.

[0041] In a third aspect, the present application provides a component development tool, which includes a memory and a processor. The memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the above method.

[0042] In a fourth aspect, the present application provides a readable storage medium, in which computer program instructions are stored. When the computer program instructions are read and executed by a processor, the above-mentioned method is executed.

[0043] Embodiments of the present invention provide the following beneficial effects: The method, apparatus, component development tool, and storage medium for constructing a symbol library for SP3D software provided herein generate symbols by selecting and editing basic graphics. A mapping relationship between the symbol's primitives and SP3D interfaces is established based on attribute editing to obtain a target symbol. The target symbol is then compiled to generate a bulkload file recognizable by SP3D software. This visual target symbol library construction method replaces the manual compilation of VB code, simplifying the complexity of manually constructing an SP3D component library, reducing manual labor and the probability of error, thereby improving accuracy and efficiency.

[0044] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or understood by practicing the present invention. The purposes and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0045] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 A schematic flow chart of a method for constructing a symbol library for SP3D software is provided for this application;

[0048] Figure 2 A schematic diagram of a device structure for constructing a symbol library for SP3D software is provided for this application;

[0049] Figure 3 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.

[0050] Reference numerals:

[0051] 10-Symbol construction module, 20-Attribute editing and mapping module, 30-Compilation module, 40-Target symbol library generation module;

[0052] 130 - processor, 131 - memory, 132 - bus, 133 - communication interface. DETAILED DESCRIPTION

[0053] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the scope of protection of the present invention.

[0054] To facilitate understanding of this embodiment, the following is a brief introduction to the technical terms used in this application.

[0055] Smart Plant 3D (hereafter referred to as SP3D) is a layout design software system commonly used in the engineering design field. Creating component symbols in SP3D requires designers to write a large amount of VB code according to specific rules and then bulk-compile it to generate the corresponding components.

[0056] After introducing the technical terms involved in this application, the application scenarios and design concepts of the embodiments of this application are briefly introduced.

[0057] Creating component symbols in SP3D software requires designers to write extensive VB code according to specific rules and then bulk-compile it to generate the corresponding components. Traditional VB programming requires designers to be very familiar with the SP3D software interface and possesses a high level of technical proficiency. This can easily lead to errors during input, and the coding process is complex, labor-intensive, and inefficient.

[0058] Based on this, the embodiments of the present application provide a method, device, component development tool and storage medium for constructing a symbol library for SP3D software, so as to develop a component tool to simply create symbols to constitute a symbol library through selection or editing operations, and connect to SP3D software, simplify the symbol library construction process, and replace manual coding methods, which can reduce the error rate and manual labor and improve the efficiency of symbol library construction.

[0059] Example 1

[0060] This application provides a method for constructing a symbol library for SP3D software, which is applied to a component development tool; the component development tool provides a basic graphics library and a graphics display interface. Figure 1 As shown, the method includes:

[0061] S110, in response to a selection or drag operation and a parameter editing operation on a plurality of basic graphics in a basic graphics library, displaying a symbol composed of the plurality of basic graphics in a graphic display interface;

[0062] S120, responding to the attribute editing operation on the symbol, adjusting the symbol according to the attribute editing operation, establishing a mapping relationship between the basic bodies constituting the symbol and the interface of the SP3D software, and obtaining a target symbol with a custom name;

[0063] S130, in response to the compilation operation for the target symbol, compile the target symbol to generate a DLL callable by the SP3D software and a Bulkload file in Excel format and store them in a specified path;

[0064] S140: Combining all target symbols to obtain a target symbol library recognizable by the SP3D software.

[0065] The method provided by this application generates a symbol composed of multiple basic shapes on a display interface by selecting or dragging a basic shape and setting parameter boundaries. The symbol description is then edited to associate the symbol with the SP3D software interface. The SP3D software interface then reads the symbol's specific data. The file is then compiled to create a bulkload file that can be called by the SP3D software and stored in a specified path. After repeated construction, a target symbol library containing multiple target symbols that can be called by the SP3D software is obtained. This method, through visual selection, editing, and compilation, allows the construction of a target symbol library, reducing manual labor and error rates, improving target symbol library construction efficiency, and ultimately shortening design timelines.

[0066] In combination with the first aspect, the parameters include at least: coordinate parameters and size parameters.

[0067] Step S110 responds to the selection operation and parameter editing operation of multiple basic graphics in the basic graphics library, and displays a symbol composed of multiple basic graphics in the graphic display interface, specifically including:

[0068] S111 , in response to a selection or drag operation on a first basic graphic in a basic graphic library, displaying the first basic graphic on a graphic display interface.

[0069] S112 : In response to the parameter editing operation on the first basic graphic, the first basic graphic is updated to obtain a first basic body.

[0070] S113 , in response to a selection or drag operation on at least one second basic graphic in the basic graphic library, display the second basic graphic on the graphic display interface with the origin of the updated first basic body as a base point.

[0071] S114 , for each second basic graphic, in response to a parameter editing operation on the second basic graphic, updating the second basic graphic to obtain a second basic body.

[0072] S115 , combining the first basic body and at least one second basic body to obtain a symbol.

[0073] It can be understood that the number and graphic style of the selected first basic graphics and second basic graphics are different depending on the physical shape of the symbol to be constructed. Here, "first" means one type, and "second" means another type different from the "first".

[0074] Depending on the symbol you want to build, the user first selects a basic shape from the basic shape library as the first basic shape, or drags the first basic shape to the display interface of the component development tool to display the first basic shape for visual construction and editing operations. For example, the basic shape can be a cylinder. It is understood that the first basic shape can also be a cuboid, cube, triangular pyramid, etc. It is understood that the basic shape library is pre-built and should contain commonly used shapes for pipeline design. Basic shapes can be edited, added, deleted, etc. according to actual needs.

[0075] The parameters of the first basic shape are then edited to generate a first basic body. The parameters should include at least size parameters and coordinate parameters. For example, the cross-sectional diameter of the cylinder is edited and assigned a value of D = 10 mm. Based on the above example, a cylinder with an interface diameter of D is generated on the graphic display interface.

[0076] Afterwards, the second basic graphic constituting the symbol is selected or dragged to position the second basic graphic with the origin of the first basic body as the base point, and then the parameters thereof are edited to change the parameter information thereof.

[0077] It is understandable that, depending on the physical shape of the symbol you want to construct, the specific types, parameters, and quantities of the first and second basic graphics are different. You can operate according to the actual symbol construction requirements, and there is no limitation here. For example, before constructing valve and support hanger symbols, you need to first collect relevant drawings and materials such as project valves, supports and hangers, and determine the basic bodies and basic graphics required to compose the basic bodies through analysis. Among them, the basic bodies corresponding to valve and support hanger symbols include 25 types, including cylinders, spheres, cones, cuboids, cubes, rings, etc. Then, create a basic body based on parameter creation and / or editing operations, and then combine one or more basic bodies to construct a valve symbol or support hanger symbol.

[0078] The symbol construction process can also include Boolean operations on parameterized basic bodies and connection points, and operations such as cutting, splicing, translating, and rotating related basic bodies to construct complete symbolized valves and supports.

[0079] The graphical display interface is a 3D view display area, facilitating visual operations for both the software and the user. The displayed 3D view must include functions such as coordinate system display, grid display toggle, coordinate display, dimension measurement, primitive display, view selection, view rotation, view zoom, and translation. The view model corresponds to the View Model type of the MVVM architectural pattern for development components. Symbols are constructed through visual graphical display, loading, and editing operations, achieving intuitive and simple operation.

[0080] In conjunction with the first aspect, the attributes include interface mapping attributes and name attributes. Step S120 responds to the attribute editing operation on the symbol, adjusts the symbol according to the attribute editing operation, establishes a mapping relationship between the basic bodies that constitute the symbol and the interface of the SP3D software, and obtains a target symbol with a customized name, specifically including:

[0081] S121 , in response to an interface mapping attribute editing operation on a symbol, a mapping relationship between a primitive and an SP3D interface is established for each primitive constituting the symbol.

[0082] The component development tool in this application provides an associated control, which can be used to establish an associated relationship between the basic body and the SP3D software interface by dragging, clicking or input editing.

[0083] As an implementable approach, two windows are provided within the association control: one for displaying the name of the primitive in the display interface, and the other for displaying the interface name of the SP3D software. Based on user habits, you can first determine the name of a primitive, then associate a specific parameter of the primitive with the name of the SP3D software interface. You can also reverse the association order. For example, you can first select the name of a primitive, then associate a parameter of the primitive, such as length, with interface A, and another parameter of the primitive, such as width, with interface B, and so on, until all associations for the symbol are established and saved.

[0084] S121 , in response to the name attribute editing operation on the symbol, updating the name of the symbol according to the custom name to obtain a target symbol with the custom name.

[0085] Afterwards, the symbol is edited to obtain a customized name, and all parameters of the symbol can be identified through an interface of the SP3D software.

[0086] In combination with the first aspect, after the step of displaying a symbol composed of the multiple basic graphics in the graphic display interface in response to a selection or drag operation and a parameter editing operation on the multiple basic graphics in the basic graphics library in S110, the step further includes:

[0087] In response to a selection or editing operation on a target display mode for a symbol, the symbol in the graphical display interface switches from a current display mode to a target display mode.

[0088] The components provided in this embodiment can display symbols in different modes, such as solid mode, perspective mode, border line highlighting, six-view display mode, etc., and can be selected or switched according to actual operation needs.

[0089] In conjunction with the first aspect, the component development tool is connected to the SP3D software database; S130 responds to the compilation operation for the target symbol, compiling the target symbol to generate a DLL and a bulkload file in Excel format that can be called by the SP3D software, specifically including:

[0090] S131 , in response to the attachment operation for the target symbol, the target symbol is attached to the target level of the SP3D software database.

[0091] S132, in response to the name editing operation on the mounted target symbol, the custom name of the target symbol is updated according to the custom called name and stored.

[0092] S133, when the preset check on the target symbol is correct, in response to the compilation operation on the target symbol, a DLL callable by the SP3D software and a Bulkload file in Excel format are generated and mounted to a designated storage path.

[0093] After associating the symbol with the SP3D software interface, the symbol is mounted at the target level in the SP3D software database and a callable name is defined. If the callable name and mount path are verified to be valid, the symbol is compiled to generate a DLL callable by the SP3D software and a bulkload file in Excel format. The generated bulkload file is mounted in the specified path for easy search.

[0094] By attaching symbols to the target level to transfer information between development components and SP3D software, the symbols are mapped to identifiable component categories in SP3D to associate SP3D-related attribute information with the symbols, thereby enabling software engineering compilation of symbols to replace manual compilation, thereby reducing manual labor and improving design efficiency.

[0095] In conjunction with the first aspect, step S140 combines all target symbols to obtain a target symbol library recognizable by the SP3D software, including:

[0096] S150, importing the target symbol in the target symbol library into the SP3D software.

[0097] S160 , for each target symbol, retrieve the target symbol based on an interface corresponding to the target symbol and display the target symbol on a display interface of the SP3D software.

[0098] After the target symbol library is constructed, the target symbols in the target symbol library are imported into the SP3D software. The SP3D software reads the data of the corresponding symbols based on each interface, thereby displaying the entity image of the symbol in the display interface of the SP3D software.

[0099] Among them, after importing the target symbol, the database of SP3D software will be updated first.

[0100] In conjunction with the second aspect, the present application provides a device for constructing a symbol library for SP3D software, which is applied to a component development tool; the component development tool provides a basic graphics library and a graphics display interface. Figure 2 As shown, the device includes: a symbol construction module 10, an attribute editing and mapping module 20, a compilation module 30 and a target symbol library generation module 40.

[0101] The symbol construction module 10 is used to respond to the selection or drag operation and parameter editing operation of multiple basic graphics in the basic graphics library, and display the symbol composed of multiple basic graphics in the graphic display interface.

[0102] The attribute editing mapping module 20 is used to respond to attribute editing operations on symbols, adjust symbols according to the attribute editing operations, establish a mapping relationship between the basic bodies constituting the symbols and the interfaces of the SP3D software, and obtain a target symbol with a custom name.

[0103] The compiling module 30 is used to respond to the compiling operation for the target symbol, compile the target symbol to generate a DLL callable by the SP3D software and a Bulkload file in Excel format and store them in a designated path.

[0104] The target symbol library generation module 40 is used to combine all target symbols to obtain a target symbol library that can be recognized by the SP3D software.

[0105] In conjunction with the second aspect, the parameters include at least: coordinate parameters, size parameters; the symbol construction module includes: the symbol construction module 10 includes a first basic graphic display module, a first basic body display module, a second basic graphic display module, a second basic body display module and a symbol determination module.

[0106] The first basic graphic display module is configured to respond to a selection or drag operation on a first basic graphic in the basic graphic library and display the first basic graphic on a graphic display interface.

[0107] The first basic body display module is used for responding to a parameter editing operation on the first basic graphic, updating the first basic graphic, and obtaining a first basic body.

[0108] The second basic graphic display module is used to respond to a selection or drag operation on at least one second basic graphic in the basic graphic library, and display the second basic graphic on the graphic display interface with the origin of the updated first basic body as a base point.

[0109] The second basic body display module updates each second basic graphic in response to a parameter editing operation on the second basic graphic to obtain a second basic body.

[0110] The symbol determination module is used to combine the first basic body and at least one second basic body to obtain a symbol.

[0111] In the third aspect, the embodiment of the present application provides a component development tool, combined with Figure 3 As shown, the component development tool includes a memory 131 and a processor 130. The memory 131 is used to store computer programs, and the processor 130 runs the computer programs to enable the electronic device to perform the above-mentioned layered verification method based on traffic recording and playback.

[0112] Further, combined with Figure 3 The electronic device shown further includes a bus 132 and a communication interface 133 , and the processor 130 , the communication interface 133 and the memory 131 are connected via the bus 132 .

[0113] The memory 131 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is achieved through at least one communication interface 133 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 132 may be an ISA bus, a PCI bus, or an EISA bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0114] The processor 130 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor 130 or by software instructions. The processor 130 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. The storage medium is located in memory 131, and processor 130 reads information in memory 131 and, in conjunction with its hardware, completes the steps of the method of the aforementioned embodiment.

[0115] In a fourth aspect, an embodiment of the present application provides a readable storage medium, in which computer program instructions are stored. When the computer program instructions are read and executed by a processor, the above-mentioned method is executed.

[0116] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0117] In addition, in the description of the embodiments of the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed connections, detachable connections, or integral connections; they may refer to mechanical connections or electrical connections; they may refer to direct connections or indirect connections through an intermediate medium; and they may refer to internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.

[0118] If the 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 this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program code.

[0119] In the description of the present invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate and simplify the description of the present invention. They are not intended to indicate or imply that the devices or components referred to must have, be constructed, or operate in a specific orientation, and therefore should not be construed as limitations on the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0120] Finally, it should be noted that the above embodiments are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above embodiments within the technical scope disclosed by the present invention, or replace some of the technical features therein with equivalents. Such modifications, changes or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A method for constructing a symbol library for SP3D software, characterized in that: The method is applied to a component development tool; the component development tool provides a basic graphics library and a graphics display interface; the method includes: In response to a selection or drag operation and a parameter editing operation on a plurality of basic graphics in the basic graphics library, a symbol composed of the plurality of basic graphics is displayed in the graphic display interface; In response to an attribute editing operation on the symbol, adjusting the symbol according to the attribute editing operation, establishing a mapping relationship between a basic body constituting the symbol and an interface of the SP3D software, and obtaining a target symbol with a custom name; In response to a mount operation on the target symbol, the target symbol is mounted to the target level of the SP3D software database based on a mapping relationship between the symbol and the interface of the SP3D software; in response to a name edit operation on the mounted target symbol, the custom name of the target symbol is updated according to the custom call name and stored; when the preset check on the target symbol is successful, in response to a compile operation on the target symbol, a DLL callable by the SP3D software and a Bulkload file in Excel format are generated and mounted to a designated storage path; By combining all the target symbols, a target symbol library recognizable by the SP3D software is obtained.

2. The method for constructing a symbol library for SP3D software according to claim 1, characterized in that: The parameters include at least: coordinate parameters and size parameters; In response to a selection operation and a parameter editing operation on a plurality of basic graphics in the basic graphics library, the step of displaying a symbol composed of a plurality of the basic graphics in the graphic display interface includes: In response to a selection or drag operation on a first basic graphic in the basic graphic library, displaying the first basic graphic in the graphic display interface; In response to a parameter editing operation on the first basic graphic, the first basic graphic is updated to obtain a first basic body; In response to a selection or drag operation on at least one second basic graphic in the basic graphic library, displaying the second basic graphic on the graphic display interface with the updated origin of the first basic body as a base point; For each second basic graphic, in response to a parameter editing operation on the second basic graphic, the second basic graphic is updated to obtain a second basic body; The first primitive and at least one of the second primitives are combined to obtain a symbol.

3. The method for constructing a symbol library for SP3D software according to claim 1, characterized in that: The attributes include interface mapping attributes and name attributes; The steps of responding to an attribute editing operation on the symbol, adjusting the symbol according to the attribute editing operation, establishing a mapping relationship between the primitives constituting the symbol and an interface of the SP3D software, and obtaining a target symbol with a custom name include: In response to an interface mapping attribute editing operation for the symbol, establishing a mapping relationship between the primitive and the interface of the SP3D for each primitive constituting the symbol; In response to the name attribute editing operation for the symbol, the name of the symbol is updated according to the custom name to obtain a target symbol with the custom name.

4. The method for constructing a symbol library for SP3D software according to claim 1, characterized in that: After the step of displaying a symbol composed of a plurality of basic graphics on the graphic display interface in response to a selection or drag operation and a parameter editing operation on a plurality of basic graphics in the basic graphics library, the method further includes: In response to a selection or editing operation of a target display mode for the symbol, the symbol in the graphic display interface is switched from a current display mode to a target display mode.

5. The method for constructing a symbol library for SP3D software according to claim 1, characterized in that: The step of combining all the target symbols to obtain a target symbol library recognizable by the SP3D software includes: Importing the target symbol in the target symbol library into the SP3D software; For each target symbol, the target symbol is retrieved based on an interface corresponding to the target symbol and displayed on a display interface of the SP3D software.

6. A device for constructing a symbol library for SP3D software, characterized in that: The device is applied to a component development tool; the component development tool provides a basic graphics library and a graphics display interface; the device includes: a symbol construction module, configured to respond to a selection or drag operation and a parameter editing operation on a plurality of basic graphics in the basic graphics library, and display a symbol composed of the plurality of basic graphics in the graphic display interface; an attribute editing mapping module, configured to respond to an attribute editing operation on the symbol, adjust the symbol according to the attribute editing operation, establish a mapping relationship between a primitive constituting the symbol and an interface of the SP3D software, and obtain a target symbol with a custom name; a compiling module for responding to a mount operation on the target symbol and, based on a mapping relationship between the symbol and the interface of the SP3D software, mounting the target symbol to a target level in the SP3D software database; responding to a name editing operation on the mounted target symbol, updating the custom name of the target symbol according to the custom retrieved name and storing the updated name; and, if no problems are found after a preset check on the target symbol, responding to a compiling operation on the target symbol, generating a DLL callable by the SP3D software and a Bulkload file in Excel format and mounting the files to a designated storage path; The target symbol library generation module is used to combine all the target symbols to obtain a target symbol library that can be recognized by the SP3D software.

7. The device according to claim 6, characterized in that The parameters include at least: coordinate parameters and size parameters; the symbol construction module includes: A first basic graphic display module, configured to respond to a selection or drag operation on a first basic graphic in the basic graphic library and display the first basic graphic in the graphic display interface; A first basic body display module is configured to respond to a parameter editing operation on the first basic graphic, update the first basic graphic, and obtain a first basic body; a second basic graphic display module configured to respond to a selection or drag operation on at least one second basic graphic in the basic graphic library and display the second basic graphic on the graphic display interface with the updated origin of the first basic body as a base point; A second basic body display module, for each second basic graphic, responding to a parameter editing operation on the second basic graphic, updates the second basic graphic to obtain a second basic body; The symbol determination module is configured to combine the first basic body and at least one of the second basic bodies to obtain a symbol.

8. A component development tool, characterized in that: The component development tool includes a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the method according to any one of claims 1 to 5.

9. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Model generation method for steel structure

    KR102590167B1