Showing results for 
Search instead for 
Do you mean 

Getting defining edge for a chamfer

Is there away to get the start and end points of an edge that defines a chamfer without having to rollback the feature in order for the edge to become alive again? Or do you have to rollback or make previous feature current?


Re: Getting defining edge for a chamfer

I've never tried this or ever created/edited chamfers using code, but...

If you pass the Chamfer object to the ChamferBuilder you should be able to call ChamferBuilders smartCollector() method to get the ScCollector that defines the geometry. Once you have the ScCollector call it's getObjects() method to return the objects that were used. In that list should be the edge (I think).

Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP11 64bit Testing: NX9.0.2.5

Re: Getting defining edge for a chamfer

Everything is true, but the edge isn't alive because the feature is still active.
I was hoping there was a way to get the points of the without having to make the chamfer feature inactive because that takes a second or for it make the previous feature inactive, get the defining edge, get the points and then making chamfer active again. Just a lot of wasted time to get two points if you ask me