<?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 : Automatizace - otevření modelu, export dxf...</title>
  <link>https://www.cadforum.cz/forum/</link>
  <description><![CDATA[Toto je XML obsahový kanál serveru; CAD F&#243;rum : iLogic a ETO : Automatizace - otevření modelu, export dxf...]]></description>
  <pubDate>Wed, 06 May 2026 12:52:57 +0000</pubDate>
  <lastBuildDate>Mon, 26 Aug 2019 10:37:03 +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=29274</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[Automatizace - otevření modelu, export dxf... : Probl&#233;m je v tom, &#382;e p&#345;i vytv&#225;&#345;en&#237;...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117388&amp;title=automatizace-otevreni-modelu-export-dxf#117388</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=9996">Navara</a><br /><strong>Předmět:</strong> 29274<br /><strong>Zasláno:</strong> 26.srp.2019 v 10:37<br /><br />Problém je v tom, že při vytváření jména souboru používáte ThisDoc, což není v daném přípapadě možné.<div><div style="color: rgb54, 69, 90; : rgb251, 251, 253;">Dim fSname As String</div><div style="color: rgb54, 69, 90; : rgb251, 251, 253;">&nbsp; &nbsp; fSname = FilePath &amp; ThisDoc.FileName(False) &amp; ".<acr&#111;nym ="term"="" title="Slovník:  Drawing Interchange at - textový át souborů výkresů AutoCADu. De-facto standard pro reprezentaci CAD dat v otevřeném Autodeskem publikovaném átu. Textová podoba átu DWG. DXF át existuje i v komprimované binární podobě." style="border-bottom: 2px dotted green; cursor: help;">dxf</acr&#111;nym>"</div></div><div style="color: rgb54, 69, 90; : rgb251, 251, 253;"><br></div><div style="color: rgb54, 69, 90; : rgb251, 251, 253;">Je potřeba vycházet z argumentu partDocument</div><div style="color: rgb54, 69, 90; : rgb251, 251, 253;">Např.:</div><div style="color: rgb54, 69, 90; : rgb251, 251, 253;"><table width="99%"><tr><td><pre class="BBcode"></div><div style="color: rgb54, 69, 90; : rgb251, 251, 253;"><div><span style="white-space:pre">	</span>Dim fName = System.IO.Path.ChangeExtension(partDocument.FullFileName, ".dxf")</div><div><span style="white-space:pre">	</span>MsgBox(fName)</div><div></pre></td></tr></table></div></div><div style="color: rgb54, 69, 90; : rgb251, 251, 253;"><br></div><div style="color: rgb54, 69, 90; : rgb251, 251, 253;">Dále je potřeba se v této metodě vyvarovat používání ThisApplication.ActiveDocument. To nemusí skončit dobře.</div><span style="font-size:10px"><br /><br />Upravil Navara - 26.srp.2019 v 10:45</span>]]>
   </description>
   <pubDate>Mon, 26 Aug 2019 10:37:03 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117388&amp;title=automatizace-otevreni-modelu-export-dxf#117388</guid>
  </item> 
  <item>
   <title><![CDATA[Automatizace - otevření modelu, export dxf... : Dob&#345;e, myslel jsem jestli nen&#237;...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117363&amp;title=automatizace-otevreni-modelu-export-dxf#117363</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=78760">michalkopriva</a><br /><strong>Předmět:</strong> 29274<br /><strong>Zasláno:</strong> 21.srp.2019 v 15:15<br /><br />Dobře, myslel jsem jestli není nějaká možnost, jak inventoru říct, že to má hledat v Meridianu.<div>Pokusím se to zjistit u nich.</div><div><br></div><div>Jinak tedy u modelů co jsou na disku to funguje.</div><div>Jen když to exportuje dxf, tak ho to nepojmenuje dle modelu ze kterého se exportuje...</div><div>Název exportovaného dxf je prázdný.</div><div><br></div><div><div>Sub Main()</div><div>&nbsp; &nbsp; Dim excelFile As String = "C:\Users\czmiko4\Desktop\Test-excel-export\Test.xlsx"</div><div>&nbsp; &nbsp; Dim excelSheet As String = "List1"</div><div>&nbsp; &nbsp; Dim dataFromExcel = ReadDataFromExcel(excelFile, excelSheet)</div><div>&nbsp; &nbsp; Dim fileNames = CreateFileNames(dataFromExcel)</div><div>&nbsp; &nbsp; For Each fileName As String In fileNames</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'Check file exists</div><div>&nbsp; &nbsp; &nbsp; &nbsp; If Not System.IO.File.Exists(fileName) Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MsgBox ("File not found" &amp; vbCrLf &amp; fileName)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Continue For</div><div>&nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'Open file</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Dim partDocument As PartDocument = ThisApplication.Documents.Open(fileName)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'Export to DXF</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ExportToDxf (partDocument)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; 'Close without changes</div><div>&nbsp; &nbsp; &nbsp; &nbsp; partDocument.Close (True)</div><div>&nbsp; &nbsp; Next</div><div>End Sub</div><div>Private Sub ExportToDxf(partDocument As partDocument)</div><div>&nbsp; &nbsp; 'Implement your export to DXF here</div><div>&nbsp; &nbsp; Dim FilePath As String</div><div>&nbsp; &nbsp; FilePath = "C:\Users\czmiko4\Desktop\Test-excel-export\"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; If ThisApplication.ActiveDocument.ComponentDefinition.HasFlatPattern = False Then&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;ThisApplication.ActiveDocument.ComponentDefinition.Unfold&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Else</div><div>&nbsp; &nbsp; &nbsp; &nbsp;ThisApplication.ActiveDocument.ComponentDefinition.FlatPattern.Delete&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;ThisApplication.ActiveDocument.ComponentDefinition.Unfold&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; End If</div><div><br></div><div>&nbsp; &nbsp; Dim fSett As String</div><div>&nbsp; &nbsp; fSett = "FLAT PATTERN DXF?AcadVersion=2000&amp;OuterProfileLayer=IV_INTERIOR_PROFILES"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Dim fSname As String</div><div>&nbsp; &nbsp; fSname = FilePath &amp; ThisDoc.FileName(False) &amp; ".dxf"&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ThisApplication.ActiveDocument.ComponentDefinition.DataIO.WriteDataToFile( fSett, fSname)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; 'MessageBox.Show("DXF uložen jako: " &amp; fSname ,"Uložení DXF rozvinu", MessageBoxButtons.OK)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div><span style="white-space:pre">	</span>ThisApplication.ActiveDocument.ComponentDefinition.FlatPattern.ExitEdit</div><div>'&nbsp; &nbsp; MsgBox(String.Format("Exporting to dxf...{1}{0}", partDocument.FullFileName, vbCrLf))</div><div>End Sub</div><div>Private Function CreateFileNames(dataFromExcel As List(Of String)) As List(Of String)</div><div>&nbsp; &nbsp; Dim fileNames As New List(Of String)</div><div>&nbsp; &nbsp; For Each fileName As String In dataFromExcel</div><div>&nbsp; &nbsp; &nbsp; &nbsp; fileNames.Add(String.Format("C:\Users\czmiko4\Desktop\Test-excel-export\{0}.ipt", fileName))</div><div>&nbsp; &nbsp; Next</div><div>&nbsp; &nbsp; Return fileNames</div><div>End Function</div><div>Private Function ReadDataFromExcel(excelFile As String, excelSheet As String) As List(Of String)</div><div>&nbsp; &nbsp; Dim cellValues As New List(Of String)</div><div>&nbsp; &nbsp; Dim column As String = "A"</div><div>&nbsp; &nbsp; Dim row As Integer = 1</div><div>&nbsp; &nbsp; GoExcel.Open(excelFile, excelSheet)</div><div>&nbsp; &nbsp; Do</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Dim cellAddress As String = String.Format("{0}{1}", column, row)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Dim cellValue = GoExcel.CellValue(cellAddress)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; If (cellValue Is Nothing OrElse cellValue.ToString() = "") Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit Do</div><div>&nbsp; &nbsp; &nbsp; &nbsp; End If</div><div>&nbsp; &nbsp; &nbsp; &nbsp; cellValues.Add (cellValue)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; row += 1</div><div>&nbsp; &nbsp; Loop</div><div>&nbsp; &nbsp; GoExcel.Close()</div><div>&nbsp; &nbsp; Return cellValues</div><div>End Function</div></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 21 Aug 2019 15:15:21 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117363&amp;title=automatizace-otevreni-modelu-export-dxf#117363</guid>
  </item> 
  <item>
   <title><![CDATA[Automatizace - otevření modelu, export dxf... :  To u&#382; je v&#283;c implementace. J&#225;...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117362&amp;title=automatizace-otevreni-modelu-export-dxf#117362</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=9996">Navara</a><br /><strong>Předmět:</strong> 29274<br /><strong>Zasláno:</strong> 21.srp.2019 v 14:55<br /><br />To už je věc implementace. Já nevím, kam se ty soubory stahujou, ale aby tohle makro fungovalo, tak to musí být někde na lokálním disku. Čekal bych, že budou někde v pracovním adresáři Inventoru.<div>Pokud nevíte, jestli jsou na disku a chcete je stahovat z Meridianu, tak to se musíte obrátit na ně. V tom už vám nepomůžu.</div>]]>
   </description>
   <pubDate>Wed, 21 Aug 2019 14:55:33 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117362&amp;title=automatizace-otevreni-modelu-export-dxf#117362</guid>
  </item> 
  <item>
   <title><![CDATA[Automatizace - otevření modelu, export dxf... : Aha, no tak trochu jsem to tu&#353;il,...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117355&amp;title=automatizace-otevreni-modelu-export-dxf#117355</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=78760">michalkopriva</a><br /><strong>Předmět:</strong> 29274<br /><strong>Zasláno:</strong> 21.srp.2019 v 11:18<br /><br />Aha, no tak trochu jsem to tušil, ale zmátlo mě jak jsme se bavili o makru :-D<div>Nevím, proč jsem to nevyzkoušel :-D</div><div><br></div><div>Paráda, funguje to :-)</div><div>Jen to tedy nenajde žádný model :-/</div><div>Jakou cestu k modelům nastavit, když používáme BlueCielo - Meridian?</div><div><img src="uploads/78760/umisteni-ipt.JPG" height="125" width="643" border="0" /><br></div><div><br></div><div><img src="uploads/78760/inventor-bluecielo.JPG" height="474" width="780" border="0" /><br></div>]]>
   </description>
   <pubDate>Wed, 21 Aug 2019 11:18:04 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117355&amp;title=automatizace-otevreni-modelu-export-dxf#117355</guid>
  </item> 
  <item>
   <title><![CDATA[Automatizace - otevření modelu, export dxf... :  Ten k&#243;d je v iLogicu, ne ve...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117354&amp;title=automatizace-otevreni-modelu-export-dxf#117354</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=9996">Navara</a><br /><strong>Předmět:</strong> 29274<br /><strong>Zasláno:</strong> 21.srp.2019 v 09:09<br /><br />Ten kód je v iLogicu, ne ve VBA. Tam by to bylo podstatně horší, až neřešitelné. Už jenom to čtení z excelu by byl docela ořech.<div>&nbsp;</div><div>Takže spusťte to jako pravidlo iLogic a bude to chodit. <img src="https://www.cadforum.cz/forum/smileys/smiley1.gif" height="17" width="17" border="0" alt="Smile" title="Smile" /></div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Wed, 21 Aug 2019 09:09:27 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117354&amp;title=automatizace-otevreni-modelu-export-dxf#117354</guid>
  </item> 
  <item>
   <title><![CDATA[Automatizace - otevření modelu, export dxf... : To ch&#225;pu :-)Budu si muset v pr&#225;ci...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117353&amp;title=automatizace-otevreni-modelu-export-dxf#117353</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=78760">michalkopriva</a><br /><strong>Předmět:</strong> 29274<br /><strong>Zasláno:</strong> 21.srp.2019 v 08:40<br /><br />To chápu :-)<div>Budu si muset v práci vydupat nějaké školení....&nbsp;<img src="https://www.cadforum.cz/forum/smileys/smiley36.gif" border="0" alt="LOL" title="LOL" /></div><div><br></div><div>Stále se mi to jako makro nedaří zprovoznit. Mám s tím problém ve VBA Editoru :-/</div><div>Zdrojový soubor jsem si změnil, názvy souborů ve sloupci "A" mám.</div><div><br></div><div><img src="uploads/78760/VBA-Editor.JPG" height="526" width="754" border="0" /><br></div>]]>
   </description>
   <pubDate>Wed, 21 Aug 2019 08:40:22 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117353&amp;title=automatizace-otevreni-modelu-export-dxf#117353</guid>
  </item> 
  <item>
   <title><![CDATA[Automatizace - otevření modelu, export dxf... :  Jak ps&#225;t addin je trochu na...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117350&amp;title=automatizace-otevreni-modelu-export-dxf#117350</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=9996">Navara</a><br /><strong>Předmět:</strong> 29274<br /><strong>Zasláno:</strong> 20.srp.2019 v 21:19<br /><br />Jak psát addin je trochu na delší povídání/psaní <img src="https://www.cadforum.cz/forum/smileys/smiley1.gif" height="17" width="17" border="0" alt="Smile" title="Smile" /><div></div>Nicméně jako makro to funguje. Jenom je potřeba mít vytvořený zdrojový soubor "C:\Temp\PartsForDxf.<acr&#111;nym title="Slovník:&amp;#10;eXceL Sheet - át souborů tabulkových listů MS Excelu" ="term"="">xls</acr&#111;nym>x" a v něm na listu "List1" ve sloupci "A" seznam těch názvů souborů.<div>&nbsp;</div><div>Samozřejmě tohle není kompletní řešení, ale jenom první návrh a ukázka jak otevírat, exportovat a zavírat soubory definované v excelovské tabulce pomocí iLogicu.</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Tue, 20 Aug 2019 21:19:09 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117350&amp;title=automatizace-otevreni-modelu-export-dxf#117350</guid>
  </item> 
  <item>
   <title><![CDATA[Automatizace - otevření modelu, export dxf... : Super, moc d&#283;kuji za &#345;e&#353;en&#237;.Jen...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117347&amp;title=automatizace-otevreni-modelu-export-dxf#117347</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=78760">michalkopriva</a><br /><strong>Předmět:</strong> 29274<br /><strong>Zasláno:</strong> 20.srp.2019 v 15:39<br /><br />Super, moc děkuji za řešení.<div><br></div><div>Jen tedy nevím, jak vytvořím AddIn. Jako makro mi to v Inventoru nefunguje :-/</div>]]>
   </description>
   <pubDate>Tue, 20 Aug 2019 15:39:32 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117347&amp;title=automatizace-otevreni-modelu-export-dxf#117347</guid>
  </item> 
  <item>
   <title><![CDATA[Automatizace - otevření modelu, export dxf... :  &#344;e&#353;iteln&#233; to ur&#269;it&#283; je. Nicm&#233;n&#283;...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117340&amp;title=automatizace-otevreni-modelu-export-dxf#117340</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=9996">Navara</a><br /><strong>Předmět:</strong> 29274<br /><strong>Zasláno:</strong> 20.srp.2019 v 11:16<br /><br />Řešitelné to určitě je. Nicméně v rámci stability a odolnosti bych to dělal jako AddIn, který nevyžaduje například otevřený soubor pro spuštění.<div>&nbsp;</div><div>Jinak jako zdroj je asi vhodnější použít nějaký textový soubor, než excel, ale to už je čistě na vás.</div><div>&nbsp;</div><div>EDIT:</div><div>Kromě samotného exportu do DXF by to mohlo vypadat asi nějak takhle...</div><div>&nbsp;</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>Sub Main()</div><div>&nbsp;&nbsp;&nbsp; Dim excelFile As String = "C:\Temp\PartsForDxf.xlsx"<br>&nbsp;&nbsp;&nbsp; Dim excelSheet As String = "List1"<br>&nbsp;&nbsp;&nbsp; Dim dataFromExcel = ReadDataFromExcel(excelFile, excelSheet)</div><div>&nbsp;&nbsp;&nbsp; Dim fileNames = CreateFileNames(dataFromExcel)</div><div>&nbsp;&nbsp;&nbsp; For Each fileName As String In fileNames<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Check file exists<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If Not System.IO.File.Exists(fileName) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MsgBox("File not found" &amp; vbCrLf &amp; fileName)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Continue For<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Open file<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim partDocument As PartDocument = ThisApplication.Documents.Open(fileName)</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Export to DXF<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ExportToDxf(partDocument)</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 'Close without changes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; partDocument.Close(True)<br>&nbsp;&nbsp;&nbsp; Next</div><div>End Sub</div><div>Private Sub ExportToDxf(partDocument As PartDocument)<br>&nbsp;&nbsp;&nbsp; 'Implement your export to DXF here<br>&nbsp;&nbsp;&nbsp; MsgBox(String.Format("Exporting to dxf...{1}{0}", partDocument.FullFileName, vbCrLf))<br>End Sub</div><div>Private Function CreateFileNames(dataFromExcel As List(Of String)) As List(Of String)<br>&nbsp;&nbsp;&nbsp; Dim fileNames As New List(Of String)<br>&nbsp;&nbsp;&nbsp; For Each fileName As String In dataFromExcel<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fileNames.Add(String.Format("C:\Temp\{0}.ipt", fileName))<br>&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&nbsp;&nbsp; Return fileNames<br>End Function</div><div>Private Function ReadDataFromExcel(excelFile As String, excelSheet As String) As List(Of String)</div><div>&nbsp;&nbsp;&nbsp; Dim cellValues As New List(Of String)<br>&nbsp;&nbsp;&nbsp; Dim column As String = "A"<br>&nbsp;&nbsp;&nbsp; Dim row As Integer = 1<br>&nbsp;&nbsp;&nbsp; GoExcel.Open(excelFile, excelSheet)</div><div>&nbsp;&nbsp;&nbsp; Do<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim cellAddress As String = String.Format("{0}{1}", column, row)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Dim cellValue = GoExcel.CellValue(cellAddress)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If (cellValue Is Nothing OrElse cellValue.ToString() = "") Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Exit Do<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cellValues.Add(cellValue)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; row += 1<br>&nbsp;&nbsp;&nbsp; Loop<br>&nbsp;&nbsp;&nbsp; GoExcel.Close()<br>&nbsp;&nbsp;&nbsp; Return cellValues<br>End Function</div><div></pre></td></tr></table></div><span style="font-size:10px"><br /><br />Upravil Navara - 20.srp.2019 v 11:54</span>]]>
   </description>
   <pubDate>Tue, 20 Aug 2019 11:16:38 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117340&amp;title=automatizace-otevreni-modelu-export-dxf#117340</guid>
  </item> 
  <item>
   <title><![CDATA[Automatizace - otevření modelu, export dxf... :  Asi by &#353;lo &#345;e&#353;it p&#345;es Pl&#225;nova&#269;...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117339&amp;title=automatizace-otevreni-modelu-export-dxf#117339</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=9">Vladimír Michl</a><br /><strong>Předmět:</strong> 29274<br /><strong>Zasláno:</strong> 20.srp.2019 v 11:06<br /><br />Asi by šlo řešit přes Plánovač úloh, iLogic a X-Tools, ale bude to výrazně složitější než s Vaultem.]]>
   </description>
   <pubDate>Tue, 20 Aug 2019 11:06:59 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=29274&amp;PID=117339&amp;title=automatizace-otevreni-modelu-export-dxf#117339</guid>
  </item> 
 </channel>
</rss>