Summary of the invention
Based on this, be necessary the problem for general electric installation drawing method for making inefficiency, provide an a kind of efficient key to generate the method and system of electrical schematic diagram.
One key generates a method for electrical schematic diagram, comprises step:
Make demand according to electric installation drawing, based on EPLAN software, create and make electric installation drawing desired data storehouse;
To EPLAN software secondary development, generate API plug-in unit;
Using the information carrier of electrical form as described electric installation drawing information, the form of the electric installation drawing information that generation need generate, and the form of the described electric installation drawing information that need generate is carried out to design and the classification of described electric installation drawing information, to make the Automatic generation of information be associated in electric installation drawing information, obtain the electric installation drawing information that need generate;
Upgrade the data in the described electric installation drawing information that need generate, with described EPLAN software for platform and utilize described API plug-in unit one key generate electrical schematic diagram.
One key generates a system for electrical schematic diagram, comprising:
Database module, for making demand according to electric installation drawing, based on EPLAN software, creating and making electric installation drawing desired data storehouse;
Plug-in unit generation module, for EPLAN software secondary development, generates API plug-in unit;
Electric installation drawing information generating module, for using the information carrier of electrical form as described electric installation drawing information, the form of the electric installation drawing information that generation need generate, and the form of the described electric installation drawing information that need generate is carried out to design and the classification of described electric installation drawing information, to make the Automatic generation of information be associated in electric installation drawing information, obtain the electric installation drawing information that need generate;
Electrical schematic diagram generation module, for upgrading the data in the described electric installation drawing information that need generate, with described EPLAN software for platform and utilize described API plug-in unit one key generate electrical schematic diagram.
The present invention one key generates the method and system of electrical schematic diagram, demand is made according to electric installation drawing, based on EPLAN software, create and make electric installation drawing desired data storehouse, to EPLAN software secondary development, generate API plug-in unit, using the information carrier of electrical form as electric installation drawing information, the form of the electric installation drawing information that generation need generate, and the form of the electric installation drawing information that need generate is carried out to design and the classification of electric installation drawing information, to make the Automatic generation of information be associated in electric installation drawing information, the electric installation drawing information that acquisition need generate, data in the electric installation drawing information that renewal need generate, with EPLAN software for platform and utilize API plug-in unit one key generate electrical schematic diagram.In whole process, utilize the plug-in unit of EPLAN software secondary development, effectively EPLAN software and electrical form are coupled together.During design drawing, only need upgrade the data in the form of electric installation drawing information, utilize EPLAN Software Create electrical schematic diagram, realize that electrical schematic diagram is efficient, batch making.
Embodiment
As shown in Figure 1, an a kind of key generates the method for electrical schematic diagram, comprises step:
S100: make demand according to electric installation drawing, based on EPLAN software, creates and makes electric installation drawing desired data storehouse.
EPLAN company is as the pioneer in electric computer-aided design (CAD) epoch, and be electric planning, engineering design and project management field provide the global landmarks type enterprise of intelligent software solution and proficient service always.EPLAN software is the electric graphics software of a excellence released by EPLAN company.Because different electric installation drawings has different making demands, here, the making demand of Water demand electric installation drawing, obtains and makes electric installation drawing desired data storehouse.Non-essential, make electric installation drawing desired data storehouse and comprise symbolic library, part library, symbol macrolibrary and drawing form, each class libraries must first be planned and make before being drawing, as symbolic library and symbol macrolibrary, we are when generating drawing, can by the operation call sign of program or symbol grand, be given to it by the attribute filled in form, realize the making of drawing.
S200: to EPLAN software secondary development, generates API plug-in unit.
API is exactly the calling interface that operating system leaves application program for, and application program makes operating system go the order (action) of executive utility by the API of call operation system.Specifically, C language can be used EPLAN software secondary development, generate API plug-in unit.
S300: using the information carrier of electrical form as described electric installation drawing information, the form of the electric installation drawing information that generation need generate, and the form of the described electric installation drawing information that need generate is carried out to design and the classification of described electric installation drawing information, to make the Automatic generation of information be associated in electric installation drawing information, obtain the electric installation drawing information that need generate.
Specifically, electrical form can be EXECL.
In practical operation, electrical form can be divided into multipage, such as, be divided into homepage, motor page, PLC page, relay page, motor side subpage, signal end subpage cabinet terminal page and terminal board page.By electric installation drawing information design and being referred in these pages, write software program, search the information be associated in these electric installation drawing information, and automatically generate the information be associated in electric installation drawing information.Here, software program can adopt VB operation to write.
S400: upgrade the data in the described electric installation drawing information that need generate, with described EPLAN software for platform and utilize described API plug-in unit one key generate electrical schematic diagram.
When needs make electrical schematic diagram, only need to upgrade the data in electric installation drawing information form, EPLAN Software Create electrical schematic diagram can be utilized.Because data most of in electric installation drawing information form can associate generation (can reach more than 80% data correlation to generate), reduce and need data volume to be processed, electrical schematic diagram manufacturing process is efficient, is applicable to extensive batch making electrical schematic diagram.
The present invention one key generates the method for electrical schematic diagram, demand is made according to electric installation drawing, based on EPLAN software, create and make electric installation drawing desired data storehouse, to EPLAN software secondary development, generate API plug-in unit, using the information carrier of electrical form as electric installation drawing information, the form of the electric installation drawing information that generation need generate, and the form of the electric installation drawing information that need generate is carried out to design and the classification of electric installation drawing information, to make the Automatic generation of information be associated in electric installation drawing information, the electric installation drawing information that acquisition need generate, data in the electric installation drawing information that renewal need generate, with EPLAN software for platform and utilize API plug-in unit one key generate electrical schematic diagram.In whole process, utilize the plug-in unit of EPLAN software secondary development, effectively EPLAN software and electrical form are coupled together.During design drawing, only need upgrade the data in the form of electric installation drawing information, utilize EPLAN Software Create electrical schematic diagram, realize that electrical schematic diagram is efficient, batch making.
Wherein in an embodiment, to EPLAN software secondary development, generate API plug-in unit and be specially:
Use C# language to EPLAN software secondary development, generate API plug-in unit.
Specifically, MicrosoftVisualStudio2012 software is used to write.
Wherein in an embodiment, electrical form is EXECL.
Wherein in an embodiment, the described form to the described electric installation drawing information that need generate carries out design and the classification of described electric installation drawing information, to make the Automatic generation of information be associated in electric installation drawing information, the step obtaining the electric installation drawing information that need generate specifically comprises:
The form of the described electric installation drawing information that need generate is carried out to design and the classification of electric installation drawing information;
Use VB language compilation software program, control the Automatic generation of information be associated in described electric installation drawing information, obtain the electric installation drawing information that need generate.
Wherein in an embodiment, make electric installation drawing desired data storehouse and comprise symbolic library, part library, symbol macrolibrary and drawing form.
In practical application, directly use API plug-in unit to call required database file one key and generate electrical schematic diagram.
As shown in Figure 2, an a kind of key generates the system of electrical schematic diagram, comprising:
Database module 100, for making demand according to electric installation drawing, based on EPLAN software, creating and making electric installation drawing desired data storehouse;
Plug-in unit generation module 200, for EPLAN software secondary development, generates API plug-in unit;
Electric installation drawing information generating module 300, for using the information carrier of electrical form as described electric installation drawing information, the form of the electric installation drawing information that generation need generate, and the form of the described electric installation drawing information that need generate is carried out to design and the classification of described electric installation drawing information, to make the Automatic generation of information be associated in electric installation drawing information, obtain the electric installation drawing information that need generate;
Electrical schematic diagram generation module 400, for upgrading the data in the described electric installation drawing information that need generate, with described EPLAN software for platform and utilize described API plug-in unit one key generate electrical schematic diagram.
The present invention one key generates the system of electrical schematic diagram, database module 100 makes demand according to electric installation drawing, based on EPLAN software, create and make electric installation drawing desired data storehouse, plug-in unit generation module 200 pairs of EPLAN software secondary developments, generate API plug-in unit, electric installation drawing information generating module 300 is using the information carrier of electrical form as electric installation drawing information, the form of the electric installation drawing information that generation need generate, and the form of the electric installation drawing information that need generate is carried out to design and the classification of electric installation drawing information, to make the Automatic generation of information be associated in electric installation drawing information, the electric installation drawing information that acquisition need generate, electrical schematic diagram generation module 400 upgrades the data in the electric installation drawing information that need generate, with EPLAN software for platform and utilize API plug-in unit one key generate electrical schematic diagram.In whole process, utilize the plug-in unit of EPLAN software secondary development, effectively EPLAN software and electrical form are coupled together.During design drawing, only need upgrade the data in the form of electric installation drawing information, utilize EPLAN Software Create electrical schematic diagram, realize that electrical schematic diagram is efficient, batch making.
Wherein in an embodiment, plug-in unit generation module 200 specifically for:
Use C# language to EPLAN software secondary development, generate API plug-in unit.
Wherein in an embodiment, electrical form is EXECL.
Wherein in an embodiment, electric installation drawing information generating module 400 specifically comprises:
Form generation unit, for using the information carrier of electrical form as described electric installation drawing information, generates the form of the electric installation drawing information that need generate;
Processing unit, for carrying out design and the classification of electric installation drawing information to the form of the described electric installation drawing information that need generate;
Programming unit, for using VB language compilation software program, controls the Automatic generation of information be associated in described electric installation drawing information, obtains the electric installation drawing information that need generate.
Wherein in an embodiment, make electric installation drawing desired data storehouse and comprise symbolic library, part library, symbol macrolibrary and drawing form.
In order to the effect further explaining the technical scheme that the present invention one key generates the method and system of electrical schematic diagram in detail and bring, below employing one instantiation is described.
Early-stage preparations process: each class libraries (symbolic library, part library, symbol macrolibrary, drawing form etc.) needed for oneself must be had before making drawing.Each class libraries must first be planned and make before being drawing, and as symbolic library and symbol macrolibrary, when generating drawing, operation call sign or the symbol that can pass through program are grand, be given to it, realize the making of drawing by the attribute filled in electrical form.
Step one: analyze new project, makes project and is divided into catalogue, power distribution figure, motor page, PLC page, relay page, terminal map sheet, cable overview and parts summary sheet etc.So form divides homepage, motor page, PLC page, relay page, motor side subpage, signal end subpage cabinet terminal page, terminal board page etc. by making requirements.This form has made multiple grand, realizes being associated of many places information, and the information 80% in form can associate generation, makes the input of information more intelligent.
Step 2: the relevant information inserting homepage and PLC page, just can the drawing information of a key generation required for the overall situation.Complete the making of drawing information in electrical form.
Step 3: inside EPLAN graphics software, chooses the plug-in unit that click has been developed in order, just can Mass production drawing.
Practical operation principle: when using API plug-in unit to make electrical schematic diagram, the operation logic of API plug-in card program is, first generate the blank drawing that single page has attribute, the page number in the page number of drawing and form or heavy first page number start circulation and are generated to sign-off sheet, other attributes, we have planned and have first carried out in a program.Grand or the page of symbol again in calling data storehouse, symbol is grand etc., and give this symbol or grand corresponding attribute by the drawing information form filled in, then the relevant position of drawing is inserted, just drawing can be generated by this principle circular flow, and practical programs responds very fast in operational process, can in a flash the drawing that all will generate directly be generated out by above principle.
Above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.