×
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

Insert Parts List from Template Journal

Insert Parts List from Template Journal

Insert Parts List from Template Journal

(OP)

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

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