How to write script for AutoCAD 2019?

How to write script for AutoCAD 2019?

Anonymous
Not applicable
641 Views
3 Replies
Message 1 of 4

How to write script for AutoCAD 2019?

Anonymous
Not applicable

Hi all!

I am currently using AutoCAD 2019 and I am trying to write a simple script that will create circles in the program, but the script is not working properly, that is, some circles have the same center point and that should not be the case. Can anyone give me some advice or help me? I don't know what am I doing wrong.

Here is that simple script:

Circle
0,0
100
Circle
50,50
60
Circle
70,70
30
Circle
100,100
15

<blank space>

And here is the picture

autocad_picture.png

0 Likes
642 Views
3 Replies
Replies (3)
Message 2 of 4

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

>> some circles have the same center point and that

>> should not be the case

Turn off object snap before you start your script, or look to _OPTIONS and this setting:

 

20190324_192803.png

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 4

hencoop
Advisor
Advisor

You can also include "none" in your script just prior to the center point to prevent its snapping to anything.

AutoCAD User since 1989. Civil Engineering Professional since 1983
Product Version: 13.6.1963.0 Civil 3D 2024.4.1 Update Built on: U.202.0.0 AutoCAD 2024.1.6
                        27.0.37.14 Autodesk AutoCAD Map 3D 2024.0.1
                        8.6.52.0 AutoCAD Architecture 2024
Message 4 of 4

s.borello
Advisor
Advisor

Check out video below... 

 

https://www.youtube.com/watch?v=FlCyTwvx9aU