Hello. I am french so sorry for my english..
i have Dl the sdk ark on autodesk.
i have this error when i launch the ddl (created with visualstudio 2010 :
Commande: netload
Impossible de charger l'assemblage. Détails de l'erreur:
System.BadImageFormatException: Impossible de charger le fichier ou l'assembly
'file:///D:\Autocad\VB.NET\Project\2010\Compile\ClassLibrary1.dll' ou une de
ses dépendances. Cet assembly a été construit par un runtime plus récent que le
runtime actuellement chargé et ne peut pas être chargé.
Nom du fichier :
'file:///D:\Autocad\VB.NET\Project\2010\Compile\ClassLibrary1.dll'
--> i have confi visual for my Xp on 32b. (compile option on x86).
The prog : this is the demo code :
'Lien de compilation
Imports Autodesk.AutoCAD.Interop
Imports Autodesk.AutoCAD.Interop.Common
Public Class Class1
Public ReadOnly Property ThisDrawing() As AcadDocument
Get
Return Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument.AcadDocument
End Get
End Property
<Autodesk.AutoCAD.Runtime.CommandMethod("MonProg")> _
Public Sub MonProg()
ThisDrawing.utility.prompt("Hello")
End Sub
End Class
so WHY I CAN RUN IT ?
totaly new on VB.NET......
XP 32b + autocad 2010
i have fix IT !!
I find in the compile --> advanced --> Target framework.
--> by default : framework 4. so i set it to v3.5 --> not it working.
So now i have 5-6 pc for this app how i can know waht is the good framework ?
it is so much complicated
I love VBA !! 😛