<?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/"><channel><title>Rob Golding's Activities</title><link>https://communities.bentley.com/members/e261fb6c_2d00_6872_2d00_47f6_2d00_91d1_2d00_ff1bcba16934</link><description>Rob Golding's recent activity</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>VBA Merge Reference</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/89072/vba-merge-reference</link><pubDate>Mon, 04 Apr 2016 15:10:39 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:e0ca3b70-f470-42ab-837f-e867921f3f03</guid><dc:creator>Rob Golding</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;Trying to Merge a reference file into the Default Model and really struggling to get it working.&lt;/p&gt;
&lt;p&gt;After reading alot on these forums and in the VBA help, I have found that there is no simple merge option in VBA, and that the best way to do it by copying, but haven&amp;#39;t been able to find a working example. Can anyone guide me in the right direction?&lt;/p&gt;
&lt;p&gt;Am i right in saying that i need to select everything from the reference, then use the CopyElement command to copy it to the new model?&lt;/p&gt;
&lt;p&gt;At the moment, I can&amp;#39;t get anything to select, let alone copy. I have done a fair bit of VBA work, but usually when selecting elements i narrow it down using ElementScanCritera, but in that there isn&amp;#39;t an option to include all types, so im assuming by not setting one its defaulting to select everything? :/&lt;/p&gt;
&lt;p&gt;This is a small part of a bigger project, I have already attached the Reference i want to attach and have created a new Model for it to merge into... just cant get the job done!&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Using PowerDraft 08.11.07.443 on XP&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Place Text through VBA</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/84711/place-text-through-vba</link><pubDate>Fri, 01 May 2015 16:35:37 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:82c5f8c3-37b9-44d8-91cc-09cc6edc353c</guid><dc:creator>Rob Golding</dc:creator><description>&lt;p&gt;Hi all,&lt;/p&gt;
&lt;p&gt;Trying to work out how to place a predefined text string onto the drawing, without bring up any menus or options.&lt;/p&gt;
&lt;p&gt;Have tried&lt;/p&gt;
&lt;pre&gt;    CadInputQueue.SendKeyin &amp;quot;place text&amp;quot;&lt;br /&gt;    CadInputQueue.SendKeyin sText&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;But the keyin window appears and i cant work out how to close it.&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;Also have tried&lt;/pre&gt;
&lt;pre&gt;    CadInputQueue.SendKeyin &amp;quot;place dialogtext icon&amp;quot;&lt;br /&gt;    CadInputQueue.SendMessageToApplication &amp;quot;WORDPROC&amp;quot;, sText&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;Which brings up the word processor but doesn&amp;#39;t input the text.&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;Ideally i&amp;#39;d like to simple click a button on a form and the text appears on the drawing at the cursor ready for the user to select the location.&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;Cheers,&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;Rob&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Problem with Moving Reference File</title><link>https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/98269/problem-with-moving-reference-file</link><pubDate>Mon, 23 Jun 2014 07:38:29 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:5afc8789-daf1-4eee-b89d-fb7fcf703ee6</guid><dc:creator>Rob Golding</dc:creator><description>&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I am having issues with Moving a Reference file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am trying to Insert the Default Model into a Sheet Model, Scale it, then Move it to around the location of the Drawing Sheet (XY = 18,50)&lt;/p&gt;
&lt;p&gt;The Code...&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Set oRef = ActiveModelReference.Attachments.Add(sFileToImport, &amp;quot;Default&amp;quot;, &amp;quot;DistributionDesign&amp;quot;, &amp;quot;Design Extract&amp;quot;, oPoint, oPoint)&lt;br /&gt; oRef.Redraw msdDrawingModeErase&lt;br /&gt;oRef.ScaleFactor = 0.5&amp;nbsp;&lt;br /&gt;oRef.Rewrite&lt;br /&gt; oRef.Redraw msdDrawingModeNormal&lt;br /&gt; Dim distance As Point3d&lt;br /&gt; oRef.Redraw msdDrawingModeErase&lt;br /&gt; Dim oOrigin As Point3d&lt;br /&gt; oOrigin.X = 18&lt;br /&gt; oOrigin.y = 50&lt;br /&gt; oOrigin.z = 0&lt;br /&gt; distance = Point3dSubtract(oOrigin, oRef.Range(True).Low)&lt;br /&gt; oRef.Move distance, True&lt;br /&gt; oRef.Rewrite&lt;br /&gt; oRef.Redraw msdDrawingModeNormal&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;It is moving the reference, but not as it should. I want the lowest part of the Reference File - which according the Default Model is (952082.7161, 6242208.3894), to move to (18, 50).&lt;/p&gt;
&lt;p&gt;What it does, is moves the 0,0 point to 18,50&lt;/p&gt;
&lt;p&gt;I have attached the DGN for reference.&lt;/p&gt;
&lt;p&gt;Any help would be appreciated. I don&amp;#39;t know what I am doing wrong&lt;/p&gt;
&lt;p&gt;Thanks in Advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Overriding Dimension Text Height / Width</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/66318/overriding-dimension-text-height-width</link><pubDate>Fri, 06 Jun 2014 16:04:16 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:9c9abd83-c08b-47b9-ba52-b722a286922a</guid><dc:creator>Rob Golding</dc:creator><description>&lt;p&gt;Hi Everyone,&lt;/p&gt;
&lt;p&gt;Ive have had a search through these forums and cant quite find anything that will help me.&lt;/p&gt;
&lt;p&gt;I am working on a CAD Build for a client, i have pretty much everything setup and working perfectly. One of the tools i have done is to have Place Text buttons that will multiply the text size by the scale of the border. The Client for this build does not wish to use Sheet Models as they will not properly import into their Document Management system.&lt;/p&gt;
&lt;p&gt;I have done the text tool by using keyins and 2 lines of VBA code. It works perfectly.&lt;/p&gt;
&lt;p&gt;But im having alot of problems with Dimensions. I cant seem to scale the Dimension text to suit the Title Block. i.e if my drawing is 1:1000, the text on the dimension is unreadable.&lt;/p&gt;
&lt;p&gt;I have setup Text Styles and Dimension Styles in a DGNlib. The Dimension Styles use the Text Styles.&lt;/p&gt;
&lt;p&gt;When i use the program to change the height and width of the Text, it doesnt change it for the Dimension.&lt;/p&gt;
&lt;p&gt;Has anyone done similar?&lt;/p&gt;
&lt;p&gt;Im hoping there is some simple keyin that i can use for this (as i have done with the text) that i may have missed.&lt;/p&gt;
&lt;p&gt;Im using MicroStation V8i SELECT Series 1 (8.11.07)&lt;/p&gt;
&lt;p&gt;Thanks in Advance,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>