<?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>Script for nested reference attachments</title><link>https://communities.bentley.com/products/microstation/f/microstation-forum/118756/script-for-nested-reference-attachments</link><description>Good Day, 
 I am attempting to write a script for making a nested reference files direct attachment and then detach the nested reference file. My script looks like this; 
 REFERENCE MAKEDIRECT cn_compile.dgn-&amp;gt;* 
 REFERENCE DETACH cn_compile.dgn 
 When</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Script for nested reference attachments</title><link>https://communities.bentley.com/thread/369678?ContentTypeID=1</link><pubDate>Mon, 30 May 2016 09:09:38 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:403c7ed9-aff7-41c0-870c-80a7d16dbc36</guid><dc:creator>Dervalcanny</dc:creator><description>Hello,&lt;br /&gt;
Glad to hear your issue is now resolved. &lt;br /&gt;
As stated by Jan Slegr, I hope you meant xy=0,0,0 and not xy-0,0,0 as your &amp;quot;confirmation data point”!&lt;br /&gt;
I am attaching some information on generating keyin scripts that may help when creating any future scripts :&lt;br /&gt;
&lt;a href="http://communities.bentley.com/communities/other_communities/askinga/w/askinga/how-to-string-keyins-together-or-create-keyin-scripts"&gt;communities.bentley.com/.../how-to-string-keyins-together-or-create-keyin-scripts&lt;/a&gt;&lt;br /&gt;
Please be aware that there is also a MicroStation Programming forum for questions and discussions about developing with MicroStation.&lt;br /&gt;
&lt;a href="http://communities.bentley.com/products/programming/microstation_programming/"&gt;communities.bentley.com/.../microstation_programming&lt;/a&gt;&lt;br /&gt;
Regards&lt;br /&gt;
Derval Canny.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Script for nested reference attachments</title><link>https://communities.bentley.com/thread/366144?ContentTypeID=1</link><pubDate>Tue, 03 May 2016 04:46:48 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:cee47b6b-2ecc-4d19-8f3a-ebb7677832a8</guid><dc:creator>Jan Šlegr</dc:creator><description>Hi,&lt;br /&gt;
&lt;br /&gt;
I guess there is a typo in your post and you use xy=0,0,0 and not xy-0,0,0 ;-)&lt;br /&gt;
&lt;br /&gt;
You can also use xy=#,# that repeats the last data point. An advantage of this key-in it doesn&amp;#39;t work with absolute coordinates. In the discussed situation where only &amp;quot;confirmation data point&amp;quot; is required there is no difference, but in many scenarios the absolute coordinates cannot be used.&lt;br /&gt;
&lt;br /&gt;
With regards,&lt;br /&gt;
&lt;br /&gt;
  Jan&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Script for nested reference attachments</title><link>https://communities.bentley.com/thread/366115?ContentTypeID=1</link><pubDate>Mon, 02 May 2016 18:47:23 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:013ea587-a2b7-4b89-b5f2-7a162eedd037</guid><dc:creator>cmeuser</dc:creator><description>I answered my own question.  My final script looked something like this.&lt;br /&gt;
REFERENCE MAKEDIRECT cn_compile.dgn-&amp;gt;*&lt;br /&gt;
XY-0,0,0&lt;br /&gt;
REFERENCE DETACH cn_compile.dgn&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>