×
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

NXOpen for Slot

NXOpen for Slot

NXOpen for Slot

(OP)
I am trying to create an NXOpen program for creating slots within a block. After journaling the creation of a slot there is nothing in the journal file. I knew this would be the case since there weren't any green dots next to the slot feature.

Any ideas?

RE: NXOpen for Slot

I'd suggest searching the API reference on the term *slot*.

www.nxjournaling.com

RE: NXOpen for Slot

(OP)
I did search the api no luck. I'd like to program a slot rather than a block with four edge blends.

RE: NXOpen for Slot

Are you searching in the net_ref.chm document?

Using the NX 9 version of the document, searching for *slot* yields 77 results including:
CreateBallSlot
CreateDoveTailSlot
CreateRectSlot
CreateTSlot
CreateUSlot

www.nxjournaling.com

RE: NXOpen for Slot

(OP)
Hi Cowski,

I found it. Thank you.

Having a few issues. I am putting the slot into an block I created using: ufs.Modl.CreateBlock1(sign, corner_pt, edge_lengths, block_feat_tag).

Now that I have the block created, I need to get the face tags of the upper and lower faces of the block.

How do I get the faces and tags of the block?

Regards

RE: NXOpen for Slot

Why not use the BlockFeatureBuilder to create the block and then get the faces of the block using its getFaces() method?

Graham Inchley, Systems Developer, Sandvik Coromant. www.sandvik.com
HP EliteBook 8760w, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP4 64bit
Testing: NX9.0.2.5

RE: NXOpen for Slot

(OP)
Doesn't matter which method I use. I don't have a problem getting the faces of the block. My problem lies with getting the tags of those faces.

RE: NXOpen for Slot

Every TaggedObject has a method tag() that returns the... tag.

Graham Inchley, Systems Developer, Sandvik Coromant. www.sandvik.com
HP EliteBook 8760w, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP4 64bit
Testing: NX9.0.2.5

RE: NXOpen for Slot

(OP)
I've managed to get something working for cutting a rectangular slot within a solid block. However, the slot is slicing the in two pieces. I assinged the top face tag to the "RPO Contraints"

Here's the snippet of code:

Dim loc(2) As Double
loc(0) = iOrigin.X
loc(1) = iOrigin.Y
loc(2) = iOrigin.Z

Dim tool_axis(2) As Double
tool_axis(0) = iAxis.X
tool_axis(1) = iAxis.Y
tool_axis(2) = iAxis.Z

Dim directon(2) As Double
directon(0) = iDirection.X
directon(1) = iDirection.Y
directon(2) = iDirection.Z


Dim features As NXOpen.Tag
features = Nothing

theUFSession.Modl.CreateRectSlot(loc, tool_axis, directon, Width.ToString(), Depth.ToString(), Length.ToString(), TopFace.Tag, TopFace.Tag, BtmFace.Tag, features)


Dim featName As String = Nothing
theUFSession.Modl.AskFeatName(features, featName)

Dim bodyFeature1 As Features.BodyFeature = CType(workpart.Features.FindObject(featName), Features.BodyFeature)

Return bodyFeature1

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