×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Hole & Slot UDF

Hole & Slot UDF

Hole & Slot UDF

(OP)
Hello,

I'm trying to figure out how to make a UDF in NX (5.0.6.3)that makes a hole and slot which lie on the same axis on a plane.  I know how to make it so I can define the slot and hole sizes, but I want to be able to select a line on a face and then have the hole placed at on end of the line and the slot placed at the other, with the slot being parallel to that line.  Can this be done?

Thanks.  

RE: Hole & Slot UDF

Could you provide a picture or perhaps even an example part file showing the feature arrangement?

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Hole & Slot UDF

Can you include the line in the Udf ?
 I.e create the line as a Sketch line (It can probably be set to reference)and then define the other two depending on that line.
 The problem otherwise is that you need to resolve both the placement of the hole and the slot when you use the Udf. ( i.e pick what endpoint of the line that the hole should snap to and then define placement dimensions for the slot to the same line.
If you include the line, you should only need to place that sketch and possibly correct the length. The hole and the slot should update automatic.  

RE: Hole & Slot UDF

(OP)
Thanks for the replies.  I tried to include the line as a reference but maybe I'm not doing it right.  I have a sketch as shown in the attached picture with the hole, slot and reference line.  I then extrude this sketch to make the hole and the slot.  When I make the UDF, I try giving it 3 reference geometries:  Planar surface, horizontal reference, and I added the reference line.  But when I try using it on a block in another part (by selecting a face, an edge for horizontal reference and a line I sketched on the face), I get the error "Cannot Copy Feature".

RE: Hole & Slot UDF

Sorry if i confused you, you shouldn't need to include the line as a "reference" in the UDF. But your UDF must contain the sketch where the line is drawn. In the picture it looks if you only need to copy ( = include in the Udf) two features, Sketch (3)"Sketch_001" and Extrude(4).
I assume that Sketch (1) and Extrude (2) is the grey block which the later 2 is drawn upon.
If you test the "mechanics" by copying the Sketch(3) and extrude (4) , then i the same part do a "Paste", NX should prompt you to resolve the needed references. You should be able to paste this in any plane onto that grey solid, or in a different part. If you cannot, there is some strange reference in the Sketch or the extrude.

RE: Hole & Slot UDF

One of the "tricks" someone once showed me was when creating a UDF that has a sketch use a Fixed constraint on the sketch to tie down the location.  Then when you import the UDF you only need to define the placement face and positioning dimensions.  This eliminates the need to select external references.

John Joyce
N.C. Programming Supervisor
Barnes Aerospace, Windsor CT
NX6.0.5.3

RE: Hole & Slot UDF

(OP)
I think my issue is that I want to choose an external reference.  I want to be able to pick any line on any part and automatically have a hole placed at one end of the line and a slot placed on the other.  The size of the hole and slot would be UDF parameters, but I want the spacing and orientation to be determined by whatever line I choose.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources