
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all
Could someone please advise me whether it is possible to automatically divert Inventor to save to a specific folder within the workspace???
If a certain iProperty is set to yes, we want the user to save that file into a particular folder, if they try and save it elsewhere a message is popped up telling them an error has been made please try and save in the correct folder.
Admittedly I am not the most competant iLogic programmer but this is what I have thus far
Format:HTML Format Version:1.0 StartHTML: 165 EndHTML: 5388 StartFragment: 314 EndFragment: 5356 StartSelection: 314 EndSelection: 314
SyntaxEditor Code Snippet
WorkspacePath=ThisDoc.WorkspacePath()
DrawingPath="C:\Live WorkSpace\Designs\3D Designs\3D Drawings"
If(NotSystem.IO.Directory.Exists(DrawingPath))ThenSystem.IO.Directory.CreateDirectory(DrawingPath)
EndIf
oDoc=ThisDoc.FileName
MessageBox.Show(oDoc, "Title")
ThisDoc.Document.SaveAs("C:\Live WorkSpace\Designs\3D Designs\3D Drawings\"&"\"&oDoc&".dwg" ,True)
'ThisDoc.Document.SaveAs(DrawingPath & "\" & ThisDoc.FileName(False) & (".dwg") ,True)
'ThisDoc.Save
If someone could just point me in the right direction
Thanks
GW
Solved! Go to Solution.