Method and system for computer aided manufacturing

A system and method is disclosed for centralizing knowledge and improving programming for manufacturing a part. An embodiment includes a method for manufacturing the part. First, a model of the part is received. Next, a predetermined rule is retrieved from a computer readable medium having a plurality of predetermined rules. A feature of the geometric model is selected by evaluating the retrieved predetermined rule and a process is determined that is associated with the feature. Based on the process, computer code is generated to manufacture the part on a computer controlled machine.

FIELD OF THE INVENTION

The invention relates generally to the field of computer aided design and computer aided manufacturing (CAD/CAM) and in particular to manufacturing a part using one or more computer controlled machines.

BACKGROUND OF THE INVENTION

The use of a computer controlled machines to automatically machine parts has allowed the quick production of precise parts. For the specific case of machining parts, these machines are called computer numerically controlled (CNC) machines and are basically a computerized machinist that cuts material away from a block of material, e.g., metal or plastic, until the desired product is achieved. For example, a three-axis CNC milling machine has a cutting tool, an end mill, and allows for movement of the tool in three directions, X, Y, and Z. By moving the tool (or the part) and by spinning the end mill, material is removed from the block of material. The CNC machine has its own programming language which includes G and M codes.

In order to make programming a CNC machine more user friendly than writing many cryptic programming lines having G/M codes, a computer aided manufacturing (CAM) front end software tool is typically used. The CAM software tool has a graphical user interface (GUI) and may use a higher level language, such as Microsoft Visual Basic for Applications (VBA), the industry standard macro and scripting language, for programming. The CAM software then automatically generates the appropriate program, including the G/M codes, to run the CNC machine to manufacture the part. The CAM software tool is typically used by a manufacturing engineer.

FIG. 1is a diagram of an exemplary process of manufacturing a part of the prior art. The manufacturer's process110begins in the design section112of a company where the part is designed on a computer aided design (CAD) system114by the design engineer. The CAD design is stored in a database (DB)116. The CAD design represents the finished product and is “what” is manufactured. The CAD design, in the form of a geometric model or 2D/3D representation of the finished part, is then electronically transferred to the manufacturing section120. The CAD model alone normally has insufficient information to manufacture the part, and the manufacturing engineer must add information, such as tool selection and machining parameters, into the CAM tool in order to specify “how” the part is to be machined. The CAM tool may display a solid or 3D surface model of the part, hence allowing the manufacturing engineer full visualization of the finished machined part. The CAM model is stored in DB124. A program, for example, in VBA and Visual Basic (VB), is written by the manufacturing engineer in order to machine the part from a block of material. The CAM tool significantly reduces the complexity and time needed to write the VB/VBA program. When the programming is finished and debugged, the CAM tool automatically generates the CNC program. The CNC program, including the G-Code, is sent to the shop floor130to be executed on the CNC machine132.

The manufacturing process ofFIG. 1has several problems. First, the process has a one-way flow of information, i.e., from design112to manufacture120to shop130. For example, if the machinist on the shop floor needs to modify the CNC program to improve machining the part, this knowledge will normally not get back to either the manufacturing engineer or the design engineer. Similarly, any changes by the manufacturing engineer that could affect the design process are stored only in manufacturing DB124. The design engineer typically has no access to DB124, and even if the design engineer had access, the data representation of the CAD model in DB116is normally significantly different than the CAM model in DB124. Thus lack of feedback information significantly impedes improvement of the overall machining process.

Another major problem is that if a feature or attribute in a part changes the manufacturing engineer needs to create another CNC program. VBA somewhat reduces this problem, by automating the programming of different versions of a standard part by using a macro. For example, a VBA macro can be written that characterizes a hole (a feature of a part), using attributes such as diameter, depth, XYZ location. The macro is complied and executed. The user is asked to enter values for the attributes or to make a selection among several predetermined choices. The macro takes these values, creates circles representing the holes, selects the cutting tools, automatically creates the drilling operations, and produces the G code program. The CNC machine inputs the G code program and machines the hole in the part. However, for example, if one feature is different in a similar part, e.g., a threaded hole rather than a counter bored hole, then a new VBA macro is typically written by the manufacturing engineer. Thus the conventional macro only increases program flexibility in a limited way by allowing different values for fixed attributes, but does not allow, for example, the addition/removal of features and attributes or the selection of a different manufacturing process.

In addition as the programmer is human, two programs, each written by a different person, but machining the same part, are probably different. This “personalized” methodology prevents the standardization of the part manufacturing process.

Therefore there is need for an improved process of machining a part were the design section, manufacturing section, and shop floor can exchange knowledge and were the programming methodology is more flexible, efficient and standardized.

SUMMARY OF THE INVENTION

The present invention includes a system and method for centralizing knowledge and improving programming for manufacturing a part. An exemplary embodiment includes a first program that generates a second program based on one or more rules. The rules relate to one or more features and attributes of a part. The second program has the G code for the CNC machine. While the example of machining of a part using a CNC machine is used to describe some embodiments of the present invention, the scope of the invention is not so limited. The manufacture of any part using a computer controlled machine, for example, the forging of a part or assembly of a part, using one or more programmable computer controlled machines, is also within the scope of the present invention.

An embodiment of the present invention includes a method, using a computer system, for manufacturing a part. First, a model, e.g., a geometric model, of the part is received. Next, a predetermined rule is retrieved from a computer readable medium having a plurality of predetermined rules. A feature of the model is selected by evaluating the retrieved predetermined rule and a process is determined that is associated with the feature. Based on the process, computer code is generated to manufacture the part on a computer controlled machine.

Another embodiment of the present invention includes a method for manufacturing a part using a computer system. First, a model of the part is received. Next, a feature of the model is selected from a plurality of features by evaluating a first predetermined rule. An attribute is then selected from a plurality of attributes associated with the feature by evaluating a second predetermined rule. The attribute describes a physical characteristic of the feature, and the second predetermined rule includes a fragment of code stored in a computer readable medium.

A further embodiment of the present invention includes a system for manufacturing a part using a first program stored in a computer readable medium. The system includes: a database having a plurality of machining operations and a plurality of rules; and a second program stored in memory, where the second program is operably configured to select a set of machining operations from the plurality of machining operations by evaluating the plurality of rules. The set is used to create a portion of the first program.

An aspect of the present invention includes computer system for machining a feature of a part. The computer system includes a processor, a user input device coupled to the processor, and a display coupled to the processor. The computer system further includes a user interface element having instructions executed by the processor, where the user interface element is capable of accepting a comparison expression representing a rule associated with the feature of the part. The comparison expression is specified via the user input device and displayed on the display. The computer system further includes a database for storing the rule.

An embodiment of the present invention includes a system for manufacturing a part using a computer system. The system includes: a database having a plurality of rules and a plurality of machining cycles; a CNC program for manufacturing the part on a CNC machine; and a generating program stored in a computer readable medium for creating the CNC program. Further, the generating program includes: a rules evaluation module for selecting at least one machining cycle by evaluating at least one rule; and a CNC code generation module for generating a part of the CNC program using the machining cycle.

These and other embodiments, features, aspects and advantages of the invention will become better understood with regard to the following description, appended claims and accompanying drawings.

DETAILED DESCRIPTION OF THE INVENTION

In the following description, numerous specific details are set forth to provide a more thorough description of the specific embodiments of the invention. It should be apparent, however, to one skilled in the art, that the invention may be practiced without all the specific details given below. In other instances, well known details have not been described, so as not to obscure the invention.

A part that is manufactured from one or more materials is composed of one or more features, for example, holes, pockets, slots. Each feature has one or more attributes which describe physical characteristics of a feature. For example, for a hole the attributes include the location, diameter, and depth of the hole. In the case of machining a part from a block of material using a CNC machine, each feature is cut out of the block of material. For each feature, there is a corresponding cutting process that includes selecting which cutting tools to use and the tool operations to be performed. For the hole example, a cutting tool, e.g., a drill, and the tool operations, e.g., a tool path, are selected.

The features and corresponding attributes in certain limited cases may be automatically determined from the geometric model of the part using an image processing algorithm. Once the features and corresponding attributes are recognized a pre-selected process is used to machine the feature. Not all of the steps may be automatic, for example, the user may be asked to input values for the attributes. There are also some major disadvantages using this automated approach, such as inflexibility to change and non-reusability since the features, corresponding attributes, and associated processes are fixed, i.e., hard coded, in the manufacturing program.

One embodiment of the present invention has a goal of creating a uniform engineering environment for the manufacture of parts, not only for a specific company, but across companies. To achieve this goal one or both of the following are done: the databases used by design, manufacturing, and the shop for creating a part are centralized, which includes standardizing the data structures, and the CAM process is made visible and standard by the use of user defined rules. By having a uniform way of capturing and representing knowledge, the design engineer, manufacture engineer, the CNC programmer and CNC operator expertise can be captured and the system can improve by learning. In addition, beside intra-company exchange of knowledge, companies can exchange or sell/buy knowledge.

FIG. 2is a diagram of a process for producing a part with a centralized database of an embodiment of the present invention.FIG. 2has one DB226which includes both the data in the design DB116and in the manufacturing DB124of FIG.1. The design engineer in design section212uses CAD tool214to created the design model of the part using, e.g., Electronic Data Systems Corporation's Parasolid® solid modeler. The solid geometric model is stored in DB226using an application programming interface (API)224. The API, by constraining what commands can be performed on DB226, provides an ordered way of retrieving and storing data in DB226. The manufacturing engineer in manufacture section220then gets the solid model from DB226and uses the CAM tool to insure the model has manufacturing features and attributes. The manufacturing engineer uses the annotated model and CAM tool to create a VB/VBA program. The VB/VBA program has the processes needed to machine each feature of the part. Hence, the VB/VBA program contains the expert knowledge of the programmer on “how” a part is to be manufactured. Next, the VB/VBA program is automatically converted to a CNC program having G code which is stored in DB226. A shop engineer/technician in shop230retrieves the CNC program on CNC machine234from DB226. If the shop engineer/technician needs to modify the G code program, then he/she uses all or part of another version of the CAM tool running on CNC machine234. For example, suppose that the shop engineer/technician knows that a second process other than the one the manufacturing engineer selected has better performance for the particular CNC machine used. The shop engineer/technician could use the version of the CAM tool running on CNC machine234to change the VB/VBA program to use the second process. Since the changed VB/VBA code is stored in DB226, it is accessible by the design and manufacturing engineers for future production of parts. In an alternative embodiment the CNC machine234has a personal computer (PC) connected to it, which is used instead of the CNC machine to run all or part of the other version of the CAM tool. The PC is also connected to DB226and is used to modify the G code.

In a preferred embodiment of the present invention the decision points on selection of features, attributes, and processes are explicitly given in the form of rules. A rule includes a code fragment or function that when executed returns a “True” or “False” Boolean value. The code fragments or functions are stored in the DB226. Using the selected features, attributes, and processes, cutting tools and machining operations, e.g., the tools cutting feeds and rotational speeds and tool path, are determined and a CNC program is generated to machine the part on a CNC machine.

Since a part has one or more features, were each feature has one or more attributes, a first set of rules are assigned to the features and a second set of rules are assigned to the attributes. In addition since a process specifies how a feature is made and there may be multiple processes, i.e., ways, to make a feature, a third set of rules is assigned to decide which process should be used. If the third set of rules indicate multiple processes should be used then a human expert or a computerized expert system makes a selection on which process to use and the third set of rules are refined.

FIG. 3is a part hierarchy of a preferred embodiment of the present invention. A part242is described by the geometric model, e.g., model216in FIG.2. The part has one or more part types244. Typically the user selects the part types belonging to the part242. In an alternative embodiment the part types are automatically selected using rules (not shown). Each part type244has one or more features246. The part type244has also one or more feature recognition rules248that allow selection of the features246associated with the part type244. A feature is selected when the feature recognition rule evaluates to true. Although each feature246may have one or more feature types250, in the preferred embodiment, there is one feature type for one feature. Hence the feature type250is the primary classification for a feature246of a part type244. The feature type associated with the feature is determined from evaluating rule252.

An example of part types associated with a solid geometric model of a part may include a prismatic milled part, mold component, and die component. If the user selects part type, i.e., die component, then the feature recognition rules248may look for features246, e.g., holes, pockets, and profiles in the geometric model. If rule248evaluates to true for a hole feature246, then there may be one or more feature types, e.g., counterbored hole, threaded hole, or tapped hole. The feature type250selected is dependent on rule252evaluating to true.

Each feature type250has associated with it one or more processes254. To determine if the process is applicable to the feature type, the accompanying rule256is evaluated. Each process has one or more process steps258. Each feature type250may also have one or more attributes (not shown), where an attribute describes a physical characteristic of a feature. An attribute can be further subdivided to include a key with zero or more values.

FIG. 4is a feature hierarchy of another embodiment of the present invention. A feature410has one or more feature types412. An attribute of each feature type412has been further subdivided to include a key and one or more values. Hence, each feature type412has one or more keys416. Each key416has one or more values418, where if no value is specified by the user for a key, the value is assigned to be “undefined”. To determine if a particular feature type412is applicable to a particular feature410, the accompanying rule414is evaluated to determine if it is “true”. All the keys416for an applicable feature type412are next retrieved. To determine if a particular value418is applicable to a particular key416, the accompanying rule420is evaluated to determine if it is “true”.

Hence each feature type (or feature) has one or more keys and each key has one or more values assigned to it, including the possibility of having a value assigned as “undefined”. Each feature type thus has one or more key/value pairs. The feature type along with a combination of one or more of its key/value pairs is called a feature case. The feature case is used to search for the one or more processes that is to be used in manufacturing the feature in the part.

FIG. 5is a feature case hierarchy of a preferred embodiment of the present invention. Each feature case510has one or more processes associated with it. To determine if a particular process512is applicable for a particular feature case510, the accompanying rule514is evaluated to determine if it is “true”. Each process has one or more process steps516. The process step hierarchy is shown in FIG.8. The process steps516describe, for example, the cutting tools, machining parameters, and machining cycles to be used in making the part on the CNC machine.

For the two examples of feature cases below, assume the following feature types and key/values:Feature type=“Threaded Hole M”Key1=“Size”, Possible Values “M8”, “M9”, “M10”. . . Assigned Value=“M10”Key2=“Tolerance”, Possible Values “H1”, “H2”, “H3”. . . Assigned Value=-undefined-

The first example of a feature case is:Feature type=“Threaded Hole M”Key1/value=“M10”Key2/value=-undefined-

The second example of a feature case is:Feature type=“Threaded Hole M”Key2/value=-undefined-

FIG. 6is a tree diagram of the feature, feature type, key, value, and process relationships of one embodiment of the present invention.FIG. 6is similar toFIGS. 4 and 5, exceptFIG. 6is illustrated as a tree. For the purposes of illustration, only two children nodes in the tree are shown for each parent node. However, it should be understood that there may be one, two, three, and more children nodes for each parent node, e.g., one more feature types for each feature. A feature612has one or more feature types, e.g.,614and617, where each feature type has an associated rule, e.g.,616and618, respectively. Each feature type has one or more keys, e.g., feature type614has, e.g., keys620to621, and622. Each key has one or more values, e.g., key620has values623to625, where each value has an associated rule, e.g.,624to626, respectively. For illustration purposes, other examples of keys include key621with value628and associated rule630, and key622with value632and associated rule634. For keys621and622only one value each is shown in order to simplify the explanation of a feature case. In other examples each key has one or more values. Feature cases640and641include feature type614and combinations of key/value pairs, i.e., combinations of one or more key/value pairs. Feature case640has key/value pairs, key620/value625, key621/value628, and key622/value632. Feature case641has key/value pairs, key621/value628, and key622/value632.

Each feature case has one or more processes, e.g., feature case640has processes642to646, where each process has a rule, e.g.,644to648, respectively. Feature case641has processes660to664with associated rules662to666. If the process rule evaluates to true, then the associated each process has one or more process steps, e.g., process642has process steps650to652.

The rules inFIG. 6are logical expressions, which if true, select the associated feature, feature type, key/value, or process. The rules prune the tree inFIG. 6, and the code associated with the selected processes are inserted in the manufacturing program to machine the part. A logical expression includes any fragment of code that evaluates to a logical “true” or “false” value. For example, let the symbol “A” be a comparison expression such as “Feature.layer.name=“ThreadedHoles”; let the symbol “B” be a comparison expression such as “feature.diameter<0.5”; and let the symbol “C” be a comparison expression such as “feature.customproperties(“Pitch”).value=14”. A logical expression includes A, B, or C individually, as well as any logical combination of A, B, and C, e.g., (A OR B AND C), (A AND NOT B), NOT C, (B XOR C NOR A). The user may write the comparison, code fragments, and logical expressions using VB.

As an example of the use ofFIG. 6, assume that there are the following items for the feature type, keys, values and processes for a part having a hole to be drilled in it.Feature Type=“Threaded Hole M”Key1=“Size”, Possible Values “M8”, “M9”, “M10”, Selected Value “M10”, Possible Processes=“P1”, Selected Process=“P1”Key2=“Tolerance”, Possible Values “H1”, “H2”, “H3”, Selected Value=“undefined”, Possible Processes “P1”, “P2”, Selected Process=“P1”

In our example the feature612has feature type614“Threaded Hole M”. In this case there is no need for rule616, as there is only one feature type. Feature type “Threaded Hole M” has two keys, Key2620and Key1621. Key1has three possible values, “M8”, “M9”, and “M10”. The rules associated with values “M8” and “M9” are false and the rule associated with “M10” is true. Hence the selected value for Key1=“Size” is “M10.” In one embodiment the first rule that is evaluated to true is chosen. In an alternative embodiment, if there is more than one rule that evaluates to true the user is asked to select the value or an artificial intelligence (AI) expert system does the value selection. For the case of Key1with selected value “M10,” there is only one process P1that will be used to machine a hole of size “M10”. Key2has possible values “H1”, “H2”, “H3”, and a default value of “undefined”. The default value is chosen, when the rules for “H1”, “H2”, and “H3” evaluate to false. For Key2with “undefined value”, there are two processes, “P1” and “P2”. Process rule for P1evaluates to true, so that process “P1” is selected. Process “P1” has one or more process steps which will drill a treaded hole with size “M10” and tolerance “undefined” (e.g., any tolerance or a predetermined user specified tolerance).

FIG. 7is a block diagram of a portion of a generating program710which creates a part of a CNC program740of an embodiment of the present invention. Program710includes a software module712to evaluate the rules and a software module714to generate the CNC program740. The programs710and740are stored in a computer readable medium. A computer, having a processor and a memory, executes generating program710to produce CNC program740. The computer is connected to database (DB)720via a communications link. Generating program710uses data from DB720. The evaluate rules module accesses rule tables, e.g., feature rules721, feature type rules722, value rules per key724, and process rules726, and evaluates the rules in these tables to true or false, where the rules include, e.g., logical expressions, function calls with a logic true/false return value, and code fragments that evaluate to true or false. Because the user inputs these rules directly into DB720, the generating program does not need to be changed when the rules change. In an alternative embodiment the generating program710is self-modifying, i.e., modifies itself to result in CNC program740.

DB720also has a table728having parameter formulas for the machining parameters or conditions (there is also another table (not shown) for the cutting tools and associated parameters). Each parameter has an associated formula, which in some cases may be a single predetermined number, which when evaluated gives the parameter a numerical value. The parameters (not shown) are also stored in DB720. In addition the DB720includes a plurality of machining cycles, where each machining cycle includes a section of predetermined source code (for example, in C++), e.g., machining cycle1730to machining cycle N732, where N is an integer number. A process step via the generate CNC code module714will use a machining cycle to generate a CNC block of code, e.g., CNC code block1742or CNC code block2744, where the CNC block of code includes the tool path (G-code). The CNC code blocks are inserted into the CNC program740, which is used to machine the features on the part on a CNC machine.

FIG. 8is diagram of a process step of an embodiment of the present invention. Each process step812has one or more machining cycles814. Each machining cycle814has one or more machining parameters816and one or more cutting tools820. Each cutting tool820has one or more cutting tool parameters822. A machining parameter816has associated with it an optional formula818that is used in calculating a numerical value to be assigned that machining parameter. A cutting tool parameter822has associated with it another optional formula824that is used in calculating a numerical value to be assigned that cutting tool parameter.

FIG. 9is a flowchart for creating a manufacturing program of another embodiment of the present invention. At step910a model of the part is retrieved from database720. The features of the part are selected from a list of features using a first set of rules (step912). The feature types of each feature are selected from a list of feature types using a second set of rules (step914). At step916, a list of keys is retrieved for each feature type. At step918, a value for each key is selected using a third set of rules. For each selected feature type with a combination of one or more key/value pairs, one or more feature cases are created. For each feature case the database720is accessed to retrieve a list of associated processes (step922). At step924from this list of associated processes, a process is selected for the feature case using a fourth set of rules. At step926, for each process step of each selected process the machining cycle(s) and associated machining parameters and cutting tools and associated cutting tool parameters are determined. For each machining parameter a numerical value is determined using the associated formula. The numerical value may optionally be a cost. For each cutting tool parameter a numerical value is determined using the associated formula. At step928, for each process step, a portion of CNC code is generated and inserted into the CNC program.

The preferred embodiment of the present invention uses the following pseudo code to generate the machining cycles which are used to give the CNC code to machine the features of the part type.

Select Possible Feature Types for Part Type from DBFor Each Possible Feature Typeif Evaluate(Possible Feature.Rule) = True thenAssign Feature type to Part TypeExitEnd_IfEnd_For #Next Possible Feature Type #Select Keys for Feature TypeFor Each KeySelect Possible Values for Key from DB (where default value = undefined)For Each Possible Valueif Evaluate(Possible Value.Rule) = True thenAssign Value to Key (create key/value pair)ExitEnd_IfEnd_For #Next Possible Value#End_For #Next Key #Determine a Feature Case for Each Feature type using The Feature Type and acombination of Associated Key/Value PairsSelect Possible Processes For Each Feature CaseFor Each Possible Processif Evaluate(Possible Process.Rule) = True thenAssign Process to Feature TypeExitEnd_IfEnd_For #Next Possible process#For Each Process Step in Assigned Process # a process step includes onemachining cycle in combination with a given set of parameters values#Select Machining Parameters from DBEvaluate Formula for Each Machining Parameter to Calculate MachiningParameter ValueSelect Cutting Tool(S) and Calculate Cutting Tool ParametersCreate a Machining Cycle from Machining Parameters and SelectedCutting Tool(s)End_for #Next Process Step#END

In one embodiment the above pseudo code is written in VB/VBA and is interpreted by the Visual Basic interpreter to create the CNC program in real-time.

FIG. 10is a tree diagram of the part, feature, key, value, and process relationships of an alternative embodiment of the present invention.FIG. 10is represented as a tree. For the purposes of illustration, only two children nodes in the tree are shown for each parent node. However, it should be understood that there may be one, two, three, and more children nodes for each parent node, e.g., one more features for each part. A part or part type1012has one or more features (or feature types), e.g.,1014and1017, where each feature (or feature type) has an associated rule, e.g.,1016and1018, respectively. Each feature (or feature type) has one or more keys, e.g., feature (or feature type)1014has, e.g., keys1020and1021. Each key has one or more values, e.g., key1020has values1022and1025, where each value has an associated rule, e.g.,1024and1026, respectively. Each value has one or more processes, e.g., value1025has processes1030and1034, where each process has a rule, e.g.,1032and1036respectively. Each process has one or more process steps, e.g., process1030has process steps1040and1042.

InFIG. 10different parts may have the same feature (or feature type), different features (or feature types) may have the same key, different keys may have the same value, different key/value pairs may have the same process, and different processes may have the same process step. Thus the term “tree” has been used to simplify explanation andFIG. 10is actually a graph, which may include a tree. In one embodiment a feature (or feature type) and all the feature's key/value pairs have one or more associated processes. In an alternative embodiment a feature (or feature type) and each key/value pair has one or more associated processes. In other embodiments a feature (or feature type) and one or more key/value pairs have one or more associated processes.

Rather than traverse the tree ofFIG. 10, after the feature (or feature type) rules determine the features (or feature types) in a part or part type and the value rules determine the values for each key, the possible feature cases are determined, where a feature case, comprises a feature (or feature type) of the part and all the key/value pairs for that feature (or feature type). The feature case is then used to search DB720to find the possible associated processes.

FIG. 11is a flowchart for a generating program used to create a manufacturing program of an alternative embodiment of the present invention. At step1050a model of the part is retrieved from DB226. The features of the part are selected from a list of features using a first set of rules (step1052). At step1054, a list of keys is retrieved from the DB226for each feature. At step1016, a value for each key is selected using a second set of rules. The default value is either “undefined” or may be set to a predefined value by the user. For each value a list of associated processes is retrieved from DB226(step1018) and from this list of associated processes, a process is selected using a third set of rules (step1020). For each selected process one or more process steps are retrieved from the DB226(step1022). At step1024, the associated CNC code associated with each process step is generated and inserted into the CNC program.

FIG. 12is an example of a feature manager display of an aspect of the present invention. Feature manager window1110has four sub-windows, i.e. a part types sub-window1112listing the part types, a feature type sub-window1120listing the feature types for a highlighted part type, a keys sub-window1130listing the keys for a highlighted feature type, and a value sub-window1140listing values for a highlighted key. For example, in the part type sub-window1112part name1116“Gear Box 8742”1119is highlighted and the description column1118is unfilled. The feature type sub window1120has a column for the feature type name1122, the feature object type1124, and the feature type rule1126. The feature types listed are for part type “Gear Box 8742.” The feature row1125with feature type name “threadedhole,” feature object type “FeaturePTOP”, and feature type rule “Feature.layer.name=“ThreadedHoles” is highlighted. The keys sub-window1130has three keys for feature “threadedhole”: Pitch1134, Size1132, and Tolerance1138, where Pitch1134is highlighted. The value sub-window1140has a value name column1142and a rule column1144. The values listed are for the Pitch key. Value name “20”1146has rule “feature.diameter=0.5”. Value name “14”1148has rule “feature.customproperties(“Pitch”).value=14”.

FIG. 13is an example of a window1210listing a set of values and associated rules of another aspect of the present invention.FIG. 13illustrates that a condition in a rule can take many forms. There is a column for the name of the value1212and a column for the rule1214which selects the value. For example, value “¾″”1220has a comparison expression for a rule, i.e., “Abs(Feature.diameter−0.75)<0.0001,” which evaluates to either true or false. Value “¾″”1222also has a rule “feature.diameter=0.75”, where “feature.diameter” may be a function call returning a numerical value.

FIG. 14shows a feature case window1310of an aspect of the present invention. The part type shown in selection1312is “Gear Box 8742” with feature type object in selection1311as “FeaturePTOP”. In the feature case sub-window1314there is a key column1316and a value column1318. One feature case is shown for feature type (“Feature Type”1320) “Counterbored Hole”1319, key=“Size”1322and value “Any”1324. These items are also shown in the feature manager window of FIG.12. For example, in row1150of the feature sub-window1120, the feature “Counterbored Hole” with object type “FeaturePTOP” is displayed. In the processes sub-window1330the name of the processes for the feature case displayed in sub-window1314is shown. In this case only one process1336is shown, i.e., “¾” Counterbored Hole,” with an undefined rule1334. The process steps sub window1338has a column for the process step name1340and for the corresponding cutting cycle1342. The two process steps shown,1344and1346, are for Pre Drill and Plunge Mill and the corresponding cutting cycle1342is “MillDrill”.

From the above example, it can be seen that multiple feature type, value, and process rules may be true at the same time, and a conflict of which rule to execute may occur. In one embodiment, the user is shown the choices and must select one of the choices. The user by setting a logical expression to automatically select his/her choice, has incorporated his/her decision rationale into the system, e.g., generating program710. Thus the expert, i.e., user, is teaching the system, and the system is capturing the expert's knowledge. In another embodiment, a default-priority may be set.

In the preferred embodiment the CAM program has a GUI, e.g.,FIGS. 12-14, to define and display rules, feature types, keys, values, processes, and process steps. These definitions are stored in the DB. When the generating program710analyzes a geometric model of the part/part type, the appropriate feature types, keys, values, and processes are selected automatically using the rules. For the selected processes, the code associated with each process step of each process is retrieved from DB720and used to create the CNC program740. The CNC program740is then sent to program the CNC machine to produce the features of the part.

Although specific embodiments of the invention have been described, various modifications, alterations, alternative constructions, and equivalents are also encompassed within the scope of the invention. The described invention is not restricted to operation within certain specific data processing environments, but is free to operate within a plurality of data processing environments. Additionally, although the invention has been described using a particular series of transactions and steps, it should be apparent to those skilled in the art that the scope of the invention is not limited to the described series of transactions and steps.

Further, while the invention has been described using a particular combination of hardware and software, it should be recognized that other combinations of hardware and software are also within the scope of the invention. The invention may be implemented only in hardware or only in software or using combinations thereof.