Exploring the Power of EPDM Tasks Working with and Developing Tasks in SolidWorks Enterprise PDM (EPDM) By: Marc Young xLM Solutions www.xlmsolutions.com.

Slides:



Advertisements
Similar presentations
SolidWorks Enterprise PDM Data Loading Strategies
Advertisements

ENOVIA SmarTeam Data Loading Strategies
Objectives Understand the software development lifecycle Perform calculations Use decision structures Perform data validation Use logical operators Use.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
SOFTWARE PRESENTATION ODMS (OPEN SOURCE DOCUMENT MANAGEMENT SYSTEM)
Browsers and Servers CGI Processing Model ( Common Gateway Interface ) © Norman White, 2013.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Program design example Task: Develop an algorithm expressed in pseudocode for a specified problem specified problem.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
COMMANDLINE OPTIONS IN SSIS -ABHIJIT -SANJAY -SUSHANT.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
How XSL Formatter works Operation System Requirements How to format GUI for operating on Windows screen Application Integration Interface.
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
TIBCO Designer TIBCO BusinessWorks is a scalable, extensible, and easy to use integration platform that allows you to develop, deploy, and run integration.
SOFTWARE.
#SEU12 Madison Miner Software Engineer EDA, Inc..
Java Programming, 3e Concepts and Techniques Chapter 2 - Part 2 Creating a Java Application and Applet.
For Version 6.0 and later Lattice3D Reporter Tutorial For Version 6.0 and later LATTICE TECHNOLOGY, INC.
Using Visual Basic 6.0 to Create Web-Based Database Applications
Copyright 2000 eMation SECURITY - Controlling Data Access with
PMS /134/182 HEX 0886B6 PMS /39/80 HEX 5E2750 PMS /168/180 HEX 00A8B4 PMS /190/40 HEX 66CC33 By Adrian Gardener Date 9 July 2012.
Overview Introduction to Managing User Environments Introduction to Administrative Templates Using Administrative Templates in Group Policy Assigning Scripts.
6 th Annual Focus Users’ Conference Manage Integrations Presented by: Mike Morris.
Object-Oriented Analysis & Design Subversion. Contents  Configuration management  The repository  Versioning  Tags  Branches  Subversion 2.
Building the Events Components– Lesson 111 Building the Events Components Lesson 11.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Page 1 Printing & Terminal Services Lecture 8 Hassan Shuja 11/16/2004.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved. 1 Third Edition Chapter 6 Today’s Windows Windows Vista and Windows 7 McGraw-Hill.
PHP Form Processing * referenced from
Active-HDL Server Farm Course 11. All materials updated on: September 30, 2004 Outline 1.Introduction 2.Advantages 3.Requirements 4.Installation 5.Architecture.
Can you do this in SmarTeam?
Overview of Basic 3D Experience (Enovia V6) Concepts
CACI Proprietary Information | Date 1 PD² v4.2 Increment 2 SR13 and FPDS Engine v3.5 Database Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead.
COMPREHENSIVE Excel Tutorial 12 Expanding Excel with Visual Basic for Applications.
ICAICT201A USE COMPUTER OPERATING SYSTEM. USING THE CONTROL PANEL The Control Panel contains many options for configuring your computer, including: adding.
Emdeon Office Batch Management Services This document provides detailed information on Batch Import Services and other Batch features.
Fundamentals of Windows Mouse n 4 Basic Operations: –Pointing –Clicking –Double Clicking –Dragging.
LINGO TUTORIAL.
June 17, 2009 Office 2007 Tips & Tricks.
Subversion Subversion is a brand of version control software that is frequently used to store the code and documentation of a project so as to permit.
Business rules.
Development Environment
SECTION 1: Add-ons to PowerPoint
Creating Oracle Business Intelligence Interactive Dashboards
Scheduled Report ing From CounterPoint.
Improving the accuracy and efficiency of your shipping process
CARA 3.10 Major New Features
Section 13 - Integrating with Third Party Tools
22-INTEGRATION HUB
Deploying and Configuring SSIS Packages
Chapter 6 Programming with Office 97
TwinEngines Discharges
Setting Up and Supporting Clients Using Employee Development in ADP Workforce Now [Developer: Use this slide if you are not using audio. You can add.
Boeing 787 SCMP Training June 2016
What Is Sharepoint? Mohsen Ashkboos
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Customization Approaches and Options for Enterprise PDM
Learning about Taxes with Intuit ProFile
CIS16 Application Development Programming with Visual Basic
Overview of Basic 3D Experience (Enovia V6) Concepts
Comparative Reporting & Analysis (CR&A)
Microsoft Office Access 2003
Exploring the Power of EPDM Tasks - Working with and Developing Tasks in EPDM By: Marc Young XLM Solutions
Electronics II Physics 3620 / 6620
Learning about Taxes with Intuit ProFile
Converter for Azure and SharePoint Converts s into SharePoint list items 24/7 Creates SharePoint list items from s
Converter for IIS and SharePoint Converts s into SharePoint list items 24/7 Creates SharePoint list items from s
Tonga Institute of Higher Education
(Includes setup) FAQ ON DOCUMENTS (Includes setup)
Presentation transcript:

Exploring the Power of EPDM Tasks Working with and Developing Tasks in SolidWorks Enterprise PDM (EPDM) By: Marc Young xLM Solutions www.xlmsolutions.com

What is an EPDM Task Tasks are customizations that can be queued up and run on a separate computer / batch server Printing / PDF Generation Updating Files Checking file integrity The running of a task off loads the work to a server/computer so it does not take up time / resources of the individual’s computer Out of the Box EPDM Tasks (involving SolidWorks files) Convert Print Check Customized tasks can be created to handle very specific requirements

Sample Customized Tasks (1 / 2) Watermarking Files Writing to a variable on the Drawing Creating a temporary note on the drawing Using third party software i.e. Adobe Writer Batch Printing Other Files Types – AutoCAD, Office, Inventor, SolidEdge …. Publishing Data Upon Release of a file / converted files gets moved to a secure location SharePoint Windows Share Another EPDM Vault

Sample Customized Task (2 / 2) Merging files Generating one large PDF of all drawings / documentation in a project Engineering Change information that combines EC meta data and the file(s) effected Generating Reports Adding Custom Headers and Footers to Documents

Out of the Box EPDM Tasks There are out of the box tasks for EPDM Print Convert Check These tasks can be configured and customized

Configuring Out of the Box Task Assign the task name What Add-in to use Who will execute it as Should an input card be used Number of retries Minutes before failing

Execution Method Determine where the task will run A computer needs to be designated via the Task Host Configuration If multiple task hosts can be picked Right click on blueberry to set a machine up as the task host

Menu Command Display the menu command to execute the task The task could also be executed via a state transition

Task Specific Info (1/2) Specific info for the task Print Task Always use one specific printer Provide a list of Printers for the user to pick Based on the printer on the sheet size of the drawing Convert Task Convert Format Conversion Options Configuration Options

Task Specific Info (2/2) Print Convert Page Size Orientation Margins Header Info Footer Info Convert Map Variables Output paths Reference links

Print Task - Files Determine what files to print Just the select file The select file and all of its references i.e. children Determine to use as built or latest Where the log info will be written to Advanced Configurations (Macro that performs this operation)

Advanced Scripting Options This is the SolidWorks Macro that does the work

Notification Who should notify when the task is successful Who should notify when the task fails What he message should say….

Adding Variable to Convert Task Output Open up the script via Advance Scripting Options Declare a Vault Object Variable Add Functions LogIntoVault GetVariableValue Call Functions from main function Associated Variable Value to File Name

Declare Vault Object Dim vault As Object

Add Function - LoginToVault Private Sub LoginToVault() On Error GoTo ErrHand Dim strTempVaultName As String Dim strVaultName As String strTempVaultName = "<VaultPath>" i = Len(strTempVaultName) j = InStrRev(strTempVaultName, "\") strVaultName = Right(strTempVaultName, i - j) Set vault = CreateObject("ConisioLib.EdmVault") vault.LoginAuto strVaultName, 0 Exit Sub ErrHand: If Not vault Is Nothing Then Dim errname As String Dim errdesc As String vault.GetErrorString Err.Number, errname, errdesc Log ("LoginToVault error" & vbCrLf & errname & vbCrLf & errdesc ) Else Log "Error creating file vault interface." End If End Sub

Add Function - GetVariableValue Private Function GetVariableValue(FilePath, VariableName, Configuration) On Error GoTo ErrHand Dim File As Object 'Get the interface of the file (and its parent folder) Dim Folder As Object Set File = vault.GetFileFromPath(FilePath, Folder) 'Obtain the variable interface Dim pEnumVar As Object Set pEnumVar = File.GetEnumeratorVariable Dim Value As Variant If pEnumVar.GetVar(VariableName, Configuration, Value) Then GetVariableValue = Value Else GetVariableValue = "" End If Exit Function ErrHand: Dim ename As String Dim edesc As String vault.GetErrorString Err.Number, ename, edesc Log "GetvariableValue End Function

Add Function – Call Functions Find Function Convert(docFileName) Add code below Specify the Variable Name and Configuration 'Get the vault interface Call LoginToVault 'Get Variable Value Dim VarValue VarValue = GetVariableValue(docFileName, "Number", "@")

Add Function – Associate Variable Value To Name Find Build destination filenames section Add code below where the filename is being configured convFileName = Replace(convFileName, "<VariableValue>", VarValue) Updated Code

All aspects of the Task can be configured: Customization of EPDM Tasks Setup Configuration GUI Properties On close of the configuration window of the Task Initialization RMB Menu / bring up a GUI On close of the Task Initiates Execution The performing of the task Task Details The Details GUI of a the task

Setting up your Environment Reference in the EPDM Library Set the import (simplify declarations) - Imports EdmLib Add the implements line - Imports EdmLib Write code for the two main add-In functions GetAddInfo – Information about the add-in OnCmd – Information about executing the Add-In Functions

OnTaskSetup This controls the setup behavior of the custom task Add a Control to your project Create a sub for the OnTaskSetup Set where the control can run (menu / change state) Menu command for the control Associate GUI setup to task Design the control Set the Load Data and Store Data functions (you will need to create these functions)

OnTaskSetupButton This controls what happens then user hits okay or cancel at the end of the setup Per the entered values, save them to EPDM The task Properties object is used to store this information: IEdmTaskProperties

OnTaskLaunch This code executes on the client when the client initiates the task For instance, prompt the user to change the PDF Location This functions code will: Get selected files Store them in the task instance object Populate GUI based on info in Task Setup Show GUI If Cancel exit task

OnTaskLaunchButton Controls what happens if a Data Card is presented and the user hits okay / cancel Not used in this example

OnTaskRun The actual execution of the task The code will perform the following actions: Get selected files Retrieve from the Task Instance Object Do something with them (purpose of the task) Create PDF for Excel Documents Store info regarding the execution of the task The Task Instance object can be used Set the task status

OnTaskDetails Allows the addition information / behavior present in the Detail information of the Task Add a Control to your project Create a sub for the OnTaskDetails Design the control Set the Load Data and Store Data functions You will need to create these functions If can be read from the task instance object

Best Practices for Running a Task Have a dedicated Task Host machine to run the task It should be powerful enough to run SolidWorks or any CAD that be used The EPDM (blueberry) must started and use must be logged into the task host When the task runs a license of EPDM and SolidWorks will be taken Need to insure licenses will be available for the task host For Convert task it is recommend to set SolidWorks Visible to true swApp.Visible = True Clean up stuck (Cancelling) tasks via SQL UPDATE TaskInstances SET TaskStatus = 8 WHERE TaskStatus = 6 Make sure to control what files the task runs on when executed from a transition

Conclusion Task can be a powerfully way to off load time / processor consuming tasks Many of common requests can be done with the out of the box task If the out of the box task, cannot handle it, the task can be programed to handle almost any customer requirement

Script example shown is available at: http://www.xlmsolutions.com Thank You! Marc Young xLM Solutions, LLC. 248-926-5932 myoung@xlmsolutions.com Questions? Script example shown is available at: http://www.xlmsolutions.com