Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

NX Open API. CAM. Coordinates tool path

[ Edited ]

Hi,
Please tell me a piece of code for the NX Open API for get information as the screenshot. The possibility change it.
Can be in any language (C ++, C #, VB). Preferably VB. Any operation.

The screenshot simulation of the control panel

7 REPLIES

Re: NX Open API. CAM. Coordinates tool path

[ Edited ]

I'm not sure exactly what you are asking.

You can postprocess the path to get all the moves.

 

Or do do you want to edit the path motions directly from the API? 

If so, starting in 10.0.1, there is a Path class inthe CAM namespace - take a look at the header file CAM_Path.hxx. 

 

If this is not the answer, let me know and I will move this to the programming forum where there are a lot of API experts. 

Mark Rief
Retired Siemens

Re: NX Open API. CAM. Coordinates tool path

[ Edited ]

Or do do you want to edit the path motions directly from the API? 

 

 

Yes it is.


I cannot understand API code. I would like to get part a code for of example.
Thanks for the help. I will look into the file CAM_Path.hxx

Re: NX Open API. CAM. Coordinates tool path

I'm still not clear on this - perhaps we're losing something in the translation.

 

I am moving this to the programming forum . I think the audience there will better understand this and maybe even have a sample.

Mark Rief
Retired Siemens
Solution
Solution
Accepted by topic author magcaster
‎03-12-2016 12:31 PM

Re: NX Open API. CAM. Coordinates tool path

There is a c# sample in the GTAC knowledge base that may help  https://solutions.industrysoftware.automation.siemens.com/view.php?sort=desc&q=CAM_Path&file_type=te...

Mark Rief
Retired Siemens

Re: NX Open API. CAM. Coordinates tool path

You are very good to help me. Thank you very much.

This is an excellent starting point for solving the problem of obtaining information about the tool path and its change

Re: NX Open API. CAM. Coordinates tool path

Hi,
I have completed my task.


But there is an error in the file.
https://solutions.industrysoftware.automation.siemens.com/result.php?sort=desc&q=GetPathInformation


I launched this example in the original language C # and the original text - the same error is present.

 

Error on line "Case CamPath Toolpath EventType.LevelMarker"
"LevelMarker" is not a member of the "Case CamPathToolpathEventType"

 

NX Version : 10.0.3.5

 

You know what could cause this error?

Re: NX Open API. CAM. Coordinates tool path

The author of the sample says it should work in NX 10.0.3 and newer. 

You can get around the problem by commenting out the lines as shown below: 

 

                        /*
                            case CamPathToolpathEventType.LevelMarker:
                                PathLevelMarker pathLevelMarker = path.GetLevelMarker(j);
                                double levelDepth = pathLevelMarker.LevelDepth;
                                Vector3d vector3d = pathLevelMarker.LevelNormal;
                                theSession.ListingWindow.WriteLine(j.ToString() + ".Level Marker Depth : " + levelDepth + " Normal X" + vector3d.X + " Y" + vector3d.Y + " Z" + vector3d.Z + "\n\n");
                                break;
*/
Mark Rief
Retired Siemens