Author Topic: Offset method - docs seem incorrect RE: sign of distance  (Read 1369 times)

0 Members and 1 Guest are viewing this topic.

hermanm

  • Guest
Offset method - docs seem incorrect RE: sign of distance
« on: July 18, 2010, 06:49:30 PM »
Using ACAD 2008

Docs say:

Quote
Distance

Double; input-only
The distance to offset the object. The offset can be a positive or negative number, but it cannot equal zero. If the offset is negative, this is interpreted as being an offset to make a "smaller" curve (that is, for an arc it would offset to a radius that is "Distance less" than the starting curve's radius).


This code:

Code: [Select]
Command: (vlax-invoke obj 'offset 0.25)
(#<VLA-OBJECT IAcadLWPolyline 0bb73304>)

Offsets to the inside (smaller radii).

This code:

Code: [Select]
Command: (vlax-invoke obj 'offset -0.5)
(#<VLA-OBJECT IAcadLWPolyline 0bb73c64>)

Offsets to the outside (larger radii).

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: Offset method - docs seem incorrect RE: sign of distance
« Reply #1 on: July 18, 2010, 10:05:17 PM »
I think this may shed some light on the subject.
http://www.theswamp.org/index.php?topic=23921.0
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

hermanm

  • Guest
Re: Offset method - docs seem incorrect RE: sign of distance
« Reply #2 on: July 19, 2010, 01:22:19 AM »
Thanks, CAB.

Confirm Gile's result:

Positive offset is to the right, negative to the left, traveling along the polyline in the direction it was drawn.