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

Delete a Motion of a Toolpath via NXOpen

[ Edited ]

Hello everybody!

 

Is it possible to delete a motion of a toolpath using methods in NXOpen?

 

Here is a minimalistic example in C#:

 

private void deleteMotionAtPosition(Path curPath, int position)
{
// you can get and set the motion at a specific position i:
PathLinearMotion curMotion = curPath.GetLinearMotion(i);
curPath.SetLinearMotion(i,curMotion);
// but there is no method to delete it:
curPath.DELETEMOTION ?!?!
}

I tried without success:

- journaling

- stuff like : Path.SetLinearMotion(i,NULL);

 

I can use the methods GetLinearMotion and MoveEvent to create two identical motions but

I really want to delete a motion.

 

Thanks in advance!

 

Bye,

 

Flo

 

 

NX 10.0.3

 

 

2 REPLIES
Solution
Solution
Accepted by topic author FlolScreen
‎07-07-2016 06:56 AM

Re: Delete a Motion of a Toolpath via NXOpen

There are some enhancements to the API in one of the MP’s of NX10.0.3 which allows the deletion of one motion. The API in C# would look like this

 

 

private void deleteMotionAtPosition(Path curPath, int position)
{
         curPath.DeleteOneEvent(position);
}

 

Mark Rief
Retired Siemens

Re: Delete a Motion of a Toolpath via NXOpen

Thank you very much for the reply!

 

 

Bye,

 

Flo