<?xml version="1.0" encoding="windows-1250" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>CAD F&#243;rum : Inventor - VB.NET - ApprenticeServer</title>
  <link>https://www.cadforum.cz/forum/</link>
  <description><![CDATA[Toto je XML obsahový kanál serveru; CAD F&#243;rum : CAD programov&#225;n&#237; : Inventor - VB.NET - ApprenticeServer]]></description>
  <pubDate>Tue, 09 Jun 2026 23:10:25 +0000</pubDate>
  <lastBuildDate>Mon, 01 Mar 2010 13:50:25 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.cadforum.cz/forum/RSS_post_feed.asp?TID=10465</WebWizForums:feedURL>
  <image>
   <title><![CDATA[CAD F&#243;rum]]></title>
   <url>https://www.cadforum.cz/forum/forum_images/web_wiz_forums.png</url>
   <link>https://www.cadforum.cz/forum/</link>
  </image>
  <item>
   <title><![CDATA[Inventor - VB.NET - ApprenticeServer : Dobr&#253; den,obrac&#237;m se na v&#225;s s...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=10465&amp;PID=51822&amp;title=inventor-vbnet-apprenticeserver#51822</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=99">pavelstyl</a><br /><strong>Předmět:</strong> 10465<br /><strong>Zasláno:</strong> 01.bře.2010 v 13:50<br /><br /><p>Dobrý den,<br>&nbsp;obracím se na vás s žádostí o pomoc při programování utilitky pro Inventor.<br>Níže přikládám část zdrojového kódu, který rekurzivně vypisuje "strom" sestavy.<br>Problém je v tom, že to občas spadne.</p><p>Spustím procedurku Test a vše je ok. Spustím ji podruhé, vše je OK. Spustím ji potřetí a program spadne. Zajímavé je, že program spadane pokaždé jinde. </p><p>Když z toho udělám exe, tak Release varianta spadne vždy, Debug varianta jenom někdy :-(</p><p>Nevidím tam chybu, ale protože s programováním v Inventoru teprve začínám, tak ji nemohu vyloučit.</p><p>Pracuji na WinXP+SP3 EN, Inventor Professional 2009+SP2, Microsoft Visual Basic Express Edition 2008+SP1</p><p>Děkuji za jakoukoliv radu<br>S pozdravem Pavel Štyl</p><p><table width="99%"><tr><td><pre class="BBcode"></p><p>&nbsp;&nbsp; &nbsp;Private Sub Test()<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Dim file1 As String = "D:\Inventor\Praha\221A2 Drive Unit\CAT01_CK_221A2-M1000_ZSZ001.iam"</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Dim invApprentice As New ApprenticeServerComponent<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Dim doc As ApprenticeServerDocument</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;doc = invApprentice.Open(file1)<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;LinkedDocuments(doc, 0)</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;invApprentice = Nothing</p><p>&nbsp;&nbsp; &nbsp;End Sub</p><p>&nbsp;&nbsp; &nbsp;Private Sub LinkedDocuments(ByVal doc As ApprenticeServerDocument, ByVal hl As Integer)<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Dim ld As Inventor.ReferencedFileDescriptor</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Debug.Print(Space(hl * 2) &amp; "LiDo " &amp; doc.FullFileName)</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;For Each ld In doc.ReferencedFileDescriptors</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.Print(Space(hl * 2) &amp; "- " &amp; ld.FullFileName)<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LinkedDocuments(ld.ReferencedDocument, hl + 1)<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Debug.Print(Space(hl * 2) &amp; "- return")</p><p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Next</p><p>&nbsp;&nbsp; &nbsp;End Sub</pre></td></tr></table></p>]]>
   </description>
   <pubDate>Mon, 01 Mar 2010 13:50:25 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=10465&amp;PID=51822&amp;title=inventor-vbnet-apprenticeserver#51822</guid>
  </item> 
 </channel>
</rss>