CN106776994B - Application method and system of engineering symbols in engineering report forms and web pages - Google Patents

Application method and system of engineering symbols in engineering report forms and web pages Download PDF

Info

Publication number
CN106776994B
CN106776994B CN201611111435.9A CN201611111435A CN106776994B CN 106776994 B CN106776994 B CN 106776994B CN 201611111435 A CN201611111435 A CN 201611111435A CN 106776994 B CN106776994 B CN 106776994B
Authority
CN
China
Prior art keywords
engineering
symbol
symbols
information
definition information
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
Application number
CN201611111435.9A
Other languages
Chinese (zh)
Other versions
CN106776994A (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.)
Beijing Shenzhou Aerospace Software Technology Co.,Ltd.
Original Assignee
Beijing Shenzhou Aerospace Software 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 Beijing Shenzhou Aerospace Software Technology Co ltd filed Critical Beijing Shenzhou Aerospace Software Technology Co ltd
Priority to CN201611111435.9A priority Critical patent/CN106776994B/en
Publication of CN106776994A publication Critical patent/CN106776994A/en
Application granted granted Critical
Publication of CN106776994B publication Critical patent/CN106776994B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/81Indexing, e.g. XML tags; Data structures therefor; Storage structures

Abstract

The invention relates to an application method of engineering symbols in engineering reports and WEB pages, which is characterized in that a data string script of the engineering symbols is obtained from WEB or an application program, a WebService service of a server is called, structural information of the engineering symbols is obtained in an XML format, EMF graphic metafile is finally generated through component processing, and the file is stored in a corresponding form and is output according to a set display mode and position. The invention also discloses an application system of the engineering symbol in the engineering report and the webpage. The advantages of the invention are embodied in that: the invention can meet the requirement of a user to flexibly and rapidly design and apply the engineering symbols in a network information system, and can realize the online editing and browsing of graphs, characters, variables, expressions and the like related to the engineering symbols in a WEB page and an engineering report. The on-line design and engineering application of the engineering symbols are realized in a non-programming mode.

Description

Application method and system of engineering symbols in engineering report forms and web pages
Technical Field
The invention relates to application of an engineering symbol in a WEB webpage, in particular to an application method and system of the engineering symbol in an engineering report and the webpage.
Background
An engineering symbol is a graphic symbol used to express product design, product manufacturing requirements, and product functionality. The method has wide application in the fields of machinery, construction, metallurgy, chemical industry, electronics, aerospace and the like. The set of a group of symbols which can be composed of geometric figures (rectangles, circles, arcs and the like), special symbols, letters, numbers, Chinese characters and other characters and used for representing concepts, properties, parameters, operations and engineering object relations of engineering objects is often applied to card reports and technical drawings. With the rapid development of engineering informatization management level, enterprises have gradually become a normal state for browsing, editing engineering reports and electronic drawings in an information system, and then users have urgent needs for designing engineering symbols more conveniently and rapidly through a WEB page and applying the engineering symbols in the WEB page and the engineering reports.
At present, the engineering symbols are mainly applied to WEB pages by the following technical schemes:
by way of W3C through HTML + graphics images;
the mode of ActiveX + binary file is utilized;
the method for displaying the symbols is realized through technologies such as an Applet, ajax and the like;
and the SVG specification is used, and the display of the engineering symbols on the WEB is realized through an XML format.
The technical modes can solve the display and application of the engineering symbols in WEB to a certain extent, but the technical problems that the online editing capacity is weak, the engineering symbols cannot be configured in a non-programming mode, the mixed arrangement/equal ratio scaling of the pictures and the texts cannot be realized and the like cause that the technologies cannot be widely applied to an information system and the paperless design of the engineering symbols. The mode of HTML + graphic image realizes a static and non-editable icon which is loaded at one time, and can not meet the requirement of online editing of a user; although the mode of ActiveX + binary file partially realizes the requirement that the engineering symbol can be browsed and edited in the page, the application limit of the binary file in the WEB is very large, and the loading speed cannot meet the requirement of a user; the icons realized by the Applet and Ajax technologies are easy to distort when the size of the icons changes or rotates, and gradually lose vitality due to the limitation of speed and own software technology; although the requirement of a user is greatly met by using the SVG specification through an XML standard format, the SVG used for WEB has a main defect of low self-loading speed, so that the application of engineering symbols is influenced to a certain extent.
Disclosure of Invention
The invention aims to provide a method and a system for applying engineering symbols in engineering reports and web pages, which aim to overcome the defects in the prior art, effectively define expression variables in the engineering symbols and apply the expression variables and numerical values and characters in the symbols in a correlation manner.
In order to achieve the purpose, the invention discloses the following technical scheme:
an application method of engineering symbols in engineering reports and web pages comprises the following steps:
acquiring a data string script of the engineering symbol from a WEB or an application program, calling a WebService service of a server, acquiring structural information of the engineering symbol in an XML format, finally generating an EMF graphic metafile through processing of a component, storing the file in a corresponding form and outputting the file according to a set display mode and position.
Further, the method comprises the following specific steps:
and S1 engineering symbol information processing: the method comprises the steps that the definition information of the engineering symbols is stored by adopting a standard document of XML, the definition information of the engineering symbols obtains an engineering symbol definition information file in a corresponding XML format from a server in a WebService mode, the engineering symbol definition information file stores the engineering symbol definition information designed by a user in a structured mode, and the structure supports the storage of various symbol definition information in the same file and supports the nesting use of symbols;
storing the input parameters of the engineering symbols in a script file format, wherein the recorded contents comprise variable values and character contents in the engineering symbols, and the script format can accept the parameter values and characters of any external engineering symbols meeting the specification requirements;
and S2 engineering symbol generation: the WebService service provided by the server side obtains the definition information of the engineering symbols, the engineering symbols are defined by XML format files, the templates are analyzed in the program and the engineering icons are drawn by combining input parameter values, the EMF format picture files representing the engineering icons are finally output and used for various application scenes needing to display the icons, all the graphic elements need to be positioned by coordinates, the unit of the coordinates is pixel px, in the definition of the icons, the limitation and the positioning of the graphic size range are carried out by Rect attributes, the coordinate axis takes the lower left corner as the origin (0,0), the Rect attribute values are four integers and are separated by commas and respectively correspond to the left letter, the lower letter, the right and the upper top, the custom symbols are drawn into needed symbol pictures by analyzing the templates and the parameters by using simple graphic elements, the custom symbols comprise common graphic elements, and the common engineering symbols are combined and drawn by using the simple graphic elements, the graphic elements are not associated and are drawn independently, and the drawing sequence is performed according to the configuration sequence in the XML file and is drawn from top to bottom; the engineering symbols in the system are all self-defined symbols, and template files of the self-defined symbols are mainly used for storing detailed configuration information of various graphic elements; the method comprises the steps of analyzing the engineering symbol definition information by a data processing engine according to the specifications, recording detailed information of drawn engineering icon examples for recording example information of engineering icons and facilitating next calling and displaying, re-drawing and displaying engineering icon pictures by analyzing the information of the engineering icon examples by the engineering icon engine when calling again, describing the engineering icon examples by using a string of scripts with special marks as a recording method of engineering symbol input parameters, and defining the basic format of an input parameter file as follows:
#%TS;ID=;L=XX;H=XX;C=ParaCount;V1=A;V2=B;…%#
the meaning is as follows:
"; "is a separator;
"#%" is the start mark;
"TS" is a symbol identifier;
"ID" is the unique identification of the icon definition template; the ID or other uniqueness property of the symbolic object may be used;
l is an abbreviation of Length and represents the Length of the process symbol, and the Length value of the process symbol is equal after the equal sign, and the unit is millimeter or pixel;
h is an abbreviation of Height, represents the Height of the process symbol, and is equal to the Height value of the process symbol, and the unit is millimeter or pixel;
the symbol C is an abbreviation of Count (parameter number) and represents the number of parameter values of a subsequent process symbol, and the actual number of the parameter values is obtained after the symbol C is equal;
the' V1 ═ V2 ═ is parameter names, the number of parameters of each process symbol is different, the parameter names are also different, and the equal sign is the parameter value of the parameter;
"% #" is an end mark;
analyzing the acquired engineering symbol input parameter file by a data processing engine according to the above specifications to acquire related engineering symbol data information, transmitting all information to an engineering symbol generation engine after acquiring definition information and input parameters of engineering symbols, drawing the engineering symbol data received by the engineering symbol generation engine into an engineering symbol graph of an EMF vector graph by a drawing engine according to the acquired data parameters, storing the data of the engineering symbols in a metafile manner, and forming a complete engineering symbol database for engineering application;
s3 engineering notation insertion: and inserting required engineering symbols into the positions of the WEB page of the specified business object and the engineering report by the user according to the engineering symbol data in the database.
Furthermore, the content stored in the definition information file of the engineering symbol at least comprises parameter values, variables, expressions and relationship information files related to the engineering symbol.
Further, in step S2, the storage mode when the engineering symbols are stored in the metafile includes the local file, the binary byte stream, and the BASE64 stream.
The invention also discloses an application system of the engineering symbol in the engineering report and the webpage, which comprises the following steps:
the engineering symbol information processing module: the system comprises a server, a plurality of engineering symbol definition information files, a plurality of service servers and a plurality of service servers, wherein the engineering symbol definition information files are used for storing the definition information of engineering symbols by adopting a standard document of XML, the definition information of the engineering symbols obtains corresponding engineering symbol definition information files in the XML format from the server in a WebService mode, the engineering symbol definition information files store the engineering symbol definition information designed by a user in a structured mode, and the structure supports the storage of a plurality of symbol definition information in the same file and the nested use of the symbols; simultaneously, the input parameters of the engineering symbols are stored in a script file format, the recorded contents comprise variable values and character contents in the engineering symbols, and the script format can accept the parameter values and characters of any external engineering symbols meeting the specification requirements;
the engineering symbol generation module: comprises a data processing engine and an engineering symbol generating engine, a WebService service provided by a server side acquires definition information of engineering symbols,
the engineering symbols are defined by XML format files, a template is analyzed in a program and the engineering symbols are drawn by combining input parameter values, finally, the picture files representing the engineering symbols are output and used for various application scenes needing to display the icons, all the graphic elements need to be positioned by coordinates, the unit of the coordinates is a pixel px, in the definition of the icons, the limitation and the positioning of the graphic size range are carried out by a Rect attribute, a coordinate axis takes the lower left corner as an origin (0,0), the Rect attribute values are four integers which are separated by commas and respectively correspond to a left corner, a lower bottom corner, a right corner and an upper top, the custom symbols are drawn into needed symbol pictures by analyzing the template and the parameters by using simple graphic elements, the needed symbol pictures comprise common graphic elements, the common engineering symbols are drawn by combining the simple graphic elements, and no association relationship exists among the graphic elements, drawing independently, wherein the drawing sequence is carried out according to the configuration sequence in the XML file and is drawn from top to bottom; the engineering symbols in the system are all self-defined symbols, and template files of the self-defined symbols are mainly used for storing detailed configuration information of various graphic elements; the method comprises the steps of analyzing the engineering symbol definition information by a data processing engine according to the specifications, recording detailed information of drawn engineering icon examples for recording example information of engineering icons and facilitating next calling and displaying, re-drawing and displaying engineering icon pictures by analyzing the information of the engineering icon examples by the engineering icon engine when calling again, describing the engineering icon examples by using a string of scripts with special marks as a recording method of engineering symbol input parameters, and defining the basic format of an input parameter file as follows:
#%TS;ID=;L=XX;H=XX;C=ParaCount;V1=A;V2=B;…%#
the meaning is as follows:
"; "is a separator;
"#%" is the start mark;
"TS" is a symbol identifier;
"ID" is the unique identification of the icon definition template; the ID or other uniqueness property of the symbolic object may be used;
l is an abbreviation of Length and represents the Length of the process symbol, and the Length value of the process symbol is equal after the equal sign, and the unit is millimeter or pixel;
h is an abbreviation of Height, represents the Height of the process symbol, and is equal to the Height value of the process symbol, and the unit is millimeter or pixel;
the symbol C is an abbreviation of Count (parameter number) and represents the number of parameter values of a subsequent process symbol, and the actual number of the parameter values is obtained after the symbol C is equal;
the' V1 ═ V2 ═ is parameter names, the number of parameters of each process symbol is different, the parameter names are also different, and the equal sign is the parameter value of the parameter;
"% #" is an end mark;
analyzing the acquired engineering symbol input parameter file by a data processing engine according to the above specifications to acquire related engineering symbol data information, transmitting all information to an engineering symbol generation engine after acquiring definition information and input parameters of the engineering symbols, drawing the engineering symbol data received by the engineering symbol generation engine into engineering symbols in EMF format by a drawing engine according to the acquired data parameters, and storing the final engineering symbols in a metafile manner;
the engineering symbol database module: the system comprises a data storage module, an engineering symbol generation module and a database, wherein the data storage module is used for storing data generated by the engineering symbol generation module and forming the database;
the project report inserting module: the system is used for calling data in the engineering symbol database module, and a user can directly utilize the engineering symbol data in the database module in the own service field.
The application method and the system of the engineering symbols in the engineering report forms and the web pages have the following beneficial effects:
the invention can meet the requirement of a user to flexibly and rapidly design and apply the engineering symbols in a network information system, and can realize the online editing and browsing of graphs, characters, variables, expressions and the like related to the engineering symbols in a WEB page and an engineering report. The on-line design and engineering application of the engineering symbols are realized in a non-programming mode.
Drawings
Figure 1 is a schematic diagram of the structure of the present invention,
fig. 2 is a schematic diagram of engineering symbol generation.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The core technology of the invention is that the self-developed engineering symbol assembly is used for acquiring the definition information of the engineering symbol and the data information of the engineering symbol from a server, a data processing engine is used for analyzing the engineering symbol data information and the definition information file stored in an XML format, and finally the engineering symbol is displayed in a WEB page or an electronic engineering report form of a user in an EMF format, so that the user can dynamically design, quote, edit, browse and the like the symbol in an online non-programming mode, and meanwhile, the invention also supports the associated variables, characters, expressions and the like of the engineering symbol. The assembly has the characteristics of small volume, high execution speed, high flexibility and high interchangeability, the EMF graphic format and the characters are combined, the advanced graphic and symbol processing means is utilized to realize the equal scaling of the graphics and the symbols, and when the graphics and the symbols are scaled or rotated, the resolution is not reduced or the details are not blurred, and complex graphics can be drawn. The technical advantages enable the scheme to be completely suitable for WEB pages and engineering reports, enable the scheme to have strong flexibility, exchangeability, expandability and platform independence, and can be widely applied to engineering symbol management of various information management systems.
An application method of engineering symbols in engineering reports and web pages comprises the following steps:
acquiring a data string script of the engineering symbol from a WEB or an application program, calling a WebService service of a server, acquiring structural information of the engineering symbol in an XML format, finally generating an EMF graphic metafile through processing of a component, storing the file in a corresponding form and outputting the file according to a set display mode and position. The general scheme is shown in figure 1.
The method comprises the following specific steps:
and S1 engineering symbol information processing: the definition information file of the engineering symbol refers to a file for storing information such as shape, size, style, color, stroke and the like of the engineering symbol. The method stores the definition information of the engineering symbols by adopting a standard document of XML, the definition information of the engineering symbols obtains a corresponding engineering symbol definition information file in the XML format from a server in a WebService mode, the engineering symbol definition information file stores the engineering symbol definition information designed by a user in a structured mode, and the structure supports the storage of various symbol definition information in the same file and supports the nesting use of the symbols;
storing the input parameters of the engineering symbols in a script file format, wherein the recorded contents comprise variable values and character contents in the engineering symbols, and the script format can accept the parameter values and characters of any external engineering symbols meeting the specification requirements;
the invention provides a complete function and an editing interface for editing the data information of the engineering symbols, and can set and assign parameters, expressions and the like to the numerical values of the engineering symbols according to the business requirements.
And S2 engineering symbol generation: referring to fig. 2, a WebService service provided by a server obtains definition information of an engineering symbol, the engineering symbol is defined by using an XML format file, a template is analyzed in a program, an engineering icon is drawn by combining input parameter values, and a picture file in EMF format representing the engineering icon is finally output for various application scenes needing to display the icon, all graphic elements need to be positioned by coordinates, the unit of the coordinates is a pixel px, in the definition of the icon, the limitation and positioning of the graphic size range are performed by a Rect attribute, the coordinate axis uses the lower left corner as an origin (0,0), the Rect attribute value is four integers and is separated by a comma, for example: 12, 12, 60, 24, which correspond to left (x), bottom (y), right (m), top (n), respectively, the custom symbol uses simple graphic elements to draw a needed symbol picture through an analysis template and parameters, the custom symbol comprises common graphic elements (attributes, characters, straight lines, circles, rectangles, arcs, and the like), the common engineering symbols are drawn by combining the simple graphic elements, the graphic elements have no association relationship and are drawn independently, and the drawing sequence is drawn according to the configuration sequence in the XML file from top to bottom; the engineering symbols in the system are all self-defined symbols, and template files of the self-defined symbols are mainly used for storing detailed configuration information of various graphic elements; the engineering symbol definition information is analyzed by a data processing engine according to the above specification, meanwhile, the engineering icon can only be displayed by using a picture, but because the icon example picture generated by the engineering icon template is inconvenient to persist with the content of mixed image-text, in order to record the example information of the engineering icon and facilitate the next call and display, the detailed information of the drawn engineering icon example needs to be recorded, when the engineering icon picture is called again, the information of the engineering icon example is analyzed by the engineering icon engine to draw and display the engineering icon picture again, a string of scripts with special marks is used as a recording method of the engineering symbol input parameters to describe the engineering icon example, and the basic format of the input parameter file is defined as follows:
#%TS;ID=;L=XX;H=XX;C=ParaCount;V1=A;V2=B;…%#
the meaning is as follows:
"; "is a separator;
"#%" is the start mark;
"TS" is a symbol identifier;
"ID" is the unique identification of the icon definition template; the ID or other unique property (e.g., Code) of the symbolic object may be used;
l is an abbreviation of Length and represents the Length of the process symbol, and the Length value of the process symbol is equal after the equal sign, and the unit is millimeter or pixel;
h is an abbreviation of Height, represents the Height of the process symbol, and is equal to the Height value of the process symbol, and the unit is millimeter or pixel;
the symbol C is an abbreviation of Count (parameter number) and represents the number of parameter values of a subsequent process symbol, and the actual number of the parameter values is obtained after the symbol C is equal;
the' V1 ═ V2 ═ is parameter names, the number of parameters of each process symbol is different, the parameter names are also different, and the equal sign is the parameter value of the parameter;
"% #" is an end mark;
analyzing the acquired engineering symbol input parameter file by a data processing engine according to the above specifications to acquire related engineering symbol data information, transmitting all information to an engineering symbol generation engine after acquiring definition information and input parameters of engineering symbols, drawing the engineering symbol data received by the engineering symbol generation engine into an engineering symbol graph of an EMF vector graph by a drawing engine according to the acquired data parameters, storing the data of the engineering symbols in a metafile manner, and forming a complete engineering symbol database for engineering application;
s3 engineering notation insertion: and inserting required engineering symbols into the positions of the WEB page of the specified business object and the engineering report by the user according to the engineering symbol data in the database.
The invention adopts a configurable mode of zero programming to realize the design and application of the engineering symbols in WEB, provides a complete engineering symbol design application interface for users, and the users can realize the design of the symbols by defining the data of the engineering symbol information without code development.
In the invention, the content stored in the definition information file of the engineering symbol at least comprises parameter values, variables, expressions and relationship information files related to the engineering symbol.
In step S2 of the present invention, the storage method when the project symbol is stored as the metafile includes the local file, the binary byte stream, and the BASE64 stream.
The invention also discloses an application system of the engineering symbol in the engineering report and the webpage, which comprises the following steps:
the engineering symbol information processing module: the system comprises a server, a plurality of engineering symbol definition information files, a plurality of service servers and a plurality of service servers, wherein the engineering symbol definition information files are used for storing the definition information of engineering symbols by adopting a standard document of XML, the definition information of the engineering symbols obtains corresponding engineering symbol definition information files in the XML format from the server in a WebService mode, the engineering symbol definition information files store the engineering symbol definition information designed by a user in a structured mode, and the structure supports the storage of a plurality of symbol definition information in the same file and the nested use of the symbols; simultaneously, the input parameters of the engineering symbols are stored in a script file format, the recorded contents comprise variable values and character contents in the engineering symbols, and the script format can accept the parameter values and characters of any external engineering symbols meeting the specification requirements;
the engineering symbol generation module: comprises a data processing engine and an engineering symbol generating engine, a WebService service provided by a server side acquires definition information of engineering symbols,
the engineering symbols are defined by XML format files, a template is analyzed in a program and the engineering symbols are drawn by combining input parameter values, finally, the picture files representing the engineering symbols are output and used for various application scenes needing to display the icons, all the graphic elements need to be positioned by coordinates, the unit of the coordinates is a pixel px, in the definition of the icons, the limitation and the positioning of the graphic size range are carried out by a Rect attribute, a coordinate axis takes the lower left corner as an origin (0,0), the Rect attribute values are four integers which are separated by commas and respectively correspond to a left corner, a lower bottom corner, a right corner and an upper top, the custom symbols are drawn into needed symbol pictures by analyzing the template and the parameters by using simple graphic elements, the needed symbol pictures comprise common graphic elements, the common engineering symbols are drawn by combining the simple graphic elements, and no association relationship exists among the graphic elements, drawing independently, wherein the drawing sequence is carried out according to the configuration sequence in the XML file and is drawn from top to bottom; the engineering symbols in the system are all self-defined symbols, and template files of the self-defined symbols are mainly used for storing detailed configuration information of various graphic elements; the method comprises the steps of analyzing the engineering symbol definition information by a data processing engine according to the specifications, recording detailed information of drawn engineering icon examples for recording example information of engineering icons and facilitating next calling and displaying, re-drawing and displaying engineering icon pictures by analyzing the information of the engineering icon examples by the engineering icon engine when calling again, describing the engineering icon examples by using a string of scripts with special marks as a recording method of engineering symbol input parameters, and defining the basic format of an input parameter file as follows:
#%TS;ID=;L=XX;H=XX;C=ParaCount;V1=A;V2=B;…%#
the meaning is as follows:
"; "is a separator;
"#%" is the start mark;
"TS" is a symbol identifier;
"ID" is the unique identification of the icon definition template; the ID or other uniqueness property of the symbolic object may be used;
l is an abbreviation of Length and represents the Length of the process symbol, and the Length value of the process symbol is equal after the equal sign, and the unit is millimeter or pixel;
h is an abbreviation of Height, represents the Height of the process symbol, and is equal to the Height value of the process symbol, and the unit is millimeter or pixel;
the symbol C is an abbreviation of Count (parameter number) and represents the number of parameter values of a subsequent process symbol, and the actual number of the parameter values is obtained after the symbol C is equal;
the' V1 ═ V2 ═ is parameter names, the number of parameters of each process symbol is different, the parameter names are also different, and the equal sign is the parameter value of the parameter;
"% #" is an end mark;
analyzing the acquired engineering symbol input parameter file by a data processing engine according to the above specifications to acquire related engineering symbol data information, transmitting all information to an engineering symbol generation engine after acquiring definition information and input parameters of the engineering symbols, drawing the engineering symbol data received by the engineering symbol generation engine into engineering symbols in EMF format by a drawing engine according to the acquired data parameters, and storing the final engineering symbols in a metafile manner;
the engineering symbol database module: the system comprises a data storage module, an engineering symbol generation module and a database, wherein the data storage module is used for storing data generated by the engineering symbol generation module and forming the database;
the project report inserting module: the system is used for calling data in the engineering symbol database module, and a user can directly utilize the engineering symbol data in the database module in the own service field.
The system of the invention provides a large number of engineering symbols for engineering application, forms a complete engineering symbol database, and users can directly use the engineering symbols in the service field of the users, thereby reducing the time for designing the engineering symbols.
The engineering symbol generation module can work in the form of a component, and the component comprises a data processing engine and an engineering symbol generation engine, and is used for processing engineering symbol data and finally generating engineering symbols. The set of components can be installed at a client to support business application of project reports to project symbols. And the method can also be deployed to a server in a Rest service form to realize comprehensive application in WEB pages and forms. The set of components really realizes the platform independence and the expandability of the scheme by utilizing the flexibility and the usability of the ActiveX and combining the image symbol processing technology.
The engineering symbol generation module of the invention has the following characteristics:
(1) the equal scaling of the graphics and the characters is realized by utilizing an advanced graphic symbol processing means, so that the graphics and the characters can be well mixed with the graphics and texts; when the graph is zoomed or rotated, the graph can not reduce the resolution or obscure the details and can draw complex graphs, thereby achieving the aim of drawing and obtaining.
(2) The advanced drawing engine is adopted to improve the generation speed and the storage mode of the engineering symbols. The engineering symbols required by the symbols can be quickly generated through an efficient engine, the engineering symbols can be stored in various formats, and cross-system and cross-platform engineering symbol application is facilitated.
(3) The method supports the processing and operation of engineering symbol associated variables, characters, expressions and the like, and expands the design and application capability of the system to complex engineering symbols. The application range of the design scheme in the engineering field is improved, and the design scheme can be widely applied to the fields of engineering reports, web pages, CAD tools and the like.
The foregoing is only a preferred embodiment of the present invention and is not limiting thereof; it should be noted that, although the present invention has been described in detail with reference to the above embodiments, those skilled in the art will understand that the technical solutions described in the above embodiments can be modified, and some or all of the technical features can be equivalently replaced; and the modifications and the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (4)

1. An application method of engineering symbols in engineering reports and web pages is characterized by comprising the following specific steps:
and S1 engineering symbol information processing: the method comprises the steps that the definition information of the engineering symbols is stored by adopting a standard document of XML, the definition information of the engineering symbols obtains an engineering symbol definition information file in a corresponding XML format from a server in a WebService mode, the engineering symbol definition information file stores the engineering symbol definition information designed by a user in a structured mode, and the structure supports the storage of various symbol definition information in the same file and supports the nesting use of symbols;
storing the input parameters of the engineering symbols in a script file format, wherein the recorded contents comprise variable values and character contents in the engineering symbols, and the script format can accept the parameter values and characters of any external engineering symbols meeting the specification requirements;
and S2 engineering symbol generation: the WebService service provided by the server side obtains the definition information of the engineering symbols, the engineering symbols are defined by XML format files, the templates are analyzed in the program and the engineering icons are drawn by combining input parameter values, the EMF format picture files representing the engineering icons are finally output and used for various application scenes needing to display the icons, all the graphic elements need to be positioned by coordinates, the unit of the coordinates is pixel px, in the definition of the icons, the limitation and the positioning of the graphic size range are carried out by Rect attributes, the coordinate axis takes the lower left corner as the origin (0,0), the Rect attribute values are four integers and are separated by commas and respectively correspond to the left letter, the lower letter, the right and the upper top, the custom symbols are drawn into needed symbol pictures by analyzing the templates and the parameters by using simple graphic elements, the custom symbols comprise common graphic elements, and the common engineering symbols are combined and drawn by using the simple graphic elements, the graphic elements are not associated and are drawn independently, and the drawing sequence is performed according to the configuration sequence in the XML file and is drawn from top to bottom; the engineering symbols in the system are all self-defined symbols, and template files of the self-defined symbols are mainly used for storing detailed configuration information of various graphic elements; the method comprises the steps of analyzing the engineering symbol definition information by a data processing engine according to the specifications, recording detailed information of drawn engineering icon examples for recording example information of engineering icons and facilitating next calling and displaying, re-drawing and displaying engineering icon pictures by analyzing the information of the engineering icon examples by the engineering icon engine when calling again, describing the engineering icon examples by using a string of scripts with special marks as a recording method of engineering symbol input parameters, and defining the basic format of an input parameter file as follows:
#%TS;ID=;L=XX;H=XX;C=ParaCount;V1=A;V2=B;…%#
the meaning is as follows:
"; "is a separator;
"#%" is the start mark;
"TS" is a symbol identifier;
"ID" is the unique identification of the icon definition template;
l is an abbreviation of Length and represents the Length of the process symbol, and the Length value of the process symbol is equal after the equal sign, and the unit is millimeter or pixel;
h is an abbreviation of Height, represents the Height of the process symbol, and is equal to the Height value of the process symbol, and the unit is millimeter or pixel;
c is an abbreviation of Count, represents the number of parameter values of subsequent process symbols, and is the actual number of the parameter values after equal sign;
the' V1 ═ V2 ═ is parameter names, the number of parameters of each process symbol is different, the parameter names are also different, and the equal sign is the parameter value of the parameter;
"% #" is an end mark;
analyzing the acquired engineering symbol input parameter file according to the specifications through a data processing engine to acquire related engineering symbol data information, transmitting all information to an engineering symbol generation engine after acquiring definition information and input parameters of engineering symbols, receiving the engineering symbol data by the engineering symbol generation engine, drawing the acquired engineering symbol data into a vector graph in an EMF format through a drawing engine, storing the engineering symbol data in a metafile manner, and forming a complete engineering symbol database for engineering application;
s3 engineering notation insertion: and inserting required engineering symbols into the positions of the WEB page of the specified business object and the engineering report by the user according to the engineering symbol data in the database.
2. The method as claimed in claim 1, wherein the content stored in the definition information file of the engineering symbol at least includes parameter values, variables, expressions and relationship information files related to the engineering symbol.
3. The method as claimed in claim 1, wherein the engineering notation stored in metafile in step S2 includes local file, binary byte stream and BASE64 stream.
4. An application system of engineering symbols in engineering reports and web pages, comprising:
the engineering symbol information processing module: the system comprises a server, a plurality of engineering symbol definition information files, a plurality of service servers and a plurality of service servers, wherein the engineering symbol definition information files are used for storing the definition information of engineering symbols by adopting a standard document of XML, the definition information of the engineering symbols obtains corresponding engineering symbol definition information files in the XML format from the server in a WebService mode, the engineering symbol definition information files store the engineering symbol definition information designed by a user in a structured mode, and the structure supports the storage of a plurality of symbol definition information in the same file and the nested use of the symbols; simultaneously, the input parameters of the engineering symbols are stored in a script file format, the recorded contents comprise variable values and character contents in the engineering symbols, and the script format can accept the parameter values and characters of any external engineering symbols meeting the specification requirements;
the engineering symbol generation module: comprises a data processing engine and an engineering symbol generating engine, a WebService service provided by a server side acquires definition information of engineering symbols,
the engineering symbols are defined by XML format files, a template is analyzed in a program and the engineering symbols are drawn by combining input parameter values, finally, the picture files representing the engineering symbols are output and used for various application scenes needing to display the icons, all the graphic elements need to be positioned by coordinates, the unit of the coordinates is a pixel px, in the definition of the icons, the limitation and the positioning of the graphic size range are carried out by a Rect attribute, a coordinate axis takes the lower left corner as an origin (0,0), the Rect attribute values are four integers which are separated by commas and respectively correspond to a left corner, a lower bottom corner, a right corner and an upper top, the custom symbols are drawn into needed symbol pictures by analyzing the template and the parameters by using simple graphic elements, the needed symbol pictures comprise common graphic elements, the common engineering symbols are drawn by combining the simple graphic elements, and no association relationship exists among the graphic elements, drawing independently, wherein the drawing sequence is carried out according to the configuration sequence in the XML file and is drawn from top to bottom; the engineering symbols in the system are all self-defined symbols, and template files of the self-defined symbols are mainly used for storing detailed configuration information of various graphic elements; the method comprises the steps of analyzing the engineering symbol definition information by a data processing engine according to the specifications, recording detailed information of drawn engineering icon examples for recording example information of engineering icons and facilitating next calling and displaying, re-drawing and displaying engineering icon pictures by analyzing the information of the engineering icon examples by the engineering icon engine when calling again, describing the engineering icon examples by using a string of scripts with special marks as a recording method of engineering symbol input parameters, and defining the basic format of an input parameter file as follows:
#%TS;ID=;L=XX;H=XX;C=ParaCount;V1=A;V2=B;…%#
the meaning is as follows:
"; "is a separator;
"#%" is the start mark;
"TS" is a symbol identifier;
"ID" is the unique identification of the icon definition template;
l is an abbreviation of Length and represents the Length of the process symbol, and the Length value of the process symbol is equal after the equal sign, and the unit is millimeter or pixel;
h is an abbreviation of Height, represents the Height of the process symbol, and is equal to the Height value of the process symbol, and the unit is millimeter or pixel;
c is an abbreviation of Count, represents the number of parameter values of subsequent process symbols, and is the actual number of the parameter values after equal sign;
the' V1 ═ V2 ═ is parameter names, the number of parameters of each process symbol is different, the parameter names are also different, and the equal sign is the parameter value of the parameter;
"% #" is an end mark;
analyzing the acquired engineering symbol input parameter file by a data processing engine according to the above specifications to acquire related engineering symbol data information, transmitting all information to an engineering symbol generation engine after acquiring definition information and input parameters of the engineering symbols, drawing the engineering symbol data received by the engineering symbol generation engine into engineering symbols in EMF format by a drawing engine according to the acquired data parameters, and storing the final engineering symbols in a metafile manner;
the engineering symbol database module: the system comprises a data storage module, an engineering symbol generation module and a database, wherein the data storage module is used for storing data generated by the engineering symbol generation module and forming the database;
the project report inserting module: the system is used for calling data in the engineering symbol database module, so that a user can directly apply the engineering symbol data in the database module to the business field of the user.
CN201611111435.9A 2016-12-06 2016-12-06 Application method and system of engineering symbols in engineering report forms and web pages Active CN106776994B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611111435.9A CN106776994B (en) 2016-12-06 2016-12-06 Application method and system of engineering symbols in engineering report forms and web pages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611111435.9A CN106776994B (en) 2016-12-06 2016-12-06 Application method and system of engineering symbols in engineering report forms and web pages

Publications (2)

Publication Number Publication Date
CN106776994A CN106776994A (en) 2017-05-31
CN106776994B true CN106776994B (en) 2020-09-22

Family

ID=58874523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611111435.9A Active CN106776994B (en) 2016-12-06 2016-12-06 Application method and system of engineering symbols in engineering report forms and web pages

Country Status (1)

Country Link
CN (1) CN106776994B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107391467A (en) * 2017-06-08 2017-11-24 北京小度信息科技有限公司 Report component layout information processing method and processing device
CN110020307B (en) * 2017-11-30 2023-06-13 阿里巴巴集团控股有限公司 Drawing method and device for client end view
CN108154545A (en) * 2017-12-29 2018-06-12 广州贝睿信息科技有限公司 A kind of digital content Photographing On-line engine
CN115221841B (en) * 2022-09-19 2022-11-29 大方智造(天津)科技有限公司 WEB-based engineering symbol processing method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783090A (en) * 2004-11-30 2006-06-07 国际商业机器公司 Sharable two way method and system for switching between object model and XML
CN105373519A (en) * 2015-10-12 2016-03-02 武汉开目信息技术有限责任公司 Technical symbol editing device and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1783090A (en) * 2004-11-30 2006-06-07 国际商业机器公司 Sharable two way method and system for switching between object model and XML
CN105373519A (en) * 2015-10-12 2016-03-02 武汉开目信息技术有限责任公司 Technical symbol editing device and method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"基于XML的通用地图符号库设计与实现";覃如府等;《同济大学学报(自然科学版)》;20080831;第1138-1142页 *
"岩层产状符号矢量化的研究与应用——利用ArcGIS实现";李杨;《西部探矿工程》;20130630;第126-129页 *

Also Published As

Publication number Publication date
CN106776994A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106776994B (en) Application method and system of engineering symbols in engineering report forms and web pages
CN110489116A (en) A kind of rendering method of the page, device and computer storage medium
US20170161354A1 (en) Chart conversion system and method using metadata
CN110096275B (en) Page processing method and device
US20180357776A1 (en) Vector graphics handling processes for user applications
CN108389244B (en) Implementation method for rendering flash rich text according to specified character rules
CN111859053B (en) Data definition method of visual chart and chart library system
US10628526B2 (en) Providing suggested diagrammatic representations of user entered textual information
CN104794106A (en) Annotating method and device
CN115510347A (en) Presentation file conversion method and device, electronic equipment and storage medium
CN105956133B (en) Method and device for displaying file on intelligent terminal
US20150169508A1 (en) Obfuscating page-description language output to thwart conversion to an editable format
CN115268904A (en) User interface design file generation method, device, equipment and medium
CN107193815B (en) Page code processing method, device and equipment
CN117057318A (en) Domain model generation method, device, equipment and storage medium
EP1959352A2 (en) System and method of report representation
CN112528593B (en) Document processing method, device, electronic equipment and storage medium
CN112417345B (en) Rendering method, rendering device, electronic equipment and storage medium
CN111475156B (en) Page code generation method and device, electronic equipment and storage medium
CN114637732A (en) DWG drawing data conversion method and system
CN113934957A (en) Method and system for generating rendering sketch file from webpage
KR20180041307A (en) Template application system and method using the file format svg
Pavazza et al. The alternative way of creating infographics using SVG technology
CN110968996B (en) Document making method, device, equipment and storage medium
CN117093386B (en) Page screenshot method, device, computer equipment 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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100094 No. 28, Yongfeng Road, Beijing, Haidian District

Patentee after: Beijing Shenzhou Aerospace Software Technology Co.,Ltd.

Address before: 100094 No. 28, Yongfeng Road, Beijing, Haidian District

Patentee before: BEIJING SHENZHOU AEROSPACE SOFTWARE TECHNOLOGY Co.,Ltd.