Message 1 of 16
SketchLine Object causes AddByProjectingEntity to throw exception.

Not applicable
10-28-2009
01:55 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This code worked fine in Inventor 2008 however when i call this function is 2010 an Invalid Args Exception is thrown when a SketchLine is passed in. Anyone know whats going on here? asmsketch is a PlanarSketch object.
{code}
for (int j = 1; j <= asmsketch.SketchLines.Count; j++)
{
cutSketchProxy.AddByProjectingEntity(asmsketch.SketchLines);
}
{code}
Edited by: shouston on Oct 28, 2009 8:55 PM Edited by: shouston on Oct 29, 2009 1:13 PM
{code}
for (int j = 1; j <= asmsketch.SketchLines.Count; j++)
{
cutSketchProxy.AddByProjectingEntity(asmsketch.SketchLines
}
{code}
Edited by: shouston on Oct 28, 2009 8:55 PM Edited by: shouston on Oct 29, 2009 1:13 PM