<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>assign a point variable to a specific point</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/113225/assign-a-point-variable-to-a-specific-point</link><description>I want to assign a point variable to a specific point - here is the point cooridinates: 
 
 The colon I am not sure what to do with it. 
 How do I assign this in VBA? 
 Dim myPoint As Point3d myPoint.X = &amp;quot;120127:1.59600&amp;quot; myPoint.Y = &amp;quot;119952:3.37943&amp;quot; myPoint</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: assign a point variable to a specific point</title><link>https://communities.bentley.com/thread/346252?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 16:05:44 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:42d13f94-9b33-480a-83e7-5b0753c2ffb4</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt;ok, and where the point1 comes from?&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If it exists in a design file, you should access it using MicroStation VBA API, so you will receive Point3d automatically. No reason for conversion.&lt;br /&gt;Because you did not write any information what your &amp;quot;point&amp;quot; in the design file is, it&amp;#39;s hard to recommend what VBA function to use.&lt;br /&gt;This is standard and preferred way.&lt;/li&gt;
&lt;li&gt;If you, from any reason, really want to access the values displayed in Element information dialog, you have to use PropertyHandler and I think you can try GetValueAsPoint3d method.&lt;/li&gt;
&lt;li&gt;If you want to enter it as fixed value in your code, you have to convert feet:inches format to decimal feet value yourself.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But I guess it doesn&amp;#39;t work neither, because reference point has to be express, accordingly to MicroStation VBA help, in UORs, not in master units. So you have to add another conversion from (master units) Point3d to (UOR) Point3d value. There is UORsPerMasterUnit property available that makes the conversion possible.&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assign a point variable to a specific point</title><link>https://communities.bentley.com/thread/346240?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 15:45:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e84c72a3-52ac-4088-b0fd-06968c5aaab8</guid><dc:creator>rpsmith</dc:creator><description>Jan,&lt;br /&gt;
When I reference attach the design model to the active sheet model it comes in way off. &lt;br /&gt;
I placed a point where it should come in and wanted to use that point in this line of code:&lt;br /&gt;
omod2.Attachments.Add ActiveDesignFile.FullName, omod1.Name, omod1.Type, &amp;quot;test&amp;quot;, Point3dZero, point1, True&lt;br /&gt;
&lt;br /&gt;
&amp;quot;point1&amp;quot; is the test point.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assign a point variable to a specific point</title><link>https://communities.bentley.com/thread/346232?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 15:32:39 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:8e5593b4-2cc5-4803-afa6-3c2e45180e7a</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi Paul,&lt;/p&gt;
&lt;p&gt;[quote user=&amp;quot;rpsmith&amp;quot;]I am testing self referencing[/quote]&lt;/p&gt;
&lt;p&gt;I have to say I still don&amp;#39;t understand completely how self referencing testing depends on what is displayed in Element Information dialog.&lt;/p&gt;
&lt;p&gt;When working with VBA, all coordinates are expressed as Point3D and decimal numbers, independently if they are displayed in feet and inches or meters. And I guess all possible information about coordinates are accessible using VBA API. Or does the point belongs to element that is not accessible by a standard way?&lt;/p&gt;
&lt;p&gt;Can you access the element e.g. using selection set? It&amp;#39;s easy to work with selected elements from VBA and you don&amp;#39;t have to take care about formating.&lt;/p&gt;
&lt;p&gt;Another question is how do you access the information displayed in Element Information dialog? Using Property Handler? If yes (I guess there is no other way how to do it), what will happen if you will try to use GetValueAsPoint3d method? I have never used it, but it looks like what you need.&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assign a point variable to a specific point</title><link>https://communities.bentley.com/thread/346228?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 15:24:34 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:6effcead-abbc-4301-a543-4ace04fc15ce</guid><dc:creator>rpsmith</dc:creator><description>I am testing self referencing (reference the sheet model to the design model and visa versa). I wanted to use a known test point.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assign a point variable to a specific point</title><link>https://communities.bentley.com/thread/346225?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 15:17:57 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:df713b08-5bc8-41f0-a2fd-0e9eb3f887d7</guid><dc:creator>Jan Šlegr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;why do you need to work with coordinates displayed in Element Information dialog? As Maury wrote, can you explaing what do you want to achieve?&lt;/p&gt;
&lt;p&gt;All coordinates are stored as decimal numbers in MicroStation. If you need to work with cultural-specific formating (like English feet:inches style), I guess you have to write own conversion function.&lt;/p&gt;
&lt;p&gt;With regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Jan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assign a point variable to a specific point</title><link>https://communities.bentley.com/thread/346224?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 15:16:27 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9c09d08a-7526-41bd-862b-e15a6752653b</guid><dc:creator>rpsmith</dc:creator><description>I am using out of box Microstation 08.11.09.357 (SS3)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assign a point variable to a specific point</title><link>https://communities.bentley.com/thread/346223?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 15:14:11 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fc3ff606-5240-46f2-a15d-12ed9862cd05</guid><dc:creator>Maury</dc:creator><description>Standard MicroStation does not include the point number that I am aware of, so perhaps you are using a specialized version of MicroStation? Ex: Bentley Map?&lt;br /&gt;
Can you give us a bit more info on which flavor of MicroStation you are running?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assign a point variable to a specific point</title><link>https://communities.bentley.com/thread/346220?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 15:11:57 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:ef4cc10f-7051-4eec-8958-ceec22489d02</guid><dc:creator>rpsmith</dc:creator><description>Maury,&lt;br /&gt;
I got the element info from the element and wanted to use the point in my vba code. &lt;br /&gt;
I guess my question should be, how to use the point cooridinates from the element info in vba code?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assign a point variable to a specific point</title><link>https://communities.bentley.com/thread/346218?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 15:09:30 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:fd2baba6-a5bd-479c-ac65-1e3d28729b6d</guid><dc:creator>rpsmith</dc:creator><description>&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-discussions-components-files/343173/point.jpg"&gt;&lt;img src="/resized-image/__size/940x0/__key/communityserver-discussions-components-files/343173/point.jpg" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: assign a point variable to a specific point</title><link>https://communities.bentley.com/thread/346217?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2015 15:09:26 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:56baca77-758f-4f22-acda-6d3ba615ee5a</guid><dc:creator>Maury</dc:creator><description>Paul,&lt;br /&gt;
&lt;br /&gt;
What exactly are you trying to do with this point?  What you listed there will not work. X Y Z must be doubles and Point3d does not contain any tag properties..&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>