You just need to define AppBundle & Activity once. If the plugin code changed, redefine (creates a new version).
74 |
75 |
76 |
77 | Tip: Make sure .ZIP bundles are placed at /bundles/ folder
78 |
79 |
80 |
81 |
82 |
83 | For this sample the .ZIP name is used as suffix to define AppBundle and Activity
84 | names. Activities will have file and params input, and file output.
85 |
86 |
90 |
91 |
92 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/forgesample/wwwroot/js/ForgeDesignAutomation.js:
--------------------------------------------------------------------------------
1 | /////////////////////////////////////////////////////////////////////
2 | // Copyright (c) Autodesk, Inc. All rights reserved
3 | // Written by Forge Partner Development
4 | //
5 | // Permission to use, copy, modify, and distribute this software in
6 | // object code form for any purpose and without fee is hereby granted,
7 | // provided that the above copyright notice appears in all copies and
8 | // that both that copyright notice and the limited warranty and
9 | // restricted rights notice below appear in all supporting
10 | // documentation.
11 | //
12 | // AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
13 | // AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
14 | // MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
15 | // DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
16 | // UNINTERRUPTED OR ERROR FREE.
17 | /////////////////////////////////////////////////////////////////////
18 |
19 | $(document).ready(function () {
20 | prepareLists();
21 |
22 | $('#clearAccount').click(clearAccount);
23 | $('#defineActivityShow').click(defineActivityModal);
24 | $('#createAppBundleActivity').click(createAppBundleActivity);
25 | $('#startWorkitem').click(startWorkitem);
26 |
27 | startConnection();
28 | });
29 |
30 | function prepareLists() {
31 | list('activity', '/api/forge/designautomation/activities');
32 | list('engines', '/api/forge/designautomation/engines');
33 | list('localBundles', '/api/appbundles');
34 | }
35 |
36 | function list(control, endpoint) {
37 | $('#' + control).find('option').remove().end();
38 | jQuery.ajax({
39 | url: endpoint,
40 | success: function (list) {
41 | if (list.length === 0)
42 | $('#' + control).append($('