Applies to: ZWCAD 2015
Specific procedures are listed as follows:
1. Copy all codes in Thisdrawing from AutoCAD to ZWCAD+.
Tips: If your VBA contains Classes, modules or forms, please export it in AutoCAD and then import to ZWCAD+.
2. Change entities type from AcadXXX to ZcadXXX, for example, AcadLayer→ZcadLayer, IAcadLWPolyline→IZcadLWPolyline.
Tips: You can just replace all "Acad" with "Zcad".
3. Change all the entity declaration from acXXX to zcXXX, for example, acRed→zcRed, AcadAcCmColor→ZcadZcCmColor.
Tips: Please keep the Objectname the same as that in AutoCAD, such as AcDbLine must be kept.
4. Doesn’t support preference currently.
5. AcadApplication.GetInterfaceObject("AutoCAD.AcCmColor.16")→ZcadApplication.GetInterfaceObject("ZWCAD.ZcCmColor ").
Differences of Transplant Interface
Inquire about Object Browser as required, right click on the document you can see "Object Browser"(F2) or find it from view menu, mainly look over the parameter type and return value type.