Message 1 of 3
Save as file name length
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm running into an issue when trying to do a save as using iLogic and I'm wondering if there is a limitation of the file name length when doing the save as. The below code is a the section I'm having problems with. When its doing the save as it always throws up an error, but if I changes the path from E:\Work\Engineering\Drawings\ to E:\Work\Engineering\Drawing\ it works fine. Why would dropping the "s" make any difference?
'Dim oNewHoseAssy As AssemblyDocument oNewHoseAssy = ThisApplication.Documents.Add(kAssemblyDocumentObject,,False)
Dim oCompName As String Dim DwgFldr As String Dim HydFldr As String Dim FileName As String
oCompName = 504900.01 DwgFldr = Left(oCompName, 3) HydFldr = oCompName.Split(".")(0) FileName = "E:\Work\Engineering\Drawings\" & DwgFldr & "\" & HydFldr & "\" & oCompName & ".iam" oNewHoseAssy.SaveAs(FileName, False)
Andrew In’t Veld
Designer / CAD Administrator