GstarCAD 2022 VBA Migration Guide

Contents

813fd1c384a68763932eb8b8

1. Code migration

  1. Open the dvb file in AutoCAD.

  2. Open the VBA editor (with "vbaide" command) in GstarCAD and create a new project.

  3. Copy all the contents of the dvb file to the VBA project which just has been created in GstarCAD.

  1. Code modification
  1. Replace the COM object "Acad" which used in the AutoCAD with the corresponding COM object "Gcad" in GstarCAD. Such as replacing "AcadLine" with "GcadLine".

  2. Replace the object "Application" which used in the AutoCAD with the corresponding object "gcad.application" in GstarCAD.

Note

VBA is only available in 32bits version of GstarCAD. Currently, 64bits version of GstarCAD can’t support VBA.

02d5391a2d542cbca7aae1e9