I'm trying to make a list of atoms in AutoLISP console. In Acad 2011, it works fine, in 2008 I got this exception:
I think it because AutoLISP sting is too long. Maybe some options of 2008 Acad to change maximum string size available? Plase help.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
Autodesk.AutoCAD.Runtime.Exception: eBufferTooSmall
at Autodesk.AutoCAD.Runtime.Interop.Check(Int32 returnValue)
at Autodesk.AutoCAD.ApplicationServices.Document.SendStringToExecute(String command, Boolean activate, Boolean wrapUpInactiveDoc, Boolean echoCommand)
at PutSpecificationIntoDrawing.MainClass.PutSpecification()
at AcMgCommandClass.InvokeWorker(AcMgCommandClass* , MethodInfo mi, Object commandObject, Boolean bLispFunction)
at AcMgCommandClass.InvokeWorkerWithExceptionFilter(AcMgCommandClass* , MethodInfo mi, Object commandObject, Boolean bLispFunction)
at AcMgPerDocumentCommandClass.Invoke(AcMgPerDocumentCommandClass* , gcroot<System::Reflection::MethodInfo ^>* mi, Boolean bLispFunction)
at AcMgCommandClass.CommandThunk.Invoke(CommandThunk* )
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
acdbmgd
Assembly Version: 17.1.0.0
Win32 Version: 17.1.51.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202008/AcdbMgd.DLL
----------------------------------------
msvcm80
Assembly Version: 8.0.50727.4927
Win32 Version: 8.00.50727.4927
CodeBase: file:///C:/Windows/WinSxS/amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_88dce9872fb1...
----------------------------------------
acmgd
Assembly Version: 17.1.0.0
Win32 Version: 17.1.51.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202008/acmgd.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.F...
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
mscorlib.resources
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
AcInfoCenterConn
Assembly Version: 17.1.0.0
Win32 Version: 17.1.51.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202008/AcInfoCenterConn.DLL
----------------------------------------
AdInfoCenter
Assembly Version: 17.1.0.0
Win32 Version: 17.1.51.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202008/AdInfoCenter.DLL
----------------------------------------
Autodesk.Interop.AcInetEngine
Assembly Version: 17.1.51.0
Win32 Version: 17.1.51.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202008/Autodesk.Interop.AcInetEngine.DLL
----------------------------------------
AdInfoCenter.resources
Assembly Version: 17.1.0.0
Win32 Version: 17.1.51.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202008/en-US/AdInfoCenter.resources.DLL
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configura...
----------------------------------------
abwkn5ot
Assembly Version: 17.1.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
AcLayer
Assembly Version: 17.1.0.0
Win32 Version: 17.1.51.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202008/AcLayer.DLL
----------------------------------------
AcMgdShared
Assembly Version: 17.1.0.0
Win32 Version: 17.1.51.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202008/AcMgdShared.DLL
----------------------------------------
acmgdinternal
Assembly Version: 17.1.0.0
Win32 Version: 17.1.51.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202008/acmgdinternal.DLL
----------------------------------------
AcLayer.resources
Assembly Version: 17.1.0.0
Win32 Version: 17.1.51.0
CodeBase: file:///C:/Program%20Files/AutoCAD%202008/en-US/AcLayer.resources.DLL
----------------------------------------
PutSpecificationIntoDrawing
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Mala1805/Desktop/equiptest/PutSpecificationIntoDrawing.dll
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.4926 built by: NetFXw7
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions...
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.Enterp...
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Solved! Go to Solution.
Solved by malst. Go to Solution.
Update: this exception raises when I try to append 12-th element to list of 11 elements from .NET in Acad 2008 like this:
currentDocument.SendStringToExecute("(setq test ()) ", true, false, false);
for (int i = 0; i < 100; i++)
{
currentDocument.SendStringToExecute("(setq test (append test (list \"" + i.ToString() + "\")) ) ", true, false, false);
}
when i exceeds 11 I have exception.
Ok, i've found solution independently. I just tried to send AutoLISP commands by small pieces in behalf of invisible Windows form, exactly like multithreading described in this post. So I can transfer huge amounts of data from .NET applications to AutoLISP applications in Acad 2008.