Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to avoid change of rectangles to lines?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
vdrudramahesh
198 Views, 2 Replies

How to avoid change of rectangles to lines?

Hello, 

When I am running a script file which contains, (also attached .txt)

_rectangle
0,0.5 10,0
10,0.5 20,0
10,10.5 20,10
10,20.5 20,20
0.5,0 0,10
0.5,20 0,30
10.5,10 10,20
20.5,20 20,30 

few rectangles are getting changed to lines, as shown in the figure.

Screenshot 2023-09-26 052815.png

How can I resolve this?

Thanks!

2 REPLIES 2
Message 2 of 3
cadffm
in reply to: vdrudramahesh

You forgot to handle the running object snaps.

 

Add

OSNAPCOORD 1

to your script (it is a system setting, but when incl. in your script, you can't forget to turn osnaps off or this setting to 1

Sebastian

Message 3 of 3
vdrudramahesh
in reply to: cadffm

Thank you very much, Sebastian! Thanks a lot.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report