Showing posts with label DWF. Show all posts
Showing posts with label DWF. Show all posts

24 Mar 2014

Vault Transmittal - need only the dwfs but the transmittal doesn't give the required information

There's a pack and go tool in Vault that is great for sharing files outside of  vault, that gives options for a complete pack and go of assemblies, and all required parts or just the dwfs and sending these directly to an email. It even includes a tool for automatically creating a transmittal report and attaching that in the zip. The transmittal report is fully customisable to include the information and properties you require.
The only problem is when you create a pack and go and choose to just include dwfs (a common scenario when sending out information), the information in the report just includes the information about the dwfs, not the issue number and status of the main files.
Of course you can create your own custom add in to vault to do this (and even share files over a number of different methods such as directly to Autodesk 360), but that could be time consuming to get the extra 1% functionality required from the pack and go tool.
We have created a workaround to this problem which involves manipulating a generated pack and go zip once it is attached to an email, to strip out everything apart from the pdfs, and dwfs of drawings.
Using the pack and go tool, generate a zip of the models, drawings and dwfs and attach to an email. Building filtering in to the report template to only include information on the required files, and remove the information on spurious additional files. Then run the macro below in outlook to strip out all files except for required dwfs and pdfs.
It's a bit crude and basic, but functional and quickly helps achieve an outcome that overcomes the limitations in the existing functionality.




Public Sub clearzipattachedfile()
If TypeOf Application.ActiveWindow Is Outlook.Inspector Then
      processzip (Application.ActiveInspector.CurrentItem)
End If
End Sub
 
Private Sub processzip(obj As Outlook.MailItem)
Dim Att As Outlook.Attachment
Dim Path As String
Path = Environ("temp") & "\"
For Each Att In obj.Attachments
        If Right(Att.FileName, 3) = "zip" Then
            Dim tempfile As String
            tempfile = Path & Att.FileName
            'save zip to temp folder
            Att.SaveAsFile (tempfile)
            'remove zip file from email
            Att.Delete
            'delete files from zip file
            Call deletefilesfromzip(tempfile)
            'add updated zip back to mail
            obj.Attachments.Add (tempfile)
           'delete zip file from temp folder
            VBA.FileSystem.Kill (tempfile)
       End If
Next
End Sub


Private Sub deletefilesfromzip(zipfile As String)
'macro to delete all files in a folder
On Error Resume Next
'extract files to zipfile
Dim filenamefolder As String
filenamefolder = Left(zipfile, Len(zipfile) - 4)
MkDir filenamefolder
Set oApp = CreateObject("Shell.Application")
oApp.NameSpace((filenamefolder)).CopyHere oApp.NameSpace((zipfile)).Items
Set FileSys = CreateObject("Scripting.FileSystemObject")
FileSys.DeleteFile zipfile
Call newzip(zipfile)
Call deletefiles(filenamefolder, zipfile)
FileSys.deletefolder filenamefolder
Set FileSys = Nothing
End Sub


Private Sub deletefiles(foldername, zipname)
Dim FileSys 'As FileSystemObject
Dim objFile 'As vba.File
Dim myFolder
Set FileSys = CreateObject("Scripting.FileSystemObject")
Set myFolder = FileSys.GetFolder(foldername)
For Each subf In myFolder.subfolders
   Call deletefiles(subf.Path, zipname)
Next subf


'loop through each file and check for name match
For Each objFile In myFolder.Files
        If Right(objFile.Name, 7) <> "dwg.dwf" And Right(objFile.Name, 7) <> "idw.dwf" And Right(objFile.Name, 3) <> "pdf" Then
            objFile.Delete
        Else
            'add back to zip
            Set oApp = CreateObject("Shell.Application")
            Dim i As Integer
            i = 0
            On Error Resume Next
            i = oApp.NameSpace((zipname)).Items.Count
            oApp.NameSpace((zipname)).CopyHere objFile.Path
            Do Until oApp.NameSpace((zipname)).Items.Count = i + 1
                Application.Wait (Now + TimeValue("0:00:01"))
            Loop
        Set oApp = Nothing
        End If
Next objFile
Set FileSys = Nothing
Set myFolder = Nothing
End Sub


Private Sub newzip(sPath)
'Create empty Zip File
    If Len(dir(sPath)) > 0 Then Kill sPath
    Open sPath For Output As #1
    Print #1, Chr$(80) & Chr$(75) & Chr$(5) & Chr$(6) & String(18, 0)
    Close #1
End Sub

7 Dec 2012

Find Vault Files where DWF Previews are not Available or Out of Date

Have you ever wanted to find all files where the DWF(x) previews need to be updated? Or files that do not have DWF(x) previews at all?

Well you can, using the system property Visualisation Attachment, you can find all files which have no preview or a preview that needs updating:


Once found you can then select all files in the search result and perform an Update View - Queued Update (Update Locally will only work on a single file).

Note: the search results are only true with the current version of each file.

This is an extract from the Cracking the Vault, Manufacturing Community Blog

30 Jul 2012

Batch Update Out of Date Vault Visualisation Files

For one reason or another it may be useful to do a batch update of Visualisation files (DWF/DWFx) inside Vault Professional. Below are steps to complete this on more of a batch level, rather than file by file, utilising the Job Server.
  • The first step is to Enable Job Server, go to Tools Administration Global Settings > Integrations TAB, then tick on the option as below.

17 Oct 2011

Autodesk Cloud for Autodesk Subscription Customers


Autodesk Subscription now provides a greater advantage with Autodesk Cloud capabilities that can help you increase mobility, improve collaboration, and optimize your designs, advancing the way you work.

Core benefits include:
  • Sharing - Share your design files with others, even if they don't have the design software used to create the files
  • Viewing - View and mark up DWF files on the web or on your mobile device
  • DWG Editing - Edit DWG files on your mobile device or the web. Multiple users can edit the same file in real-time
  • Storage - Store your files in the cloud and access them anytime, anywhere, with 3GB of storage per seat on Subscription
  • See more click here
Select benefits include:
  • Rendering in the Cloud - Improve design visualization and bypass the need to invest in specialized rendering hardware
  • Energy Analysis in the Cloud - Quickly gain insight into energy consumption and costs of early design concepts
  • Optimization in the Cloud - Simulate and test the performance of multiple product design options to accelerate innovation
  • Collaboration in the Cloud - Exchange and manage project information across companies, teams, and locations
  • See more click here
The video playlist below covers all of the features above, to give you a better understanding of the benefits available.

15 Aug 2011

Autodesk DWF Writer now available for 64bit Operating Systems

DWF publishing helps you enhance collaboration and easily exchange project information with extended teams. Download the free Autodesk DWF Writer to securely share 2D and 3D data as DWF files - no matter what design application you are using. Now available for 32 and 64bit versions of Microsoft Windows.
  • Built-In 2D and 3D publishing - Publish 2D or 3D designs automatically with built-in DWF publishing from many of the Autodesk design applications.
  • Publish rich design information - Select the preferred 32bit Autodesk DWF Writer plug-in - SolidWorks 2006, CATIA (V5), or Pro/ENGINEER Wildfire 2.0 - to publish 3D models including intelligent design information.
  • Publish from Microsoft applications - A Microsoft Windows system printer driver, DWF Writer allows you to publish easily and directly from Microsoft applications, including PowerPoint, Word, Excel, Visio and Project applications.
For more information and/or to download for yourself see the Autodesk page here.

17 Sept 2010

3D DWF Visualisation File Wrongly Positioned Within Web Browser

If you see that the position of your 3D DWF visualisation files are out of alignment, when you view them in your web browser from the Web Client, it could be caused by the graphics driver.

You can change the OpenGL settings by right clicking on the DWF and selecting Options > Model. Then change the Driver to another one such as Software OpenGL.




This is an extract from the Cracking the Vault, Manufacturing Community Blog