<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: InternalValidationError : err == AcGe::kXXOk in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/internalvalidationerror-err-acge-kxxok/m-p/6345229#M19869</link>
    <description>&lt;P&gt;Thanks Jack. &amp;nbsp;Is there any workaround you could suggest in the meantime? &amp;nbsp;My process likely could draw a bunch of sketch lines over the spline (in place of ConstructionPlanes), and then use&amp;nbsp;SketchFittedSpline.intersections to infer the information I need. &amp;nbsp;Unfortunately I was hoping to use the intersection data as input to&amp;nbsp;create&amp;nbsp;2-point circles, so I'd need to create and maintain the relationships to planes anyways to create the follow on circle sketches.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any&amp;nbsp;idea which release the fix may fall into once root-caused? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2016 01:57:24 GMT</pubDate>
    <dc:creator>eightdeltacharlie</dc:creator>
    <dc:date>2016-05-24T01:57:24Z</dc:date>
    <item>
      <title>InternalValidationError : err == AcGe::kXXOk</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/internalvalidationerror-err-acge-kxxok/m-p/6343259#M19867</link>
      <description>&lt;P&gt;This&amp;nbsp;call to a Plane object's IntersectWithCurve function (red line in the code) fails with error message:&amp;nbsp;&lt;STRONG&gt;InternalValidationError : err == AcGe::kXXOk&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This failure seems similar to what was &lt;A href="https://forums.autodesk.com/t5/forums/forumtopicprintpage/board-id/22/message-id/943/print-single-message/false/page/1" target="_blank"&gt;described&amp;nbsp;in this post&lt;/A&gt;&amp;nbsp;and apparently fixed in a January 2016 release. &amp;nbsp;I'm running the 2.0.2016 build. Any suggestions on&amp;nbsp;whether this is an issue in IntersectWithCurve's implementation, or whether i'm messing up the call somehow? &amp;nbsp;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	Ptr&amp;lt;Product&amp;gt; product = app-&amp;gt;activeProduct();
	Ptr&amp;lt;Design&amp;gt; design = product;
	Ptr&amp;lt;Component&amp;gt; rootComponent = design-&amp;gt;rootComponent();

	Ptr&amp;lt;Selections&amp;gt; activeSelection = ui-&amp;gt;activeSelections();
	Ptr&amp;lt;Base&amp;gt; selection = activeSelection-&amp;gt;item(0)-&amp;gt;entity();

	if (Ptr&amp;lt;ConstructionPlane&amp;gt;(selection))
	{
		Ptr&amp;lt;ConstructionPlane&amp;gt; plane = selection;

		Ptr&amp;lt;Sketches&amp;gt; sketches = rootComponent-&amp;gt;sketches();
		if (!sketches)
			return false;

		Ptr&amp;lt;Sketch&amp;gt; sketch = sketches-&amp;gt;item(0);
		if (!sketch)
			return false;

		Ptr&amp;lt;SketchCurves&amp;gt; sketchCurves = sketch-&amp;gt;sketchCurves();
		if (!sketchCurves)
			return false;

		Ptr&amp;lt;SketchFittedSpline&amp;gt; spline = sketchCurves-&amp;gt;sketchFittedSplines()-&amp;gt;item(0);
		if (!spline)
			return false;

		&lt;FONT color="#FF0000"&gt;Ptr&amp;lt;ObjectCollection&amp;gt; points = plane-&amp;gt;geometry()-&amp;gt;intersectWithCurve(spline-&amp;gt;geometry());&lt;/FONT&gt;
		if (!points)
			return false;
	}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 07:28:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/internalvalidationerror-err-acge-kxxok/m-p/6343259#M19867</guid>
      <dc:creator>eightdeltacharlie</dc:creator>
      <dc:date>2016-05-23T07:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: InternalValidationError : err == AcGe::kXXOk</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/internalvalidationerror-err-acge-kxxok/m-p/6343406#M19868</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is an issue in&amp;nbsp;&lt;SPAN&gt;IntersectWithCurve. I logged a defect on this&amp;nbsp;in our internal system (UP-28514). Thanks for reporting this issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jack&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 09:14:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/internalvalidationerror-err-acge-kxxok/m-p/6343406#M19868</guid>
      <dc:creator>liujac</dc:creator>
      <dc:date>2016-05-23T09:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: InternalValidationError : err == AcGe::kXXOk</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/internalvalidationerror-err-acge-kxxok/m-p/6345229#M19869</link>
      <description>&lt;P&gt;Thanks Jack. &amp;nbsp;Is there any workaround you could suggest in the meantime? &amp;nbsp;My process likely could draw a bunch of sketch lines over the spline (in place of ConstructionPlanes), and then use&amp;nbsp;SketchFittedSpline.intersections to infer the information I need. &amp;nbsp;Unfortunately I was hoping to use the intersection data as input to&amp;nbsp;create&amp;nbsp;2-point circles, so I'd need to create and maintain the relationships to planes anyways to create the follow on circle sketches.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any&amp;nbsp;idea which release the fix may fall into once root-caused? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 01:57:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/internalvalidationerror-err-acge-kxxok/m-p/6345229#M19869</guid>
      <dc:creator>eightdeltacharlie</dc:creator>
      <dc:date>2016-05-24T01:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: InternalValidationError : err == AcGe::kXXOk</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/internalvalidationerror-err-acge-kxxok/m-p/6345314#M19870</link>
      <description>&lt;P&gt;It looks like the sketchline based intersect workaround I mentioned earlier also doesn't work. &amp;nbsp;The following call to a Sketchline's Intersections method (red text in code) fails with an &lt;STRONG&gt;InternalValidationError : refplane&lt;/STRONG&gt; message. &amp;nbsp;I've attached a screenshot of the input sketch, but it&amp;nbsp;summary - its one sketch with two intersecting&amp;nbsp;SketchLines, and two fitted splines that intersect one of those lines. &amp;nbsp;Whether I pass in NULL for the first parameter (to consider the entire sketch) or pass in an ObjectCollection of specific curves, the results are the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Ptr&amp;lt;Selections&amp;gt; activeSelection = ui-&amp;gt;activeSelections();
Ptr&amp;lt;Base&amp;gt; selection = activeSelection-&amp;gt;item(0)-&amp;gt;entity();

if (Ptr&amp;lt;SketchLine&amp;gt;(selection))
{
	Ptr&amp;lt;SketchLine&amp;gt; sketch = selection;
	Ptr&amp;lt;ObjectCollection&amp;gt; intersectingCurves;
	Ptr&amp;lt;ObjectCollection&amp;gt; intersectionPoints;
	&lt;FONT color="#FF0000"&gt;sketch-&amp;gt;intersections(NULL, intersectingCurves, intersectionPoints);&lt;/FONT&gt;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 04:20:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/internalvalidationerror-err-acge-kxxok/m-p/6345314#M19870</guid>
      <dc:creator>eightdeltacharlie</dc:creator>
      <dc:date>2016-05-24T04:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: InternalValidationError : err == AcGe::kXXOk</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/internalvalidationerror-err-acge-kxxok/m-p/6345421#M19871</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There&amp;nbsp;is an issue inside SketchCurve.intersections. I logged a defect for this (UP-28551). We will try the best to fix the&amp;nbsp;issues ASAP maybe early in June.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may use the workaround for now as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;	Ptr&amp;lt;Selections&amp;gt; activeSelection = ui-&amp;gt;activeSelections();
	Ptr&amp;lt;Base&amp;gt; selection = activeSelection-&amp;gt;item(0)-&amp;gt;entity();
	Ptr&amp;lt;SketchLine&amp;gt; sketchLine = selection;
	if (sketchLine)
	{
		Ptr&amp;lt;Line3D&amp;gt; line = sketchLine-&amp;gt;geometry();
		Ptr&amp;lt;Sketch&amp;gt; sketch = sketchLine-&amp;gt;parentSketch();
		Ptr&amp;lt;SketchCurves&amp;gt; skCurves = sketch-&amp;gt;sketchCurves();
		for (auto skCurve : skCurves)
		{
			if(skCurve == sketchLine)
				continue;

			Ptr&amp;lt;Curve3D&amp;gt; curve = nullptr;
			if (Ptr&amp;lt;SketchArc&amp;gt; arc = skCurve)
				curve = arc-&amp;gt;geometry();
			else if(Ptr&amp;lt;SketchLine&amp;gt; line = skCurve)
				curve = line-&amp;gt;geometry();
			else if (Ptr&amp;lt;SketchCircle&amp;gt; circle = skCurve)
				curve = circle-&amp;gt;geometry();
			else if (Ptr&amp;lt;SketchEllipse&amp;gt; ellipse = skCurve)
				curve = ellipse-&amp;gt;geometry();
			else if (Ptr&amp;lt;SketchEllipticalArc&amp;gt; ellipticalArc = skCurve)
				curve = ellipticalArc-&amp;gt;geometry();
			else if (Ptr&amp;lt;SketchFittedSpline&amp;gt; fittedSpline = skCurve)
				curve = fittedSpline-&amp;gt;geometry();
			else if (Ptr&amp;lt;SketchFixedSpline&amp;gt; fixedSpline = skCurve)
				curve = fixedSpline-&amp;gt;geometry();
			else if (Ptr&amp;lt;SketchConicCurve&amp;gt; conicCurve = skCurve)
				curve = conicCurve-&amp;gt;geometry();

			if(!curve)
				continue;

			Ptr&amp;lt;ObjectCollection&amp;gt; intersections = line-&amp;gt;intersectWithCurve(curve);
		}
	}&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 May 2016 06:59:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/internalvalidationerror-err-acge-kxxok/m-p/6345421#M19871</guid>
      <dc:creator>liujac</dc:creator>
      <dc:date>2016-05-24T06:59:07Z</dc:date>
    </item>
  </channel>
</rss>

