jeudi 2 mai 2013

Migration AutoCad vers ZWCAD+

 Dans ce post, je vais vous expliquer comment faire fonctionner un code s'exécutant sous AutoCAD®, sous ZWCAD.

  Pour migrer vos applications destinées à AutoCAD® vers ZWCAD, vous devez modifier les 
  références pour les dll (comme expliqué lors d'un post précédent); il faut remplacer 
"acdbmgd.dll" et "acmgd.dll" par "ZwDatabaseMgd.dll" et par "ZwManaged.dll", qui sont censés se trouver dans le dossier de ZWCAD+. Il faut également remplacer les références à "Autodesk.AutoCAD.Interop" et à "Autodesk.AutoCAD.Interop.Common" par "ZWCAD.exe".


   Enfin il faut remplacer toutes les importations de librairies telles que "Autodesk.AutoCAD.xxxx" par "ZwSoft.ZwCAD.xxxx". Aussi, il faut remplacer les références "Autodesk.AutoCAD.Interop.xxxx" par "ZWCAD.xxxx".



Imports ZwSoft.ZwCAD.ApplicationServices
Imports ZwSoft.ZwCAD.Runtime
Imports ZwSoft.ZwCAD.DatabaseServices
Imports ZwSoft.ZwCAD.Geometry
Imports ZcadAp = ZwSoft.ZwCAD.ApplicationServices.Application


Aucun commentaire:

Enregistrer un commentaire