<?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: Infraworks - Using Bookmarks with a Script in InfraWorks Forum</title>
    <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7897897#M13589</link>
    <description>&lt;P&gt;Hello people,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have rewrite the script to be call with the CSV file as parameter.&lt;/P&gt;&lt;P&gt;I have write two version :&lt;/P&gt;&lt;P&gt;One&amp;nbsp;with the&amp;nbsp;model.SetViewPoint(XX) command&lt;/P&gt;&lt;P&gt;the second with&amp;nbsp;&lt;SPAN&gt;doc.MoveToBookmark(XX) command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have write a CVS file with 3 differents Cam position to define a path in 3 steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have try to move the cam with the script, but even if each camera position is define, only the last step is show.&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;doc.MoveToBookmark(Step[1]);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;doc.MoveToBookmark(Step[2]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;doc.MoveToBookmark(Step[3]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Only the move Step 3 is visible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Perhaps i need a kind of "refresh" or a "wait" to let Infraworks completed the move before i ask for another one...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;doc.MoveToBookmark(Step[1]);&lt;/P&gt;&lt;P&gt;"Refresh";&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;doc.MoveToBookmark(Step[2]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Refresh";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;doc.MoveToBookmark(Step[3]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Refresh";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A good idea is welcome !&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;José.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 30 Mar 2018 22:29:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-30T22:29:24Z</dc:date>
    <item>
      <title>Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7821216#M13574</link>
      <description>&lt;P&gt;Hello people !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is quite simple : how to move the point of view to a specific position with a script.&lt;/P&gt;&lt;P&gt;My first idea was to use the JS &lt;SPAN&gt;MoveToBookmark with a the bookmark recorded on the place i whant to spot.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var doc = app.ActiveDocument();&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;doc.MoveToBookmark("Start.json");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But nothing append, the point of view does'nt move...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something missing or the command &lt;SPAN&gt;MoveToBookmark isn't shape for that ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks for your help !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 23:02:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7821216#M13574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T23:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7821410#M13575</link>
      <description>&lt;P&gt;I haven't tried jumping between bookmarks (and I'm sure you will be able to - like in a 'storyboard' essentially) but I have written a Script &amp;amp; UI to set Camera and Targets from entered Co-ords.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I presume you've got a copy of the "&lt;SPAN&gt;Autodesk InfraWorks - JavaScript API Documentation" c2014, this covers off the calls you need to look at.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Comes down to&amp;nbsp;using the transforms for camera/target which you the set with "model.SetViewPoint"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you can Vote these Ideas Up, we might get some traction on this 'stuff' that is a bit more user friendly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/infraworks-ideas/convert-geotagged-ll84-photos-to-bookmarks/idi-p/6510256" target="_blank"&gt;My script looks much like what I've suggested here&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/infraworks-ideas/infraworks-ability-to-set-viewpoint-based-on-specific-coordinate/idc-p/6636420#M848" target="_blank"&gt;ability-to-set-viewpoint-based-on-specific-coordinate&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 01:56:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7821410#M13575</guid>
      <dc:creator>Glenn.Coppard</dc:creator>
      <dc:date>2018-03-02T01:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7823387#M13576</link>
      <description>&lt;P&gt;Thanks Glen for your answer !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have try to move the point of view with the transformation of the Cam Position with setcameraposition, and it give me a good result except for the point of view.&lt;/P&gt;&lt;P&gt;It's why i had the idea to use the bookmarks to transform in one time the&amp;nbsp;&lt;SPAN&gt;CameraP&lt;/SPAN&gt;osition, the&amp;nbsp;&lt;SPAN&gt;CameraT&lt;/SPAN&gt;arget and the CameraUP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll read the docs and the tutos you send me !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 19:00:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7823387#M13576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-02T19:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7823938#M13577</link>
      <description>&lt;P&gt;Finaly, here the script i use to move the camera to the point of view i have choose on the map. I have pick the&amp;nbsp;X, Y, Z from the bookmark of the position and point of view i have recorded :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// --------------------------&lt;BR /&gt;// --- Deplacement Camera ---&lt;BR /&gt;// --------------------------&lt;BR /&gt;// variables Camera&lt;BR /&gt;var model = app.ActiveModel; // modele actif&lt;BR /&gt;var dbWkt = app.ActiveModel.CoordSysWkt;&lt;BR /&gt;var wkt = app.GetBestFittingUTM84ProjectionWkt(model.Boundary.BBox2d, dbWkt);&lt;BR /&gt;//===========================================================&lt;BR /&gt;//CameraTarget&lt;BR /&gt;var targetVPDom = model.GetViewPoint()["target"];&lt;BR /&gt;var target = new adsk.Vec3d(targetVPDom[0], targetVPDom[1], targetVPDom[2]); // Vecteur Position Camera&lt;BR /&gt;//&lt;BR /&gt;target.X = -1484990.6099149927;&lt;BR /&gt;target.Y = -5006120.6829369618;&lt;BR /&gt;target.Z = 3653285.7432678165;&lt;BR /&gt;//&lt;BR /&gt;var targetPVDom = {target : [target.X, target.Y, target.Z]};&lt;BR /&gt;model.SetViewPoint(targetPVDom);&lt;BR /&gt;//=============================================================&lt;BR /&gt;//CameraHauteur&lt;BR /&gt;var upDom = model.GetViewPoint()["up"];&lt;BR /&gt;var up = new adsk.Vec3d(upDom[0], upDom[1], upDom[2]); // Vecteur Up Camera&lt;BR /&gt;//&lt;BR /&gt;up.X = 0.29674430945919844;&lt;BR /&gt;up.Y = -0.93338998989416577;&lt;BR /&gt;up.Z = -0.20180669356825784;&lt;BR /&gt;//&lt;BR /&gt;var upPVDom = {up : [up.X, up.Y, up.Z]};&lt;BR /&gt;model.SetViewPoint(upPVDom);&lt;BR /&gt;//============================================================&lt;BR /&gt;//CameraPosition&lt;BR /&gt;var posDom = model.GetViewPoint()["pos"];&lt;BR /&gt;var pos = new adsk.Vec3d(posDom[0], posDom[1], posDom[2]); // Vecteur&amp;nbsp;Position Camera&lt;BR /&gt;//&lt;BR /&gt;pos.X = -1485292.4233285857;&lt;BR /&gt;pos.Y = -5006330.0850919047;&lt;BR /&gt;pos.Z = 3653810.4655176662;&lt;BR /&gt;//&lt;BR /&gt;var posPVDom = {pos : [pos.X, pos.Y, pos.Z]};&lt;BR /&gt;model.SetViewPoint(posPVDom);&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;It's working !&lt;/P&gt;&lt;P&gt;Thanks Glen !!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 23:09:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7823938#M13577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-02T23:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7826093#M13578</link>
      <description>&lt;P&gt;Nice Work!!&lt;BR /&gt;&lt;BR /&gt;Now you can have a go at making a UI panel for the user to enter the eye/target co-ords.&lt;/P&gt;&lt;P&gt;I use something like this to create my bookmarks from/of specific view locations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://tinypic.com?ref=15hlpfo" target="_blank"&gt;&lt;IMG src="http://i67.tinypic.com/15hlpfo.png" border="0" alt="Image and video hosting by TinyPic" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look &lt;A href="https://forums.autodesk.com/t5/infraworks-forum/change-viewport-elevation-using-this-script/m-p/6285226/highlight/true#M12419" target="_blank"&gt;HERE&lt;/A&gt; for some 'how to' inspiration.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Mar 2018 22:45:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7826093#M13578</guid>
      <dc:creator>Glenn.Coppard</dc:creator>
      <dc:date>2018-03-04T22:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7832160#M13579</link>
      <description>&lt;P&gt;Let me know if you'd like this script featured here:&amp;nbsp;&lt;A href="https://knowledge.autodesk.com/community/collection/152456?preview&amp;nbsp;" target="_blank"&gt;https://knowledge.autodesk.com/community/collection/152456?preview&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll need the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Name of the Script&lt;/LI&gt;
&lt;LI&gt;Short description of what the script does&lt;/LI&gt;
&lt;LI&gt;Author of the script&lt;/LI&gt;
&lt;LI&gt;The script itself&lt;/LI&gt;
&lt;LI&gt;Step by step explanation of how to&amp;nbsp;install and use the script (screen shots are always nice)&lt;/LI&gt;
&lt;LI&gt;Image that depicts what the script does&lt;/LI&gt;
&lt;LI&gt;Links to supporting information (like discussion board or blog posts about the script)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;You can send the info to eric.chappell@autodesk.com&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 19:00:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7832160#M13579</guid>
      <dc:creator>Eric_Chappell</dc:creator>
      <dc:date>2018-03-06T19:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7844031#M13580</link>
      <description>&lt;P&gt;Thanks Glenn for your support !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already try this UI solution, but i fail on the very first part of the code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;TypeError: Result of expression 'form.findChild("moveElevation")' [null] is not an object.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this moment i had no time to work on this part of the code, but now the code of the main part is working, it's time for the UI...&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 10:24:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7844031#M13580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-11T10:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7844040#M13581</link>
      <description>&lt;P&gt;Ok, it's fixed. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;With a clear mind, i see better !&lt;/P&gt;&lt;P&gt;Now, let's try the UI implementation...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 10:39:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7844040#M13581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-11T10:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7844048#M13582</link>
      <description>&lt;P&gt;Hello Eric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't understand what you need.&lt;/P&gt;&lt;P&gt;You ask me to visit a page about a script and tell you the name of author ?&lt;/P&gt;&lt;P&gt;I'm not very easy with english as you can read, perhaps some misunderstanding...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;José&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 10:43:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7844048#M13582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-11T10:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7844706#M13583</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The command MoveToBookmark( string bookmarkName)&amp;nbsp;will&amp;nbsp;jump to the bookmark defined the model.&amp;nbsp; If you have sets of viewpoints from bookmarks,&amp;nbsp; app.ActiveModel.SetViewPoint(viewPoint) are the easier way to jump to the target place as you used in script.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kathy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 00:44:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7844706#M13583</guid>
      <dc:creator>kathy.feng</dc:creator>
      <dc:date>2018-03-12T00:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7846359#M13584</link>
      <description>&lt;P&gt;Thanks Kathy for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My first wish was to move the cam and the point of view on the spot of my script transformations.&lt;/P&gt;&lt;P&gt;So i have create a bookmark on the location and named it "&lt;SPAN&gt;Start.json"&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have try with :&lt;/P&gt;&lt;P&gt;var doc = app.ActiveDocument();&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;doc.MoveToBookmark("Start.json");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result :No error, No move...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, my firt move work with the script above (&lt;SPAN&gt;03-02-2018&lt;/SPAN&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your example, "&lt;SPAN&gt;app.ActiveModel.SetViewPoint(viewPoint)" what is "viewPoint" ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;José&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 15:16:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7846359#M13584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-12T15:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7849998#M13585</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;what I'd like to do is include your script in an AKN collection that I'm building. Right now the collection only has one script in it (I just started). If you provide the information I've asked for, I will post the AKN article and add it to the collection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope that clears it up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 16:16:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7849998#M13585</guid>
      <dc:creator>Eric_Chappell</dc:creator>
      <dc:date>2018-03-13T16:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7851685#M13586</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi José,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for providing the info, I just realized the 'Start.json' was a bookmark name not a filename.&amp;nbsp; In this case, your first scripts should work.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I defined the bookmark in the model, and tried your two lines at Script console with InfraWorks 2018, InfraWorks did jump to the targeted position (as snapshot shown).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bookmarkjs2018.png" style="width: 550px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/475017i2DF28ABA1F01BFBE/image-dimensions/550x386?v=v2" width="550" height="386" role="button" title="bookmarkjs2018.png" alt="bookmarkjs2018.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I'm interesting in the issue you ran into at the first try, if you have time to provide:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1) which version of InfraWorks you used&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2) Did you reposition the camera before run the script&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3) Did you succeed in executing&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;the scripts in the script console? Any script log if didn't.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the viewpoint, it's the same as you defined but it's in JSON format,&amp;nbsp;including 'pos', 'target' and 'up' coordinates, one example is as:&lt;/P&gt;
&lt;P&gt;var viewPoint = {&lt;BR /&gt;"pos": [-2419728.664933832,-3626788.4103535595,4639743.238359936],&lt;/P&gt;
&lt;P&gt;"target": [-2419719.1017979556,-3626773.6304270504,4639728.932772671],&lt;/P&gt;
&lt;P&gt;"up": [0.28308449080396597,0.5661543042365506,0.7741656637055707]&lt;BR /&gt;};&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your post.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Kathy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 06:31:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7851685#M13586</guid>
      <dc:creator>kathy.feng</dc:creator>
      <dc:date>2018-03-14T06:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7854588#M13587</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello Eric&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This script is interesting&amp;nbsp;to try or learn, but it's seam there some better way to move the cam !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;doc.MoveToBookmark do the same in one Line !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The script have no name... Move_Cam...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The author ? Me, inspired by a script posted by&amp;nbsp;Elliott Rosenfeld :&amp;nbsp;"Change viewport elevation using this script" and the help of Glenn Coppard.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The script set the coordinate of the cam, of the point of view and the height of the cam.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That's all !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;J.Rubio&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// ------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// --- Deplacement Camera ---&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// ------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// variables Camera&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var model = app.ActiveModel; // modele actif&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//===========================================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//CameraTarget&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var targetVPDom = model.GetViewPoint()["target"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var target = new adsk.Vec3d(targetVPDom[0], targetVPDom[1], targetVPDom[2]); // Vecteur Position Camera&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;target.X = -1484990.6099149927;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;target.Y = -5006120.6829369618;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;target.Z = 3653285.7432678165;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var targetPVDom = {target : [target.X, target.Y, target.Z]};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model.SetViewPoint(targetPVDom);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//=============================================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//CameraHauteur&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var upDom = model.GetViewPoint()["up"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var up = new adsk.Vec3d(upDom[0], upDom[1], upDom[2]); // Vecteur Up Camera&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;up.X = 0.29674430945919844;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;up.Y = -0.93338998989416577;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;up.Z = -0.20180669356825784;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var upPVDom = {up : [up.X, up.Y, up.Z]};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model.SetViewPoint(upPVDom);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//============================================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//CameraPosition&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var posDom = model.GetViewPoint()["pos"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var pos = new adsk.Vec3d(posDom[0], posDom[1], posDom[2]); // Vecteur&amp;nbsp;Position Camera&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pos.X = -1485292.4233285857;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pos.Y = -5006330.0850919047;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pos.Z = 3653810.4655176662;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var posPVDom = {pos : [pos.X, pos.Y, pos.Z]};&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;model.SetViewPoint(posPVDom);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 23:35:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7854588#M13587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-14T23:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7854618#M13588</link>
      <description>&lt;P&gt;Hi Cathy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In fact, "Start.json" is the name of the bookmark file.&lt;/P&gt;&lt;P&gt;I have create a bookmark in Infraworks. The file was store in&amp;nbsp;&lt;SPAN&gt;\unver\&lt;/SPAN&gt;&lt;EM&gt;bookmarks.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The name of the bookmark file was something like 1abba8358-ddd3e-ddd22.... .JSON&lt;/P&gt;&lt;P&gt;I have renamed it in Start.json to be human readable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i understand your explanation, it was a mistake !&lt;/P&gt;&lt;P&gt;in the command&amp;nbsp;&lt;SPAN&gt;doc.MoveToBookmark("XXX");&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;XXX is the name of the bookmark in infraworks, not the name of the file of the bookmarks !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will try that way soon !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks Catherine !&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;José.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 23:57:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7854618#M13588</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-14T23:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7897897#M13589</link>
      <description>&lt;P&gt;Hello people,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have rewrite the script to be call with the CSV file as parameter.&lt;/P&gt;&lt;P&gt;I have write two version :&lt;/P&gt;&lt;P&gt;One&amp;nbsp;with the&amp;nbsp;model.SetViewPoint(XX) command&lt;/P&gt;&lt;P&gt;the second with&amp;nbsp;&lt;SPAN&gt;doc.MoveToBookmark(XX) command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have write a CVS file with 3 differents Cam position to define a path in 3 steps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have try to move the cam with the script, but even if each camera position is define, only the last step is show.&lt;/P&gt;&lt;P&gt;For example :&lt;/P&gt;&lt;P&gt;doc.MoveToBookmark(Step[1]);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;doc.MoveToBookmark(Step[2]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;doc.MoveToBookmark(Step[3]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Only the move Step 3 is visible.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Perhaps i need a kind of "refresh" or a "wait" to let Infraworks completed the move before i ask for another one...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;doc.MoveToBookmark(Step[1]);&lt;/P&gt;&lt;P&gt;"Refresh";&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;doc.MoveToBookmark(Step[2]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Refresh";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;doc.MoveToBookmark(Step[3]);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Refresh";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A good idea is welcome !&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;José.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Mar 2018 22:29:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7897897#M13589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-30T22:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7900089#M13590</link>
      <description>&lt;P&gt;Hi&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;José,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here're scripts to make InfraWorks refresh or wait. You can try appending after each navigation.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;app.Regenerate();&lt;/P&gt;
&lt;P&gt;app.Sleep(x); //x seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Kathy&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 01:25:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7900089#M13590</guid>
      <dc:creator>kathy.feng</dc:creator>
      <dc:date>2018-04-02T01:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7902511#M13591</link>
      <description>&lt;P&gt;Thanks Kathy !&lt;/P&gt;&lt;P&gt;I have try :&lt;/P&gt;&lt;P&gt;app.Regenerate(); = It does'nt work and the app freeze for a very long time before give back the hand...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;app.Sleep(x); //x seconds = It's working. Not as good as is want, but it's working... I have try many set, the best one is 0,4 second. It's working, the cam move from one point to the second one but with a black screen. No smooth move, no interpolation like when you jump from a bookmark to another.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I probably will try the player include in Infraworks. Perhaps we can pilot it with a script...&lt;/P&gt;&lt;P&gt;José.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 23:49:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/7902511#M13591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-02T23:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Infraworks - Using Bookmarks with a Script</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/9138244#M13592</link>
      <description>&lt;P&gt;[edit]Image from post 5 re-hosted[/edit]&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Specific Coordinate UI" style="width: 842px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/696545i0945FDA82F665CAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="IW360_UI_Panel.PNG" alt="Specific Coordinate UI" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Specific Coordinate UI&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Nov 2019 22:12:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/infraworks-using-bookmarks-with-a-script/m-p/9138244#M13592</guid>
      <dc:creator>Glenn.Coppard</dc:creator>
      <dc:date>2019-11-10T22:12:20Z</dc:date>
    </item>
  </channel>
</rss>

