<?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: Retrieving UCS coordinates in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/retrieving-ucs-coordinates/m-p/12996156#M370</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/531756"&gt;@OceanaPolynom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here a post where explains how to tr&lt;SPAN&gt;anslate point from wcs to ucs using .TranslateCoordinates&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/vba/translate-point-from-wcs-to-ucs-using-translatecoordinates/m-p/8468346#M102126" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/vba/translate-point-from-wcs-to-ucs-using-translatecoordinates/m-p/8468346#M102126&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Probably could help you more, finding your object coordinates, and translating referring to UCS.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2024 17:16:34 GMT</pubDate>
    <dc:creator>grobnik</dc:creator>
    <dc:date>2024-09-02T17:16:34Z</dc:date>
    <item>
      <title>Retrieving UCS coordinates</title>
      <link>https://forums.autodesk.com/t5/vba-forum/retrieving-ucs-coordinates/m-p/12995439#M369</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; drawing which uses a USC.&amp;nbsp; I need to get the USC coordinates of the objects in the drawing.&amp;nbsp; Using&amp;nbsp;ThisDrawing.Utility.GetEntity gets the World coordinates only.&amp;nbsp; Is there another solution?&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 09:24:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/retrieving-ucs-coordinates/m-p/12995439#M369</guid>
      <dc:creator>OceanaPolynom</dc:creator>
      <dc:date>2024-09-02T09:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving UCS coordinates</title>
      <link>https://forums.autodesk.com/t5/vba-forum/retrieving-ucs-coordinates/m-p/12996156#M370</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/531756"&gt;@OceanaPolynom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here a post where explains how to tr&lt;SPAN&gt;anslate point from wcs to ucs using .TranslateCoordinates&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://forums.autodesk.com/t5/vba/translate-point-from-wcs-to-ucs-using-translatecoordinates/m-p/8468346#M102126" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/vba/translate-point-from-wcs-to-ucs-using-translatecoordinates/m-p/8468346#M102126&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Probably could help you more, finding your object coordinates, and translating referring to UCS.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2024 17:16:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/retrieving-ucs-coordinates/m-p/12996156#M370</guid>
      <dc:creator>grobnik</dc:creator>
      <dc:date>2024-09-02T17:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving UCS coordinates</title>
      <link>https://forums.autodesk.com/t5/vba-forum/retrieving-ucs-coordinates/m-p/12997258#M371</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;My situation was somewhat dissimilar.&amp;nbsp; Here is what worked.&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt; Private Sub CommandButtonTranslate_Click()
 	Dim pointcoords(0 To 2) As Double
 	'419.984252968843,235.684028561105,61.59
 	pointcoords(0) = 419.984252968843
 	pointcoords(1) = 235.684028561105
 	pointcoords(2) = 61.59
 	Dim point_translated As Variant
 	Dim pointUCS As Variant
 	pointUCS = ThisDrawing.Utility.TranslateCoordinates(pointcoords, acWorld, acUCS, False)
 	' Display the coordinates of the point
 	MsgBox "The point has the following coordinates:" &amp;amp; vbCrLf &amp;amp; _
	"WCS: " &amp;amp; pointcoords(0) &amp;amp; ", " &amp;amp; pointcoords(1) &amp;amp; ", " &amp;amp; pointcoords(2) &amp;amp; vbCrLf &amp;amp; _
	"UCS: " &amp;amp; pointUCS(0) &amp;amp; ", " &amp;amp; pointUCS(1) &amp;amp; ", " &amp;amp; pointUCS(2), , "TranslateCoor"
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;The attached file is in a UCS where the cross section is perpendicular to the line.&amp;nbsp; The point is in World coordinates.&lt;/P&gt;&lt;P&gt;The point is the Center Point of one of the 8 arcs forming the cross section.&amp;nbsp; The translated position can be checked in AutoCad and is correct.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 08:59:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/retrieving-ucs-coordinates/m-p/12997258#M371</guid>
      <dc:creator>OceanaPolynom</dc:creator>
      <dc:date>2024-09-03T08:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving UCS coordinates</title>
      <link>https://forums.autodesk.com/t5/vba-forum/retrieving-ucs-coordinates/m-p/12997346#M372</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/531756"&gt;@OceanaPolynom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi, thank you for your reply, and solved "flag", but really I didn't understand if your issue has been solved or not ?&lt;/P&gt;&lt;P&gt;You attached a part of code, where you indicated as worked ?! so means you solve your issue.&lt;/P&gt;&lt;P&gt;In any case let us know, probably, now with a code and an example dwg we can investigate more.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 09:54:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/retrieving-ucs-coordinates/m-p/12997346#M372</guid>
      <dc:creator>grobnik</dc:creator>
      <dc:date>2024-09-03T09:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving UCS coordinates</title>
      <link>https://forums.autodesk.com/t5/vba-forum/retrieving-ucs-coordinates/m-p/12997507#M373</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am a construction surveyor, we are about to begin constructing a tunnel. The cross sectional shape of the tunnel is composed of 8 circular arcs and 2 short line segments.&amp;nbsp; The design is on national grid coordinates, this will be the World Coordinate System in AutoCad.&amp;nbsp; In the attached dwg file the design cross section is located perpendicular to the design center line so that it creates a plane where the first element of a point, P(0), is always equal to 0.&amp;nbsp; That is the UCS in AutoCad.&amp;nbsp; During tunnel excavation it is necessary to measure the excavation and compare it to the design.&amp;nbsp; Points are measured around a cross section.&amp;nbsp; A report must be created showing the distance from each measured point to the closest location on the appropriate arc segment as well as the distance the measured point is from the plane of the cross section.&amp;nbsp; These calculations must be done on the UCS.&amp;nbsp; The measured points will be on the national grid and therefore must be converted to the correct UCS.&amp;nbsp; I am currently working on a solution to drawing the reports.&amp;nbsp; I will be glad to post it when it works.&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 11:39:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/retrieving-ucs-coordinates/m-p/12997507#M373</guid>
      <dc:creator>OceanaPolynom</dc:creator>
      <dc:date>2024-09-03T11:39:59Z</dc:date>
    </item>
  </channel>
</rss>

