THE SAMPLE CODE ON THIS REPOSITORY IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
THE USAGE OF THIS SAMPLE IS AT YOUR OWN RISK AND THERE IS NO SUPPORT RELATED TO IT.
This repository contains various sample jobs that demonstrate the power and flexibility of coolOrange powerJobs. As a certified partner, you can use the jobs as samples or templates to speed up your project development/customization and to deliver high quality and flexible jobs to your customer with less effort and less time.
| Sample | Description |
|---|---|
| Create DWG 2000 from IDW | Converts an Inventor drawing to an AutoCAD drawing (DWG2000) and adds it to Vault as DesignVisualization |
| Create DXF from all Drawing Files | Converts all drawings to DXF files and adds them to Vault |
| Create DXF from DWG | Converts an AutoCAD DWG file to DXF using AutoCAD Core Console |
| Create PDF and Merge multiple Files | Creates PDF files from drawings and combines them into one DesignVisualization file |
| Create PDF and Upload to SharePoint | Creates a PDF file from a drawing and uploads it to a SharePoint folder |
| Create PDF and Upload to UNC | Creates a PDF file from a drawing and copies it to a UNC path |
| Create PDF and Upload to WeTransfer | Creates a PDF file from a drawing and uploads it to WeTransfer |
| Create PDF and Watermark | Creates a PDF file from a drawing and adds a watermark |
| Create PDF and Watermark (PS7) | Creates a PDF file from a drawing and adds a watermark (PowerShell 7) |
| Create PDF and ZIP multiple Files | Creates PDF files from drawings and compresses them into a ZIP archive |
| Create PDF from all Drawing Files | Converts all drawings to PDF files and adds them to Vault |
| Create PDF from AutoCAD Electrical Project | Creates a merged PDF from all DWGs in an AutoCAD Electrical project |
| Create PDF from AutoCAD Model or Layouts | Creates a PDF with options to include/exclude Model space or Layouts |
| Create SAT from IPT | Converts an Inventor IPT sheet metal file to SAT (unfolded) |
| Create STL from IPT | Converts an Inventor IPT file to STL |
| Delete PDF on state change | Deletes a PDF from a local or network drive when the origin file state changes |
| Extract File Metadata to Excel | Extracts file metadata and exports it to a local Excel file |
| Extract File Metadata to JSON | Extracts file metadata and exports it to a local JSON file |
| Extract File Metadata to XML | Extracts file metadata and exports it to a local XML file |
| Extract File Thumbnail to PNG | Extracts the thumbnail for a file and exports it as PNG |
| Publish BOM | Extracts an Item BOM to a local XML file |
| Synchronize File Properties | Synchronizes file properties according to configured mapping |
| Sync Properties, Update Revision Block and Create PDF | Syncs properties, updates revision block, then creates a PDF |
Note: powerJobs Processor version 25.0 or greater is required for these samples.
- powerJobs Processor installed on the Autodesk Vault Job Processor machine
To run a script in a code editor such as Windows PowerShell ISE or Visual Studio Code instead of powerJobs, add the following code to the .ps1 script:
if (-not $IAmRunningInJobProcessor) {
Import-Module powerJobs
Open-VaultConnection -Server "localhost" -Vault "Vault" -User "Administrator" -Password ""
$file = Get-VaultFile -Properties @{Name="Scissors.idw"}
}This logs in to Vault and uses the file Scissors.idw if the script is executed by anything other than powerJobs.
The usage of these samples is at your own risk. There is no free support related to the samples. However, if you have questions about powerJobs, visit https://doc.coolorange.com/ for product documentation or start a conversation in our support forum at http://support.coolorange.com/support/discussions
coolOrange s.r.l.