CN113535304A - 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 PDF

Info

Publication number
CN113535304A
CN113535304A CN202110812780.XA CN202110812780A CN113535304A CN 113535304 A CN113535304 A CN 113535304A CN 202110812780 A CN202110812780 A CN 202110812780A CN 113535304 A CN113535304 A CN 113535304A
Authority
CN
China
Prior art keywords
party
model
plug
information
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.)
Granted
Application number
CN202110812780.XA
Other languages
Chinese (zh)
Other versions
CN113535304B (en
Inventor
陈珂
廖达允
张凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qunhe Information Technology Co Ltd
Original Assignee
Hangzhou Qunhe Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Qunhe Information Technology Co Ltd filed Critical Hangzhou Qunhe Information Technology Co Ltd
Priority to CN202110812780.XA priority Critical patent/CN113535304B/en
Publication of CN113535304A publication Critical patent/CN113535304A/en
Application granted granted Critical
Publication of CN113535304B publication Critical patent/CN113535304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2228Indexing structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/32Image data format
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2016Rotation, translation, scaling
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

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: according to a communication format specified by design software, a third-party plug-in required design page for building a third-party model is built; 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 i-frame container inserted by the third-party model; 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 editing requirement of a user on the third-party model to realize cross-platform and cross-software editing, support the capability of inserting, displaying and editing the third-party model again on the premise of not modifying the format of the third-party model, and expand the application scene of the third-party model.

Description

Method and device for inserting, displaying and editing third-party model in design software
Technical Field
The present disclosure relates generally to the field of software design technologies, and in particular, to a method, an apparatus, a device, and a storage medium for inserting, displaying, and editing a third-party model in design software.
Background
Now, three-dimensional models have been widely applied to various fields of life and science and technology, 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 platforms and corresponding three-dimensional models exist in the field of computer design, for the three-dimensional model design software, requirements of a third party model for inserting, displaying and editing in other three-dimensional model design software also exist, and the design software popular in the industry nowadays has problems in many aspects such as third party model displaying and editing capability and the like:
firstly, the model display is stuck, and the problems of overlarge model data quantity, low loading speed, model data loss, material loss and the like often occur when the model is displayed on a Web end; secondly, the model is difficult to edit after the design software is imported, and a relatively universal model editing scheme in the prior art is to import the model into the design software for modification, and export the corresponding format for use after the model is edited.
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 defects or shortcomings in the prior art, it is desirable to provide a method, an apparatus, a device and a 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.
Based on one aspect of the embodiments of the present invention, the embodiments of the present application provide a method for inserting, displaying, and editing a third-party model in design software, the method including:
according to a communication format specified by design software, a third-party plug-in required design page for building a third-party model is built;
acquiring registration information of the third-party plug-in according to the design page required by the built third-party plug-in, and generating list information of the registered third-party plug-in;
designing 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 which registration is completed and is generated, and acquiring information of the third-party model inserted into the iframe container;
and according to the third-party model inserting the iframe container information, obtaining the format of the third-party model, and according to the format of the third-party model, obtaining the display information of the third-party model, and/or according to the third-party model inserting the iframe container information, obtaining and editing the parameter information of the third-party model.
In another embodiment, the building of 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;
according to a communication format specified by the design software, a third-party plug-in required design page for building a third-party model is built;
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 comprises display data information of the third-party model on the design page, and the rear-end rendering data comprises insertion, display and editing data information of the 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 plug-in registers the metadata of the third party plug-in a plug-in registration center of the design software, and the third party plug-in performs Webhook registration.
In another embodiment, the third party plug-in registering metadata of the third party plug-in at a plug-in registry of the design software comprises:
acquiring registration information of the third-party plug-in a plug-in registration center of the design software;
acquiring metadata registered by the third-party plug-in according to the 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 services provided by the third-party plug-in;
and constructing a registered third-party plug-in registration list of the registered third-party plug-ins according to the information that the third-party plug-ins finish the registration in the plug-in registration center of the design software.
5. The method of claim 3, wherein the third party add-in performs Webhook registration, comprising:
acquiring information of Webhook registration of a third-party plug-in;
and acquiring an access path and configuration authority of the third-party plug-in according to the information of Webhook registration of the third-party plug-in.
In another embodiment, the designing, according to the registration information of the third-party plug-in and the list information of the third-party plug-in that is generated and registered, an iframe container into which the third-party model is inserted, and acquiring the information of the iframe container into which the third-party model is inserted includes:
designing an iframe container inserted by the third-party model according to the registration information of the third-party plug-in and list information of the third-party plug-in after registration is completed, wherein the designing of the iframe container inserted by the third-party model comprises the following steps: 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;
acquiring messages sent by an iframe container according to the design information of the iframe container of the third-party model, wherein the messages sent by the iframe container comprise messages inserted into the third-party model and messages not inserted into the third-party model;
and analyzing third-party model data 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:
the design software internally defines a plurality of display formats which are matched with the third-party model format;
acquiring format information of the inserted third-party model;
and the design software displays the third-party model by using a display format matched with the third-party model.
In another embodiment, the inserting the iframe container information according to the third party model, and acquiring and editing the parameter information of the third party model includes:
selecting any inserted third party model;
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.
Based on another aspect of the embodiments 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 third-party plug-in required design page for building a third-party model according to a communication format specified by design software;
the plug-in registration module is used for acquiring the registration information of the third-party plug-in according to the design page required by the built third-party plug-in and generating the list information of the registered third-party plug-in;
the model insertion module is used for 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 which the registration is completed, and acquiring the information of the third-party model inserted into the iframe container;
and the model display and edit module is used for obtaining the format of the third-party model according to the iframe container information inserted into 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 iframe container information inserted into the third-party model.
In accordance with yet another aspect of an embodiment of the present invention, an electronic device is disclosed, the electronic device comprising one or more processors and memory, the memory for storing one or more programs; when executed by the processor, the one or more programs cause the processor to implement the methods for inserting, displaying, and editing third-party models in design software provided by the embodiments of the present invention.
Based on still another aspect of the embodiments of the present invention, a computer-readable storage medium storing a computer program is disclosed, where the computer program, when executed, implements a method for inserting, displaying, and editing a third-party model in design software provided by the embodiments of the present invention.
In the embodiment of the application, a third-party plug-in required design page for constructing a third-party model is established 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 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 which registration is completed and is generated, and acquiring 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 problem that present design software is not enough to the show of third party model and editing capacity can be solved to this application, satisfy the user and realize the editing requirement of cross platform cross software to the third party model, this application is under the prerequisite of not modifying third party model format, support to insert the third party model, show and the ability of editing once more, and simultaneously, the third party model can also enjoy the whole abilities that design software self supported after being inserted, realize two-way getting through on the data and design functional mutual enabling, the application scene of third party model has greatly been expanded.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a diagram of an application scenario of a method for inserting, displaying, and editing a third-party model in design software according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for inserting, displaying, and editing a third-party model in design software according to an embodiment of the present application;
FIG. 3 is a schematic structural diagram of an apparatus 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 present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The three-dimensional models are polygonal representations of objects and are usually displayed by computers or other video equipment, generally, each three-dimensional model is provided with corresponding three-dimensional model design software, and compared with the three-dimensional model generated by a certain three-dimensional model design software, the three-dimensional models in other formats or the three-dimensional models generated by other three-dimensional model design software belong to third-party models.
The method for inserting, displaying and editing the third-party model in the design software can be applied to the application environment shown in fig. 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 method for inserting, displaying and editing the third-party model in the design software is completed by the interaction between the terminal 102 and the server 104.
Wherein the terminal 102 and the server 104 can communicate through a network.
The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, the terminal 102 needs to have a function of building a third-party plug-in required design page for building a third-party model, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in FIG. 2, a method for inserting, exposing, and editing third party models in design software is provided. The embodiment is mainly illustrated by applying the method to the terminal 102 in fig. 1.
Refer to fig. 2, which illustrates an exemplary flow of a method for inserting, displaying, and editing a third-party model in design software to which the embodiments of the present application may be applied.
As shown in fig. 2, in step 210, a third-party plug-in design page for building a third-party model is built according to a communication format specified by the 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, and 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, a placement position of 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 finished, and the third-party model is required to be edited on the third-party plug-in when the design software edits the third-party model.
Specifically, the page required for building the third-party plug-in for constructing the third-party model is a page for designing and editing the third-party model provided by the design software for the third-party plug-in. Therefore, the design page needs to meet the communication format of the design software, so that the third-party model designed by the third-party plug-in can meet the format requirement of the design software, and the third-party model generated by the third-party plug-in can also meet the standard data type and the adaptive display format provided by the design software. Due to different application scenes and different design visual angles, the requirements on the fineness of the display of the third-party model are different, at the moment, the design software needs to introduce a design page as uniform quantitative expression according to the different application scenes and the design visual angles, meanwhile, the parameters of the design page are transmitted to the third-party plug-in, at the moment, the third-party plug-in needs to construct the third-party models with different fineness according to the design page and return the third-party models to the design software through the design page, and therefore the automatic setting of the fineness of the third-party models and the smooth display of the third-party models in the design software are achieved.
Specifically, in an 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 messages to the design software when appropriate, or receiving messages from the design software for performing insertion, display or editing operations on the third-party model in the design software, and the communication format specified by the design software is a guarantee for realizing data received by the design software.
According to a communication format specified by the design software, a third-party plug-in required design page for building a third-party model is built; specifically, a design page required by the third-party plug-in is a platform for the third-party plug-in to design a third-party model, and the design page can meet the requirements of the third-party plug-in and the requirements of communication with the design software, so that the third-party model designed by the third-party plug-in can be adapted to 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 encoding information of the third-party model, and is a unique identifier for the design software to acquire third-party model data from the service provided by the third-party model. In order to provide a high-performance data production service of the third-party model, the data of the third-party model can be stored in the database in advance and does not need to be generated by the real-time modeling of the third-party plug-in. After the data of the third-party model is pre-stored in the database, in order to generate a globally unique third-party model index, if the data is stored in an RMDB (Relational database) database, the third-party model index can use the primary key of the database table; if stored in the NoSQL key-value database, the third party model index can 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 comprises display data information of the third-party model on the design page, and the rear-end rendering data comprises insertion, display and editing data information of the design software on the third-party model.
In step 220, according to the design page required by the built third-party plug-in, acquiring the registration information of the third-party plug-in, and generating the list information of the registered third-party plug-in.
Specifically, after the design software completes the construction of the design page required by the third-party plug-in, the design page can be adapted to the direction of the third-party plug-in, that is, the design page can meet the requirement of the third-party plug-in for designing the third-party model, 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 designing the third-party plug-in, and the third-party plug-in is a main element of the design page, therefore, the registered third-party plug-in can be designed on the design platform only by registering the third-party plug-in, because the third-party model has various formats, one or more third-party models can correspond to one or more third-party plug-ins, therefore, after the registration of the third-party plug-in is completed, the design software will generate a list of all third party plug-ins that have completed registration.
Specifically, in an embodiment of the present application, the acquiring the registration information of the third party plug-in includes: and the third party plug-in registers the metadata of the third party plug-in a plug-in registration center of the design software, and the third party plug-in performs Webhook registration.
In particular, Webhook is a way for applications to provide real-time information to other applications, once the information is generated, it immediately sends the data as it is generated and to the already registered applications, which means that the data is available in real time. Using a Webhook is to prepare a URL (Uniform Resource Locator) for Webhook to send requests, which is usually done by background pages and/or APIs (Application Programming Interface), which means that the Application needs to set a URL that can be accessed through the public network.
Specifically, after the third-party plug-in registers the 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 to enable the third-party model to be called into the design software, that is, Webhook realizes what path the third-party model passes through to trigger the third-party plug-in to operate the third-party model, so that the third-party model is inserted into the design software. After the third-party plug-in registers the metadata of the third-party plug-in the plug-in registration center of the design software, the third-party plug-in can use the design page to design the third-party model, but only after the third-party plug-in performs the Webhook registration, the third-party plug-in can provide the third-party model designed by the third-party plug-in for the design software to normally operate, so that the Webhook registration performed by the third-party plug-in is a necessary condition for the third-party plug-in to normally operate on the design software.
Specifically, in an embodiment of the present application, the registering, by the third party plug-in, metadata of the third party plug-in a plug-in registry of the design software includes:
acquiring registration information of the third-party plug-in a plug-in registration center of the design software;
acquiring metadata registered by the third-party plug-in according to the 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 services provided by the third-party plug-in;
and constructing a registered third-party plug-in registration list of the registered third-party plug-ins according to the information that the third-party plug-ins finish the registration in the plug-in registration center of the design software.
Specifically, in an embodiment of the present application, the Webhook registration performed by the third-party plug-in includes:
acquiring information of Webhook registration of a third-party plug-in;
and acquiring an access path and configuration authority of the third-party plug-in according to the information of Webhook registration of the third-party plug-in.
Specifically, the types of services that Webhook can provide include, but are not limited to, acquiring a third party model, deleting the third party model, and copying the third party model, and may also be other types that are customized, and Webhook is essentially a function mapped by a URL and a message type, and each message type corresponds to 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 which registration is completed, an iframe container into which the third-party model is inserted is designed, and the information that the third-party model is inserted into the iframe container is acquired.
Specifically, after the registration information of the third-party plug-in and the list information of the registered third-party plug-in are generated, it is described that the design page has completed preparation for receiving the third-party plug-in to design the third-party model, and the design software also has the condition for inserting the third-party model, so that the specific action of inserting, displaying or editing the third-party model in the design software can be performed.
Specifically, the iframe container is an HTML tag, and functions as a document in a document or a floating frame, the iframe element creates an inline frame containing another document, and one inline frame is used to embed another document in the current HTML document.
Specifically, in an embodiment of the present application, the designing 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 has completed registration, and acquiring the information of the iframe container into which the third party model is inserted includes:
designing an iframe container inserted by the third-party model according to the registration information of the third-party plug-in and list information of the third-party plug-in after registration is completed, wherein the designing of the iframe container inserted by the third-party model comprises the following steps: 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 dragging, adaptive size and switchable container capability of the iframe container on the design page.
Acquiring messages sent by an iframe container according to the design information of the iframe container of the third-party model, wherein the messages sent by the iframe container comprise messages inserted into the third-party model and messages not inserted into the third-party model; specifically, after the iframe container is designed, 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 the message to the design software, namely, the design software is notified to prepare for receiving the third-party model sent by the third-party plug-in.
And analyzing third-party model data 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 third-party model data 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, inserting the iframe container information according to the third-party model, obtaining a format of the third-party model, obtaining 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 parameter information of the third-party model.
Specifically, the design software can only display and edit the inserted third-party model, and the display of the third-party model by the design software 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 an 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 the display information of the third party model according to the format of the third party model includes:
the design software internally defines a plurality of display formats which are matched with the third-party model format;
acquiring format information of the inserted third-party model; specifically, the third-party model informs the design software of the format of the inserted third-party model when the design software is inserted.
And the design software displays the third-party model by using a display format matched with the third-party model. Specifically, the design software respectively performs model display and position matrix update according to the acquired format of the third-party model, wherein the position matrix is a 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 is processed as the same data object as the model of the design software itself, so that the imported third-party model automatically acquires a plurality of editing and using capabilities of the built-in model of the design software, such as moving, rotating, scaling, mirroring, array and the like.
Specifically, in an embodiment of the present application, the inserting the iframe container information according to the third party model, and acquiring and editing the parameter information of the third party model includes:
selecting any inserted third party model;
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 inserted third-party model is selected in the design software, when an edit button of the third-party model is clicked, the design software opens the design panel of the third-party plug-in again for modifying parameters, and after the 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 third-party plug-in needed design page for building 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 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 which registration is completed and is generated, and acquiring 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 problem that present design software is not enough to the show of third party model and editing capacity can be solved to this application, satisfy the user and realize the editing requirement of cross platform cross software to the third party model, this application is under the prerequisite of not modifying third party model format, support to insert the third party model, show and the ability of editing once more, and simultaneously, the third party model can also enjoy the whole abilities that design software self supported after being inserted, realize two-way getting through on the data and design functional mutual enabling, the application scene of third party model has greatly been expanded.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Fig. 3 is a schematic structural diagram of an apparatus for inserting, displaying, and editing a third party model in design software according to an embodiment of the present application, where as shown in fig. 3, the apparatus 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 inserting module and a model displaying and editing module;
the page building module is used for building a third-party plug-in required design page for building a third-party model according to a communication format specified by design software;
the plug-in registration module is used for acquiring the registration information of the third-party plug-in according to the design page required by the built third-party plug-in and generating the list information of the registered third-party plug-in;
the model insertion module is used for 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 which the registration is completed, and acquiring the information of the third-party model inserted into the iframe container;
and the model display and edit module is used for obtaining the format of the third-party model according to the iframe container information inserted into 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 iframe container information inserted into the third-party model.
Specifically, in another embodiment of the present application, the page building module is configured to obtain a communication format specified by design software; according to a communication format specified by the design software, a third-party plug-in required design page for building a third-party model is built; 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 comprises display data information of the third-party model on the design page, and the rear-end rendering data comprises insertion, display and editing data information of the 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 registration center of the design software; acquiring metadata registered by the third-party plug-in according to the 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 services provided by the third-party plug-in; and constructing a registered third-party plug-in registration list of the registered third-party plug-ins according to the information that the third-party plug-ins finish the registration 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 about Webhook registration performed by a third-party plug-in; and acquiring an access path and configuration authority of the third-party plug-in according to the information of Webhook registration of the third-party plug-in.
Specifically, in another embodiment of the present application, the model insertion module is configured to design an iframe container inserted by the third party model according to the registration information of the third party plug-in and list information of the third party plug-in that is generated and registered, and the designing the iframe container inserted by the third party model 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; acquiring messages sent by an iframe container according to the design information of the iframe container of the third-party model, wherein the messages sent by the iframe container comprise messages inserted into the third-party model and messages not inserted into the third-party model; and analyzing third-party model data 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 display and edit module is configured to define a plurality of display formats adapted to the third-party model format inside the design software; acquiring format information of the inserted third-party model; and the design software displays the third-party model by using a display format matched with the third-party model.
Specifically, in another embodiment of the present application, the model display and edit module is configured to select any inserted third-party model; 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 third-party plug-in needed design page for building the third-party model according to a communication format specified by the design software through a page building module; acquiring registration information of the third-party plug-in through a plug-in registration module, and generating list information of the registered third-party plug-in; designing an iframe container into which the third-party model is inserted by a model insertion module according to the registration information of the third-party plug-in and list information of the third-party plug-in after registration is completed, and acquiring the information of the iframe container into which the third-party model is inserted; the method comprises the steps of obtaining the format of a third-party model through a model display and editing module, obtaining display information of the third-party model according to the format of the third-party model, and/or obtaining and editing parameter information of the third-party model. The problem that present design software is not enough to the show of third party model and editing capacity can be solved to this application, satisfy the user and realize the editing requirement of cross platform cross software to the third party model, this application is under the prerequisite of not modifying third party model format, support to insert the third party model, show and the ability of editing once more, and simultaneously, the third party model can also enjoy the whole abilities that design software self supported after being inserted, realize two-way getting through on the data and design functional mutual enabling, the application scene of third party model has greatly been expanded.
For specific limitations of the device for inserting, displaying, and editing the third-party model in the design software, reference may be made to the above limitations of the method for inserting, displaying, and editing the third-party model in the design software, and details are not described herein again. The modules in the device for inserting, displaying and editing the third-party model in the design software can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In particular, according to an embodiment of the present disclosure, as shown in fig. 4, the present disclosure discloses an electronic device comprising one or more processors and memory, the 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 according to the embodiment of the invention.
In particular, according to the embodiments of the present disclosure, the method for inserting, displaying, and editing the third-party model in the design software described in any of the above embodiments 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 third-party models in design software. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium.
The one or more programs are stored in a program in a read only memory ROM or a program in a random access memory RAM to perform various appropriate actions and processes. In the RAM, a software program for the server to perform a corresponding service is included, and various programs and data required for the driving operation of the vehicle are also included. The server and its controlled hardware devices, a read only memory ROM, a random access memory RAM are connected to each other through 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, and the like; an output section including a cathode ray tube CRT, a liquid crystal display LCD, and the like, a speaker, and the like; and a communication section including a network interface card such as a LAN card, a modem, or the like. The communication section performs communication processing via a network such as the internet. The driver is also connected to the input/output interface as needed. A removable medium such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive as necessary, so that a computer program read out therefrom is mounted in the memory as necessary.
In particular, according to the embodiments of the present disclosure, the method for inserting, displaying, and editing the third-party model in the design software described in any of the above embodiments 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 third-party models in design software. In such an embodiment, the computer program may be downloaded and installed from a network via the communication section, and/or installed from a removable medium.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor. The names of these units or modules do not in some cases constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (11)

1. A method for inserting, displaying and editing a third-party model in design software is characterized by comprising the following steps:
according to a communication format specified by design software, a third-party plug-in required design page for building a third-party model is built;
acquiring registration information of the third-party plug-in according to the design page required by the built third-party plug-in, and generating list information of the registered third-party plug-in;
designing 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 which registration is completed and is generated, and acquiring information of the third-party model inserted into the iframe container;
and according to the third-party model inserting the iframe container information, obtaining the format of the third-party model, and according to the format of the third-party model, obtaining the display information of the third-party model, and/or according to the third-party model inserting the iframe container information, obtaining and editing the parameter information of the third-party model.
2. The method according to claim 1, wherein the building of 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;
according to a communication format specified by the design software, a third-party plug-in required design page for building a third-party model is built;
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 comprises display data information of the third-party model on the design page, and the rear-end rendering data comprises insertion, display and editing data information of the design software on the third-party model.
3. The method of claim 1, wherein obtaining registration information for a third party add-in comprises: and the third party plug-in registers the metadata of the third party plug-in a plug-in registration center of the design software, and the third party plug-in performs Webhook registration.
4. The method of claim 3, wherein the third party plug-in registering metadata of the third party plug-in at a plug-in registry of the design software comprises:
acquiring registration information of the third-party plug-in a plug-in registration center of the design software;
acquiring metadata registered by the third-party plug-in according to the 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 services provided by the third-party plug-in;
and constructing a registered third-party plug-in registration list of the registered third-party plug-ins according to the information that the third-party plug-ins finish the registration in the plug-in registration center of the design software.
5. The method of claim 3, wherein the third party add-in performs Webhook registration, comprising:
acquiring information of Webhook registration of a third-party plug-in;
and acquiring an access path and configuration authority of the third-party plug-in according to the information of Webhook registration of the third-party plug-in.
6. The method of claim 1, wherein the designing 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 which registration is completed, and the obtaining information of the iframe container into which the third-party model is inserted comprises:
designing an iframe container inserted by the third-party model according to the registration information of the third-party plug-in and list information of the third-party plug-in after registration is completed, wherein the designing of the iframe container inserted by the third-party model comprises the following steps: 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;
acquiring messages sent by an iframe container according to the design information of the iframe container of the third-party model, wherein the messages sent by the iframe container comprise messages inserted into the third-party model and messages not inserted into the third-party model;
and analyzing third-party model data 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 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 comprises:
the design software internally defines a plurality of display formats which are matched with the third-party model format;
acquiring format information of the inserted third-party model;
and the design software displays the third-party model by using a display format matched with the third-party model.
8. The method of claim 1, wherein the inserting the iframe container information according to the third party model, and obtaining and editing parameter information of the third party model comprises:
selecting any inserted third party model;
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 third-party plug-in required design page for building a third-party model according to a communication format specified by design software;
the plug-in registration module is used for acquiring the registration information of the third-party plug-in according to the design page required by the built third-party plug-in and generating the list information of the registered third-party plug-in;
the model insertion module is used for 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 which the registration is completed, and acquiring the information of the third-party model inserted into the iframe container;
and the model display and edit module is used for obtaining the format of the third-party model according to the iframe container information inserted into 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 iframe container information inserted into the third-party model.
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 of any one of claims 1 to 8.
CN202110812780.XA 2021-07-19 2021-07-19 Method and device for inserting, displaying and editing third-party model in design software Active CN113535304B (en)

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 true CN113535304A (en) 2021-10-22
CN113535304B 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)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN103092629A (en) * 2013-02-25 2013-05-08 用友软件股份有限公司 Interface packaging system and interface packaging method
US20130179774A1 (en) * 2005-12-05 2013-07-11 Sursen Corp. Method and apparatus for processing document conforming to docbase standard
US20130283228A1 (en) * 2010-12-21 2013-10-24 Mingke Sun SOA-based Integration Method and System for 3D Design System
CN105956894A (en) * 2016-04-15 2016-09-21 山东建筑大学 Model designing method and model designing system
CN109948201A (en) * 2019-03-04 2019-06-28 中国人民解放军国防大学联合作战学院 A kind of model component management system and scheduling implementation method based on platform and plug-in unit
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 中国电子科技集团公司第二十八研究所 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
US20210136544A1 (en) * 2019-11-06 2021-05-06 Beijing Xiaomi Intelligent Technology Co., Ltd. Method for acquiring push information, method and apparatus for transmitting push information
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

Patent Citations (14)

* Cited by examiner, † Cited by third party
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
US20130283228A1 (en) * 2010-12-21 2013-10-24 Mingke Sun SOA-based Integration Method and System for 3D Design System
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 kind of model component management system and scheduling implementation method based on platform and plug-in unit
US20210136544A1 (en) * 2019-11-06 2021-05-06 Beijing Xiaomi Intelligent Technology Co., Ltd. Method for acquiring push information, method and apparatus for transmitting push information
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 中国电子科技集团公司第二十八研究所 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)

* Cited by examiner, † Cited by third party
Title
巩瑞杰;陈彦亭;常龙新;陈越;庞晔斌;: "基于3DMine的Web网页三维可视化插件设计与应用", 现代矿业, no. 10 *

Also Published As

Publication number Publication date
CN113535304B (en) 2023-08-25

Similar Documents

Publication Publication Date Title
US8010624B2 (en) Dynamic composition for image transmission
KR101130484B1 (en) Common charting using shapes
US6601087B1 (en) Instant document sharing
AU783068B2 (en) Management of source and derivative image data
CN103092612B (en) Realize method and the electronic installation of Android operation system 3D desktop pinup picture
CN109992248B (en) Method, device and equipment for realizing voice application and computer readable storage medium
US20110161847A1 (en) System and method for integrating and publishing pages of content
US20040268299A1 (en) Application user interface template with free-form layout
CN103797518A (en) Method and system for personalizing images rendered in scenes for personalized customer experience
US20160196008A1 (en) Implementing desktops on a mobile terminal
CN106791953A (en) Many player control methods, server and client
TW202004674A (en) Method, device and equipment for showing rich text on 3D model
CN110930325B (en) Image processing method and device based on artificial intelligence and storage medium
DE102016015381A1 (en) Using Bloom filters to simplify the expansion and subdivision of a dynamic font
WO2018226456A1 (en) System and method for application navigation
EP4080507A1 (en) Method and apparatus for editing object, electronic device and storage medium
CN111951356A (en) Animation rendering method based on JSON data format
CN116775916A (en) Multimedia content playing method, device, equipment and storage medium
KR101815924B1 (en) Online document editing service apparatus that provides a collaborative environment so that a plurality of users can create electronic documents online and operating method thereof
CN113535304B (en) Method and device for inserting, displaying and editing third-party model in design software
CN113282852A (en) Method and device for editing webpage
WO2023050744A1 (en) Map editing method, system, apparatus, computer device, program product, and storage medium
JP2004234380A (en) Table display switching method, text data conversion program, and tagging program
US20040189684A1 (en) Method and apparatus for guiding a less experienced user
CN113111035B (en) Special effect video generation method and equipment

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