Unlock instant, AI-driven research and patent intelligence for your innovation.

Component object creation and interface method calling method, terminal and storage device

A component object and method call technology, applied in the CAD field, can solve problems such as insufficient support for custom entities, difficult upgrade and maintenance, cumbersome implementation, etc., to reduce development complexity and upgrade costs, reduce workload and interaction difficulty, and enable Scalable effects

Active Publication Date: 2022-02-15
ZWCAD SOFTWARE CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Tight coupling between modules makes it difficult to program, upgrade and maintain
The number of entities in CAD is relatively large, and the number of corresponding entity classes is also relatively large. Because displaying attribute information requires creating entity classes and calling corresponding methods to obtain attribute values, this leads to tight coupling between business modules and entity classes. The implementation process is cumbersome, and the later upgrade and maintenance are difficult;
[0005] Insufficient support for custom entities and poor scalability
User-defined entities during secondary development, these entities also need to display attribute information, because the entity class is not defined by the CAD platform software, it is difficult to integrate its attribute information into the attribute panel to display, a special mechanism needs to be established, and the scalability is relatively Difference
[0006] It is difficult to use across programming languages, and data interaction is inconvenient
Many languages ​​are involved in the CAD development process, such as C++, C, VB, C#, Lisp, etc. Different programming languages ​​need to obtain entity attribute information for processing. Since entity classes are modules written in C++ language, other programming language modules When obtaining entity attribute information, the class method needs to be encapsulated and exposed, which is cumbersome to implement

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Component object creation and interface method calling method, terminal and storage device
  • Component object creation and interface method calling method, terminal and storage device
  • Component object creation and interface method calling method, terminal and storage device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] Below, the present invention will be further described in conjunction with the accompanying drawings and specific implementation methods. It should be noted that, under the premise of not conflicting, the various embodiments described below or the technical features can be combined arbitrarily to form new embodiments. .

[0027] see Figure 1 to Figure 5 , figure 1 It is a flowchart of an embodiment of the method for creating component objects and invoking interface methods in the present invention;

[0028] figure 2 It is a schematic diagram of an embodiment of the component technical solution in the component object creation and interface method calling method of the present invention; image 3 A flow chart of an embodiment for creating component objects and creating component objects in interface method calling methods of the present invention; Figure 4 It is a flowchart of an embodiment of component class interface information acquisition in the component obje...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a method for creating a component object and calling an interface method, a terminal, and a storage device. The method includes: S101: the component kernel module receives an instruction input by a business module, and when the instruction creates an interface for calling a component object, execute S102, or When the instruction is to call the component class method to call the interface, judge whether the preset structure of the component object is empty, if so, execute S104, if not, execute S103; S102: search for the component module according to the input component class identifier, and pass the component The module creates a component object; S103: Obtain component class interface information, and store the component class interface information in a preset structure; S104: Call the interface method by using the interface method attribute information obtained according to the interface method information. The invention realizes decoupling between business modules and entity classes, reduces development complexity and upgrade cost, has strong scalability, and greatly reduces workload and interaction difficulty.

Description

technical field [0001] The invention relates to the field of CAD, in particular to a component object creation and interface method calling method, a terminal and a storage device. Background technique [0002] The dynamic display of entity attribute information in CAD software requires the following steps: the attribute panel displays the corresponding attributes according to the selected entity. An entity, such as a straight line, needs to display other attributes different from circles, such as starting point coordinates, end point coordinates, line type, etc. [0003] After the entity is selected, the required entity object is directly created according to the ObjectId of the selected entity (recording the entity object handle information), and the preset attribute information to be displayed is obtained according to the entity type, and then the attribute information is traversed and called sequentially. The required entity object method obtains the attribute value, an...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/20
CPCG06F8/24
Inventor 李帅伟阳毅超王长民
Owner ZWCAD SOFTWARE CO LTD