<?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: Get coordinates from measurements in Navisworks API Forum</title>
    <link>https://forums.autodesk.com/t5/navisworks-api-forum/get-coordinates-from-measurements/m-p/3281193#M7769</link>
    <description>&lt;P&gt;Look in the COM Documentation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"C:\Program Files\Autodesk\Navisworks Simulate 2012\api\COM\documentation\NavisworksCOM.chm"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the Object "InwOpState3:"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has four Methods Called&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;GetMeasureFirstPos&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;GetMeasureEndPos&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;GetmeasureDiff&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;GetMeasureValue&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to put together some sample code for a how to when I get some time. Please note that these COM API's may not even work. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2012 21:08:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-01-04T21:08:45Z</dc:date>
    <item>
      <title>Get coordinates from measurements</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/get-coordinates-from-measurements/m-p/3274947#M7768</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working a lot with point cloud data, where the location of certain features often&amp;nbsp;is of interest. Since the measure tool is the only way&amp;nbsp;of obtaining the coordinates of objects, the workflow is to measure and then copy+paste the coordinates into a text editor.&lt;/P&gt;&lt;P&gt;But when it comes to obtaining hundreds of point coordinates, this procedure is really ineffective and cumbersome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I'd like to do is to create a plugin that captures the coordinates/points of the measurement tool and then writes to a text file.&lt;/P&gt;&lt;P&gt;A smooth way would be to use the event when the measurement tool is used, and write directly to a file. Another way would be to use the point line tool to measure several points and then export them all at the same time to a text file (assuming all attach points are saved/accessible).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my main question is: How do I get hold of the coordinates of the measurement tool? Where are they in the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to API programming, so if anybody would like to help out further with the syntax, I'd be very thankful.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2011 14:53:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/get-coordinates-from-measurements/m-p/3274947#M7768</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-27T14:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get coordinates from measurements</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/get-coordinates-from-measurements/m-p/3281193#M7769</link>
      <description>&lt;P&gt;Look in the COM Documentation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"C:\Program Files\Autodesk\Navisworks Simulate 2012\api\COM\documentation\NavisworksCOM.chm"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the Object "InwOpState3:"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has four Methods Called&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;GetMeasureFirstPos&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;GetMeasureEndPos&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;GetmeasureDiff&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;GetMeasureValue&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to put together some sample code for a how to when I get some time. Please note that these COM API's may not even work. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Colin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 21:08:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/get-coordinates-from-measurements/m-p/3281193#M7769</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-04T21:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get coordinates from measurements</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/get-coordinates-from-measurements/m-p/3285383#M7770</link>
      <description>&lt;P&gt;Are the measurement coordinates available only in the COM API, and&amp;nbsp;not in&amp;nbsp;the .NET API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What would in that case be the easiest way to obtain the coordinates in a plugin - using the ComApiBridge/ComInterop?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2012 14:04:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/get-coordinates-from-measurements/m-p/3285383#M7770</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-09T14:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get coordinates from measurements</title>
      <link>https://forums.autodesk.com/t5/navisworks-api-forum/get-coordinates-from-measurements/m-p/3297203#M7771</link>
      <description>&lt;P&gt;Using the ComApiBridge is the right way.&lt;/P&gt;&lt;P&gt;Autodesk.Navisworks.Api.Interop.ComApi.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Autodesk.Navisworks.Api.Interop.ComApi.InwOpState10 myState;

myState = Autodesk.Navisworks.Api.ComApi.ComApiBridge.State;
InwLPos3f loPos1 = myState.GetMeasureFirstPos();
InwLPos3f loPos2 = myState.GetMeasureEndPos();
InwLVec3f loVec = myState.GetMeasureDiff();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And so on.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2012 13:19:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/navisworks-api-forum/get-coordinates-from-measurements/m-p/3297203#M7771</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-18T13:19:48Z</dc:date>
    </item>
  </channel>
</rss>

