.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GetTrimmedOffset Crashes Pre-2009

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
255 Views, 0 Replies

GetTrimmedOffset Crashes Pre-2009

FYI:

{code}
using Autodesk.AutoCAD.Geometry;
using Autodesk.AutoCAD.Runtime;

namespace Test
{
public static class Test
{
[CommandMethod("gtoc")]
public static void GetTrimmedOffsetCrash()
{
// Seems to affect any LineSegment3d or CircularArc3d
LineSegment3d l = new LineSegment3d(
Point3d.Origin, new Point3d(3, 5, 0));
//CircularArc3d l = new CircularArc3d(Point3d.Origin,
// new Point3d(5, 3, 0), new Point3d(3, 5, 0));

// Crashes AutoCAD here (in 2007-8, not in 2009-10)
Curve3d[] oca = l.GetTrimmedOffset(0,
Vector3d.ZAxis, OffsetCurveExtensionType.Extend);
}
}
}
{code}

--
James Allen
Malicoat-Winslow Engineers, P.C.
Columbia, MO
0 REPLIES 0

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost