Extracting full file path into drawing
Extracting full file path into drawing
(OP)
Hi. I'm creating new drawing templetes for NX5. I have everything set up except for an automated text to get the full file path from our network. Is there something simular to <W@$SH_SHEET_SCALE_DENOMINATOR> but gets the files path.





RE: Extracting full file path into drawing
Find herewith a grip programm developped by John Baker
A part attribute file_spec will be created
Look at the thread561-237514: Launch a .bat file inside a macro for more information
Regards
Didier
RE: Extracting full file path into drawing
' NX 4.0.0.25
' Journal created by Henry on Tue Mar 21 10:57:55 2006 FLE Standard Time
'
Option Strict Off
Imports System
Imports NXOpen
Module NXJournal
Sub Main
Dim theSession As Session = Session.GetSession()
Dim workPart As Part = theSession.Parts.Work
Dim displayPart As Part = theSession.Parts.Display
' ----------------------------------------------
' Menu: File->Properties
' ----------------------------------------------
Dim markId1 As Session.UndoMarkId
markId1 = theSession.SetUndoMark(Session.MarkVisibility.Visible, "Edit Properties")
Dim TimeNote As DateTime
TimeNote = System.DateTime.Now()
Dim TimeNoteString as String() = TimeNote.GetDateTimeFormats()
workPart.SetAttribute("DATE", TimeNoteString(1))
theSession.Parts.Work.SetAttribute("FILENAME",theSession.Parts.Work.Leaf)
' ----------------------------------------------
' Menu: Tools->Journal->Stop
' ----------------------------------------------
End Sub
End Module
What I would like to know is if I can get the code to either activate John's grip, or the code that will do what John's grip does. Thanks!
RE: Extracting full file path into drawing
htt
RE: Extracting full file path into drawing
RE: Extracting full file path into drawing