i am wondering if there is a way to run a rule in the background of updating any idw that is in vault to a idw.dwf in a specific folder.
for example we have a ton of PDF's of drawings that now need to be updated to a folder as a idw.dwf. i was hoping there was a way to do this without having to open each drawing?
Solved! Go to Solution.
Solved by Curtis_Waguespack. Go to Solution.
I'm guessing you don't have Vault setup to automatically create dwf files on check in correct?
And now you want to create dwf files of numerous idw files?
If so..
Which version of Vault do you have? Basic/Workgroup,etc...
we have vault and its set up now. but prior to this set up we have a bunch of files that need to get published to this folder.
vault 2020, not sure if you need more info on this or not.
@Anonymous wrote:
we have vault and its set up now. but prior to this set up we have a bunch of files that need to get published to this folder.
vault 2020, not sure if you need more info on this or not.
Yes please open the vault client and go to help.. about Autodesk Vault and see if it says "Basic" or "Pro",etc..
Have these "bunch of files" already been loaded into Vault?
Since you have pro then you can use the job processor to create visualization files as needed..
edit: it looks like there were more replies concerning Vault that were added after I started to reply, so just disregard my reply if you're planning to use Vault.... sorry for any confusion.
Hi @Anonymous
You can indeed create an iLogic rule to write the DWF to a folder of your choice on the save event of the drawing file, below is one example that place the DWF in a folder called DWFs that resides next to the drawing file, but the pathing can be changed to suit your needs.
If have this work on the save event, you would create this rule as an External Rule, and then set the rule to run on the "Before Save" event for all drawings files (all drawings files being an option that was introduced in Inventor 2018 or 2019) .
Note you can search and ask programming questions related to iLogic rules on the Inventor Customization forum:
http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120
I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com
'this rule outputs all drawing sheets to dwf, 3D models of first sheet included oPath = ThisDoc.Path oName = ThisDoc.FileName(False) 'without extension oFolder = "\DWFs\" If Not System.IO.Directory.Exists(oPath & oFolder ) Then System.IO.Directory.CreateDirectory(oPath & oFolder ) End If DWFAddIn = ThisApplication.ApplicationAddIns.ItemById("{0AC6FD95-2F4D-42CE-8BE0-8AEA580399E4}") oDocument = ThisApplication.ActiveDocument oContext = ThisApplication.TransientObjects.CreateTranslationContext oContext.Type = IOMechanismEnum.kFileBrowseIOMechanism oOptions = ThisApplication.TransientObjects.CreateNameValueMap oDataMedium = ThisApplication.TransientObjects.CreateDataMedium If DWFAddIn.HasSaveCopyAsOptions(oDataMedium, oContext, oOptions) Then oOptions.Value("Launch_Viewer") = False oOptions.Value("Publish_All_Component_Props") = True oOptions.Value("Publish_All_Physical_Props") = True oOptions.Value("Password") = False oOptions.Value("Publish_3D_Models") = False If TypeOf oDocument Is DrawingDocument Then Dim oSheets As NameValueMap oSheets = ThisApplication.TransientObjects.CreateNameValueMap oOptions.Value("Publish_Mode") = DWFPublishModeEnum.kCustomDWFPublish oOptions.Value("Publish_All_Sheets") = True 'see link for more DWF publish options: ' https://forums.autodesk.com/t5/Inventor-customization/publishing-dwf-range/td-p/8078163 ' ' Publish the first sheet AND its 3D model ' Dim oSheet1Options As NameValueMap ' oSheet1Options = ThisApplication.TransientObjects.CreateNameValueMap ' oSheet1Options.Add("Name", "Sheet:1") ' oSheet1Options.Add("3DModel", True) ' oSheets.Value("Sheet1") = oSheet1Options End If End If oDataMedium.FileName = oPath & oFolder & oName & ".dwf" Call DWFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)
I appreciate your response.
yes we do have it set up to automatically save the drawings as dwf, however before this change was made the were not. now they are wanting to update the drawing to be all dwf files and they were saying its no possible. I was having a hard time believing this, therefore that's why I initially asked the question.
Can't find what you're looking for? Ask the community or share your knowledge.