You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+48-32Lines changed: 48 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,14 @@ The biggest limitation is that you can't deploy DLLs with custom scripts at this
21
21
22
22

23
23
24
+
## IronPython 3
25
+
26
+
IronPython 3.4 uses Python 3.4 syntax and standard libraries and so your Python code will need to be updated accordingly. There are numerous tools and guides available on the web to help porting from Python 2 to 3.
27
+
28
+
IronPython 3 targets Python 3, including the re-organized standard library, Unicode strings, and all of the other new features.with user upgrade from **IronPython 2** to **IronPython 3**, please follow [Upgrade from IronPython 2 to IronPython 3](https://github.com/IronLanguages/ironpython3/blob/master/Documentation/upgrading-from-ipy2.md).
29
+
30
+
Various differences between IronPython and CPython can follow at [Differences IronPython and CPython](https://github.com/IronLanguages/ironpython3/blob/master/Documentation/differences-from-c-python.md).
31
+
24
32
## Features
25
33
26
34
- Interactive IronPython interpreter for exploring the API
@@ -42,58 +50,35 @@ The biggest limitation is that you can't deploy DLLs with custom scripts at this
42
50
Note : Support for 5 last version(2019-2023) Autocad or Civil 3D. Older versions can be used but will not guarantee the expected performance.
43
51
44
52
45
-
## Basic Usage
53
+
## Basic Usage CadPythonShell
46
54
47
55
- <kbd>PythonConsole</kbd> - Open Python Console
48
56
49
-

57
+

50
58
51
59
- <kbd>PythonShellSetting</kbd> - Open Setting Config Console
52
60
53
-

54
-
55
-
- <kbd>Snoop</kbd> - Quick Snoop Object Sample In CAD or Civil3D
56
-
57
-

58
-
59
-
- <kbd>SnoopDB</kbd> - Snoop Database In CAD or Civil3D
60
-
61
-

62
-
63
-
- <kbd>SnoopEd</kbd> - Snoop Editor In CAD or Civil3D
64
-
65
-

66
-
67
-
- <kbd>SnoopEnts</kbd> - Snoop Entities In CAD or Civil3D
68
-
69
-

70
-
71
-
- <kbd>SnoopNEnts</kbd> - Snoop Entities Nested In CAD or Civil3D
72
-
73
-
- <kbd>SnoopByHandle</kbd> - Snoop By Handle In CAD or Civil3D
74
-
75
-

76
-
77
-
- <kbd>SnoopEvents</kbd> - Snoop Follow Events In CAD or Civil3D
78
-
79
-

61
+

80
62
81
-
#### Use Snoop In Python Shell Console
63
+
Use Snoop In Python Shell In Python Script :
82
64
65
+
- <kbd>Snoop</kbd> - Quick Snoop Object Sample In CAD or Civil3D
83
66
- <kbd>sn.Snoop(obj)</kbd> - Snoop Object by Python Console In CAD or Civil3D
84
67
- <kbd>snoop(obj)</kbd> - Snoop Object by Python Console or Execute python code In CAD or Civil3D
85
68
69
+
Use Command Line To Open CadPythonShell :
70
+
86
71

87
72
88
-
#### Write Console Sample
73
+
Write Console Sample In Console :
89
74
90
75
```py
91
76
ed = doc.Editor
92
77
ed.WriteMessage("Hello")
93
78
```
94
79

95
80
96
-
- Try create script get Object
81
+
Create Script Execute `ShowAlertDialog` Demo :
97
82
98
83
```py
99
84
import clr
@@ -112,10 +97,41 @@ db = doc.Database
112
97
# Write Code Below
113
98
Application.ShowAlertDialog("Hello World!")
114
99
```
100
+
101
+

102
+
103
+
Create Script Execute `ShowAlertDialog` Demo :
104
+
115
105

116
106
117
107
Note : you can see more example in folder [Script Examples](https://github.com/chuongmep/CadPythonShell/tree/dev/Script%20Examples)
118
108
109
+
## Basic Usage Snoop
110
+
111
+

112
+
113
+
- <kbd>SnoopDB</kbd> - Snoop Database In CAD or Civil3D
114
+
115
+

116
+
117
+
- <kbd>SnoopEd</kbd> - Snoop Editor In CAD or Civil3D
118
+
119
+

120
+
121
+
- <kbd>SnoopEnts</kbd> - Snoop Entities In CAD or Civil3D
122
+
123
+

124
+
125
+
- <kbd>SnoopNEnts</kbd> - Snoop Entities Nested In CAD or Civil3D
126
+
127
+
- <kbd>SnoopByHandle</kbd> - Snoop By Handle In CAD or Civil3D
128
+
129
+

130
+
131
+
- <kbd>SnoopEvents</kbd> - Snoop Follow Events In CAD or Civil3D
132
+
133
+

134
+
119
135
## Contribute
120
136
121
137
- Don't hesitate to file any issues you stumble uppon. (Tho I don't guarantee I'll be able to solve them all for you)
0 commit comments