Hallo UG-ler
ich versuche per Programm ein Part "Testpart" zu öffenen. Als Journal erhalte ich folgenden Code:
' NX 4.0.3.3
' Journal created by Supermario on Wed Feb 25 14:37:08 2009 Westeuropäische Normalzeit
'
Option Strict Off
Imports System
Imports NXOpen
Module NXJournal
Sub Main
Dim theSession As Session = Session.GetSession()
' ----------------------------------------------
' Menü: Datei->Öffnen...
' ----------------------------------------------
Dim basePart1 As BasePart
Dim partLoadStatus1 As PartLoadStatus
basePart1 = theSession.Parts.OpenBaseDisplay("@DB/TEST0001/A", partLoadStatus1)
Dim workPart As Part = theSession.Parts.Work
Dim displayPart As Part = theSession.Parts.Display
partLoadStatus1.Dispose()
Dim markId1 As Session.UndoMarkId
markId1 = theSession.SetUndoMark(Session.MarkVisibility.Visible, "Enter Gateway")
Dim markId2 As Session.UndoMarkId
markId2 = theSession.SetUndoMark(Session.MarkVisibility.Visible, "Enter Modeling")
' ----------------------------------------------
' Menü: Werkzeuge->Journal->Stopp
' ----------------------------------------------
End Sub
End Module
Starte ich das Journal, wird auch mein Part "TEST0001/A" geöffnet, aber soooooo langsam.
Gut, "TEST0001/A" ist eine Baugruppe. Öffne ich "TEST0001/A" mittels UG, also über
Datei -> Öffnen geht das Laden ein Vielfaches schneller.
Hat einer von Euch eine Idee wieso?
Ich brauch den Code in einen VB.Net Programm und finde einfach nichts besseres.
------------------
Gruß Mario
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP