File tree Expand file tree Collapse file tree 6 files changed +14
-11
lines changed Expand file tree Collapse file tree 6 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 2626 <DebugType >none</DebugType >
2727 <DefineConstants >$(DefineConstants);RELEASE</DefineConstants >
2828 </PropertyGroup >
29- <PropertyGroup Condition =" $(Configuration.Contains('A22 '))" >
29+ <PropertyGroup Condition =" $(Configuration.Contains('A23 '))" >
3030 <DefineConstants >$(DefineConstants);A23</DefineConstants >
3131 </PropertyGroup >
3232 <PropertyGroup >
228228 <ProjectReference Include =" ..\PythonConsoleControl\PythonConsoleControl.csproj" />
229229 </ItemGroup >
230230 <ItemGroup >
231+ <PackageReference Include =" IronPython" Version =" 3.4.0" />
231232 <PackageReference Include =" Microsoft.CSharp" Version =" 4.7.0" />
232233 </ItemGroup >
233234 <PropertyGroup />
Original file line number Diff line number Diff line change 11{
22 "profiles" : {
3- "CADPythonShell " : {
3+ "CAD23 " : {
44 "commandName" : " Executable" ,
55 "executablePath" : " C:\\ Program Files\\ Autodesk\\ AutoCAD 2023\\ acad.exe"
66 }
Original file line number Diff line number Diff line change 5454 </ItemGroup >
5555 <ItemGroup >
5656 <EmbeddedResource Include =" Resources\PythonScript16x16.png" />
57+ <None Remove =" Resources\IronPython.3.4.0.zip" />
58+ <EmbeddedResource Include =" Resources\IronPython.3.4.0.zip" />
5759 </ItemGroup >
5860 <ItemGroup >
5961 <EmbeddedResource Include =" Resources\PythonScript32x32.png" />
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ private void AddEmbeddedLib(ScriptEngine engine)
104104 // use embedded python lib
105105 var asm = this . GetType ( ) . Assembly ;
106106 var resQuery = from name in asm . GetManifestResourceNames ( )
107- where name . ToLowerInvariant ( ) . EndsWith ( "python_27_lib .zip" )
107+ where name . ToLowerInvariant ( ) . EndsWith ( "ironpython.3.4.0 .zip" )
108108 select name ;
109109 var resName = resQuery . Single ( ) ;
110110 var importer = new IronPython . Modules . ResourceMetaPathImporter ( asm , resName ) ;
Original file line number Diff line number Diff line change 1616ed = adoc .Editor
1717output = []
1818with adoc .LockDocument ():
19- with adoc .Database as db :
20- with db .TransactionManager .StartTransaction () as t :
21- bt = t .GetObject (db .BlockTableId , OpenMode .ForWrite )
22- btr = t .GetObject (bt [BlockTableRecord .ModelSpace ], OpenMode .ForWrite )
23- for objectid in btr :
24- obj1 = t .GetObject (objectid , OpenMode .ForRead )
25- output .append (obj1 )
26- print (obj1 )
19+ with adoc .Database as db :
20+ with db .TransactionManager .StartTransaction () as t :
21+ bt = t .GetObject (db .BlockTableId , OpenMode .ForWrite )
22+ btr = t .GetObject (bt [BlockTableRecord .ModelSpace ], OpenMode .ForWrite )
23+ for objectid in btr :
24+ obj1 = t .GetObject (objectid , OpenMode .ForRead )
25+ output .append (obj1 )
26+ print (obj1 )
2727ed .WriteMessage ("Done" )
You can’t perform that action at this time.
0 commit comments