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?
Any ideas?





RE: NXOpen for Slot
www.nxjournaling.com
RE: NXOpen for Slot
RE: NXOpen for Slot
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
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
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
RE: NXOpen for Slot
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
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