Hello Peter,
you're partly right. It always offsets to the right. So I have to check for clockwise first. But that is not what the documentation implies.
As soon as I try to add a Side parameter it is complaining that it is already expecting the strongbox for the Polyseg.
There is no overloading intended for this method.

From my point of view that is a bug, since it isn't doing what the documentation says.
But this method would be handy since you wouldn't have to check for clockwise and don't have to define a side. It's supposedly done with the positive or negative value of the offset and the clockwise check is included.
------------------------------
Ronny Schneider
------------------------------
Original Message:
Sent: 03-05-2023 23:55
From: Peter Kistler
Subject: found a bug in Trimble.Vce.Geometry.PolySeg.PolySeg.Expand
Ronny,
You have to tell it which Side, ie Side.Left or Side.Right, to perform the offset. I'm pretty sure the absolute value of the supplied offset is used. You will need to use the IsClockWise api to determine which side to perform the offset to.
Peter
------------------------------
Peter Kistler
peter.kistler@rockpilesolutions.com
Original Message:
Sent: 03-04-2023 01:44
From: Ronny Schneider
Subject: found a bug in Trimble.Vce.Geometry.PolySeg.PolySeg.Expand
@Gary Lantaff
From the object browser
Summary:
Creates a closed polyseg that is parallel to and smaller or
larger than the specified closed polyseg. Specify a negative
offset to shrink the polyseg or a positive offset to expand the polyseg.
That doesn't work. The line is always offset to the outside, no matter what sign you use for the offset. Tested with 5.71 and 5.81.
Will have to use .Offset instead and test for clockwise first.
------------------------------
Ronny Schneider
------------------------------