Cancel
Showing results for 
Search instead for 
Did you mean: 

modify tracking selection in Operation CAM with C Open API

Experimenter
Experimenter

Hi,

i need to know how i can modify/access the valu of <Defined Tracking Points> and <Main Tracking Point> by using C Open language.

immagine.png

There are some function for this? Any example?

11 REPLIES

Re: modify tracking selection in Operation CAM with C Open API

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Standard response #1 :-)

Have you tried recording a journal?

Note you can use Preferences -> User interface to change the language to C++

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled


Re: modify tracking selection in Operation CAM with C Open API

Experimenter
Experimenter

yes, i tried, but in journal there isn't any reference or interaction for changing the data set.

 

 

.......

   theSession->SetUndoMarkName(markId2, "Teach Mode - [AVV_4DD] Dialog");
    
    // ----------------------------------------------
    //   Dialog Begin Teach Mode - [AVV_4DD]
    // ----------------------------------------------
    NXOpen::UI *theUI = NXOpen::UI::GetUI();
    
    theUI->JournalPause();
    ........

Re: modify tracking selection in Operation CAM with C Open API

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

ANSI C or managed C++, this makes a huge difference.

For ANSI C you should check the UF_CUTTER header files.

For managed C++ you would use the tacking point builder of the tool object.

The GTAC solution center offers some examples too.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: modify tracking selection in Operation CAM with C Open API

Experimenter
Experimenter
sorry but i understand: i need to modify parameter in an operation not in cutter, in the UF_CUTTER header files i found only functions for modify the general trackin point of the cutters but not for simple operation (i need to modify Main Tracking Point with procedure)

Re: modify tracking selection in Operation CAM with C Open API

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Tracking points are inherited from the tool normally.

Attached find a VB.NET Journal to get the operation parameters of the currently selected operation, which might give you a hint about what kind of parameter is holding the requested information.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: modify tracking selection in Operation CAM with C Open API

Experimenter
Experimenter

In the maintime ,thanks for help.

I made the same procedure to print all operation parameter in C, but i didn't find the value of "name parameter" immagine.pngI run the procedure modifing the Main Tracking Point value but i didn't see any significant difference for my case, so i think that i can't use parameters for my problem .

 

I agree that the tracking points are inherited from tool but in operation i need to set "Main Tracking Point" choosing from the available ones.

i don't tell you that i need to modify turning operation

immagine.png=======>immagine.png

Re: modify tracking selection in Operation CAM with C Open API

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Operation parameter 1060 are the tracking points inherited from the cutter.

Operation parameter 1061 are the tracking points available in the operation.

Have you tried changing operation parameter 1117.

I would do the following:

  1. run the journal and save the output to the file before_tp_change.txt
  2. change the tracking point
  3. re-run the journal and save the output to after_tp_change.txt
  4. compare both files with WinMerge, WinDiff or similar to find the difference

Have you also taken a look at the solution center examples?

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: modify tracking selection in Operation CAM with C Open API

Experimenter
Experimenter

Hi, i try what u say, but i don't obtain what i need. I also try to change parameter: 1132 and 1040,the significant differences in windiff, but when i reopen operation don' see difference.

in attacment i put the report that i have.immagine.png

 

Great tx for help!

Re: modify tracking selection in Operation CAM with C Open API

Experimenter
Experimenter
no other idea?

Learn online





Solution Information