Refresh all TC attributes by journal
Refresh all TC attributes by journal
(OP)
Hello,
I am trying to refresh all TC attributes like "File -> Properties - Reload Atrributes from Teamcenter" with a journal file. Recording the journal does not work. So I am trying this code but with no success. I am allways getting errors.
Thanks in advanced for any help.
Carsten
I am trying to refresh all TC attributes like "File -> Properties - Reload Atrributes from Teamcenter" with a journal file. Recording the journal does not work. So I am trying this code but with no success. I am allways getting errors.
CODE --> vb
Option Strict Off Imports System Imports NXOpen Imports NXOpen.PDM Module NXJournal Sub Main Dim theSession As Session = Session.GetSession() Dim workPart As Part = theSession.Parts.Work Dim displayPart As Part = theSession.Parts.Display Dim part1 As PDM.PdmPart 'part1 = workPart Dim databaseAttributeManager1 As PDM.DatabaseAttributeManager databaseAttributeManager1 = part1.NewDatabaseAttributeManager() DatabaseAttributeManager1.LoadAttributes(true) End Sub End Module
Thanks in advanced for any help.
Carsten





RE: Refresh all TC attributes by journal
CODE --> vb
Best regrads
Carsten