CN103777571B - Machining locus function for computer graphical generates method and apparatus - Google Patents

Machining locus function for computer graphical generates method and apparatus Download PDF

Info

Publication number
CN103777571B
CN103777571B CN201410049152.0A CN201410049152A CN103777571B CN 103777571 B CN103777571 B CN 103777571B CN 201410049152 A CN201410049152 A CN 201410049152A CN 103777571 B CN103777571 B CN 103777571B
Authority
CN
China
Prior art keywords
configuration file
machining locus
described configuration
functionality controls
functional parameter
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
CN201410049152.0A
Other languages
Chinese (zh)
Other versions
CN103777571A (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.)
Caxa Technology Co Ltd
Original Assignee
Caxa 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 Caxa Technology Co Ltd filed Critical Caxa Technology Co Ltd
Priority to CN201410049152.0A priority Critical patent/CN103777571B/en
Publication of CN103777571A publication Critical patent/CN103777571A/en
Application granted granted Critical
Publication of CN103777571B publication Critical patent/CN103777571B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Numerical Control (AREA)

Abstract

The invention discloses a kind of machining locus function for computer graphical and generate method and apparatus.Wherein, the machining locus function for computer graphical generates method and includes: judge that the machining locus of object in computer graphical is the need of renewal;If it is judged that the machining locus of the object in computer graphical needs to update, then obtain the configuration file of the machining locus for upgating object;And the functionality controls of machining locus corresponding to configuration file is generated by loading configuration file, functionality controls is for generating the machining locus that configuration file is corresponding.By the present invention, reach user and can upgrade in time the effect of New function in software.

Description

Machining locus function for computer graphical generates method and apparatus
Technical field
The present invention relates to software field, generate method and apparatus in particular to a kind of machining locus function for computer graphical.
Background technology
Computer aided manufacturing (Computer Aided Manufacturing, it is called for short CAM) software, such as MasterCAM software, Delcam software, Unigraphics system (a kind of computer aided manufacture system, it is called for short UG) etc., it is provided that meet the systematic function of the Product processing track of user's request.As shown in Figure 1, configuration has the systematic function of machining locus and typically requires input machined parameters in software, such as technological parameter, cutter parameters etc., and geometric parameter, such as geometric datas such as curve, curved surface or the entities from the internal calculation of CAM software and Aided Design (Computer Aided Design is called for short CAD) software input, calculate through PATH GENERATION, obtain describing a series of straight lines and circular arc, these cutting tool paths i.e. machining locus of cutting tool path.
It is seen from figure 1 that the systematic function of a complete machining locus is mainly made up of two parts: parameter input and algorithm calculate.These two parts in CAM software by write code realize.During regenerating machining locus, demand analysis to be first passed through, analyze the new demand of user, then the function of new demand is realized by writing code, quality guarantee (Quality Assurance, it is called for short QA) test, just can carry out software version issue in test by rear, user can use the software system after increasing new demand.
The more than one machining locus that user typically requires, they need the machining locus in different process segment use Different Strategies.Therefore, the extension of type of gesture and the amendment of existing track are exactly a prerequisite ability of CAM software.
Existing CAM software engineering has extendible ability, but there is following shortcoming in this ability: after increasing, be deleted or modified certain parameter of certain track, the interface control that this parameter is corresponding must be revised, adjusting layout or the size of parameter dialog box, this needs developer to be realized by amendment code.Also could realize corresponding function, and user need to use function defined in new demand after software redaction is issued after manufacturing a series of software projects of mounting disc, QA test, redaction issue etc. after code revision.The systematic function of one new track of interpolation is also required to developer and realizes by adding function code, and user needs also exist for could using the systematic function of new machining locus after new version software is issued.
In sum, no matter revising or add new parameter or add new gesture function, being required for revising software code, user needs to use New function after new version software is issued so that can not meet the demand of user at once.
Need could to use New function to cause upgrading in time the problem of software function after new version software is issued for user in prior art, the most not yet propose effective solution.
Summary of the invention
Present invention is primarily targeted at and provide a kind of machining locus function for computer graphical to generate method and apparatus, need could to use New function to cause upgrading in time the problem of software function after new version software is issued solving user in prior art.
To achieve these goals, according to an aspect of the invention, it is provided a kind of machining locus function for computer graphical generates method.The machining locus function for computer graphical according to the present invention generates method and includes: judge that the machining locus of object in computer graphical is the need of renewal;If it is judged that the machining locus of the object in computer graphical needs to update, then obtain the configuration file of the machining locus for upgating object;And the functionality controls of machining locus corresponding to configuration file is generated by loading configuration file, functionality controls is for generating the machining locus that configuration file is corresponding.
Further, after obtaining the configuration file of the machining locus being used for upgating object, machining locus function generates method and also includes: receive the functional parameter of user's input;And revise configuration file based on functional parameter, wherein, generate the functionality controls of machining locus corresponding to configuration file by loading configuration file to include: generate the functionality controls of machining locus corresponding to amended configuration file by loading amended configuration file.
Further, the functionality controls generating machining locus corresponding to amended configuration file by loading amended configuration file includes: the configuration file after analytic modification, obtains functional parameter;Call and resolve the functional parameter obtained;And based on resolving the functionality controls of machining locus corresponding to the functional parameter systematic function parameter obtained.
Further, configuration file includes label pair, wherein, include based on functional parameter amendment configuration file: based on functional parameter amendment label to revising configuration file, the functionality controls generating machining locus corresponding to amended configuration file by loading amended configuration file includes: load amendment label to after configuration file;By amendment label to after configuration file revise the functionality controls of existing machining locus, the functionality controls of existing machining locus is the functionality controls of existing machining locus before amendment configuration file.
Further, configuration file includes label pair, wherein, include based on functional parameter amendment configuration file: increasing label to revising configuration file based on functional parameter, the functionality controls generating machining locus corresponding to amended configuration file by loading amended configuration file includes: load increase label to after configuration file;By increase label to after configuration file generate the functionality controls of newly-increased machining locus.
To achieve these goals, according to a further aspect in the invention, it is provided that a kind of machining locus function generating means for computer graphical.The machining locus function generating means for computer graphical according to the present invention includes: judging unit, for judging that the machining locus of the object in computer graphical is the need of renewal;Acquiring unit, for if it is judged that the machining locus of object in computer graphical needs to update, then obtaining the configuration file of the machining locus for upgating object;And signal generating unit, for being generated the functionality controls of machining locus corresponding to configuration file by loading configuration file, functionality controls is for generating the machining locus that configuration file is corresponding.
Further, machining locus function generating means also includes: receive unit, for after obtaining the configuration file of the machining locus being used for upgating object, receives the functional parameter of user's input;And amendment unit, for revising configuration file based on functional parameter, wherein, signal generating unit includes: generation module, for generating the functionality controls of machining locus corresponding to amended configuration file by loading amended configuration file.
Further, generation module includes: analyzing sub-module, the configuration file after analytic modification, obtains functional parameter;Call submodule, resolve, for calling, the functional parameter obtained;And first generate submodule, for based on the functionality controls resolving machining locus corresponding to the functional parameter systematic function parameter that obtains.
Further, configuration file includes label pair, wherein, amendment unit includes: the first modified module, is used for based on functional parameter amendment label revising configuration file, wherein, generation module includes: first load submodule, for load amendment label to after configuration file;Amendment submodule, for by amendment label to after configuration file revise the functionality controls of existing machining locus, the functionality controls of existing machining locus is the functionality controls of existing machining locus before amendment configuration file.
Further, configuration file includes label pair, wherein, amendment unit includes: the second modified module, is used for based on functional parameter increase label revising configuration file, wherein, generation module includes: second load submodule, for load increase label to after configuration file;Second generates submodule, for by increase label to after configuration file generate the functionality controls of newly-increased machining locus.
According to embodiments of the present invention, obtain the configuration file for updating machining locus, software generates the functionality controls of machining locus corresponding to configuration file by loading this configuration file, realize the renewal of the functionality controls to the machining locus in software, issue without waiting for software redaction, have only at the corresponding configuration file of locally configured machining locus of the client residing for software, the systematic function of machining locus in the most renewable software, solving user needs could to use New function to cause upgrading in time the problem of software function after new version software is issued, reach user can upgrade in time the effect of New function in software.
Accompanying drawing explanation
The accompanying drawing of the part constituting the application is used for providing a further understanding of the present invention, and the schematic description and description of the present invention is used for explaining the present invention, is not intended that inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the functional flow diagram of CAM software in prior art;
Fig. 2 is the schematic diagram of the machining locus function generating means for computer graphical according to a first embodiment of the present invention;
Fig. 3 is the schematic diagram of the machining locus function generating means for computer graphical according to a second embodiment of the present invention;
Fig. 4 is the flow chart that the machining locus function for computer graphical according to a first embodiment of the present invention generates method;And
Fig. 5 is the flow chart that the machining locus function for computer graphical according to a second embodiment of the present invention generates method.
Detailed description of the invention
It should be noted that in the case of not conflicting, the embodiment in the application and the feature in embodiment can be mutually combined.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
In order to make those skilled in the art be more fully understood that the present invention program, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the embodiment of a present invention part rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under not making creative work premise, all should belong to the scope of protection of the invention.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " second " etc. are for distinguishing similar object, without being used for describing specific order or precedence.Should be appreciated that the data of so use can be exchanged in the appropriate case, in order to embodiments of the invention described herein.In addition, term " includes " and " having " and their any deformation, it is intended to cover non-exclusive comprising, such as, contain series of steps or the process of unit, method, system, product or equipment be not necessarily limited to those steps or the unit clearly listed, but can include the most clearly listing or for intrinsic other step of these processes, method, product or equipment or unit.
Embodiments providing a kind of machining locus function generating means for computer graphical, this device can realize its function by computer equipment.
Fig. 2 is the structural representation of the machining locus function generating means for computer graphical according to a first embodiment of the present invention.As in figure 2 it is shown, this machining locus function generating means being used for computer graphical includes judging unit 10, acquiring unit 30 and signal generating unit 50.
Judging unit 10 is for judging that the machining locus of the object in computer graphical is the need of renewal.
Object in computer graphical could be for the data object of converted products, the such as product such as gear, screw, before processing these objects, need to obtain the parameter of these objects, by the machining locus of computer-aided manufacturing software such as CAM these objects of Software Create.After generating machining locus, workshop can be controlled based on the machining locus generated in software and process corresponding product.
Judge that the machining locus of the object in computer graphical can be to judge whether user has new demand to machining locus the need of updating, when user has new demand, can be by analyzing the new demand of user, the systematic function of the corresponding machining locus of new demand is configured, for corresponding machining locus can be generated based on the systematic function in software in such as CAM makes software.
Acquiring unit 30 is for if it is judged that the machining locus of object in computer graphical needs to update, then obtaining the configuration file of the machining locus for upgating object.
Configuration file can be the file using extensible markup language (XML) file format, the parameter of machining locus can be configured in configuration file, and the parameter of configuration file machining locus can modify, so that CAM software can be by loading the functionality controls that this configuration file is revised or increased machining locus, user can be revised by this functionality controls or generate corresponding machining locus.Specifically, can be with label to describing the parameter of machining locus in configuration file, the geometric parameter of such as machining locus, tool type parameter etc..Wherein, the parameter of label centering can be modified, it is also possible to by increasing label to increasing corresponding machining locus.When the machining locus of the object in judging computer graphical needs to update, software obtains the configuration file of the machining locus for upgating object, in order to CAM software generates the functionality controls of machining locus corresponding to this configuration file by loading configuration file.Such as, when needing the machining locus increasing an object A, configuration file B corresponding for object A can be increased, wherein, configuration file B includes parameter such as tool type parameter or the geometric parameter etc. of the machining locus of object A, or by increasing the parameter of the machining locus of object A in existing configuration file, by CAM software loading configuration file B or reload amendment configuration file after existing configuration file, generating the functionality controls of the machining locus of object A, user can generate the machining locus of object A by the functionality controls on CAM software.
Signal generating unit 50 for generating the functionality controls of machining locus corresponding to configuration file by loading configuration file.Functionality controls is for generating the machining locus that configuration file is corresponding.
After getting configuration file, the functionality controls of machining locus corresponding to configuration file can be generated by software such as CAM software loading configuration file, wherein, loading configuration file can be to be loaded directly into by software, it is also possible to is by restarting software with loading configuration file.Specifically, loading configuration file can be to add the parameter for track by pre-set in parsing configuration file, by calling the parameter of machining locus to generate the functionality controls of corresponding machining locus.
According to embodiments of the present invention, obtain the configuration file for updating machining locus, software generates the functionality controls of machining locus corresponding to configuration file by loading this configuration file, realize the renewal of the functionality controls to the machining locus in software, issue without waiting for software redaction, have only at the corresponding configuration file of locally configured machining locus of the client residing for software, the systematic function of machining locus in the most renewable software, solving user needs could to use New function to cause upgrading in time the problem of software function after new version software is issued, reach user can upgrade in time the effect of New function in software.
Fig. 3 is the schematic diagram of the machining locus function generating means for computer graphical according to a second embodiment of the present invention.The machining locus function generating means for computer graphical of this embodiment can be as a kind of preferred implementation of the machining locus function generating means for computer graphical of above-described embodiment.As shown in Figure 3, this machining locus function generating means being used for computer graphical includes judging unit 10, acquiring unit 30 and signal generating unit 50, wherein, machining locus function generating means also includes receiving unit 70 and amendment unit 90, and signal generating unit 50 includes generation module 501.Judging unit 10 is identical with the judging unit 10 shown in Fig. 2 and acquiring unit 30 function respectively with acquiring unit 30, does not repeats.
Receive unit 70 to be used for, after obtaining the configuration file of the machining locus being used for upgating object, receiving the functional parameter of user's input.
After getting the configuration file for updating machining locus, owing to configuration file has revisable characteristic, therefore configuration file can also be modified by user, is revised by amendment configuration literary composition or is increased the functionality controls of machining locus in software.Specifically, the configuration file of amendment can be by the parameter of the machining locus in amendment configuration file.After user has new demand to machining locus, by revising functional parameter in configuration file or functional parameter can be increased to update the functionality controls of machining locus.The functional parameter of software receipt user input, in order to configuration file is modified.
Amendment unit 90 is used for revising configuration file based on functional parameter,
After receiving the functional parameter of user's input, revising configuration file based on this functional parameter, wherein amendment configuration file can be the parameter increasing new machining locus in configuration file, it is also possible to be the parameter revising existing machining locus.
Generation module 501 for generating the functionality controls of machining locus corresponding to amended configuration file by loading amended configuration file.
Revising configuration file based on functional parameter, software can generate the functionality controls of machining locus corresponding to amended configuration file by loading amended configuration file.Specifically, loading amended configuration file can be to reload configuration file, such as, realizes reloading configuration file by restarting software, thus generates functionality controls or the functionality controls of new machining locus of amended machining locus.
According to embodiments of the present invention, by receiving the functional parameter amendment configuration file of user's input, and load the functionality controls that amended configuration file generates the machining locus of amendment, such that it is able to according to the demand of user, revise or increase the functionality controls of machining locus neatly, improve the motility that software uses.
Preferably, generation module 501 includes analyzing sub-module, calls submodule and the first generation submodule.
Analyzing sub-module configuration file after analytic modification, obtains functional parameter.
Call submodule and resolve, for calling, the functional parameter obtained.
First generates submodule for based on the functionality controls resolving machining locus corresponding to the functional parameter systematic function parameter obtained.
Specifically, configuration file can be the file using XML file, and wherein, the parameter that configuration file can describe in file in the way of being the label pair utilizing classification, such as two grades labels are to being subordinated to one-level label pair, and three grades of labels are to being subordinated to two grades of labels pair.Below to label to being described:
One-level label pair, such as:
<path-functions-define path_eng_version="1.0">…..</path-functions-define>
It only has a pair in whole file, is included wherein by the live part of All Files;
Attribute path_eng_version explanation be machining locus function generate engine version number be 1.0.
Two grades of labels pair, such as:
Label pair<function-define></function-define>specifically define a track machining functions below this CAM software, under a pair two grades of labels, this label to can have one, multiple or do not have.
Three grades of labels below are to as follows:
Label pair<variables-define></variables-define>describe all of working process parameter of this gesture function definition;This label only has unique a pair following at each two grades of labels;
Three grades of labels under it, such as:
<variable code="Q200"vartype=""name=""comments=""default-value=""min-value=""max-value=""/>
Describe a parameter: code, type, title, comment, default value, span etc. information;
<name>boring</name>the title of this function is described;
<picture>fanuc_G81.wmf</picture>the explanation picture file of this function
<tool type that tool-type>this function can use can use drill bit and slotting cutter here
<type>drill</type>
<type>endmill</type>
</tool-type>
<ui-controls-define></ui-controls-define>describe this function situation of all of control three grades of labels below on interface
<control code=" Z " type=" EDIT " pick-button=" YES "/>describes the type of this control, if having pickup button, NC systematic parameter code that control is corresponding etc.;
<tool-path-engine></tool-path-engine>the setting of the label trajectory calculation engine to describing this function.
Preferably, configuration file includes label pair, and wherein, amendment unit 90 includes the first modified module, and this first modified module is for revising label to revising configuration file based on functional parameter.Wherein, generation module 501 includes the first loading submodule and amendment submodule.First load submodule for load amendment label to after configuration file;Amendment submodule for by amendment label to after configuration file revise the functionality controls of existing machining locus, the functionality controls of existing machining locus is the functionality controls of existing machining locus before amendment configuration file.
Such as, the existing two grades of labels pair of above-mentioned label centering are revised<function-define></function-define>the parameter of example, existing three grades of labels pair<tool-type>in parameter etc., to revise configuration file, such that it is able to functionality controls based on existing machining locus obtains the functionality controls of new machining locus, it is not necessary in the functionality controls to existing machining locus, all of parameter is modified.After having revised parameter, software can be restarted, whether the machining locus after test modifications meets demand, if demand can not be met, the parameter of the label pair in configuration file can also be modified by user, until fully meeting the demand of user, the functionality controls of amended machining locus is used to generate corresponding machining locus.
Alternatively, amendment unit 90 includes the second modified module, and this second modified module is for increasing label to revising configuration file based on functional parameter.Wherein, generation module 501 includes that the second loading submodule and second generates submodule.Second load submodule for load increase label to after configuration file;Second generate submodule for by increase label to after configuration file generate the functionality controls of newly-increased machining locus.
New label pair is increased in configuration file, and the parameter of label centering revises configuration file, then by loading the amended configuration file functionality controls with the newly-increased machining locus of generation, the functionality controls wherein increasing machining locus newly is the functionality controls by increasing the new label new machining locus to generating afterwards.
According to embodiments of the present invention, can revise existing label to while, increase new label pair, such that it is able to the functionality controls of new machining locus can also be increased while revising the functionality controls of existing machining locus.
The embodiment of the present invention additionally provides a kind of machining locus function for computer graphical and generates method.The method may operate on computer equipment.It should be noted that, the machining locus function for computer graphical of the embodiment of the present invention is generated method and can be performed by the machining locus function generating means for computer graphical that the embodiment of the present invention is provided, and the machining locus function for computer graphical that the machining locus function generating means for computer graphical of the embodiment of the present invention can be used for performing the embodiment of the present invention and provided generates method.
Fig. 4 is the flow chart that the machining locus function for computer graphical according to a first embodiment of the present invention generates method.As shown in Figure 4, this machining locus function generation method being used for computer graphical comprises the following steps that
Step S402, it is judged that the machining locus of the object in computer graphical is the need of renewal.
Object in computer graphical could be for the data object of converted products, the such as product such as gear, screw, before processing these objects, need to obtain the parameter of these objects, by the machining locus of computer-aided manufacturing software such as CAM these objects of Software Create.After generating machining locus, workshop can be controlled based on the machining locus generated in software and process corresponding product.
Judge that the machining locus of the object in computer graphical can be to judge whether user has new demand to machining locus the need of updating, when user has new demand, can be by analyzing the new demand of user, the systematic function of the corresponding machining locus of new demand is configured, for corresponding machining locus can be generated based on the systematic function in software in such as CAM makes software.
Step S404, if it is judged that the machining locus of the object in computer graphical needs to update, then obtains the configuration file of the machining locus for upgating object.
Configuration file can be the file using extensible markup language (XML) file format, the parameter of machining locus can be configured in configuration file, and the parameter of configuration file machining locus can modify, so that CAM software can be by loading the functionality controls that this configuration file is revised or increased machining locus, user can be revised by this functionality controls or generate corresponding machining locus.Specifically, can be with label to describing the parameter of machining locus in configuration file, the geometric parameter of such as machining locus, tool type parameter etc..Wherein, the parameter of label centering can be modified, it is also possible to by increasing label to increasing corresponding machining locus.When the machining locus of the object in judging computer graphical needs to update, software obtains the configuration file of the machining locus for upgating object, in order to CAM software generates the functionality controls of machining locus corresponding to this configuration file by loading configuration file.Such as, when needing the machining locus increasing an object A, configuration file B corresponding for object A can be increased, wherein, configuration file B includes parameter such as tool type parameter or the geometric parameter etc. of the machining locus of object A, or by increasing the parameter of the machining locus of object A in existing configuration file, by CAM software loading configuration file B or reload amendment configuration file after existing configuration file, generating the functionality controls of the machining locus of object A, user can generate the machining locus of object A by the functionality controls on CAM software.
Step S406, generates the functionality controls of machining locus corresponding to configuration file by loading configuration file.Functionality controls is for generating the machining locus that configuration file is corresponding.
After getting configuration file, the functionality controls of machining locus corresponding to configuration file can be generated by software such as CAM software loading configuration file, wherein, loading configuration file can be to be loaded directly into by software, it is also possible to is by restarting software with loading configuration file.Specifically, loading configuration file can be to add the parameter for track by pre-set in parsing configuration file, by calling the parameter of machining locus to generate the functionality controls of corresponding machining locus.
According to embodiments of the present invention, obtain the configuration file for updating machining locus, software generates the functionality controls of machining locus corresponding to configuration file by loading this configuration file, realize the renewal of the functionality controls to the machining locus in software, issue without waiting for software redaction, have only at the corresponding configuration file of locally configured machining locus of the client residing for software, the systematic function of machining locus in the most renewable software, solving user needs could to use New function to cause upgrading in time the problem of software function after new version software is issued, reach user can upgrade in time the effect of New function in software.
Fig. 5 is the flow chart that the machining locus function for computer graphical according to a second embodiment of the present invention generates method.The machining locus function for computer graphical of this embodiment generates the machining locus function for computer graphical that method can be above-described embodiment and generates a kind of preferred implementation of method.As it is shown in figure 5, this machining locus function being used for computer graphical generates method and comprises the following steps that
Step S502 is identical with step S402 shown in Fig. 4 and step S404 respectively with step S504, but is not limited to this, does not repeats.
Step S506, receives the functional parameter of user's input.
After getting the configuration file for updating machining locus, owing to configuration file has revisable characteristic, therefore configuration file can also be modified by user, is revised by amendment configuration literary composition or is increased the functionality controls of machining locus in software.Specifically, the configuration file of amendment can be by the parameter of the machining locus in amendment configuration file.After user has new demand to machining locus, by revising functional parameter in configuration file or functional parameter can be increased to update the functionality controls of machining locus.The functional parameter of software receipt user input, in order to configuration file is modified.
Step S508, revises configuration file based on functional parameter.
After receiving the functional parameter of user's input, revising configuration file based on this functional parameter, wherein amendment configuration file can be the parameter increasing new machining locus in configuration file, it is also possible to be the parameter revising existing machining locus.
Step S510, generates the functionality controls of machining locus corresponding to amended configuration file by loading amended configuration file.
Revising configuration file based on functional parameter, software can generate the functionality controls of machining locus corresponding to amended configuration file by loading amended configuration file.Specifically, loading amended configuration file can be to reload configuration file, such as, realizes reloading configuration file by restarting software, thus generates functionality controls or the functionality controls of new machining locus of amended machining locus.
According to embodiments of the present invention, by receiving the functional parameter amendment configuration file of user's input, and load the functionality controls that amended configuration file generates the machining locus of amendment, such that it is able to according to the demand of user, revise or increase the functionality controls of machining locus neatly, improve the motility that software uses.
Preferably, step S510 may comprise steps of:
Step one, the configuration file after analytic modification, obtain functional parameter.
Step 2, calls and resolves the functional parameter obtained.
Step 3, based on the functionality controls resolving machining locus corresponding to the functional parameter systematic function parameter obtained.
Specifically, configuration file can be use XML file file, wherein, configuration file can by be with the label pair of classification in the way of describe in file parameter, such as two grades labels are to being subordinated to and label pair, and three grades of labels are to being subordinated to two grades of labels pair.Below to label to being described:
One-level label pair, such as:
<path-functions-define path_eng_version="1.0">…..</path-functions-define>
It only has a pair in whole file, is included wherein by the live part of All Files;
Attribute path_eng_version explanation be machining locus function generate engine version number be 1.0.
Two grades of labels pair, such as:
Label pair<function-define></function-define>specifically define a track machining functions below this CAM software, under a pair two grades of labels, this label to can have one, multiple or do not have.
Three grades of labels below are to as follows:
Label pair<variables-define></variables-define>describe all of working process parameter of this gesture function definition;This label only has unique a pair following at each two grades of labels;
Three grades of labels under it, such as:
<variable code="Q200"vartype=""name=""comments=""default-value=""min-value=""max-value=""/>
Describe a parameter: code, type, title, comment, default value, span etc. information;
<name>boring</name>the title of this function is described;
<picture>fanuc_G81.wmf</picture>the explanation picture file of this function
<tool type that tool-type>this function can use can use drill bit and slotting cutter here
<type>drill</type>
<type>endmill</type>
</tool-type>
<ui-controls-define></ui-controls-define>describe this function situation of all of control three grades of labels below on interface
<control code=" Z " type=" EDIT " pick-button=" YES "/>describes the type of this control, if having pickup button, NC systematic parameter code that control is corresponding etc.;
<tool-path-engine></tool-path-engine>the setting of the label trajectory calculation engine to describing this function.
Preferably, configuration file includes label pair, and wherein, step based on functional parameter amendment configuration file includes: based on functional parameter amendment label to revising configuration file.Included by the step loading the functionality controls that amended configuration file generates machining locus corresponding to amended configuration file: load amendment label to after configuration file;By amendment label to after configuration file revise the functionality controls of existing machining locus, the functionality controls of existing machining locus is the functionality controls of existing machining locus before amendment configuration file.
Such as, the existing two grades of labels pair of above-mentioned label centering are revised<function-define></function-define>the parameter of example, existing three grades of labels pair<tool-type>in parameter etc., to revise configuration file, such that it is able to functionality controls based on existing machining locus obtains the functionality controls of new machining locus, it is not necessary in the functionality controls to existing machining locus, all of parameter is modified.After having revised parameter, software can be restarted, whether the machining locus after test modifications meets demand, if demand can not be met, the parameter of the label pair in configuration file can also be modified by user, until fully meeting the demand of user, the functionality controls of amended machining locus is used to generate corresponding machining locus.
Alternatively, include based on functional parameter amendment configuration file: increase label to revising configuration file based on functional parameter.The functionality controls generating machining locus corresponding to amended configuration file by loading amended configuration file includes: load increase label to after configuration file;By increase label to after configuration file generate the functionality controls of newly-increased machining locus.
New label pair is increased in configuration file, and the parameter of label centering revises configuration file, then by loading the amended configuration file functionality controls with the newly-increased machining locus of generation, the functionality controls wherein increasing machining locus newly is the functionality controls by increasing the new label new machining locus to generating afterwards.
According to embodiments of the present invention, can revise existing label to while, increase new label pair, such that it is able to the functionality controls of machining locus can also be increased while revising the functionality controls of existing machining locus newly.
It should be noted that, can perform in the computer system of such as one group of computer executable instructions in the step shown in the flow chart of accompanying drawing, and, although showing logical order in flow charts, but in some cases, can be to be different from the step shown or described by order execution herein.
Obviously, those skilled in the art should be understood that, each module of the above-mentioned present invention or each step can realize with general calculating device, they can concentrate on single calculating device, or it is distributed on the network that multiple calculating device is formed, alternatively, they can realize with calculating the executable program code of device, thus, can be stored in storing in device and be performed by calculating device, or they are fabricated to respectively each integrated circuit modules, or the multiple modules in them or step are fabricated to single integrated circuit module realize.So, the present invention is not restricted to the combination of any specific hardware and software.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, should be included within the scope of the present invention.

Claims (9)

1. the machining locus function for computer graphical generates method, it is characterised in that including:
Judge that the machining locus of object in computer graphical is the need of renewal;
If it is judged that the machining locus of the object in described computer graphical needs to update, then obtain and be used for updating The configuration file of the machining locus of described object;And
The functionality controls of machining locus corresponding to described configuration file is generated by loading described configuration file, described Functionality controls is used for generating the machining locus that described configuration file is corresponding,
Wherein, in acquisition after the configuration file of the machining locus updating described object, described machining locus Function generates method and also includes:
Receive the functional parameter of user's input;And
Described configuration file is revised based on described functional parameter,
Wherein, the functionality controls of machining locus corresponding to described configuration file is generated by loading described configuration file Including: generate, by loading amended described configuration file, the processing rail that amended described configuration file is corresponding The functionality controls of mark.
Machining locus function the most according to claim 1 generates method, it is characterised in that amended by loading Described configuration file generates the functionality controls of machining locus corresponding to amended described configuration file and includes:
Described configuration file after analytic modification, obtains described functional parameter;
Call and resolve the described functional parameter obtained;And
The described functional parameter obtained based on described parsing generates the function of machining locus corresponding to described functional parameter Control.
Machining locus function the most according to claim 1 generates method, it is characterised in that described configuration file includes Label pair, wherein,
Revise described configuration file based on described functional parameter to include: revise described label based on described functional parameter To revising described configuration file,
The machining locus that amended described configuration file is corresponding is generated by loading amended described configuration file Functionality controls include: load revise described label to after described configuration file;By revising described label pair After described configuration file revise existing machining locus functionality controls, the function of described existing machining locus Control is the functionality controls of existing machining locus before revising described configuration file.
Machining locus function the most according to claim 1 generates method, it is characterised in that described configuration file includes Label pair, wherein,
Revise described configuration file based on described functional parameter to include: increase described label based on described functional parameter To revising described configuration file,
The machining locus that amended described configuration file is corresponding is generated by loading amended described configuration file Functionality controls include: load increase described label to after described configuration file;By increasing described label pair After described configuration file generate the functionality controls of newly-increased machining locus.
5. the machining locus function generating means for computer graphical, it is characterised in that including:
Judging unit, for judging that the machining locus of the object in computer graphical is the need of renewal;
Acquiring unit, for if it is judged that the machining locus of object in described computer graphical needs to update, Then obtain the configuration file being used for updating the machining locus of described object;And
Signal generating unit, for by loading machining locus corresponding to the described configuration file described configuration file of generation Functionality controls, described functionality controls is for generating the machining locus that described configuration file is corresponding.
Machining locus function generating means the most according to claim 5, it is characterised in that described machining locus function Generating means also includes:
Receive unit, be used for, in acquisition after the configuration file of the machining locus updating described object, receiving The functional parameter of user's input;And
Amendment unit, for revising described configuration file based on described functional parameter,
Wherein, described signal generating unit includes: generation module, for by loading amended described configuration file Generate the functionality controls of machining locus corresponding to amended described configuration file.
Machining locus function generating means the most according to claim 6, it is characterised in that described generation module includes:
Analyzing sub-module, the described configuration file after analytic modification, obtain described functional parameter;
Call submodule, resolve, for calling, the described functional parameter obtained;And
First generates submodule, generates described functional parameter for the described functional parameter obtained based on described parsing The functionality controls of corresponding machining locus.
Machining locus function generating means the most according to claim 6, it is characterised in that described configuration file includes Label pair, wherein,
Described amendment unit includes: the first modified module, for revising described label pair based on described functional parameter Revise described configuration file,
Wherein, described generation module includes: first load submodule, for load amendment described label to after Described configuration file;Amendment submodule, for by revise described label to after described configuration file revise The functionality controls of some machining locus, the functionality controls of described existing machining locus is at amendment described configuration literary composition The functionality controls of existing machining locus before part.
Machining locus function generating means the most according to claim 6, it is characterised in that described configuration file includes Label pair, wherein,
Described amendment unit includes: the second modified module, for increasing described label pair based on described functional parameter Revise described configuration file,
Wherein, described generation module includes: second load submodule, for load increase described label to after Described configuration file;Second generates submodule, for by increase described label to after described configuration file raw Become the functionality controls of newly-increased machining locus.
CN201410049152.0A 2014-02-12 2014-02-12 Machining locus function for computer graphical generates method and apparatus Active CN103777571B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410049152.0A CN103777571B (en) 2014-02-12 2014-02-12 Machining locus function for computer graphical generates method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410049152.0A CN103777571B (en) 2014-02-12 2014-02-12 Machining locus function for computer graphical generates method and apparatus

Publications (2)

Publication Number Publication Date
CN103777571A CN103777571A (en) 2014-05-07
CN103777571B true CN103777571B (en) 2016-08-17

Family

ID=50569946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410049152.0A Active CN103777571B (en) 2014-02-12 2014-02-12 Machining locus function for computer graphical generates method and apparatus

Country Status (1)

Country Link
CN (1) CN103777571B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588257A (en) * 2004-09-29 2005-03-02 沈阳理工大学 Automatic programing system and method for grenade digital control machine tool processing
CN1869925A (en) * 2006-06-23 2006-11-29 上海科泰世纪科技有限公司 Method for setting controller style in computer graphic system
CN101169640A (en) * 2007-11-30 2008-04-30 北京数码大方科技有限公司 Digital control system machining code general generation method and device
CN101414926A (en) * 2007-10-16 2009-04-22 鸿富锦精密工业(深圳)有限公司 Pro/Engineer standard design environmental management system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8725283B2 (en) * 2006-08-04 2014-05-13 Hurco Companies, Inc. Generalized kinematics system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1588257A (en) * 2004-09-29 2005-03-02 沈阳理工大学 Automatic programing system and method for grenade digital control machine tool processing
CN1869925A (en) * 2006-06-23 2006-11-29 上海科泰世纪科技有限公司 Method for setting controller style in computer graphic system
CN101414926A (en) * 2007-10-16 2009-04-22 鸿富锦精密工业(深圳)有限公司 Pro/Engineer standard design environmental management system and method
CN101169640A (en) * 2007-11-30 2008-04-30 北京数码大方科技有限公司 Digital control system machining code general generation method and device

Also Published As

Publication number Publication date
CN103777571A (en) 2014-05-07

Similar Documents

Publication Publication Date Title
JP6790261B2 (en) Three-dimensional general-purpose machining process design method and equipment
US7418300B2 (en) System and method for reusing project engineering data
US10606562B2 (en) Method and system for generating PLC code with a connectivity model
JP2009531775A (en) Method and system for toolpath generation
JP6375666B2 (en) Programming tools for PLC and PLC
US8701079B2 (en) Procedure and development environment for generation of an executable overall control program
JP2009104227A (en) Plc control program development device and program
JP2021137874A (en) Weld sequencer component and statistical limit analyzer
US7917891B2 (en) Engineering system with automatic generation of entity templates
US20170277170A1 (en) Hmi system
CN101763072A (en) Conversion method and device of numerical control machining code
CN103645905A (en) Incremental data acquisition method and device
JP6201574B2 (en) Programming tool for PLC
CN103777571B (en) Machining locus function for computer graphical generates method and apparatus
CN111475159B (en) Method, device and storage medium for automatically generating program
US9342064B2 (en) Motion SFC program component creation device
JP7131119B2 (en) Systems and methods for merging source data from a source application with target data in a target application
US20040103390A1 (en) Software tool for formulating an automation task to be solved
CN108319227A (en) Numerical control program generation method, server and the storage medium of figure jacking
US7406404B2 (en) Method for developing a machine
CN1199474A (en) Method for producing computer-controlled services
US11327471B2 (en) Building and tracking of an automation engineering environment
Lharchi et al. Joint Descriptive Modeling (JDM) for Assembly-Aware Timber Structure Design
Conrad et al. Model-based design for safety critical automotive applications
CN104778035A (en) Method and device for processing parameter restriction and mutual exclusion of human-computer interaction interface software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant