Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Insert Parts List from Template Journal

Status
Not open for further replies.

Techomick

Mechanical
Jun 21, 2011
46
0
0
US

I have been trying to insert a parts list in NX8.5 Managed from a template, but have been unsuccessful. It seems like the journal is pulling the parts list but then not actually displaying it. The mapping of the UF functions are still very new to me and I cannot find any help on the UGAnswer page. This is what I have so far:

Dim markId1 As NXOpen.Session.UndoMarkId = theSession.SetUndoMark(Session.MarkVisibility.Invisible, "")
Dim pl_tags() As Tag = Nothing
Dim n_pls As Integer = Nothing
theUFSession.Plist.AskTags(pl_tags, n_pls)
Dim PartsList As DisplayableObject = DirectCast(NXObjectManager.Get(pl_tags(0)), DisplayableObject)

If PartsList.Layer = 0 Then
' hasn't been inserted yet so place it anywhere
Dim zero As Double() = {0, 0, 0}
Dim prefs As UFPlist.Prefs = Nothing
theUFSession.Plist.AskDefaultPrefs(prefs)

theUFSession.Plist.CreateFromTemplate("@DB/DH_Parts_List_metric/A", zero, pl_tags(0))

End If





Thanks for any help in advance!


Design Engineer, NX 7.5
 
Status
Not open for further replies.
Back
Top