Scripts in automating the development of AUTOCAD drawings

Authors

  • L.V. Karpyuk Volodymyr Dahl East Ukrainian National University
  • N.O. Davydenko Volodymyr Dahl East Ukrainian National University
  • M.G. Loriia Volodymyr Dahl East Ukrainian National University
  • О.М. Gurin Volodymyr Dahl East Ukrainian National University

DOI:

https://doi.org/10.33216/1998-7927-2022-275-5-44-48

Keywords:

scripts, drawings, automation, algorithm, generation, commands, interface, applications, specification, script, project

Abstract

This article discusses the concept of scripts in automating the development of drawings in the AutoCad graphics editor. One of the advantages of using AutoCAD and vertical solutions is the ability to automate frequently recurring operations or actions.One of the easiest ways to automate processes in AutoCAD is to write a script or script. In this article, we will look at how to create scripts for AutoCAD. What is a script? In computer terminology, a script is a program that runs without user intervention.For AutoCAD, a script file is an ASCII text file that contains a set of instructions for the AutoCAD command line. Just as an actor plays a role following a script, AutoCAD can follow a script to perform the sequence of actions given in that script. Script files for AutoCAD are always in *.scr format. Before automating any process, it must be described. In order for AutoCAD to perform the required actions, you must first perform these actions yourself and record their sequence.And then describe this sequence in the script. Thus, each run script that performs a specific task is individual for each drawing.That is, the text of the script is only the result of processing specific source data, and the *.scr file is only an intermediate link that connects the program in which the script is written with AutoCAD. AutoCAD scripts can be used to automate many tasks.You can use a script to add standard layers or styles to a drawing. You can write a script to update the drawing title block. And, of course, you can adapt the script to automate the printing of drawings. If we analyze the procedures performed by the designer when designing their work, we can see that they all follow strict algorithms, which are based on generally accepted methods (design standards), as well as the requirements of various regulatory documents.The presence of such formalized algorithms opens the way for automation of design work using personal computers. The main problem is the transfer of data from calculation programs to graphic ones, and built-in calculation modules, as a rule, do not have the ability to be modified for tasks solved by a specific user.The presented article discusses the methods of such data transfer from calculation programs to graphic ones. The solution of this problem is given on the example of a specific program. The article also says that scripts written for AutoCAD also work in other AutoCAD-based applications. In addition, using batch file processing, you can process drawings in batches.

References

1. Тимченко А. А. Основи системного проектування та системного аналізу складних об’єктів: Основи САПР та системного проектування складних об’єктів: Підручник / за ред. В.І.Бикова.- 2-ге вид. – К.: Либідь, 2003. – 272 с.

2. Наумчук О. М. Основи систем автоматизованого про-ектування. – Рівне : НУВГП, 2008. – 136с.

3. Норенков И. П. Основы автоматизированного проек-тирования : учеб. Для ВУЗов / И П. Норенков. – 4-е изд., перераб. и доп. – М. : Изд-во МГТУ им. Н. Э. Баумана, 2009. – 430с.

4. Саєнко С. Ю. Основи САПР / С. Ю. Саєнко, І. В. Не-чипоренко – Х. : ХДУХТ, 2017. – 120 с.

5. Т. Ю. Соколова AutoCAD 2012 на 100%. / Соколова Т. Ю. Справочник. Практическое руководство - Изда-тельство: Питер, 2012. – 576 с.

6. ГОСТ 2.106–96. Единая система конструкторской до-кументации. Текстовые документы. – Введ. 01.01.99. – М.: Изд-во.стандартов, 2002. – 40 с.

Published

2022-12-10