CN113535304B - Method and device for inserting, displaying and editing third-party model in design software - Google Patents
Method and device for inserting, displaying and editing third-party model in design software Download PDFInfo
- Publication number
- CN113535304B CN113535304B CN202110812780.XA CN202110812780A CN113535304B CN 113535304 B CN113535304 B CN 113535304B CN 202110812780 A CN202110812780 A CN 202110812780A CN 113535304 B CN113535304 B CN 113535304B
- Authority
- CN
- China
- Prior art keywords
- party
- model
- information
- plug
- party model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/20—Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2210/00—Indexing scheme for image generation or computer graphics
- G06T2210/32—Image data format
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2219/00—Indexing scheme for manipulating 3D models or images for computer graphics
- G06T2219/20—Indexing scheme for editing of 3D models
- G06T2219/2016—Rotation, translation, scaling
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Human Computer Interaction (AREA)
- Architecture (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a method, a device, equipment and a storage medium for inserting, displaying and editing a third party model in design software. The method comprises the following steps: constructing a design page required by a third party plug-in for constructing a third party model according to a communication format specified by design software; acquiring registration information of a third-party plug-in, and generating list information of the registered third-party plug-in; designing an i frame container inserted by the third party model, and acquiring information of the third party model inserted into the i frame container; and acquiring the format of the third party model, acquiring the display information of the third party model according to the format of the third party model, and/or acquiring and editing the parameter information of the third party model. The method and the device meet the requirements of users for realizing cross-platform and cross-software editing of the third-party model, support the capability of inserting, displaying and re-editing the third-party model on the premise of not modifying the format of the third-party model, and expand the application scene of the third-party model.
Description
Technical Field
The present disclosure relates generally to the field of software design technology, and in particular, to a method, apparatus, device, and storage medium for inserting, displaying, and editing a third party model in design software.
Background
Now, three-dimensional models are widely applied to various fields of life and science and technology, and three-dimensional model software also generates various three-dimensional models according to respective application fields or application ranges, so that three-dimensional model design software with various formats and various platforms and corresponding three-dimensional models exist in the field of computer design, and for the three-dimensional model design software, the requirements of inserting, displaying and editing a third party model in other three-dimensional model design software exist, and the design software popular in the industry nowadays has problems in various aspects such as third party model displaying and editing capability:
firstly, model display is stuck, and problems of overlarge model data volume, low loading speed, model data, material loss and the like often occur when a Web end displays the model; secondly, the model is difficult to edit after the design software is imported, the model is imported into the design software for modification, and the corresponding format is exported for use after the model is edited, so that the scheme cannot update the third-party model in real time, and the process of converting the intermediate format and importing the intermediate format once is completed again every time the original third-party model changes, thus consuming a great deal of time and effort.
Therefore, a more scientific method for inserting, displaying and editing a third party model in design software is desired, and the problems in the prior art are solved.
Disclosure of Invention
In view of the foregoing drawbacks or shortcomings in the prior art, it is desirable to provide a method, apparatus, device and storage medium for inserting, displaying and editing a third party model in design software, which can meet the specific requirements of inserting, displaying and editing a third party model in design software at present.
According to one aspect of the embodiment of the application, the embodiment of the application provides a method for inserting, displaying and editing a third party model in design software, which comprises the following steps:
constructing a design page required by a third party plug-in for constructing a third party model according to a communication format specified by design software;
acquiring registration information of the third-party plugins according to the built design page required by the third-party plugins, and generating list information of the third-party plugins which finish registration;
designing an iframe container inserted by the third party model according to the registration information of the third party plug-in and the list information of the third party plug-in which the registration is completed, and obtaining the information of the third party model inserted into the iframe container;
And inserting the iframe container information according to the third party model, obtaining the format of the third party model, obtaining the display information of the third party model according to the format of the third party model, and/or inserting the iframe container information according to the third party model, obtaining and editing the parameter information of the third party model.
In another embodiment, the building the design page required by the third party plug-in for building the third party model according to the communication format specified by the design software includes:
acquiring a communication format specified by design software;
constructing a design page required by a third party plug-in for constructing a third party model according to a communication format specified by the design software;
acquiring resource index information of a third party model according to the design page of the third party plug-in;
and acquiring front-end display data and rear-end rendering data of the third-party model according to the resource index information of the third-party model, wherein the front-end display data comprise display data information of the third-party model on the design page, and the rear-end rendering data comprise insertion, display and editing data information of design software on the third-party model.
In another embodiment, the obtaining registration information of the third party plug-in includes: and the third-party plugin registers metadata of the third-party plugin in the plugin registration center of the design software, and the third-party plugin performs Webhook registration.
In another embodiment, the third party plug-in registers metadata of the third party plug-in with a plug-in registry of the design software, comprising:
acquiring registration information of the third-party plugin in a plugin registration center of the design software;
acquiring metadata registered by a third-party plug-in according to registration information of the third-party plug-in a plug-in registration center of the design software, wherein the metadata of the third-party plug-in comprises host information and plug-in version description information of a service provided by the third-party plug-in;
and constructing a registered third-party plug-in registration list according to the information that the third-party plug-in finishes registering in the plug-in registration center of the design software.
5. A method according to claim 3, wherein the third party plug-in performs Webhook registration, comprising:
obtaining information of Webhook registration by a third-party plug-in;
and acquiring an access path and configuration permission of the third-party plugin according to the information of Webhook registration of the third-party plugin.
In another embodiment, the designing the iframe container inserted by the third party model according to the registration information of the third party plug-in and the list information of the third party plug-in that generates the registration completed, and obtaining the information of inserting the third party model into the iframe container includes:
According to the registration information of the third party plug-in and the list information of the third party plug-in which is generated and completed registration, designing an iframe container inserted by the third party model, wherein the designing the iframe container inserted by the third party model comprises: controlling the position information of the iframe container, adjusting the size information of the iframe container and controlling the switch information of the iframe container;
obtaining a message sent by the iframe container according to the design information of the iframe container of the third party model, wherein the message sent by the iframe container comprises the message inserted into the third party model and the message cancelled from being inserted into the third party model;
and analyzing the data of the third party model in the message sent by the iframe container according to the message sent by the iframe container, and inserting the third party model into the canvas of the design software or canceling the insertion of the third party model into the canvas of the design software.
In another embodiment, the inserting the iframe container information according to the third party model, obtaining a format of the third party model, and obtaining the display information of the third party model according to the format of the third party model includes:
defining a plurality of display formats matched with the third party model format in the design software;
Acquiring format information of the inserted third party model;
and the design software uses a display format matched with the third party model to display the third party model.
In another embodiment, the inserting the iframe container information according to the third party model, obtaining and editing parameter information of the third party model includes:
selecting any one of the inserted third party models;
acquiring a third party plug-in corresponding to the selected third party model, and entering an editing page of the third party plug-in;
setting target parameters of the third party model on an editing page of the third party plug-in;
and updating the display information of the third party model according to the target parameters of the third party model set by the editing page of the third party plug-in.
According to another aspect of the embodiment of the present invention, a device for inserting, displaying and editing a third party model in design software is disclosed, the device comprising:
the page building module is used for building a design page required by a third party plug-in for building a third party model according to a communication format specified by design software;
the plug-in registration module is used for acquiring registration information of the third-party plug-in according to the built design page required by the third-party plug-in and generating list information of the registered third-party plug-in;
The model insertion module is used for designing an iframe container inserted by the third party model according to the registration information of the third party plug-in and the list information of the third party plug-in which is generated and completed to acquire the information of the third party model inserted into the iframe container;
the model display and editing module is used for inserting the iframe container information according to the third party model, obtaining the format of the third party model, obtaining the display information of the third party model according to the format of the third party model, and/or obtaining and editing the parameter information of the third party model according to the insertion of the third party model into the iframe container information.
In accordance with yet another aspect of an embodiment of the present invention, an electronic device is disclosed that includes one or more processors and memory for storing one or more programs; when the one or more programs are executed by the processor, the processor is enabled to implement the method for inserting, displaying and editing the third party model in the design software provided by the embodiments of the present invention.
In accordance with yet another aspect of embodiments of the present invention, a computer-readable storage medium storing a computer program that when executed performs a method of inserting, exposing, editing a third party model in design software provided by embodiments of the present invention is disclosed.
In the embodiment of the application, a design page required by a third party plug-in for constructing a third party model is built according to a communication format specified by design software; acquiring registration information of a third-party plug-in, and generating list information of the registered third-party plug-in; designing an iframe container inserted by the third party model according to the registration information of the third party plug-in and the list information of the third party plug-in which the registration is completed, and obtaining the information of the third party model inserted into the iframe container; and acquiring the format of the third party model, acquiring the display information of the third party model according to the format of the third party model, and/or acquiring and editing the parameter information of the third party model. The application can solve the problem that the existing design software has insufficient display and editing capability on the third party model, meets the requirement of a user on realizing cross-platform cross-software editing on the third party model, supports the capability of inserting, displaying and re-editing the third party model on the premise of not modifying the format of the third party model, can enjoy all the capabilities supported by the design software after the third party model is inserted, realizes the bidirectional opening of data and the mutual energization of design functions, and greatly expands the application scene of the third party model.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is an application scenario diagram of a method for inserting, exposing, editing a third party model in design software provided by an embodiment of the present application;
FIG. 2 is a flow chart of a method for inserting, exposing, editing a third party model in design software provided by one embodiment of the present application;
FIG. 3 is a schematic diagram of a device for inserting, displaying and editing a third party model in design software according to an embodiment of the present application;
fig. 4 is an internal structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
The application relates to a three-dimensional model which is a polygonal representation of an object and is usually displayed by a computer or other video equipment, in general, each three-dimensional model is provided with corresponding three-dimensional model design software, and compared with the three-dimensional model generated by certain three-dimensional model design software, the three-dimensional model generated by other three-dimensional model or other three-dimensional model design software belongs to a third party model.
The method for inserting, displaying and editing the third party model in the design software provided by the application can be applied to an application environment shown in figure 1. The method for inserting, displaying and editing the third-party model in the design software is applied to a device for inserting, displaying and editing the third-party model in the design software. The device for inserting, displaying and editing the third party model in the design software can be configured in the terminal 102 or the server 104, or partially configured in the terminal 102 and partially configured in the server 104, and the terminal 102 and the server 104 interact to complete the method for inserting, displaying and editing the third party model in the design software.
Wherein the terminal 102 and the server 104 may communicate over a network.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, the terminal 102 needs to have a function of building a design page required for a third party plug-in for building a third party model, and the server 104 may be implemented by a separate server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in FIG. 2, a method of inserting, exposing, editing a third party model in design software is provided. The present embodiment is mainly illustrated by the application of the method to the terminal 102 in fig. 1.
Referring to fig. 2, an exemplary flow of a method for inserting, exposing, and editing a third party model in design software to which embodiments of the present application can be applied is shown.
As shown in fig. 2, in step 210, a design page required for a third party plug-in for building a third party model is built according to a communication format specified by design software.
Specifically, the design software is a main body for inserting, displaying and editing the third party model, the design software is responsible for receiving the third party model, the design software is responsible for indexing, setting and storing a placement position matrix of the third party model, loading and updating the third party model, displaying and editing the third party model, placing the third party model in the design software and the like; the third-party plug-in is a main body for designing the third-party model, the third-party model is designed by the third-party plug-in and is inserted into design software after the design is completed, and when the design software edits the third-party model, the third-party plug-in needs to be edited.
Specifically, the design page required for building the third party plug-in for building the third party model is a page for designing and editing the third party model provided by design software for the third party plug-in. Therefore, the design page needs to conform to the communication format of the design software, so that the third party model designed by the third party plug-in can conform to the format requirement of the design software, and the third party model generated by the third party plug-in can also conform to the standard data type and the adapted display format provided by the design software. Because different application scenes and different design view angles have different requirements on the fineness of the third-party model, design software needs to introduce a design page according to different application scenes and different design view angles to serve as uniform quantitative expression, meanwhile, parameters of the design page are transmitted to a third-party plug-in, and the third-party plug-in needs to be provided with the third-party model with different fineness according to the design page, and the third-party model is built and returned to the design software through the design page, so that the fineness automatic setting of the third-party model and the fluent display of the third-party model in the design software are realized.
Specifically, in one embodiment of the present application, the building a design page required by a third party plug-in for building a third party model according to a communication format specified by design software includes:
Acquiring a communication format specified by design software; specifically, the communication format specified by the design software is used for sending a message to the design software when appropriate or receiving a message from the design software for performing an inserting, displaying or editing operation on the third party model in the design software, and the communication format specified by the design software is used for guaranteeing that the design software receives data.
Constructing a design page required by a third party plug-in for constructing a third party model according to a communication format specified by the design software; specifically, the design page required by the third-party plug-in is a platform for the third-party plug-in to perform third-party model design, and the design page can meet the requirements of the third-party plug-in and the communication with the design software, so that the third-party model designed by the third-party plug-in can be matched with the design software on the design page.
Acquiring resource index information of a third party model according to the design page of the third party plug-in; specifically, the resource index information of the third party model is unique coding information of the third party model, and is a unique identifier for the design software to acquire the data of the third party model from the service provided by the third party model. In order to provide a high-performance data production service for the third party model, the data of the third party model may be pre-stored in a database and need not be generated by real-time modeling by the third party plug-in. In order to generate a globally unique third party model index after the data of the third party model is stored in the database in advance, if the data is stored in the RMDB (Relational database ) database, the third party model index may use a primary key of the database table; if stored in the key-value database of NoSQL, the third party model index may be represented by a key.
And acquiring front-end display data and rear-end rendering data of the third-party model according to the resource index information of the third-party model, wherein the front-end display data comprise display data information of the third-party model on the design page, and the rear-end rendering data comprise insertion, display and editing data information of design software on the third-party model.
In step 220, according to the design page required by the built third-party plugin, the registration information of the third-party plugin is obtained, and the list information of the third-party plugin which is registered is generated.
Specifically, after the design software completes the construction of the design page required by the third-party plug-in, the design page can be matched with the third-party plug-in direction, that is, the design page can meet the requirement of the third-party plug-in for carrying out the third-party model design, at this time, only the construction of the design page is completed, the third-party plug-in does not start the design work of the third-party model, the design page is only a platform for carrying out the design by the third-party plug-in, and the third-party plug-in is the main element of the design page, so that the registration of the third-party plug-in is required, the third-party plug-in for completing the registration can carry out the design of the third-party model on the design platform, and one or more third-party models can correspond to one or more third-party plug-ins due to various formats of the third-party models, so that after the registration of the third-party plug-in is completed, the design software can generate list information of all the third-party plug-ins which have completed the registration.
Specifically, in one embodiment of the present application, the obtaining the registration information of the third party plug-in includes: and the third-party plugin registers metadata of the third-party plugin in the plugin registration center of the design software, and the third-party plugin performs Webhook registration.
Specifically, webhook is a way for an application to provide real-time information to other applications, and once the information is generated, webhook immediately sends data as it is generated and sends it to the registered application, which means that the data is available in real-time. The use of a Webhook is to prepare a URL (Uniform Resource Locator ) for the Webhook for sending requests, which is typically done by a background page and or API (Application Programming Interface, application program interface), which means that the application sets a URL accessible via the public network.
Specifically, after the third-party plug-in registers metadata of the third-party plug-in the plug-in registration center of the design software, the design software already has the capability of calling the third-party model, and the third-party plug-in performs Webhook registration, so that the third-party model can be called into the design software, that is, the Webhook realizes what path the third-party model passes through to trigger the third-party plug-in to operate the third-party model, and the third-party model is inserted into the design software. After the third-party plugin registers metadata of the third-party plugin in, the third-party plugin can use a design page to design a third-party model, but only after the third-party plugin performs Webhook registration, the third-party plugin can provide the designed third-party model for the design software to normally operate, so that the Webhook registration of the third-party plugin is a necessary condition for the normal operation of the third-party plugin on the design software.
Specifically, in one embodiment of the present application, the third party plug-in registers metadata of the third party plug-in the plug-in registry of the design software, including:
acquiring registration information of the third-party plugin in a plugin registration center of the design software;
acquiring metadata registered by a third-party plug-in according to registration information of the third-party plug-in a plug-in registration center of the design software, wherein the metadata of the third-party plug-in comprises host information and plug-in version description information of a service provided by the third-party plug-in;
and constructing a registered third-party plug-in registration list according to the information that the third-party plug-in finishes registering in the plug-in registration center of the design software.
Specifically, in one embodiment of the present application, the Webhook registration performed by the third party add-in includes:
obtaining information of Webhook registration by a third-party plug-in;
and acquiring an access path and configuration permission of the third-party plugin according to the information of Webhook registration of the third-party plugin.
Specifically, the types of services that can be provided by Webhook include, but are not limited to, obtaining a third party model, deleting a third party model, copying a third party model, and other custom types, where the essence of Webhook is a function mapped by a URL and a message type, and each message type corresponds to a Webhook one to one.
In step 230, according to the registration information of the third party plug-in and the list information of the third party plug-in that completes registration, an iframe container into which the third party model is inserted is designed, and the information of the third party model inserted into the iframe container is obtained.
Specifically, after the registration information of the third-party plugin and the list information of the third-party plugin which completes registration are generated, the design page is described as having completed the preparation of receiving the third-party plugin to perform the third-party model design, and the design software also has the condition of inserting the third-party model, so that the specific actions of inserting, displaying or editing the third-party model in the design software can be performed.
Specifically, the iframe container is an HTML tag that acts as a document in the document, or a floating frame, and the iframe element creates an inline frame that contains another document, one inline frame being used to embed another document in the current HTML document, in embodiments of the present application, the iframe container is a frame of the design page that is used to insert a third party model into the iframe container, which is then inserted into the design software by the iframe container.
Specifically, in one embodiment of the present application, the step of designing an iframe container into which the third party model is inserted according to the registration information of the third party plug-in and the list information of the third party plug-in that generates the registration completed, and obtaining the information of inserting the third party model into the iframe container includes:
according to the registration information of the third party plug-in and the list information of the third party plug-in which is generated and completed registration, designing an iframe container inserted by the third party model, wherein the designing the iframe container inserted by the third party model comprises: controlling the position information of the iframe container, adjusting the size information of the iframe container and controlling the switch information of the iframe container; specifically, the iframe container represents the capability of the iframe container to drag, self-adapt size, and switch containers on the design page.
Obtaining a message sent by the iframe container according to the design information of the iframe container of the third party model, wherein the message sent by the iframe container comprises the message inserted into the third party model and the message cancelled from being inserted into the third party model; specifically, after the design of the iframe container is completed, the design software needs to monitor the message sent by the iframe container in real time, and after the iframe container receives the third party model, the iframe container sends a message to the design software, namely, notifies the design software to prepare to receive the third party model sent by the third party plug-in.
And analyzing the data of the third party model in the message sent by the iframe container according to the message sent by the iframe container, and inserting the third party model into the canvas of the design software or canceling the insertion of the third party model into the canvas of the design software. Specifically, after the design software receives the message sent by the iframe container, the design software firstly analyzes the data of the third party model in the message sent by the iframe container, and inserts the third party model into the canvas of the design software, or cancels the insertion of the third party model into the canvas of the design software according to the analyzed message sent by the iframe container.
In step 240, the iframe container information is inserted according to the third party model, the format of the third party model is obtained, the display information of the third party model is obtained according to the format of the third party model, and/or the parameter information of the third party model is obtained and edited according to the insertion of the iframe container information of the third party model.
Specifically, the design software only can display and edit the inserted third party model, and the display of the design software on the third party model is that the design software realizes the synchronization with the design program of the third party plug-in according to the display format supported by the design software, so that the third party model has the same display effect on the design software and the third party plug-in.
Specifically, in one embodiment of the present application, the inserting the iframe container information according to the third party model, obtaining a format of the third party model, and obtaining display information of the third party model according to the format of the third party model includes:
defining a plurality of display formats matched with the third party model format in the design software;
acquiring format information of the inserted third party model; specifically, the third party model, when inserted into the design software, will inform the design software of what format the inserted third party model is.
And the design software uses a display format matched with the third party model to display the third party model. Specifically, the design software respectively performs display of the model and update of a position matrix according to the format of the acquired third-party model, wherein the position matrix is the display position of the third-party model in the design software.
Specifically, after the third party model is inserted into the design software, the third party model can be treated as a data object which is the same as the model of the design software, so that the imported third party model automatically acquires various editing and using capacities such as movement, rotation, scaling, mirroring, array and the like which are the same as the built-in model of the design software.
Specifically, in one embodiment of the present application, the inserting the iframe container information according to the third party model obtains and edits parameter information of the third party model, including:
selecting any one of the inserted third party models;
acquiring a third party plug-in corresponding to the selected third party model, and entering an editing page of the third party plug-in;
setting target parameters of the third party model on an editing page of the third party plug-in;
and updating the display information of the third party model according to the target parameters of the third party model set by the editing page of the third party plug-in.
Specifically, after any one of the inserted third party models is selected on the design software, when an editing button of the third party model is clicked, the design software opens a design panel of the third party plug-in again for modifying parameters, and after parameter love is completed, the design software updates data in real time according to the modified parameters.
According to the method for inserting, displaying and editing the third party model in the design software, a design page required by a third party plug-in for constructing the third party model is built according to a communication format specified by the design software; acquiring registration information of a third-party plug-in, and generating list information of the registered third-party plug-in; designing an iframe container inserted by the third party model according to the registration information of the third party plug-in and the list information of the third party plug-in which the registration is completed, and obtaining the information of the third party model inserted into the iframe container; and acquiring the format of the third party model, acquiring the display information of the third party model according to the format of the third party model, and/or acquiring and editing the parameter information of the third party model. The application can solve the problem that the existing design software has insufficient display and editing capability on the third party model, meets the requirement of a user on realizing cross-platform cross-software editing on the third party model, supports the capability of inserting, displaying and re-editing the third party model on the premise of not modifying the format of the third party model, can enjoy all the capabilities supported by the design software after the third party model is inserted, realizes the bidirectional opening of data and the mutual energization of design functions, and greatly expands the application scene of the third party model.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Fig. 3 is a schematic structural diagram of a device for inserting, displaying and editing a third party model in design software according to an embodiment of the present application, and as shown in fig. 3, the device for inserting, displaying and editing a third party model in design software includes:
the system comprises a page building module, a plug-in registration module, a model insertion module, a model display and editing module;
the page building module is used for building a design page required by a third party plug-in for building a third party model according to a communication format specified by design software;
The plug-in registration module is used for acquiring registration information of the third-party plug-in according to the built design page required by the third-party plug-in and generating list information of the registered third-party plug-in;
the model insertion module is used for designing an iframe container inserted by the third party model according to the registration information of the third party plug-in and the list information of the third party plug-in which is generated and completed to acquire the information of the third party model inserted into the iframe container;
the model display and editing module is used for inserting the iframe container information according to the third party model, obtaining the format of the third party model, obtaining the display information of the third party model according to the format of the third party model, and/or obtaining and editing the parameter information of the third party model according to the insertion of the third party model into the iframe container information.
Specifically, in another embodiment of the present application, the page building module is configured to obtain a communication format specified by design software; constructing a design page required by a third party plug-in for constructing a third party model according to a communication format specified by the design software; acquiring resource index information of a third party model according to the design page of the third party plug-in; and acquiring front-end display data and rear-end rendering data of the third-party model according to the resource index information of the third-party model, wherein the front-end display data comprise display data information of the third-party model on the design page, and the rear-end rendering data comprise insertion, display and editing data information of design software on the third-party model.
Specifically, in another embodiment of the present application, the plug-in registration module is configured to obtain registration information of the third party plug-in a plug-in registry of the design software; acquiring metadata registered by a third-party plug-in according to registration information of the third-party plug-in a plug-in registration center of the design software, wherein the metadata of the third-party plug-in comprises host information and plug-in version description information of a service provided by the third-party plug-in; and constructing a registered third-party plug-in registration list according to the information that the third-party plug-in finishes registering in the plug-in registration center of the design software.
Specifically, in another embodiment of the present application, the plug-in registration module is configured to obtain information that Webhook registration is performed by a third party plug-in; and acquiring an access path and configuration permission of the third-party plugin according to the information of Webhook registration of the third-party plugin.
Specifically, in another embodiment of the present application, the model insertion module is configured to design an iframe container into which the third party model is inserted according to the registration information of the third party plug-in and list information of the third party plug-in that completes registration, where the designing the iframe container into which the third party model is inserted includes: controlling the position information of the iframe container, adjusting the size information of the iframe container and controlling the switch information of the iframe container; obtaining a message sent by the iframe container according to the design information of the iframe container of the third party model, wherein the message sent by the iframe container comprises the message inserted into the third party model and the message cancelled from being inserted into the third party model; and analyzing the data of the third party model in the message sent by the iframe container according to the message sent by the iframe container, and inserting the third party model into the canvas of the design software or canceling the insertion of the third party model into the canvas of the design software.
Specifically, in another embodiment of the present application, the model exhibition and editing module is configured to define, inside the design software, a plurality of display formats adapted to the third party model format; acquiring format information of the inserted third party model; and the design software uses a display format matched with the third party model to display the third party model.
Specifically, in another embodiment of the present application, the model exhibition and editing module is configured to select any one of the inserted third party models; acquiring a third party plug-in corresponding to the selected third party model, and entering an editing page of the third party plug-in; setting target parameters of the third party model on an editing page of the third party plug-in; and updating the display information of the third party model according to the target parameters of the third party model set by the editing page of the third party plug-in.
The device for inserting, displaying and editing the third party model in the design software builds a design page required by the third party plug-in for building the third party model according to the communication format specified by the design software through the page building module; acquiring registration information of a third-party plugin through a plugin registration module, and generating list information of the third-party plugin which registration is completed; designing an iframe container inserted by the third party model through a model insertion module according to the registration information of the third party plug-in and the list information of the third party plug-in which is generated and completed, and obtaining the information of the third party model inserted into the iframe container; and acquiring the format of the third party model through a model display and editing module, acquiring display information of the third party model according to the format of the third party model, and/or acquiring and editing parameter information of the third party model. The application can solve the problem that the existing design software has insufficient display and editing capability on the third party model, meets the requirement of a user on realizing cross-platform cross-software editing on the third party model, supports the capability of inserting, displaying and re-editing the third party model on the premise of not modifying the format of the third party model, can enjoy all the capabilities supported by the design software after the third party model is inserted, realizes the bidirectional opening of data and the mutual energization of design functions, and greatly expands the application scene of the third party model.
For specific limitations on the means for inserting, presenting and editing the third party model in the design software, reference may be made to the above limitation on the method for inserting, presenting and editing the third party model in the design software, which is not repeated herein. The modules in the device for inserting, displaying and editing the third party model in the design software can be all or partially realized by software, hardware and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In particular, according to an embodiment of the present disclosure, as shown in FIG. 4, an electronic device is disclosed that includes one or more processors and memory for storing one or more programs; when the one or more programs are executed by the processor, the processor is caused to implement the method for inserting, displaying and editing the third party model in the design software according to the embodiment of the invention.
In particular, according to embodiments of the present disclosure, the method of inserting, exposing, editing a third party model in the design software described in any of the embodiments above may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing a method of inserting, exposing, editing a third party model in design software. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium.
The one or more programs are stored in a read-only memory ROM or a random access memory RAM to perform various appropriate actions and processes. In the random access memory RAM, software programs for the server to complete the corresponding service are included, as well as various programs and data required for the driving operation of the vehicle. The server and its controlled hardware devices, read-only memory ROM, random access memory RAM are connected to each other via a bus to which various input/output interfaces are also connected.
The following components are connected to the input/output interface: an input section including a keyboard, a mouse, etc.; an output section including a cathode ray tube CRT, a liquid crystal display LCD, etc., and a speaker, etc.; and a communication section including a network interface card such as a LAN card, a modem, and the like. The communication section performs communication processing via a network such as the internet. The drive is also connected to the input/output interface as needed. Removable media such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, and the like are mounted on the drive as needed so that a computer program read therefrom is mounted into the memory as needed.
In particular, according to embodiments of the present disclosure, the method of inserting, exposing, editing a third party model in the design software described in any of the embodiments above may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing a method of inserting, exposing, editing a third party model in design software. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium.
The units or modules involved in the embodiments of the present application may be implemented in software or in hardware. The described units or modules may also be provided in a processor. The names of these units or modules do not in some way constitute a limitation of the unit or module itself.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.
Claims (11)
1. A method for inserting, displaying and editing a third party model in design software, the method comprising:
constructing a design page required by a third party plug-in for constructing a third party model according to a communication format specified by design software;
acquiring registration information of the third-party plugins according to the built design page required by the third-party plugins, and generating list information of the third-party plugins which finish registration;
designing an iframe container inserted by the third party model according to the registration information of the third party plug-in and the list information of the third party plug-in which the registration is completed, and obtaining the information of the third party model inserted into the iframe container;
and inserting the iframe container information according to the third party model, obtaining the format of the third party model, obtaining the display information of the third party model according to the format of the third party model, and/or inserting the iframe container information according to the third party model, obtaining and editing the parameter information of the third party model.
2. The method according to claim 1, wherein building the design page required by the third party plug-in for building the third party model according to the communication format specified by the design software comprises:
Acquiring a communication format specified by design software;
constructing a design page required by a third party plug-in for constructing a third party model according to a communication format specified by the design software;
acquiring resource index information of a third party model according to the design page of the third party plug-in;
and acquiring front-end display data and rear-end rendering data of the third-party model according to the resource index information of the third-party model, wherein the front-end display data comprise display data information of the third-party model on the design page, and the rear-end rendering data comprise insertion, display and editing data information of design software on the third-party model.
3. The method of claim 1, wherein the obtaining registration information for a third party plug-in comprises: and the third-party plugin registers metadata of the third-party plugin in the plugin registration center of the design software, and the third-party plugin performs Webhook registration.
4. A method according to claim 3, wherein the third party plug-in registers metadata of the third party plug-in with a plug-in registry of the design software, comprising:
acquiring registration information of the third-party plugin in a plugin registration center of the design software;
Acquiring metadata registered by a third-party plug-in according to registration information of the third-party plug-in a plug-in registration center of the design software, wherein the metadata of the third-party plug-in comprises host information and plug-in version description information of a service provided by the third-party plug-in;
and constructing a registered third-party plug-in registration list according to the information that the third-party plug-in finishes registering in the plug-in registration center of the design software.
5. A method according to claim 3, wherein the third party plug-in performs Webhook registration, comprising:
obtaining information of Webhook registration by a third-party plug-in;
and acquiring an access path and configuration permission of the third-party plugin according to the information of Webhook registration of the third-party plugin.
6. The method according to claim 1, wherein the designing the iframe container into which the third party model is inserted according to the registration information of the third party plug-in and the list information of the third party plug-in that generates the registration completed, and the obtaining the information of inserting the third party model into the iframe container includes:
according to the registration information of the third party plug-in and the list information of the third party plug-in which is generated and completed registration, designing an iframe container inserted by the third party model, wherein the designing the iframe container inserted by the third party model comprises: controlling the position information of the iframe container, adjusting the size information of the iframe container and controlling the switch information of the iframe container;
Obtaining a message sent by the iframe container according to the design information of the iframe container of the third party model, wherein the message sent by the iframe container comprises the message inserted into the third party model and the message cancelled from being inserted into the third party model;
and analyzing the data of the third party model in the message sent by the iframe container according to the message sent by the iframe container, and inserting the third party model into the canvas of the design software or canceling the insertion of the third party model into the canvas of the design software.
7. The method of claim 1, wherein inserting the iframe container information according to the third party model, obtaining a format of the third party model, and obtaining presentation information of the third party model according to the format of the third party model, comprises:
defining a plurality of display formats matched with the third party model format in the design software;
acquiring format information of the inserted third party model;
and the design software uses a display format matched with the third party model to display the third party model.
8. The method of claim 1, wherein inserting the iframe container information according to the third party model, obtaining and editing parameter information of the third party model, comprises:
Selecting any one of the inserted third party models;
acquiring a third party plug-in corresponding to the selected third party model, and entering an editing page of the third party plug-in;
setting target parameters of the third party model on an editing page of the third party plug-in;
and updating the display information of the third party model according to the target parameters of the third party model set by the editing page of the third party plug-in.
9. An apparatus for inserting, displaying and editing a third party model in design software, the apparatus comprising:
the page building module is used for building a design page required by a third party plug-in for building a third party model according to a communication format specified by design software;
the plug-in registration module is used for acquiring registration information of the third-party plug-in according to the built design page required by the third-party plug-in and generating list information of the registered third-party plug-in;
the model insertion module is used for designing an iframe container inserted by the third party model according to the registration information of the third party plug-in and the list information of the third party plug-in which is generated and completed to acquire the information of the third party model inserted into the iframe container;
The model display and editing module is used for inserting the iframe container information according to the third party model, obtaining the format of the third party model, obtaining the display information of the third party model according to the format of the third party model, and/or obtaining and editing the parameter information of the third party model according to the insertion of the third party model into the iframe container information.
10. An electronic device comprising one or more processors and memory for storing one or more programs;
the one or more programs, when executed by the processor, cause the processor to implement the method of any of claims 1-8.
11. A computer readable storage medium storing a computer program, characterized in that the computer program when executed implements the method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110812780.XA CN113535304B (en) | 2021-07-19 | 2021-07-19 | Method and device for inserting, displaying and editing third-party model in design software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110812780.XA CN113535304B (en) | 2021-07-19 | 2021-07-19 | Method and device for inserting, displaying and editing third-party model in design software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113535304A CN113535304A (en) | 2021-10-22 |
CN113535304B true CN113535304B (en) | 2023-08-25 |
Family
ID=78128684
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110812780.XA Active CN113535304B (en) | 2021-07-19 | 2021-07-19 | Method and device for inserting, displaying and editing third-party model in design software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113535304B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114722441B (en) * | 2022-04-28 | 2025-05-06 | 阿里巴巴(中国)有限公司 | Product design system, method, device, storage medium and program product |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092629A (en) * | 2013-02-25 | 2013-05-08 | 用友软件股份有限公司 | Interface packaging system and interface packaging method |
CN105956894A (en) * | 2016-04-15 | 2016-09-21 | 山东建筑大学 | Model designing method and model designing system |
CN109948201A (en) * | 2019-03-04 | 2019-06-28 | 中国人民解放军国防大学联合作战学院 | A platform and plug-in-based model component management system and scheduling implementation method |
CN111522544A (en) * | 2020-04-22 | 2020-08-11 | 福建天晴在线互动科技有限公司 | Method and device for making visual track plug-in |
CN111596969A (en) * | 2020-05-09 | 2020-08-28 | 中国电子科技集团公司第二十八研究所 | A software architecture method based on microkernel plus plug-in |
CN112379653A (en) * | 2020-12-01 | 2021-02-19 | 国能信控互联技术有限公司 | Smart power plant management and control system based on micro-service architecture |
CN112765516A (en) * | 2020-12-28 | 2021-05-07 | 微民保险代理有限公司 | Page content display method and device, storage medium and electronic device |
CN112799734A (en) * | 2021-01-07 | 2021-05-14 | 广州虎牙科技有限公司 | Flow management method, image processing method, and corresponding platform and device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130179774A1 (en) * | 2005-12-05 | 2013-07-11 | Sursen Corp. | Method and apparatus for processing document conforming to docbase standard |
CN101256492A (en) * | 2008-03-31 | 2008-09-03 | 宋乃辉 | Software development method and system for executing model drive structure |
CN101539855A (en) * | 2008-12-25 | 2009-09-23 | 厦门亿力吉奥信息科技有限公司 | Service basic software platform |
US20100318974A1 (en) * | 2009-06-16 | 2010-12-16 | Sap Ag | Business object mockup architecture |
CN102033848B (en) * | 2010-12-21 | 2012-11-14 | 东莞市高鑫机电科技服务有限公司 | SOA-based three-dimensional design system integrating method and system |
CN110839073A (en) * | 2019-11-06 | 2020-02-25 | 北京小米智能科技有限公司 | Method for acquiring push information, method and device for sending push information |
-
2021
- 2021-07-19 CN CN202110812780.XA patent/CN113535304B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092629A (en) * | 2013-02-25 | 2013-05-08 | 用友软件股份有限公司 | Interface packaging system and interface packaging method |
CN105956894A (en) * | 2016-04-15 | 2016-09-21 | 山东建筑大学 | Model designing method and model designing system |
CN109948201A (en) * | 2019-03-04 | 2019-06-28 | 中国人民解放军国防大学联合作战学院 | A platform and plug-in-based model component management system and scheduling implementation method |
CN111522544A (en) * | 2020-04-22 | 2020-08-11 | 福建天晴在线互动科技有限公司 | Method and device for making visual track plug-in |
CN111596969A (en) * | 2020-05-09 | 2020-08-28 | 中国电子科技集团公司第二十八研究所 | A software architecture method based on microkernel plus plug-in |
CN112379653A (en) * | 2020-12-01 | 2021-02-19 | 国能信控互联技术有限公司 | Smart power plant management and control system based on micro-service architecture |
CN112765516A (en) * | 2020-12-28 | 2021-05-07 | 微民保险代理有限公司 | Page content display method and device, storage medium and electronic device |
CN112799734A (en) * | 2021-01-07 | 2021-05-14 | 广州虎牙科技有限公司 | Flow management method, image processing method, and corresponding platform and device |
Non-Patent Citations (1)
Title |
---|
基于3DMine的Web网页三维可视化插件设计与应用;巩瑞杰;陈彦亭;常龙新;陈越;庞晔斌;;现代矿业(第10期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113535304A (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101130484B1 (en) | Common charting using shapes | |
CN110109670B (en) | Method and device for processing view list data, electronic equipment and storage medium | |
CN103092612B (en) | Realize method and the electronic installation of Android operation system 3D desktop pinup picture | |
CN108876887B (en) | Rendering method and device | |
US20110161847A1 (en) | System and method for integrating and publishing pages of content | |
CN107330087B (en) | Page file generation method and device | |
CN110930325B (en) | Image processing method and device based on artificial intelligence and storage medium | |
CN106779576B (en) | Configuration method of service field | |
CN113050941A (en) | Front-end page generation method, device, equipment and computer readable storage medium | |
CN111240769A (en) | Page starting method, device, equipment and storage medium | |
CN111294395A (en) | Terminal page transmission method, device, medium and electronic equipment | |
CN110750664A (en) | Picture display method and device | |
CN115438113A (en) | Parameter management method and device, electronic equipment and storage medium | |
CN113535304B (en) | Method and device for inserting, displaying and editing third-party model in design software | |
CN112328940A (en) | Method, device, computer equipment and storage medium for embedding transition page in webpage | |
CN116466935A (en) | Template processing method, device, computer equipment and storage medium | |
US20220028425A1 (en) | System and Method to Customizing Video | |
CN118115627A (en) | Method for generating scene graph and electronic equipment | |
CN114527972B (en) | A page generation method, device, electronic device and computer readable medium | |
CN102142004A (en) | Service processing method and service engine | |
CN116112279A (en) | Access control method, device, computer equipment and storage medium | |
CN113902886A (en) | Three-dimensional model sharing and editing method, device, equipment and storage medium | |
CN116483495B (en) | Display control method, display control device, electronic equipment and computer readable storage medium | |
US20240402894A1 (en) | Effect processing method and apparatus, electronic device and storage medium | |
CN118708180A (en) | Page co-construction method, device, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |