Enhancing AutoCAD with the Ability to Create Bidirectional Equality and Inequality Constraints on Line Segment Lengths

Abstract

In CAD systems, the integration of parametric functionalities can provide practical benefits. This is evident in AutoCAD. In this paper, a bidirectional constraint implemented in AutoCAD is understood as a constraint between variables such that when any one variable changes, the other variables involved are automatically adjusted by AutoCAD to maintain the constraint.

Based on the rich set of equality and inequality relations in planar geometry, it is possible to construct a library of base blocks. Each base block contains a geometric figure that realizes a specific constraint among the lengths of certain Line objects. This paper presents a method for supplementing AutoCAD with commands to coordinate the base functions, which automatically insert the necessary base blocks, decompose the resulting objects, and add supplementary constraints. As a result, it is possible to ensure the desired bidirectional constraints in the form of equalities or inequalities of the lengths of Line objects in the drawing.

Additionally, there are commands to manage the created constraints, such as displaying the symbolic form of the constraint, identifying the participating objects, and removing constraints. The described method is also useful when a complex constraint can be replaced by a system of constraints available in AutoCAD, along with the types of constraints introduced here. 

Country : Vietnam

1 Pham Tuan Anh

  1. School of Mechanical Engineering, Hanoi University of Science and Technology (HUST), Vietnam

IRJIET, Volume 9, Issue 6, June 2025 pp. 149-157

doi.org/10.47001/IRJIET/2025.906019

References

  1. B. Bettig and C. M. Hoffmann, "Geometric constraint solving in parametric CAD," Journal of Computing and Information Science in Engineering, vol. 11, no. 2, p. 021001, 2011, doi: 10.1115/1.3593408.
  2. P. Company, F. Naya, M. Contero and J. D. Camba, "On the role of geometric constraints to support design intent communication and model reusability, "Computer-Aided Design and Applications, vol. 17, no. 1, pp. 61-76, 2020, doi: 10.14733/cadaps.2020.61-76.
  3. R. Ellis, "A Practical Guide to Parametric Drawing in AutoCAD," Autodesk University handout, class AS2503-L, Autodesk, Las Vegas, NV, USA, 2024.
  4. Autodesk, "AutoCAD 2025 Help," online documentation, 2024. [Online]. Available: https://help.autodesk.com/view/ACD/2025/ENU/. [Accessed: 09-May-2025].
  5. M. Cottingham, Mastering AutoCAD VBA, Sybex Inc., Alameda, CA, USA, 2001.