MANox
Mechanical
- Apr 2, 2007
- 121
Hey everybody,
I want open drawing in NX with TC, using journal.
First I want check is drawing file exist.
In native mode I used
Maybe somebody know command with I can use in TC?
Best regards
MANok
NX12&TC10
I want open drawing in NX with TC, using journal.
This part of code works very well.vb said:basePart1 = theSession.Parts.OpenActiveDisplay("@DB\" & workPart.GetStringAttribute("DB_PART_NO") & "\" & workPart.GetStringAttribute("DB_PART_REV") & "\specification\" & workPart.GetStringAttribute("DB_PART_NO") & "_dwg", NXOpen.DisplayPartOption.AllowAdditional, partLoadStatus1)
status1 = Nothing
status1 = theSession.Parts.SetActiveDisplay(basePart1, NXOpen.DisplayPartOption.AllowAdditional, NXOpen.PartDisplayPartWorkPartOption.UseLast, partLoadStatus1)
workPart = theSession.Parts.Work
displayPart = theSession.Parts.Display
partLoadStatus1.Dispose()
First I want check is drawing file exist.
In native mode I used
Code:
If File.Exist("file_name_with_extension")Then...
Best regards
MANok
NX12&TC10