<?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: Moving Translating Sketch in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6201631#M20213</link>
    <description>&lt;P&gt;To move sketch, you can set the transform of the sketch. Please try the code below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sketch1 = adsk.fusion.Sketch.cast(ui.activeSelections[0].entity)
transf = sketch1.transform
transf.translation = adsk.core.Vector3D.create(100, 100, 0)
sketch1.transform = transf&lt;/PRE&gt;
&lt;P&gt;Also, sketch only can be transformed in direct modeling, setting the transform will fail in the case where the sketch is parametric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jack&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Mar 2016 03:23:42 GMT</pubDate>
    <dc:creator>liujac</dc:creator>
    <dc:date>2016-03-07T03:23:42Z</dc:date>
    <item>
      <title>Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6201114#M20212</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am trying to move a sketch with the python api in Fusion360.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sofar i tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ent = adsk.core.ObjectCollection.create()&lt;/P&gt;&lt;P&gt;ent.add(sketch2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transform = adsk.core.Matrix3D.create()&lt;/P&gt;&lt;P&gt;transform.translation = adsk.core.Vector3D.create(10,0,0)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;moveSketch = newComp.features.moveFeatures&lt;/P&gt;&lt;P&gt;moveSketch.objectType = "sketch"&lt;/P&gt;&lt;P&gt;moveInput = moveSketch.createInput(ent, transform )&lt;/P&gt;&lt;P&gt;moveSketch.add(moveInput)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that returns invalid entity type ( i guess i have to set the entity)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;than i tryed&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;transform = sketch2.transform&amp;nbsp;&lt;/P&gt;&lt;P&gt;transform.translation = adsk.core.Vector3D.create(100,100,0)&lt;/P&gt;&lt;P&gt;sketch2.move = transform&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this did not work eider, no errors and no transform&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any suggestions ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Mar 2016 11:42:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6201114#M20212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-06T11:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6201631#M20213</link>
      <description>&lt;P&gt;To move sketch, you can set the transform of the sketch. Please try the code below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sketch1 = adsk.fusion.Sketch.cast(ui.activeSelections[0].entity)
transf = sketch1.transform
transf.translation = adsk.core.Vector3D.create(100, 100, 0)
sketch1.transform = transf&lt;/PRE&gt;
&lt;P&gt;Also, sketch only can be transformed in direct modeling, setting the transform will fail in the case where the sketch is parametric.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jack&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 03:23:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6201631#M20213</guid>
      <dc:creator>liujac</dc:creator>
      <dc:date>2016-03-07T03:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6201771#M20214</link>
      <description>&lt;P&gt;So could you ellaborate on what direct moddeling versus parametric means in a script context.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried your example it gives me an error on the way that you use to cast sketch1, so i tried it with my sketch object directly and it run through but did not translate the object.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only way i got it working so far was to collect all curves in the sketch ( when i create them i save them in a variable) and create a ObjectCollection, than i do sketch.mov(coll, trans).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to build the collection with sketch.sketchCurves, throws me an error saying that the coll is of type core.ptr well i am not a swift user so my understanding of when something becomes a pointer in c++ or not is rather limited. But the whole documentation needs some information about internal types and how that is related to the python typesetting system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While i was playing with other parts of the Python API i also realised that getting the reference point from the sketch object would give me simular errors, core.ptr instead of core.point3d, so it looks like python becomes a pointer if i do basePnt = sketch.originPoint the swift file also states&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; def _get_originPoint(self) -&amp;gt; "adsk::core::Ptr&amp;lt; adsk::fusion::SketchPoint &amp;gt;" :
        """Returns the sketch point that was automatically created by projecting the origin construction point into the sketch."""
	return _fusion.Sketch__get_originPoint(self)&lt;/PRE&gt;&lt;P&gt;so this clearly states i get type core.Ptr(fusion.SketchPoint), well yes not exactly of type core.Point3d but it explains the problem with types that i experience, are there helpers to cast back to that types ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 07:06:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6201771#M20214</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-07T07:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6201982#M20215</link>
      <description>&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 13.5pt;"&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #706d6f;"&gt;Direct modeling means "Do not capture Design History". Parametric modeling means "Capture Design History".&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 13.5pt; orphans: auto; text-align: start; widows: 1; -webkit-text-stroke-width: 0px; word-spacing: 0px;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #706d6f;"&gt;Right-click&amp;nbsp;on root component, you will&lt;SPAN class="apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;see the&amp;nbsp;"Do not capture Design History" or&amp;nbsp;"Capture Design History" command on the context menu.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 13.5pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #706d6f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 13.5pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #706d6f;"&gt;“Sketch.Transform” is used to gets and sets the transform of the sketch with respect to model space.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 13.5pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #706d6f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 13.5pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #706d6f;"&gt;“Sketch.Move” is used to moves the specified sketch entities using the specified transform.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 13.5pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #706d6f;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 13.5pt;"&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 10.5pt; font-family: 'Helvetica','sans-serif'; color: #706d6f;"&gt;The original point retrieved from Sketch is a SketchPoint object. You can get the geometry by calling “SketchPoint.Geometry” or “SketchPoint. worldGeometry”. “SketchPoint.Geometry” returns a Point3D object which provides the position of the sketch point in sketch space. “SketchPoint. worldGeometry” returns a Point3D object which provides the position of the sketch point in world space.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 13.5pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; margin-bottom: .0001pt; line-height: 13.5pt;"&gt;&lt;SPAN&gt;Jack&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 09:30:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6201982#M20215</guid>
      <dc:creator>liujac</dc:creator>
      <dc:date>2016-03-07T09:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6202827#M20216</link>
      <description>&lt;P&gt;I think there's still an open question here of what it is that you're trying to do.&amp;nbsp; Here's a quick primer on what a sketch is.&amp;nbsp; You can think of a&amp;nbsp;sketch as a container that only contains sketch data&amp;nbsp;and is orientated within the model .&amp;nbsp; It has it's own coordinate system and the geometry it contains&amp;nbsp;is defined relative to that sketch coordinate system.&amp;nbsp; Typically, the geometry&amp;nbsp;all lies on the X-Y plane and is treated as 2D, but it's not limited to that.&amp;nbsp; By moving the sketch, everything within the sketch also moves so they stay in the same position relative to the sketch coordinate system.&amp;nbsp; This is true for sketches created in both the Direct ("Do not capture Design History") and the Parametric ("Capture Design History") modes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When creating a new sketch you must select a plane (construction plane or planar&amp;nbsp;face) to create the sketch on.&amp;nbsp; The selected plane defines the X-Y plane of the sketch.&amp;nbsp; When working in a parametric model, the sketch remembers the plane it was built on and if that plane changes the sketch automatically repositions itself.&amp;nbsp; The sketch is dependent on that plane and can't be moved independently of the plane.&amp;nbsp; When working in a direct model, the sketch does not remember the selected plane but only it's orientation in model space.&amp;nbsp; There is no relationship between the&amp;nbsp;selected plane and the sketch, so if the plane moves the sketch&amp;nbsp;does not change.&amp;nbsp; However, because the sketch is completely independent you can use the Move command to reposition the sketch within model space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The contents of a sketch&amp;nbsp;mostly behave&amp;nbsp;the same in parametric or direct models and it's possible to move geometry within the sketch.&amp;nbsp; Where parametric sketches&amp;nbsp;are different is when&amp;nbsp;you include geometry from outside the sketch.&amp;nbsp; Then that geometry can't be moved because it has a dependency on the external geometry.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 16:55:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6202827#M20216</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-03-07T16:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6202862#M20217</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using the python api and i wnat to create two sketches&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sketch1 = createSketch(diameter)
sketch2 = createSketch(diameter)

transform = sketch2.transform&lt;BR /&gt;&lt;SPAN&gt;transform.translation = adsk.core.Vector3D.create(10,10,0)&lt;/SPAN&gt;&lt;BR /&gt;sketch2.transform = transform&lt;/PRE&gt;&lt;P&gt;so the createSketch func creates a sketch into the current component and creates 3 curves inside, diameter is used for the curve diameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now i would like to move the second sketch, away, the way that i show in the script does not work, the only thing that seems to work is when i combine the objects inside the sketch inside an objectCollection. But how can i move the whole sketch.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 17:16:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6202862#M20217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-07T17:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6202936#M20218</link>
      <description>&lt;P&gt;You haven't said if you're working in a parametric design or not.&amp;nbsp; I think you're probably trying to do this in a parametric design, which is not supported for the reasons I discussed above.&amp;nbsp;&amp;nbsp;To check, right-clickk on the&amp;nbsp;top node in the browser.&amp;nbsp; If the command at the bottom says "Do not capture Design History", as shown below, then you're working in a parametric design and it's not possible to move a sketch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG title="CaptureDesignHistory.png" alt="CaptureDesignHistory.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/222944i9D958C16D1772150/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are working in a Direct modeling design, then moving a sketch does work.&amp;nbsp; The code below creates a new document, makes sure it is a&amp;nbsp;Direct modeling design, creates two sketches and moves one of them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;def sketchTransform():
    ui = None
    try:
        app = adsk.core.Application.get()
        ui  = app.userInterface
        
        doc = app.documents.add(adsk.core.DocumentTypes.FusionDesignDocumentType)
        des = adsk.fusion.Design.cast(app.activeProduct)
        des.designType = adsk.fusion.DesignTypes.DirectDesignType

        root = des.rootComponent        
        sk1 = root.sketches.add(root.xYConstructionPlane)
        sk1.sketchCurves.sketchCircles.addByCenterRadius(adsk.core.Point3D.create(0,0,0), 5)

        sk2 = root.sketches.add(root.xYConstructionPlane)
        sk2.sketchCurves.sketchCircles.addByCenterRadius(adsk.core.Point3D.create(0,0,0), 5)

        trans = sk2.transform
        trans.setCell(0,3,trans.getCell(0,3)+5)
        sk2.transform = trans
    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Mar 2016 17:52:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6202936#M20218</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-03-07T17:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6202955#M20219</link>
      <description>&lt;P&gt;I am working on an script add in, so i don't really know what kind of context if Parametric or Direct, can i decide that from within the script, can i switch back and forth during script excecution,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyway since i could move my curves by an ObjectCollection i could also use that way, i am just looking for a way to get all the curves inside my sketch into an objectCollection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ent = adsk.core.ObjectCollection.create()

# how can i access all curves inside the sketch2 object ?
ent.add(???)
ent = sketch2.sketchCurves.sketchCircles.item(0)

transform = adsk.core.Matrix3D.create()
transform.translation = adsk.core.Vector3D.create(0,0,thickness)
sketch2.move(ent, transform)
        &lt;/PRE&gt;&lt;P&gt;is there an other python API reference as the one at&amp;nbsp;&lt;A href="http://fusion360.autodesk.com/learning/learning.html" target="_blank"&gt;http://fusion360.autodesk.com/learning/learning.html&lt;/A&gt; i am really tyred of scrolling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 18:02:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6202955#M20219</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-07T18:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6203844#M20220</link>
      <description>&lt;P&gt;You should be able to move all of the sketch geometry if you add all of the curves and all of the points to the collection.&amp;nbsp; There are the exceptions that I mentioned earlier where the sketch geometry has outside dependencies and is controlled by them.&amp;nbsp; It would be best if you work through your desired workflow interactively in the user-interface to get a better understanding of how Fusion works and what it's limitations are.&amp;nbsp; Below is a modified version of my previous sample that moves everything in the sketch.&lt;/P&gt;
&lt;PRE&gt;def sketchTransform2():
    ui = None
    try:
        app = adsk.core.Application.get()
        ui  = app.userInterface
        
        doc = app.documents.add(adsk.core.DocumentTypes.FusionDesignDocumentType)
        des = adsk.fusion.Design.cast(app.activeProduct)
        des.designType = adsk.fusion.DesignTypes.DirectDesignType

        root = des.rootComponent        
        sk1 = root.sketches.add(root.xYConstructionPlane)
        sk1.sketchCurves.sketchCircles.addByCenterRadius(adsk.core.Point3D.create(0,0,0), 5)
        ln = sk1.sketchCurves.sketchLines.addByTwoPoints(adsk.core.Point3D.create(1,0,0), adsk.core.Point3D.create(5,4,0))
        ln = sk1.sketchCurves.sketchLines.addByTwoPoints(ln.endSketchPoint, adsk.core.Point3D.create(2,4,0))

        coll = adsk.core.ObjectCollection.create()
        for crv in sk1.sketchCurves:
            coll.add(crv)
        for pnt in sk1.sketchPoints:
            coll.add(pnt)

        transform = adsk.core.Matrix3D.create()
        transform.translation = adsk.core.Vector3D.create(0,0,2)
        sk1.move(coll, transform)
    except:
        if ui:
            ui.messageBox('Failed:\n{}'.format(traceback.format_exc()))&lt;/PRE&gt;</description>
      <pubDate>Tue, 08 Mar 2016 03:32:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6203844#M20220</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-03-08T03:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6203984#M20221</link>
      <description>&lt;P&gt;Thanks that worked,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;did i actually move the sketch.basePoint with that operation , otherwhise scale and rotate would have an offset center.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly is it possible to create a Constructionplane lets say (0,0,-10) from component coordinate center and pass that to&amp;nbsp;sketches.add() ?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 06:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/6203984#M20221</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-08T06:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/8567640#M20222</link>
      <description>&lt;P&gt;Hi there. I've been searching this forum but could not find my answer...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;I am working in the active sketch and want to rotate a collection of points.&lt;/P&gt;
&lt;P&gt;The sketch plane is none of the origin face.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried something like this&lt;/P&gt;
&lt;P&gt;However, all these 3D stuff doesn't seem appropriate since I work in 2D.&lt;/P&gt;
&lt;P&gt;For instance, the rotation axis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;transformRot = adsk.core.Matrix3D.create()&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;angleRot= 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;# =&amp;gt; radian&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;normale = adsk.core.Vector3D.create(0,0,1)&amp;nbsp; #&amp;nbsp; are these world coordinates or local sketch coordinates?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;returnBoolValue = transformRot.setToRotation(angleRot, normale, NosePoint)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;# points is my collection defined earlier via&amp;nbsp; points = adsk.core.ObjectCollection.create()&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;nbsp;sketch.move(points,transformRot)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It doesn't work...The .setToRotation fails.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way&lt;/P&gt;
&lt;P&gt;I Also went through the API refernece manual. You should do something like group items by letter . The scrolling is killing!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 19:46:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/8567640#M20222</guid>
      <dc:creator>franck.gressier</dc:creator>
      <dc:date>2019-02-01T19:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/8567666#M20223</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;What do you mean .setToRotation fails? Does it throw an error? If so, what is the error?&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 19:55:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/8567666#M20223</guid>
      <dc:creator>JesusFreke</dc:creator>
      <dc:date>2019-02-01T19:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/8568724#M20224</link>
      <description>&lt;P&gt;I have attached the pict of the error message. To bad you can't copy/ paste the text.&lt;/P&gt;
&lt;P&gt;Apparently it is not happy with the point.&lt;/P&gt;
&lt;P&gt;Type Error: in matrix3D_setToRotation(self,*Args), argument 4 of type&lt;BR /&gt;adsk::core::Ptr&amp;lt;adsk::core:Point3D&amp;gt;const&amp;amp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The point I use is the endpoint of a line and&amp;nbsp;&amp;nbsp;when I look at the variable "nosePoint" in Spider it says sketchPoint. May be a 3d point is expected ? But I am rotating in a skech !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway, I tried creating a 3Dpoint:&lt;/P&gt;
&lt;P&gt;returnBoolValue = transformRot.setToRotation(angleRot, normale, adsk.core.Point3D.create(NosePoint.geometry.x, NosePoint.geometry.y, 0))&lt;/P&gt;
&lt;P&gt;This seems to work but the move function fails... (other message attatched)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think there is a problem between points3D and sketchPoints.&lt;/P&gt;
&lt;P&gt;I seems weird that when creating a sketch point I have to use Point3D.create and this indeed gives me a point in the skech plane. It would seem logical that&amp;nbsp;Point3D.create would refer to the world(or the component) origin.&lt;BR /&gt;Is there a method for creating sketch points ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way (I am not very familiar with Python) how can I copy the value of a variable from Spider. I have tryed to use the save button on the right but this caused Spider to crash...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 14:31:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/8568724#M20224</guid>
      <dc:creator>franck.gressier</dc:creator>
      <dc:date>2019-02-02T14:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/8569027#M20225</link>
      <description>&lt;P&gt;It looks like you're not passing a Point3D object to the last argument of .setToRotation. How are you getting the NosePoint? Is it a ConstructionPoint, or a BRepVertex or something?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't help you with spider. I only use intellij idea, with my fusion 360 plugin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: oh, sorry. I didn't fully read your response &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;Yeah, I can't see why you're getting that geomImpl error after you corrected the point thing. Strange.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Feb 2019 19:40:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/8569027#M20225</guid>
      <dc:creator>JesusFreke</dc:creator>
      <dc:date>2019-02-02T19:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Moving Translating Sketch</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/8573616#M20226</link>
      <description>&lt;P&gt;Unfortunately 'Internal Validation Error' tends to be API speak for "something has gone wrong and I'm not going to supply you with any more details."&amp;nbsp; &amp;nbsp;Often they crop up when an argument isn't precisely what the function expected, but in too find-grained a way for the normal type checking -- something like the right object type with the wrong assemblyContext comes up for me a lot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Often that means the problem isn't in the snippet that generates the error, but at some earlier stage.&amp;nbsp; I think that means we need to look at your code a little more broadly to see exactly how you're creating nosePoint and your other collections.&amp;nbsp; Would you be willing to post the complete script?&amp;nbsp; Or even better, the simplest version that still produces the error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for copying variable values in Spyder, you have at least two options, and almost certainly more.&amp;nbsp; For simple (i.e. numeric or string types) you can double click the value in the variable explorer, and that makes it editable (including copyable).&amp;nbsp; You can also type the variable name into the console (that is,&amp;nbsp; the interactive window in the bottom right where your debug lines "(Pdb)" are appearing) and hit return, and it will respond with the value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For more complex objects that just gives you the type, so you'd need to probe a specific property of that object in the console, or use a pprint to dump them all at once, as described&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/192109/is-there-a-built-in-function-to-print-all-the-current-properties-and-values-of-a" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&amp;nbsp; (As an aside, if you're just trying to save the variable for later use, I really like the&amp;nbsp;&lt;A href="https://docs.python.org/3/library/pickle.html" target="_blank" rel="noopener"&gt;pickle&lt;/A&gt;&amp;nbsp;module for that).&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 10:37:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/moving-translating-sketch/m-p/8573616#M20226</guid>
      <dc:creator>p.seem</dc:creator>
      <dc:date>2019-02-05T10:37:16Z</dc:date>
    </item>
  </channel>
</rss>

