Congratulations!

[Valid RSS] This is a valid RSS feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://archicad-talk.graphisoft.com/Developer_Forum.xml

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <rss version="0.92">
  3. <channel>
  4. <title>ArchiCAD-Talk - Developer Forum</title>
  5. <link>http://archicad-talk.graphisoft.com/viewforum.php?f=23</link>
  6. <description>Discussions about using GRAPHISOFT&#039;s tools (API DevKit) for independent software developers
  7.  
  8. </description>
  9. <language>en</language>
  10. <lastBuildDate>Mon, 25 Sep 2017 22:30:00 GMT</lastBuildDate>
  11. <managingEditor>[email protected]</managingEditor>
  12. <webMaster>[email protected]</webMaster>
  13. <category>CAD>>>ArchiCAD</category>
  14. <copyright>Copyright 2004 - Graphisoft Software Development Rt. All rights reserved worldwide.</copyright>
  15. <item>
  16. <category>Developer Forum</category>
  17. <title>ClientConnection partial download</title>
  18. <link>http://archicad-talk.graphisoft.com/viewtopic.php?p=272102#272102</link>
  19. <author>[email protected]</author>
  20. <pubDate>Fri, 22 Sep 2017 06:33:26 GMT</pubDate>
  21. <description>Author:&lt;a href=&quot;http://archicad-talk.graphisoft.com/profile.php?mode=viewprofile&amp;u=8253&quot; target=&quot;_blank&quot;&gt;vuego&lt;/a&gt;&lt;br /&gt;
  22. Posted: Fri Sep 22, 2017 7:33 am (GMT+1)&lt;br /&gt;
  23. &lt;br /&gt;&lt;br /&gt;
  24. &lt;span class="postbody"&gt;
  25. I am downloading a binary file (gsm object) with ClientConnection class.
  26. &lt;br /&gt;
  27. When working in development environment with faster localhost server which serves gsm objects, everything works fine.
  28. &lt;br /&gt;
  29.  
  30. &lt;br /&gt;
  31. When I moved to a production server on different location, with slower internet access, I started getting partial downloads. After using a short sleep() in a loop, it works again but it is a bad solution.
  32. &lt;br /&gt;
  33.  
  34. &lt;br /&gt;
  35. Obviously BeginReceive() function works asynchronously. How can I check/wait if I&#039;ve received all data?
  36. &lt;br /&gt;
  37.  
  38. &lt;br /&gt;
  39.  
  40. &lt;br /&gt;
  41.  
  42. &lt;br /&gt;
  43. &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt;  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;  &lt;td class=&quot;code&quot;&gt;
  44. &lt;br /&gt;
  45. &amp;nbsp; &amp;nbsp;ClientConnection clientConnection&amp;#40;connectionUrl&amp;#41;;
  46. &lt;br /&gt;
  47. &amp;nbsp; &amp;nbsp;try &amp;#123;
  48. &lt;br /&gt;
  49. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;clientConnection.Connect&amp;#40;&amp;#41;;
  50. &lt;br /&gt;
  51.  
  52. &lt;br /&gt;
  53. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Request getRequest&amp;#40;Method&amp;#58;&amp;#58;Get, url&amp;#41;;
  54. &lt;br /&gt;
  55. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;clientConnection.Send&amp;#40;getRequest&amp;#41;;
  56. &lt;br /&gt;
  57.  
  58. &lt;br /&gt;
  59. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Response response;
  60. &lt;br /&gt;
  61. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;GS&amp;#58;&amp;#58;IChannelX channel&amp;#40;clientConnection.BeginReceive&amp;#40;response&amp;#41;, GS&amp;#58;&amp;#58;GetNetworkByteOrderIProtocolX&amp;#40;&amp;#41;&amp;#41;;
  62. &lt;br /&gt;
  63. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;GS&amp;#58;&amp;#58;GSSize bufLen = 0;
  64. &lt;br /&gt;
  65.  
  66. &lt;br /&gt;
  67. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;if &amp;#40;response.GetStatusCode&amp;#40;&amp;#41; == 200&amp;#41; &amp;#123;
  68. &lt;br /&gt;
  69. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;IO&amp;#58;&amp;#58;File* targetFile = new IO&amp;#58;&amp;#58;File&amp;#40;dest, IO&amp;#58;&amp;#58;File&amp;#58;&amp;#58;Create&amp;#41;;
  70. &lt;br /&gt;
  71. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;targetFile-&amp;gt;Open&amp;#40;IO&amp;#58;&amp;#58;File&amp;#58;&amp;#58;WriteMode&amp;#41;;
  72. &lt;br /&gt;
  73.  
  74. &lt;br /&gt;
  75. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;while &amp;#40;&amp;#40;bufLen = &amp;#40;GS&amp;#58;&amp;#58;GSSize&amp;#41;channel.GetAvailable&amp;#40;&amp;#41;&amp;#41; &amp;gt; 0&amp;#41; &amp;#123;
  76. &lt;br /&gt;
  77.  
  78. &lt;br /&gt;
  79. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;GSPtr buffer = BMAllocatePtr&amp;#40;bufLen, ALLOCATE_CLEAR, 0&amp;#41;;
  80. &lt;br /&gt;
  81.  
  82. &lt;br /&gt;
  83. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;channel.ReadBin&amp;#40;&amp;#40;char *&amp;#41;buffer, bufLen&amp;#41;;
  84. &lt;br /&gt;
  85. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;targetFile-&amp;gt;WriteBin&amp;#40;&amp;#40;char *&amp;#41;buffer, bufLen&amp;#41;;
  86. &lt;br /&gt;
  87.  
  88. &lt;br /&gt;
  89. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;BMKillPtr&amp;#40;&amp;amp;buffer&amp;#41;;
  90. &lt;br /&gt;
  91. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Sleep&amp;#40;100&amp;#41;;
  92. &lt;br /&gt;
  93. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125;
  94. &lt;br /&gt;
  95.  
  96. &lt;br /&gt;
  97. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;targetFile-&amp;gt;Close&amp;#40;&amp;#41;;
  98. &lt;br /&gt;
  99.  
  100. &lt;br /&gt;
  101. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;clientConnection.FinishReceive&amp;#40;&amp;#41;;
  102. &lt;br /&gt;
  103. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;clientConnection.Close&amp;#40;false&amp;#41;;
  104. &lt;br /&gt;
  105.  
  106. &lt;br /&gt;
  107. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;return targetFile;
  108. &lt;br /&gt;
  109.  
  110. &lt;br /&gt;
  111. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;#125;
  112. &lt;br /&gt;
  113.  
  114. &lt;br /&gt;
  115.  
  116. &lt;br /&gt;
  117. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;clientConnection.FinishReceive&amp;#40;&amp;#41;;
  118. &lt;br /&gt;
  119. &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;clientConnection.Close&amp;#40;false&amp;#41;;
  120. &lt;br /&gt;
  121. &amp;nbsp; &amp;nbsp;&amp;#125;
  122. &lt;br /&gt;
  123. &amp;nbsp; &amp;nbsp;catch &amp;#40;...&amp;#41; &amp;#123;
  124. &lt;br /&gt;
  125.  
  126. &lt;br /&gt;
  127. &amp;nbsp; &amp;nbsp;&amp;#125;
  128. &lt;br /&gt;
  129. &lt;/td&gt; &lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
  130. &lt;br /&gt;_________________&lt;br /&gt;ARCHICAD 21, Dell Studio i7, 16Gb Ram, Win10 64bit&lt;/span&gt;&lt;br /&gt;
  131. </description>
  132. </item>
  133. <item>
  134. <category>Developer Forum</category>
  135. <title>Override rules creation</title>
  136. <link>http://archicad-talk.graphisoft.com/viewtopic.php?p=272064#272064</link>
  137. <author>[email protected]</author>
  138. <pubDate>Thu, 21 Sep 2017 16:35:08 GMT</pubDate>
  139. <description>Author:&lt;a href=&quot;http://archicad-talk.graphisoft.com/profile.php?mode=viewprofile&amp;u=1469&quot; target=&quot;_blank&quot;&gt;Akos Somorjai&lt;/a&gt;&lt;br /&gt;
  140. Posted: Thu Sep 21, 2017 5:35 pm (GMT+1)&lt;br /&gt;
  141. &lt;br /&gt;&lt;br /&gt;
  142. &lt;span class="postbody"&gt;
  143. &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt;  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;mvallee wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;  &lt;td class=&quot;quote&quot;&gt;
  144. &lt;br /&gt;
  145. Ok, but do you have a document that explains how the XML data is written ? Without it, the work is going to be very difficult.&lt;/td&gt; &lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
  146. &lt;br /&gt;
  147.  
  148. &lt;br /&gt;
  149. I&#039;m sorry, but we don&#039;t have any documentation on that.
  150. &lt;br /&gt;
  151.  
  152. &lt;br /&gt;
  153. Best, Akos
  154. &lt;/span&gt;&lt;br /&gt;
  155. </description>
  156. </item>
  157. <item>
  158. <category>Developer Forum</category>
  159. <title>[SOLVED] Can't test add-ons with AddOn Management</title>
  160. <link>http://archicad-talk.graphisoft.com/viewtopic.php?p=272063#272063</link>
  161. <author>[email protected]</author>
  162. <pubDate>Thu, 21 Sep 2017 16:33:20 GMT</pubDate>
  163. <description>Author:&lt;a href=&quot;http://archicad-talk.graphisoft.com/profile.php?mode=viewprofile&amp;u=1469&quot; target=&quot;_blank&quot;&gt;Akos Somorjai&lt;/a&gt;&lt;br /&gt;
  164. Posted: Thu Sep 21, 2017 5:33 pm (GMT+1)&lt;br /&gt;
  165. &lt;br /&gt;&lt;br /&gt;
  166. &lt;span class="postbody"&gt;
  167. &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt;  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Cedric Tran wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;  &lt;td class=&quot;quote&quot;&gt;
  168. &lt;br /&gt;
  169. Thank you for your answer,
  170. &lt;br /&gt;
  171. I get through this problem but I don&#039;t know what it was. I started the process again and it works. I just have failed when I put the keys.
  172. &lt;br /&gt;
  173. Regards.&lt;/td&gt; &lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
  174. &lt;br /&gt;
  175.  
  176. &lt;br /&gt;
  177. That usually happens when you type in the developer ID, instead of copying and pasting.
  178. &lt;br /&gt;
  179.  
  180. &lt;br /&gt;
  181. Best, Akos
  182. &lt;/span&gt;&lt;br /&gt;
  183. </description>
  184. </item>
  185. <item>
  186. <category>Developer Forum</category>
  187. <title>[SOLVED] modeless palette question</title>
  188. <link>http://archicad-talk.graphisoft.com/viewtopic.php?p=271994#271994</link>
  189. <author>[email protected]</author>
  190. <pubDate>Wed, 20 Sep 2017 11:32:28 GMT</pubDate>
  191. <description>Author:&lt;a href=&quot;http://archicad-talk.graphisoft.com/profile.php?mode=viewprofile&amp;u=462&quot; target=&quot;_blank&quot;&gt;Ralph Wessel&lt;/a&gt;&lt;br /&gt;
  192. Posted: Wed Sep 20, 2017 12:32 pm (GMT+1)&lt;br /&gt;
  193. &lt;br /&gt;&lt;br /&gt;
  194. &lt;span class="postbody"&gt;
  195. &lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt;  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;jcimentarov wrote:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;  &lt;td class=&quot;quote&quot;&gt;I was able to do it a dockable palette, and replaced the buttons with icons. The only thing that I don&#039;t know how to do is to put it into the windows-&amp;gt;palette menu where are the other palettes now. Any ideas how to do it ?&lt;/td&gt; &lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
  196. &lt;br /&gt;
  197. When you call &lt;span style=&quot;font-style: italic&quot;&gt;ACAPI_Register_Menu&lt;/span&gt; to register your menu, set the 3rd parameter (menuPosCode) to &lt;span style=&quot;font-style: italic&quot;&gt;MenuCode_Palettes&lt;/span&gt;.
  198. &lt;br /&gt;_________________&lt;br /&gt;Ralph Wessel
  199. &lt;br /&gt;
  200. Cadimage&lt;/span&gt;&lt;br /&gt;
  201. </description>
  202. </item>
  203. <item>
  204. <category>Developer Forum</category>
  205. <title>[SOLVED] modeless palette question</title>
  206. <link>http://archicad-talk.graphisoft.com/viewtopic.php?p=271941#271941</link>
  207. <author>[email protected]</author>
  208. <pubDate>Tue, 19 Sep 2017 14:51:27 GMT</pubDate>
  209. <description>Author:&lt;a href=&quot;http://archicad-talk.graphisoft.com/profile.php?mode=viewprofile&amp;u=111531&quot; target=&quot;_blank&quot;&gt;jcimentarov&lt;/a&gt;&lt;br /&gt;
  210. Posted: Tue Sep 19, 2017 3:51 pm (GMT+1)&lt;br /&gt;
  211. &lt;br /&gt;&lt;br /&gt;
  212. &lt;span class="postbody"&gt;
  213. I was able to do it a dockable palette, and replaced the buttons with icons. The only thing that I don&#039;t know how to do is to put it into the windows-&amp;gt;palette menu where are the other palettes now. Any ideas how to do it ?
  214. &lt;/span&gt;&lt;br /&gt;
  215. </description>
  216. </item>
  217. </channel>
  218. </rss>
  219.  
  220.  

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid RSS" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=http%3A//archicad-talk.graphisoft.com/Developer_Forum.xml

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda