- Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathCustomCommand.html
More file actions
Latest commit
63 lines (48 loc) · 1.42 KB
/
Copy pathCustomCommand.html
File metadata and controls
63 lines (48 loc) · 1.42 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<!DOCTYPE html>
<htmllang="en">
<head>
<metacharset="utf-8">
<scripttype="text/javascript" src="C:\Temp\AJA\Autodesk.AutoCAD.js"></script>
<title>Sample App</title>
<linkrel="stylesheet"
href="https://fonts.googleapis.com/css?family=Open+Sans:light">
<linkrel="stylesheet" href="acadStyle.css">
<script>
console.clear();
console.log(Acad.Editor);
functioncallback(){Acad.Editor.executeCommand("_zoom","e"," ")};
letrun=function(){
Acad.Editor.addCommand("JSCOMMAND","customcommand","customcommand",Acad.CommandFlag.TRANSPARENT,callback);
}
</script>
</head>
<body>
<divclass="grid-container">
<divclass="item1">
<divclass="clsHeader">Custom Command</div>
</div>
<divclass="item2">
<divclass="clsMain">
<labelclass="">something</label>
<p>
</p>
<labelclass="acadBtn">something else</label>
<p>
</p>
<buttonclass="acadBtn">
stuff
</button>
<inputtype='button' onclick='window.location.reload()' value='Reload' style="display:inline" />
<inputtype='button' onclick='run()' value="custom command" />
<p></p>
<label>Click the button then run the command "customcommand"</label>
<p>
</p>
</div>
</div>
<divclass="item3">
<divclass="clsFooter"><ahref="https://www.paypal.me/georgeendrulat"><buttontype="button">Donate</button></a></div>
</div>
</div>
</body>
</html>