GstarCAD 2026 GRX Upgrade Guide

Contents

ae8ea298154ebc1d21c299e1

1. Introduction

This guide is provided to facilitate upgrading the GRX programs running on GstarCAD of previous versions to the latest GstarCAD 2026.

2. Programming Environment

  • Microsoft® Visual Studio 2022 (version 17.8.0)

  • Windows SDK 10.0 (latest installed version)

  • CPU:

Basic: 1.6 GHz CPU

Recommended: 3.0 GHz CPU and above

  • RAM:

Basic: 2 GB

Recommended: 8 GB and above

  • Operation System (OS)

Windows 11

Windows 10 (version 1507 and above):

Home, Professional, Education and Enterprise (not support LTSC and Windows 10 S)

Windows 8.1 (with 2919355 update):

Core, Professional and Enterprise

Windows 7 SP1 (with the latest update):

Home, Professional, Enterprise and Ultimate

  • Monitor Resolution:

1028x800 and above true color display, including 4K (3840x2160) display

  • GstarCAD SDK 2026

  • GstarCAD 2026

  • Microsoft .NET 8.0

3. Requirement on Original Source Code

For the application source code with version lower than GRX2025, it needs to migrate the source code to Visual Studio 2022 compile environment, under ' Use Unicode Character Set ' and ' Multi-threaded DLL(/MD) ' environment.

4. Install GstarCAD SDK

Download GstarCAD SDK (' GRXSDK.ZIP ' file) from GstarCAD website:

https://www.gstarcad.net/download/

Unzip GRXSDK.ZIP file to the local disk (e.g. 'C:\grxsdk' ) and there will be 5 directories generated (in 'C:\grxsdk' ) which are: arx , inc , inc-x64 , lib-x64 and utils .

arx contains the header files, library files and sample programs used for porting ARX programs to GRX programs. It contains the following directories:

  • inc: Header files used for porting from ARX to GRX

  • inc-x64 : Files used by COM and .NET (for 64-bit)

  • lib-x64 : GRX libraries (for 64-bit)

  • Samples : Sample projects, including Dotnet, fact_dg, HelloADS, HelloA and SimplePalette.

  • Dotnet : .NET programming samples

    1. Addline : .NET programming sample of adding solid lines
    1. Hello : .NET programming sample of outputting prompt information
    1. Vbhello : Sample of .NET programming with VB .NET
  • fact_dg : Sample of LISP function definition

  • HelloADS : Sample of ADS programming

  • HelloARX : Sample of GRX programming

  • SimplePalette : Programming sample of how to create a set Palette windows

  • Utils: Directory contains sub-directories of GRX extended applications, including APIs for extended function development,

e.g. BREP for boundary representation.

Inc: Header files used for programming the GRX

inc-x64 : Files used by COM and .NET (for 64-bit) lib-x64 : GRX libraries (for 64-bit)

Utils : Directory contains subdirectories of GRX extended applications, including APIs for extended function development, e.g. BREP for boundary representation.

5. GstarCAD 2026 GRX Project Upgrade Step

The following are the steps to upgrade sample project ' C:\grxsdk\arx\Samples\HelloARX '.

  1. Open the project ' HelloARX ' with Visual Studio 2022, in Review Solution Actions dialog window set Platform Toolset to 'Upgrade to v143 ' and click OK . If the Review Solution Actions dialog window doesn't pop up automatically, find Platform
  • Toolset in General of HelloARX Property Pages and set as ' Visual Studio 2022 (v143) ' manually.
d51318d67d1afa05700b186e
  1. In Solution Explore of Visual Studio 2022, right click on project ' HelloARX ' and then click Properties from context menu to launch HelloArx Property Pages dialog window, as shown below.
8695ecaf0b7b2b1c30ca7fcb
  1. Select C/C++ in Configuration Properties and set Additional Include Directories in General as ' C:\grxsdk\arx\inc '

  2. Select Linker in Configuration Properties and set as below:

General-Additional Library Directories : C:\grxsdk\arx\lib-x64 (for 64-Bit)

Input-Module Definition File : C:\grxsdk\arx\inc\AcRxDefault.def

Input-Additional Dependencies :

AecModeler.lib;gcad.lib;gcax.lib;gcbase.lib;gcbr.lib;gccore.lib;gcdb.lib;GcDbConstraints.lib;GcDbPointCloudObj.lib;gcdy

  • n.lib;GcGeolocationObj.lib;gcgs.lib;GcImaging.lib;GcModelDocObj.lib;gplot.lib;
  1. In Visual Studio 2022, click Build → Build Solution to create ' HelloARX.grx ' file after compiling the project (If the compilation is not successful, repeat the above steps to reconfigure the project settings).

  2. Run GstarCAD 2026 and input ' appload ' at the command line to load ' HelloARX.grx '. Input ' HelloWorld ' at the command line. If

  • ' Hello World! ' is displayed at the command line then the upgrade of the project is successful.
89c76f6936e3e34b76a3a668 d5d67f9b6cc2101a71a1febd

Copyright reserved: Gstarsoft Co.,Ltd

Copying and referencing any part of this document is allowed. No part of this document may be changed without permission. Please keep this statement when copying or referencing this document.

Literature/GSTARCAD/2026/03 API Guides/assets/GRX Upgrade Guide assets/e3ff11d0c9eb50aec2116ebb