Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

publish idw.dwf to folder

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
Anonymous
978 Views, 9 Replies

publish idw.dwf to folder

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?

9 REPLIES 9
Message 2 of 10
mcgyvr
in reply to: Anonymous

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... 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 3 of 10
Anonymous
in reply to: mcgyvr

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.

Message 4 of 10
mcgyvr
in reply to: Anonymous


@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? 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 5 of 10
Anonymous
in reply to: Anonymous

Autodesk vault professional 2020

Message 6 of 10
Anonymous
in reply to: Anonymous

yes all the files that need published to idwf are in vault.

Message 7 of 10
mcgyvr
in reply to: Anonymous

Since you have pro then you can use the job processor to create visualization files as needed..

 

https://knowledge.autodesk.com/support/vault-products/learn-explore/caas/CloudHelp/cloudhelp/2020/EN...

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 8 of 10
Anonymous
in reply to: mcgyvr

i will have to look into this further as i am not familiar with this.

Message 9 of 10
Curtis_Waguespack
in reply to: Anonymous

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)

 

Message 10 of 10
Anonymous
in reply to: Curtis_Waguespack

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.

Post to forums  

Autodesk Design & Make Report