Skip to content

Commit c391898

Browse files
committed
update readme
1 parent 7359df7 commit c391898

File tree

5 files changed

+48
-32
lines changed

5 files changed

+48
-32
lines changed

Images/AlertDialogDemo.png

164 KB
Loading

Images/ConfigPythonShell.png

-8.33 KB
Binary file not shown.

Images/cadpythonshell3.png

78.4 KB
Loading

Images/configure.png

39.9 KB
Loading

README.md

Lines changed: 48 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ The biggest limitation is that you can't deploy DLLs with custom scripts at this
2121

2222
![](Images/Ribbon.png)
2323

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+
2432
## Features
2533

2634
- 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
4250
Note : Support for 5 last version(2019-2023) Autocad or Civil 3D. Older versions can be used but will not guarantee the expected performance.
4351

4452

45-
## Basic Usage
53+
## Basic Usage CadPythonShell
4654

4755
- <kbd>PythonConsole</kbd> - Open Python Console
4856

49-
![](Images/PythonShellConsole.png)
57+
![](Images/cadpythonshell3.png)
5058

5159
- <kbd>PythonShellSetting</kbd> - Open Setting Config Console
5260

53-
![](Images/ConfigPythonShell.png)
54-
55-
- <kbd>Snoop</kbd> - Quick Snoop Object Sample In CAD or Civil3D
56-
57-
![](Images/Snoop.png)
58-
59-
- <kbd>SnoopDB</kbd> - Snoop Database In CAD or Civil3D
60-
61-
![](Images/SnoopDB.png)
62-
63-
- <kbd>SnoopEd</kbd> - Snoop Editor In CAD or Civil3D
64-
65-
![](Images/SnoopEditor.png)
66-
67-
- <kbd>SnoopEnts</kbd> - Snoop Entities In CAD or Civil3D
68-
69-
![](Images/SnoopEntities.png)
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-
![](Images/SnoopByHandle.png)
76-
77-
- <kbd>SnoopEvents</kbd> - Snoop Follow Events In CAD or Civil3D
78-
79-
![](Images/SnoopEvents.png)
61+
![](Images/configure.png)
8062

81-
#### Use Snoop In Python Shell Console
63+
Use Snoop In Python Shell In Python Script :
8264

65+
- <kbd>Snoop</kbd> - Quick Snoop Object Sample In CAD or Civil3D
8366
- <kbd>sn.Snoop(obj)</kbd> - Snoop Object by Python Console In CAD or Civil3D
8467
- <kbd>snoop(obj)</kbd> - Snoop Object by Python Console or Execute python code In CAD or Civil3D
8568

69+
Use Command Line To Open CadPythonShell :
70+
8671
![](Images/pythoncmd.png)
8772

88-
#### Write Console Sample
73+
Write Console Sample In Console :
8974

9075
``` py
9176
ed = doc.Editor
9277
ed.WriteMessage("Hello")
9378
```
9479
![](Images/console.gif)
9580

96-
- Try create script get Object
81+
Create Script Execute `ShowAlertDialog` Demo :
9782

9883
```py
9984
import clr
@@ -112,10 +97,41 @@ db = doc.Database
11297
# Write Code Below
11398
Application.ShowAlertDialog("Hello World!")
11499
```
100+
101+
![](Images/AlertDialogDemo.png)
102+
103+
Create Script Execute `ShowAlertDialog` Demo :
104+
115105
![](Images/getobject.png)
116106

117107
Note : you can see more example in folder [Script Examples](https://github.com/chuongmep/CadPythonShell/tree/dev/Script%20Examples)
118108

109+
## Basic Usage Snoop
110+
111+
![](Images/Snoop.png)
112+
113+
- <kbd>SnoopDB</kbd> - Snoop Database In CAD or Civil3D
114+
115+
![](Images/SnoopDB.png)
116+
117+
- <kbd>SnoopEd</kbd> - Snoop Editor In CAD or Civil3D
118+
119+
![](Images/SnoopEditor.png)
120+
121+
- <kbd>SnoopEnts</kbd> - Snoop Entities In CAD or Civil3D
122+
123+
![](Images/SnoopEntities.png)
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+
![](Images/SnoopByHandle.png)
130+
131+
- <kbd>SnoopEvents</kbd> - Snoop Follow Events In CAD or Civil3D
132+
133+
![](Images/SnoopEvents.png)
134+
119135
## Contribute
120136

121137
- 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

Comments
 (0)