12-14-2022
06:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-14-2022
06:05 AM
Here are some lines of code that you can use for that sort of thing.
Dim oDoc As Document = ThisApplication.ActiveDocument Dim oPath As String = System.IO.Path.GetDirectoryName(oDoc.FullFileName) Dim oName As String = System.IO.Path.GetFileNameWithoutExtension(oDoc.FullFileName) Dim oNameAndExt As String = System.IO.Path.GetFileName(oDoc.FullFileName) Dim oExt As String = System.IO.Path.GetExtension(oDoc.FullFileName)
If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS)
.
Wesley Crihfield
(Not an Autodesk Employee)