Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating the Hole with Existing Point

Status
Not open for further replies.

BarathAlagar

Mechanical
Apr 6, 2021
10
I want to create the hole with existing point. when try to CommitFeature it gives the error like "A Sketch was expected but not found"

please refer below code in C#,
HolePackage Hole_Feat = (NXOpen.Features.HolePackage)holePackageBuilder1.CommitFeature();

Note: The error get capture in try catch and The hole is getting created in NX. But not able to get the holePackage through CommitFeature.
 
Replies continue below

Recommended for you

To be honest, I am unsure what you are describing, but since nobody has answered I will take a shot in the dark for you.

Is it possible you are creating the points using a sketch feature and not creating a regular point or something? Or maybe when creating the point you have associative checked?

Ken
My brain is like a sponge. A sopping wet sponge. When I use it, I seem to lose more than I soak in.
 
It may work best if you create a new sketch for the hole and make the point in the sketch coincident to the existing point.

Jerry J.
UGV5-NX1899
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor