Jump to content

How to avoid change of rectangles to lines?


Mahesh V

Recommended Posts

Hello, 

When I am running a script file which contains,

_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.

How can I resolve this?

Thanks!

Link to comment
Share on other sites

You're drawing a series of rectangles. Each one is a closed polyline. There are no lines involved. I don't know what you expected, so I can't answer your question.

 

If you want groups of lines instead of rectangles, you can Explode the rectangles.

 

Welcome to the forum.

Link to comment
Share on other sites

For it to work need to end each rectang call, a couple of ways to do it as copy to command line. Also need to turn snaps off.

 

osmode 0
_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

There is a subtle difference here compared to 1st example a space is added onto end of each relevant line. This acts like a Enter

osmode 0
_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 

 

Edited by BIGAL
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...