Offset bug?

Offset bug?

wbdehaan
Enthusiast Enthusiast
1,752 Views
9 Replies
Message 1 of 10

Offset bug?

wbdehaan
Enthusiast
Enthusiast

Hi,

 

offset.png

 

in AutoCad I experience strange behavior. when I offset the black polyline 6mm to the outside, and then offset the newly created (blue) polyline 6mm to the inside, it should be on the black, but i get the pink polyline, and this polyline is also reversed (drawn clockwise instead of counterclockwise). Is this a bug or am I missing something?

 

when I move the polyline it sometimes offsets correctly, so I think it is a rounding issue.  

 

(the reason this is a problem for me, is that i wrote an automated millingprogram for a CNC woodworking station inside AutoCad, and this polyline is milled in the wrong contour, but also on the wrong side.)

 

(I use AutoCad 2021 and windows 10)

 

kind regards, 

 

Woter

0 Likes
1,753 Views
9 Replies
Replies (9)
Message 2 of 10

ennujozlagam
Mentor
Mentor

i don't find any issues. offset as expected. try to install latest updates from autodesk and try switch off your GRAPHICSCONFIG and see if helps. thanks

dont.JPG

 

 





Remember : without the difficult times in your LIFE, you wouldn't be who you are today. Be grateful for the good and the bad. ANGER doesn't solve anything. It builds nothing, but it can destroy everything...
Please mark this response as "Accept as Solution" if it answers your question. Kudos gladly accepted.
0 Likes
Message 3 of 10

vinodkl
Mentor
Mentor

Hi,

 

This is caused by not closing the polyline when it was drawn(I mean not to make the endpoint of the polyline to meet the starting point of the polyline but not using the option "close" while drawing the polyline to close the polyline completely)

Try to "EXPLODE" the polyline and then use the command "JOIN" to the lines and then try using offset. It will work as you expected🙂

 

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
0 Likes
Message 4 of 10

wbdehaan
Enthusiast
Enthusiast

Hi,

 

thank You for Your quick response, I disabled graphicsconfig, we have the latest version of AutoCad2021, but it also happens in AutoCad 2020 and 2019. I added a video

0 Likes
Message 5 of 10

wbdehaan
Enthusiast
Enthusiast

Thanks for Your answer,

 

the problem for me is that my program/macro passes several thousands of polylines automatically, and I need to rely on the offset feature in autocad, and cannot check every polyline. 

 

kind regards, 

 

Wouter

0 Likes
Message 6 of 10

ennujozlagam
Mentor
Mentor

you wrote

 

the problem for me is that my program/macro passes several thousands of polylines automatically, and I need to rely on the offset feature in autocad, and cannot check every polyline.

 

in the command prompt type BPOLY and pick inside it will create a boundary polyline erase the existing line and try to offset a new boundary line and see if helps. thanks





Remember : without the difficult times in your LIFE, you wouldn't be who you are today. Be grateful for the good and the bad. ANGER doesn't solve anything. It builds nothing, but it can destroy everything...
Please mark this response as "Accept as Solution" if it answers your question. Kudos gladly accepted.
0 Likes
Message 7 of 10

ennujozlagam
Mentor
Mentor

i really don't understand why do you have this problem at i don't see any problem at all. it could be you have 3rd party plugin hindrance to your command offset. thanks

 

https://autode.sk/2FmeFEc





Remember : without the difficult times in your LIFE, you wouldn't be who you are today. Be grateful for the good and the bad. ANGER doesn't solve anything. It builds nothing, but it can destroy everything...
Please mark this response as "Accept as Solution" if it answers your question. Kudos gladly accepted.
0 Likes
Message 8 of 10

cadffm
Consultant
Consultant

@ennujozlagam 

In your screencast we can see the same shape! but only as preview.

 

I can not check the polyline(acad not available now), but i would check:

Is this pline part a bulge?

The position in WCS, is it the same at 0,0,0 wcs?

 

It's not the first time you can see this if the size/length os very small or high.

Bulges which are near to be a straight are always a problem.

 

But in this case the wrong this is to have a bulge, it should be a line segment(or).

Sebastian

0 Likes
Message 9 of 10

ennujozlagam
Mentor
Mentor

you can download the attached file from the OP.  i used the same file for my screencast. thanks

 





Remember : without the difficult times in your LIFE, you wouldn't be who you are today. Be grateful for the good and the bad. ANGER doesn't solve anything. It builds nothing, but it can destroy everything...
Please mark this response as "Accept as Solution" if it answers your question. Kudos gladly accepted.
0 Likes
Message 10 of 10

pendean
Community Legend
Community Legend
Your shape changes with the first offset, so it is not the same as the original anymore, so the second offset works from the new shape, not the original shape.

It appears that line at the end of your arc is lost at the second function. Not much you can do about it.

Tested in R2021.1 and R2019.1.2 here, same results as you.
0 Likes