- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a macro that has been working fine. It's purpose is to make a PLASMA LIST of all of the sheet metal parts in an assembly and it does this perfectly. Except for 1 file. The line in the code is as follows :-
If oOccs.Count <> 0 Then
row = row + 1
With excel_app
.Range("A" & Format$(row)).Select
Selection.Font.Bold = False
With Selection.Font
.Name = "Calibri"
.Size = 10
End With
.ActiveCell.FormulaR1C1 = Left(oDoc.DisplayName, Len(oDoc.DisplayName) - 4)
The problem is the last line. It removes the last 4 characters from the part DisplayName. This is because we have the filename extensions visible in Explorer. So it removes the .ipt and .iam and such.
But for 1 particular file it removes the last 4 characters of the file name. It's as if the file has no extension even though I can see/read it. Attached to this post is a screen capture of the part in INV and its iProperties screen, as well as a Windows Explorer properties screen. I'm absolutely stumped as to what is going on here. I've played around with the file name by adding text to the end and also by renaming the display name in the Model tree and all of these result in what I would expect-that the last 4 characters are removed. Any help greatly appreciated.
CAD Manager
![]()
New Blog | Old Blog | Google+ | Twitter
Inventor 2016 PDSU Build 236, Release 2016.2.2, Vault Professional 2016 Update 1, Win 7 64 bit
Please use "Accept as Solution" & give "Kudos" if this response helped you.
Solved! Go to Solution.