-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
48 lines (42 loc) · 2 KB
/
Copy pathindex.html
File metadata and controls
48 lines (42 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<html>
<head>
<title>Manage Attributes</title>
<META NAME="Title" CONTENT="View Plan at Level">
<META NAME="Author" CONTENT="Autodesk FormIt">
<!-- for testing shared files locally, use: ../../SharedPluginUtilities/ -->
<!-- interface with FormIt -->
<script type="text/javascript" src="https://formit3d.github.io/FormItExamplePlugins/SharedPluginFiles/FormIt.js"></script>
<script type="text/javascript" src="https://formit3d.github.io/SharedPluginUtilities/v23_0/FormItInterface.js"></script>
<!-- UI and styling -->
<script type="text/javascript" src="https://formit3d.github.io/SharedPluginUtilities/FormItPluginUI.js"></script>
<link rel="stylesheet" type="text/css" href="https://formit3d.github.io/SharedPluginUtilities/FormItPluginStyling.css">
<!-- plugin scripts -->
<script type="text/javascript" src="ViewPlanAtLevel_Web.js"></script>
<script type="text/javascript">
FormItInterface.Initialize(function () {
// initialize the UI
// this must be called from here, to ensure the HTML page is loaded
// before scripts try to access the window document
ViewPlanAtLevel.initializeUI();
ViewPlanAtLevel.updateUI();
// on new sketch, update the UI to clear available levels
FormItInterface.SubscribeMessage("FormIt.Message.kNewModelRequested", function(msg)
{
ViewPlanAtLevel.updateUI();
});
// on open file, update the UI to capture available levels
FormItInterface.SubscribeMessage("FormIt.Message.kLoadComplete", function(msg)
{
ViewPlanAtLevel.updateUI();
});
// when levels change, update the UI to capture available levels
FormItInterface.SubscribeMessage("FormIt.Message.kLevelManagerChanged", function(msg)
{
ViewPlanAtLevel.updateUI();
});
}); // DOMContentLoaded
</script>
</head>
<body>
</body>
</html>