- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a working macro for saving a file, however I need to add the title of the part to the end of the file name, and I cannot find the code for it.
oDataMedium.FileName = "U:\DWF\" & onamefile & " " & TITLE & ".dwf"
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Are you using VBA or iLogic? This is a list for ilogic snippets.
https://adndevblog.typepad.com/manufacturing/2018/04/accessing-iproperties-through-ilogic-code.html
If I am correct you can not use ilogic snippets in VBA and need to use property sets. Perhaps you can verify if they work?
https://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html
Or if this helped you, please, click (like)
Regards
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Here is a more up to date list and you can extract a list of your current inventor release.
https://modthemachine.typepad.com/my_weblog/iproperties/
Or if this helped you, please, click (like)
Regards
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Can you try the sample read iproperty sub in the image and change the property set and property as the per the chart referencing title. Failing that post the code your using to extract the title string from the file.
Or if this helped you, please, click (like)
Regards
Alan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I figured it out.
Dim oDoc As String
oDoc = ThisApplication.ActiveDocument.PropertySets.Item(1).Item(1).Value
Thanks for the help.