DbLineProperties - IcARX Sample Application
=============================================

Created by the IntelliCAD Technology Consortium (ITC)
https://www.intellicad.org


About This Sample
-----------------

This archive contains a sample ARX application called DbLineProperties,
built from a single source codebase. It demonstrates the IcARX API by
creating a custom line entity (MyLine) derived from AcDbLine with
additional properties and behavior.

Custom properties demonstrated:

  - Mid Point Property: returns the midpoint of the line
  - Compass Property: positions the line according to a selected direction
  - Squared Length: returns the squared length of the line; when set,
    the line adjusts so its midpoint remains fixed
  - MyEnum: a drop-down list constrained to a set of values
  - Dynamic Dialog Property / Dynamic Dialog Property2: buttons in the
    properties panel that launch custom dialog boxes

The application also demonstrates custom grip and stretch point
handling, DWG/DXF serialization of custom properties, and an editor
reactor for mouse double-click events.

Two compiled binaries are included:

  - DbLineProperties/Acad/DbLineProperties.arx (compiled for AutoCAD)
  - DbLineProperties/Icad/DbLineProperties.arx (compiled for IntelliCAD)

The same source code was used for both. No modifications were made
between builds. The IntelliCAD version was compiled using the IcARX SDK.


Loading in AutoCAD
------------------

1. Launch AutoCAD.
2. Type APPLOAD at the command line, or go to Tools > Load Application.
3. Browse to the AutoCAD version of DbLineProperties.arx and load it.
4. Type MYLINE at the command line to run the sample command.
5. Pick two points to create a line, then select it to view its
   custom properties in the Properties panel.

Note: The AutoCAD binary can only be loaded in AutoCAD. It will not
load in IntelliCAD.


Loading in IntelliCAD
---------------------

1. Launch IntelliCAD.
2. Type APPLOAD at the command line, or go to Tools > Load Application.
   You can also drag and drop the .arx file into IntelliCAD.
3. Browse to the IntelliCAD version of DbLineProperties.arx and load it.
4. Type MYLINE at the command line to run the sample command.
5. Pick two points to create a line, then select it to view its
   custom properties in the Properties panel.

Note: The IntelliCAD binary can only be loaded in IntelliCAD. It will
not load in AutoCAD.


Copyright and Trademark Notice
------------------------------

Copyright (c) 2026 IntelliCAD Technology Consortium. All rights reserved.

This sample application and its source code are provided by the
IntelliCAD Technology Consortium for demonstration and evaluation
purposes.

IntelliCAD is a registered trademark of the IntelliCAD Technology
Consortium.

AutoCAD and ObjectARX are registered trademarks or trademarks of
Autodesk, Inc. The IntelliCAD Technology Consortium is not affiliated
with or endorsed by Autodesk.


Learn More
----------

Blog post:  https://www.intellicad.org/articles-and-press-releases/icarx-arx-applications-for-intellicad/
Trial:      https://www.intellicad.org/intellicad-trial-request
