Professional Documents
Culture Documents
: 3DS_Document_2015
for Developers
Pipeline Pilot Tips and Tricks
2
Overview
REST Services
Component Creation
Publishing Protocols – Web Port
Publish Protocols to Protocols/Web Services
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
3
Publishing Protocols – Web Port
Direct link to protocol in the help text
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
4
Publishing Protocols – Direct Link
Right click on a protocol
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
5
Publishing Protocols – REST services
Representational State Transfer (REST)
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
6
REST Services – Creating a Package
Create a package using pkgutil
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
Restart service
7
REST Services – Passing Parameters
Parameters can be
3DS.COM © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
passed:
URL arguments
Passed parameters
8
REST Services – Documentation
Documentation added using <meta> tags in package.conf
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
9
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
10
Publishing Protocols – REST guide
Validating Protocols
Validation rules can be written for protocols
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
11
Creating your own components
Components can be created using other languages
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
C#
Perl
Python
VBScript
12
Creating your own components
Create three methods:
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
onInitialize
onProcess
onFinalize
13
PilotScript Flow Control – Older Method
Custom Filter is required upstream of Custom Manipulator to handle missing data
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
14
PilotScript Flow Control
The function DataSetPort(#) allows to control the flow of data record
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
0 – discard
1 – pass port
2 – fail port
All logic in one place!
15
PilotScript Flow Control
Problem: no simple way to return
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
16
Initialize Using…
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
18
Avoid Sending Files
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
19
Highlighted Keyboard Shortcuts
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
Keypress Action
Ctrl + M Toggle Maximize View / Normal View
Ctrl + Shift + B Curved / Bent Pipes
Ctrl + Shift + I/P/F Toggle Input/Pass/Fail Ports
Alt + Double Click Open Expression Editor
Shift + Double Click Edit Component Parameters
Ctrl + Double Click Step out of Subprotocol
20
Local Shortcuts
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
Problem
You are using a subprotocol multiple
times in a protocol and want to make
changes in a single place
Subprotocol only relevant for this
protocol
Solution
‘Local Shortcuts’ – exist only in the
protocol. Updating any copy will cause
all versions to be updated.
21
Shortcuts
Problem: You don’t know prior to run time what component you will need.
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
22
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
24
Jobs window.
Job Results Recovery
25
Reduce Branching
26
When and Where to Calculate Properties
Think about the order you need to do things
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
Compared with…
27
Component Profiling
Identify protocol bottlenecks
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
28
Debug Messages
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
29
New Dashboard Collection
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
31
Your tips and tricks?
3DS.COM/BIOVIA © Dassault Systèmes | Confidential Information | 6/14/2017 | ref.: 3DS_Document_2015
32