Home Up Feedback Contents Download Search Search Results

Custom MRR
Home Up CMP3DPro Installation CMP3DPro Quick Start CMP3DPro Console CMP3DProView Samples CMPxML Custom MRR

 


Up
Coding Custom MRR
Checking Custom MRR

Custom MRR (Material Removal Rate) ~ You can used your customized MRR equation! - Available only for Subscription Version.

How to use your customized MRR equation

Just change the value from "Default" to "Custom" in the <CMPMRREquation> parameter element in the <CMPPreston> parameter group element.
CMPxML - CMPPrestonSets

Then CMP3DPro will call the Rate method customized in the CustomMRR class located in the CustomMRR.dll library file found in the application folder of CMP3DPro.

How to customize the MRR equation

Write your customized MRR rate equation in the generic source code CustomMRR.cs and compile it to the library file CustomMRR.dll and copy it to the CMP3DPro folder.

To write your MRR equation, you must do some coding with .NET framework SDK. This framework is available free from Microsoft Web site.

   
.NET Framework SDK Version 1.1 (free download)

You need some knowledge about coding in C# language. I recommend to read these texts first, if you are not familiar with this language.

    The C# Version of Hello World!

    Building from the Command Line

    Note) Set path for command line compile like below,
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322

Refereces for more information

    Creating and Using C# DLLs

    C# In-Depth Harness the Features of C# to Power Your Scientific Computing Projects

How to customize MRR equation - step by step

Step 1. Open the source code of "CustomMRR.cs" in the "CustomMRRToolKit" folder by a text editor such as NotePad application.

"CustomMRRToolKit" Folder has 4 files below
   
Build-CheckCustomMRR.bat
    Build-CustomMRR.bat
    CheckCustomMRR.cs
    CustomMRR.cs

Step 2. Customize the MRR rate equation in "CustomMRR.cs" and save the file.

Step 3. Compile the source code "CustomMRR.cs" in the "CustomMRRToolKit" folder to make a library file "CustomMRR.dll" with the command,

    csc /t:library /out:CustomMRR.dll CustomMRR.cs

or just double click the batch file "Build-CustomMRR.bat" for short.

Step 4. We recommend to test your customized MRR equation manually on console. For that purpose, open the source code of "CheckCustomMRR.cs" and implement the test codes and save them. Compile it with the command,

    csc /r:CustomMRR.dll CheckCustomMRR.cs

or just double click the batch file "Build-CheckCustomMRR.bat" for short.

Step 5. Double click CheckCustomMRR.exe to run the test program.

Step 6. If the test is successfully done, copy the "CustomMRR.dll" from the "CustomMRRToolKit" folder to to the CMP3DPro folder. If the test is unsuccessful, please return the Step 1 to modify the rate equation code.


Information Request Form

Select the items that apply, and then let us know how to contact you.

Send service literature
Send company literature
Have a salesperson contact me

Name
Title
Company
Address
E-mail
Phone

 

Send mail to istation@ynt-jp.com with questions or comments about this web site.
Last modified: 04/30/05