(command…) versus (entmake…)
Print This Post
![]() |
Author | Orhan Toker |
| Profession | Architect M.Sc. | |
| Autodesk Authorized Consultant | ||
| Database Specialist | ||
R.K. McSwain who is the founder of CAD Panacea blog which I frequently read, developed a programme to test which function is faster when creating entities in Autolisp programmes. The software he developed, adds 2000 lines with 0 length to the drawing and decides with which function it is faster. There are 5 different commands in the programme which are test1, test2, test3, test4 and test5.
Test1: Constitutes the objects with the (command …) function when CMDECHO is on.
Test2: Constitutes the objects with the (command …) function when CMDECHO is off.
Test3: Uses (entmake …) function
Test4: Draws lines with the (vla-add …) function.
Test5: Uses (vla-add …) but refreshes the objects after constituting the database. This subtracts the refreshing time of the screen from measurement.
I have checked it out, The fastest way is forming with (entmake …). Here are the results:
- Test1: 8.60 sn
- Test2: 7.01 sn
- Test3: 0.14 sn
- Test4: 0.53 sn
- Test5: 0.53 sn
Nice work Swain. Thank you,
Similar Posts
Rate this article:

