Applies to: ZWCAD 2015


Specific procedures are listed as follows:

1. Copy all codes in Thisdrawing from ZWCAD to ZWCAD+.

Tips: If your VBA contains Classes, modules or forms, please export it in ZWCAD and then import to ZWCAD+.

2. Change the symbol Thisdocument to Thisdrawing

3. Change entities type from ZwcadXXX to ZcadXXX, for example,

ZwcadLayer→ZcadLayer, IZwcadLWPolyline→IZcadLWPolyline.

4. Following properties are no longer supported:

  • ZVector
  • Parent

5. Following methods are no longer supported:

  • ListSDS
  • LoadLISP
  • LoadSdS
  • UnLoadSDS
  • Justification
  • WildCardMatch
  • PaintLine
  • RunCommand
  • SaveAll

6. The name of following methods are changed:

  • LoadZVB→LoadZPVB
  • UnLoadZVB→UnLoadZPVB

7. The usage of following properties and methods are changed:

  • Thisdrawing.regen should run with parameter.
  • PlotToDevice should run with parameter.
  • ThisDrawing.ActiveViewport.ZoomAll should be changed to ZoomAll.
  • Now the return value of getattributes is an array. It means you should access its value by var(0), rather than var.item(0).
  • Codes like these:

Dim color As ZwcadAcCmColor

Set color = Library.CreateTrueColor

Should be modified to

Dim color As ZcadZcCmColor

Set color = ZcadApplication.GetInterfaceObject("ZWCAD.ZcCmColor")

  • Codes like these:

Dim patterntype As zcHatchType

Should be modified to

Dim patterntype As Long