I'm trying to do a machine simulation with NX open.
Currently I'm able to set the desired settings and do the simulation.
But how do I check if there were any collisions, gauges or limit violations in my NC program?
Does anyone has experience to automate this process?
Solved! Go to Solution.
there is a method in the isvControlPanelBuilder named GetDetailCount and you can search for detailstypes like collisions, limits, gouges. You can call it at the end of your simulation run e.g. for collisions and do something with the data, in my case i put the results into a Arraylist named Collisions
ArrayList Collisions = new ArrayList();
int mycollision = isvControlPanelBuilder1.GetDetailCount(NXOpen.SIM.IsvControlPanelBuilder.DetailType.Collision);
if (mycollision != 0)
for (int i = 0; i <= mycollision; i++)
isvControlPanelBuilder1.GetDetail(NXOpen.SIM.IsvControlPanelBuilder.DetailType.Collision, i, out time, out description, out NcLine, out programname, out channelname);
Collisions.Add("Type: Collision;" + time + ";" + description + ";" + NcLine + ";" + programname + ";" + channelname);
Hope that helps.
This topic interesting for me too. Can I call my UFUNC application from mcf or ccf or python files?
where I can find any manuals about ISV-sim & NXOPEN?
so far as i know it's not possible to call dll's directly from the mcf or ccf file. With Python it should be possible to load dll's during execution but i am unsure how this dll can interact with the NX interface because it's not activated thru the entrypoint and access to the session is maybe not possible. Buf if anyone have some experience with this it would be great to share this .
For loading dll's from Python it seems the way should be ctypes.
For help about ISV-Sim/ NXOpen you should use the .NET/ C++ Reference in the web based documentation.