Autodesk Vault Data Standard 2019...Preset Inventor Assembly Copy copying to new file instead of...
Transcript of Autodesk Vault Data Standard 2019...Preset Inventor Assembly Copy copying to new file instead of...
Markus Koechl
Autodesk Vault Workgroup | Professional | Office
Solutions Engineer PDM|PLM – Autodesk Central Europe
Data Standard 2019 – What’s New
2© 2016 Autodesk
Agenda
► VDS General Enhancements► Installation
► Override Property Validation Capability in PowerShell
► Configuration Structure
► Help Update and Additions
► VDS Inventor Enhancements► Override Property Validation Capability in PowerShell
► Check Unique File Name Before Save
► Configure Inventor User Command Support
► Frame Generator Support Improvement
► FDU Asset Builder Support | FDU Synchronization Support
► Initialization Performance
► Migrate Previous Versions Configurations► Minimum Migration
► Migrate + Enhance – Add new features
VDS – General Enhancements
4© 2016 Autodesk
Vault Data Standard 2019 | Installer
► Install Tools & Utilities
5© 2016 Autodesk
Vault Data Standard | Uninstall
► Uninstalls independent of client
► Included in Autodesk Uninstall Tool
6© 2016 Autodesk
Vault Data Standard | Update Installer
► Vault Client Update patches all installed components► Vault, Vault Workgroup, Vault Professional or Vault Office
► VDS-Inventor, VDS-AutoCAD, VDS-Vault
► VDS 2019.1 includes► VDSI | VDSA
► Default configuration supports FileNameValidation for _SaveCopyAs mode
► Default configuration supports AutoCAD Mechanical and Vanilla configuration
► New Feature “DisableVdsForCmds” no longer interferes with assembly context modeling workflows
► Several fixes and performance enhancements
► VDS-V
► Property constraint and custom validation supported on top of existing dialog validation
7© 2016 Autodesk
Property Validation | Custom Override
▪ The VDS IProperty Object adds new Properties▪ $Prop[“myUDP”].CustomValidation = { put your script code here }
▪ Return $true/$false to drive IProperty state IsValid
▪ $Prop[“myUDP”].CustomValidationErrorMessage = “Your Message”▪ The ToolTip for the IProperty containing Control
▪ See Help for complete list of Object Properties: http://help.autodesk.com/view/VAULT/2019/ENU/?guid=GUID-9851FE4D-6788-467F-B79D-EF78F385BD2C
8© 2016 Autodesk
Custom Property Validation | Use Case
► Check existence of new folder name
9© 2016 Autodesk
Use Case | Demo Video
10© 2016 Autodesk
Custom Property Validation | Use Case
► Check existence of new folder name
11© 2016 Autodesk
Custom Property Validation | Use Case OTX Sample
► OTX Sample Configuration – Legacy Implementation
► Compare Update 1 Configuration Sample (previous slide)► Single line of code to raise user feedback message
► Feedback in UI, red border, tooltip implemented as a default feature of custom validation
12© 2016 Autodesk
Configuration Structure
► Update Installation maintains existing customized configuration
► New configuration structure allows to separate default and custom dialogs and logic
► Custom logic and dialogs override default if equally named
► Default configuration remain as is
► Easily switch from default to custom configuration or vice versa
► Compatibility for existing tailored configurations
13© 2016 Autodesk
Configuration Structure | Load Behavior
VDS Loading Behavior
► Example 1► CAD\Default.ps1
► CAD.Custom\Default.ps1
► Example 2 ► Default.ps1 – InitializeWindow
► MyCompanyDefault.ps1 – InitializeWindow
► Benefits► Easily Swap In/Out *.Custom Folders
► Avoid References in Default.ps1
14© 2016 Autodesk
Configuration Structure
VDS Loading Behavior for Unique Files
► DSLanguages.xml
► CustomEntityDefinition.json
Subject to be changed in future releases
15© 2016 Autodesk
Configuration Structure | Update Behavior
► Update Installation maintains existing customized configuration
► Update/New Version Installer excludes *.Custom Folders
► Update Installer compares default configuration files’ date-time stamp to maintain newer files
► Important Note: Applies to all Localization Folders en-US, de-DE, etc.
16© 2016 Autodesk
Vault Data Standard | Help
► Vault Administrator Tasks► Client Administration
► Data Standard Administration
► Vault Developer Tools► VDS API Reference
VDS – CAD Enhancements
18© 2016 Autodesk
Property Validation | Custom Validation Override
▪ Default validation respects Vault configuration
▪ Custom override follows custom biz logic
▪ The VDS IProperty Object adds new Properties▪ $Prop[“myUDP”].CustomValidation = { put your script code here }
▪ Return $true/$false to drive IProperty state IsValid
▪ $Prop[“myUDP”].CustomValidationErrorMessage = “Your Message”▪ The ToolTip for the IProperty containing Control
▪ See Help for complete list of Object Properties: http://help.autodesk.com/view/VAULT/2019/ENU/?guid=GUID-9851FE4D-6788-467F-B79D-EF78F385BD2C
19© 2016 Autodesk
Custom Property Validation | Use Case File Name Check
▪ Check existence of new file name before check-in▪ Check local workspace
▪ Check Vault differentiating Enforce Unique File Names setting▪ Enabled -> Check existence searching entire Vault
▪ Disabled -> check existence searching selected folder only
20© 2016 Autodesk
Custom Property Validation | Use Case File Name Check
▪ Default Implementation – Validates in CreateMode▪ Check local workspace
▪ Check Vault respecting unique file names
21© 2016 Autodesk
Custom Property Validation | Use Case File Name Check
▪ Extended OTX implementation validates as before in▪ CreateMode
▪ CopyMode (as it includes CreateMode)
▪ SaveCopyAsMode
22© 2016 Autodesk
Use Case File Name Check | Video
23© 2016 Autodesk
Custom Property Validation | Use Case File Name Check
▪ Extended OTX Implementation File Name Validation▪ SaveCopyAsMode
24© 2016 Autodesk
Custom Property Validation | Use Case File Name Check
▪ Extended OTX Implementation File Name Validation AutoCAD▪ Support filename properties DocNumber and GEN-TITLE-DWG
25© 2016 Autodesk
Configure Inventor User Commands | Overview
▪ Purpose▪ Exclude Inventor Commands / Workflows from VDS Save-Event subscription
▪ Retrieve file number for excluded commands before Save-Event
▪ Benefit▪ Default Configuration to better support
▪ Frame-Member-Edit workflows – there are multiple within one command
▪ FDU Asset Builder – Overlapping intent of FDU and VDS
▪ Any 3rd party Inventor Add-In using save events – things we can’t know ;)
▪ Configuration▪ Retrieve User Command Names
▪ Add User Commands
26© 2016 Autodesk
Configure Inventor User Commands | Default Configuration
Intents & Behavior
▪ Bonus Tools – Add Part / Assembly
▪ Frame Generator▪ Change Frame Member Size
▪ Change Frame Member Family
▪ FDU Asset Builder
▪ Assembly Mirror
27© 2016 Autodesk
Add Part / Add Assembly | Intent & VDS Behavior
► Intent ► Save new file with minimal input
► VDS Behavior► VDS backs out of any interaction
► Vault numbering optionally shares file number
28© 2016 Autodesk
Frame Generator | Change Member – Intent & VDS Behavior
Intent / Command Options
► Change Standard / Family► New part file, new property set
► VDS Behavior► Manage like a new added frame member
► VDS Frame Generator Dialog offers property editing and validation
► Change Size► New part file, Frame Generator transfers existing properties
► VDS Behavior► No interaction required, as FG transfers already added
and validated properties
29© 2016 Autodesk
FDU – Asset Builder | Command Intent & VDS Behavior
► Intent► Asset Builder implemented specific
property management/editing
► Asset Builder saves different files / file formats to strictly defined locations
► VDS Behavior► VDS backs out of property creation /
editing
► VDS doesn’t hook up to any save event within Asset Builder
30© 2016 Autodesk
Assembly Mirror | Intent & VDS Behavior
► Intent► Insert new mirrored components
Or
► reuse existing component in mirrored positioning
► In existing assembly
Or
► New assembly
► VDS Behavior► Validate properties for new files
VDS enabled
VDS disabled
31© 2016 Autodesk
Configure Inventor User Commands | How To Add More?
▪ Retrieve User Command Names▪ API Sample Command*
▪ Add User Commands▪ Start XML Editor as Administrator and add/remove commands
▪ DisableVdsForCmds
▪ EnableVaultNumSchemeForCmds
32© 2016 Autodesk
Configure Inventor User Commands | Need to Know
▪ Don’t add commands to “EnableVaultNumSchemeForCmds” + “DisableVdsForCmds”
▪ Not all Save Events are registered “UserCommands”, e.g. FDU Synchronization
33© 2016 Autodesk
Configure Inventor User Commands | Sample
► Objective► Preset Inventor Assembly Copy copying to new file instead of copy instance as a default
► Solution► Add command “AssemblyCopyComponentCmd” to DisableVdsForCmds
Enables default Vault numbering
The naming preview is not reset to reuse
Downstream save events continue validating against category
To avoid any validation use “SkipForProperties” function instead
VDS enabled VDS disabled
https://knowledge.autodesk.com/community/screencast/4e666c95-f0cf-4ef0-9aa8-13dc1354fad8
34© 2016 Autodesk
Configure Inventor User Commands | Summary
► Configuration option solves conflicts of command intents and general VDS behavior
► Configuration option delivers flexibility► Carefully review both options
► Additional rules may be required, like switching VDS numbering to “None” if number already set by Vault numbering preview
35© 2016 Autodesk
Initialization Performance
▪ VDS 2019 RTM – Optimized Server Communication▪ CAD add-ins load Vault configuration setting only one time
▪ First dialog initialization loads => Add-in keeps configuration in RAM
▪ VDS 2018.2 – Includes▪ CAD add-ins load Vault configuration setting only one time
▪ First dialog initialization loads => Add-in keeps configuration in RAM▪ Improved initialization behavior of property mapping
▪ VDS Inventor - Copy Drawing, Copy/Replace incl. Drawing▪ Optimized Download of related files
Future updates
▪ VDS 2019.1 – Improved Mapping Initialization, Copy Commands IDW/DWG
▪ …
Migrate Legacy Configurations
37© 2016 Autodesk
Minimum Update 2017.x/2018.x – 2019
► Align Version ► Find / Replace 2017 or 2018 with 2019
► All files of solution
► VDS CAD – align Prop[“_FileExt”].Value► Find / Replace “IDW” “DWG” “IPT” “IAM”… with
“.IDW” “.DWG” “.IPT” “.IAM”…
► [Shortcut Implementation]► Replace path segment 1_6_2017 with 1_16_2018
Update/Enhance
Legacy Configurations
39© 2016 Autodesk
Move Custom Configuration | CAD.Custom – Vault.Custom
► Install 2019 – Leave default configuration files► Copy custom configuration files for CAD and Vault to CAD.Custom, Vault.Custom
► Add Property Translations – Don’t replace by older files
► Editing creates modification date
► Add UIStrings editing 2019 files – Don’t replace by older files
► Editing creates modification date
► Editing includes the 2019 additions
40© 2016 Autodesk
CAD | Add Filename Validation
▪ Additional script FilenameValidation.ps1 resides in 2019 CAD default
▪ Add calling function to custom function InitializeWindow▪ Add Validated Binding for FILENAME text box control:
Text="{WPF:ValidatedBinding Name}“
▪ Check FILENAME property▪ Update customized name in validation script
▪ Inventor default = DocNumber
▪ AutoCAD default = GEN-TITLE-DWG
41© 2016 Autodesk
Set Window Title | Extended Window Support
▪ Replace existing (default) function SetWindowTitle
42© 2016 Autodesk
PowerShell Script Clean-Up
▪ Default 2019 scripts use structured initializations
43© 2016 Autodesk
PowerShell Script Clean-Up
▪ Considerations before you adopt the updated structure▪ What point of time matches my customization calling
▪ InitializeCategory, InitializeNumSchm, etc.
44© 2016 Autodesk
PowerShell Script Clean-Up | Good To Know
▪ Respect the order
InitializeWindow
• XAML controls are not filled yet, e.g. ItemsSource = $null
XAML calling PsCmd/PsList/PsVal
• e.g. filling ItemsSource = $numSchms
[Optional Event Handlers]
• $Prop[“_NumSchm”].add_PropertyChanged({})
Function InitializeWindow() finished
Note – Executes already for preset selections, e.g. “SelectedIndex”=“0”
Vault Data Standard 2019What’s New - Summary
46© 2016 Autodesk
VDS 2019 What’s New | Summary
► Significant changes 2019 RTM► Integrated Installer
► Aligned Release / Update Cycles
► VDS CAD
► Configure Inventor User Command Options
► Performance – Number of Vault Communication Calls
► Significant changes 2019 Update 1► VDS CAD – Add Performance Enhancements of VDS 2018.2 Initializing Dialogs
► VDS CAD – Updated default configuration
► VDS Vault – Custom Validation supported on top of legacy dialog validation