TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: LE3 on September 13, 2010, 02:42:41 PM
-
I am getting the below message (or see attached image):
Assignment to protected symbol:
acNative
Enter to break loop?
This happens after a call (vl-load-com) inside of AutoCAD 2010 (I have installed 2009, 2010 and 2011 if does a difference)
Now, I used to simple get rid of this type of message by using, something like:
(pragma '((unprotect-assign acNative)))
... do my stuff...
(pragma '((protect-assign acNative)))
But the above does not work because the symbol does not exist... for now I can live by clicking on the 'No' button, anyone seen and resolve this?
Thanks!
-
Do you use AutoCAD 2010 64 bit? I've got the same error on 64-bit AutoCAD. ServicePack didn't solve this problem :( The only way i found is press "No" and continue working...
P.S. This message won't appear within AutoCAD 2010 (32 bit) on 32-bit Windows. I didn't test 32-bit AutoCAD on 64-bit OS :(
P.P.S. sorry for my English.
-
Do you use AutoCAD 2010 64 bit? I've got the same error on 64-bit AutoCAD. ServicePack didn't solve this problem :( The only way i found is press "No" and continue working...
P.S. This message won't appear within AutoCAD 2010 (32 bit) on 32-bit Windows. I didn't test 32-bit AutoCAD on 64-bit OS :(
P.P.S. sorry for my English.
Thanks you.
This happen on my 32 bit machine - have also the 64 bit version, but only use that machine for testings.
And yes, only happens with A2010 :-(
-
The acNative is an enum for the vla-saveas method - do you have a LISP in startup that is perhaps trying to redefine it? Just a thought.
-
The acNative is an enum for the vla-saveas method - do you have a LISP in startup that is perhaps trying to redefine it? Just a thought.
Yep,... and nope there is nothing that use that symbol in particular, have run a search in all the files here and nada (nothing).
-
acNative
Is a synonym for the latest drawing release.
namespace Autodesk.AutoCAD.Interop.Common
{
using System;
using System.Runtime.InteropServices;
[Guid("5BC4EECD-F0D4-4738-AD57-3DF8842CCB40")]
public enum AcSaveAsType
{
ac2000_dwg = 12,
ac2000_dxf = 13,
ac2000_Template = 14,
ac2004_dwg = 0x18,
ac2004_dxf = 0x19,
ac2004_Template = 0x1a,
ac2007_dwg = 0x24,
ac2007_dxf = 0x25,
ac2007_Template = 0x26,
acNative = 0x24,
acR12_dxf = 1,
acR13_dwg = 4,
acR13_dxf = 5,
acR14_dwg = 8,
acR14_dxf = 9,
acR15_dwg = 12,
acR15_dxf = 13,
acR15_Template = 14,
acR18_dwg = 0x18,
acR18_dxf = 0x19,
acR18_Template = 0x1a,
acUnknown = -1
}
}
-
Thank you Kerry.
Just to double check on this issue here:
If I launch VLIDE and type acNative it does not shown in blue - until a call to (vl-load-com)
... :-(
acNative
Is a synonym for the latest drawing release.
namespace Autodesk.AutoCAD.Interop.Common
{
using System;
using System.Runtime.InteropServices;
[Guid("5BC4EECD-F0D4-4738-AD57-3DF8842CCB40")]
public enum AcSaveAsType
{
ac2000_dwg = 12,
ac2000_dxf = 13,
ac2000_Template = 14,
ac2004_dwg = 0x18,
ac2004_dxf = 0x19,
ac2004_Template = 0x1a,
ac2007_dwg = 0x24,
ac2007_dxf = 0x25,
ac2007_Template = 0x26,
acNative = 0x24,
acR12_dxf = 1,
acR13_dwg = 4,
acR13_dxf = 5,
acR14_dwg = 8,
acR14_dxf = 9,
acR15_dwg = 12,
acR15_dxf = 13,
acR15_Template = 14,
acR18_dwg = 0x18,
acR18_dxf = 0x19,
acR18_Template = 0x1a,
acUnknown = -1
}
}
-
Yes Luis,
I believe that is the case with all of the COM variables/enumerators.