<?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 : PŘIDÁNÍ PARAMETRŮ A UŽ.IVL.</title>
  <link>https://www.cadforum.cz/forum/</link>
  <description><![CDATA[Toto je XML obsahový kanál serveru; CAD F&#243;rum : iLogic a ETO : PŘIDÁNÍ PARAMETRŮ A UŽ.IVL.]]></description>
  <pubDate>Sat, 09 May 2026 18:24:40 +0000</pubDate>
  <lastBuildDate>Mon, 04 Feb 2019 10:48:26 +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=28335</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[PŘIDÁNÍ PARAMETRŮ A UŽ.IVL. :  Nev&#237;m, jestli je tohle n&#283;kde...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115472&amp;title=pridani-parametru-a-uzivl#115472</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> 28335<br /><strong>Zasláno:</strong> 04.úno.2019 v 10:48<br /><br />Nevím, jestli je tohle někde zdokumentované. <div>Referenční příručka k iLogicu je dostupná tady: <a href="http://help.autodesk.com/view/INVNTOR/2019/ENU/?guid=GUID-AB9EE660-299E-408F-BBE1-AFE44C723F59" target="_blank" rel="nofollow">http://help.autodesk.com/view/INVNTOR/2019/ENU/?guid=GUID-AB9EE660-299E-408F-BBE1-AFE44C723F59</a></div><div>&nbsp;</div><div>Možná to nějak půjde, ale nevím jak.</div><div>Navíc tyhle spouštěče jsou opět uložené v dokumentu a pokud v budoucnu pravidlo nebude dostupné, nastane chyba. Pokud budete chtít další přidat, máte stejný problém, jako kdyby bylo pravidlo lokální.</div><div>Já jsem pro tenhle účel napsal do XTools právě ty vlastní spouštěče, protože nejsou závislé na tom, aby byly uvedené v dokumentu, pokud v budoucnu zmizí, tak se nic nestane (takový stav je ošetřen), pokud přibydou, tak se jednoduše doplní.</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Mon, 04 Feb 2019 10:48:26 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115472&amp;title=pridani-parametru-a-uzivl#115472</guid>
  </item> 
  <item>
   <title><![CDATA[PŘIDÁNÍ PARAMETRŮ A UŽ.IVL. : Ok, d&#283;kuji za doporu&#269;en&#237;.Je tedy...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115432&amp;title=pridani-parametru-a-uzivl#115432</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=4903">Lukáš Záruba</a><br /><strong>Předmět:</strong> 28335<br /><strong>Zasláno:</strong> 31.led.2019 v 14:10<br /><br />Ok, děkuji za doporučení.<div><br><div>Je tedy možné na konec tohoto pravidla napsat příkaz, která mi přiřadí jednotlivá externí pravidla k událostem při který se mají spouštět? viz výstřižek níže?&nbsp;</div><div><br></div><div><img src="uploads/4903/spoustit_pravidlo.JPG" height="428" width="379" border="0" /><br></div><div><br></div><div><br></div></div>]]>
   </description>
   <pubDate>Thu, 31 Jan 2019 14:10:17 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115432&amp;title=pridani-parametru-a-uzivl#115432</guid>
  </item> 
  <item>
   <title><![CDATA[PŘIDÁNÍ PARAMETRŮ A UŽ.IVL. :  Pou&#382;&#237;v&#225;n&#237; intern&#237;ch pravidel...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115431&amp;title=pridani-parametru-a-uzivl#115431</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> 28335<br /><strong>Zasláno:</strong> 31.led.2019 v 13:25<br /><br />Používání interních pravidel v dokumentu není vhodná cesta.<div>Nejvíc se mi v praxi osvědčilo hlídání určité události nad dokumentem (nejčastěji před uložením) a na tuto událost spouštět externí pravidla.</div><div>K tomu je v XTools přímo možnost nastavit pravidlo, které se má spouštět. Toto pravidlo pak může volat další pravidla atd...</div><div>Důvody jsem tu už rozebíral mnohokrát, ale nejdůležitější je: Až (ne jestli!) bude potřeba v budoucnu změnit tato pravidla, budete mít opravdu velký problém. U externích to změníte na jednom místě a máte klid.</div>]]>
   </description>
   <pubDate>Thu, 31 Jan 2019 13:25:51 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115431&amp;title=pridani-parametru-a-uzivl#115431</guid>
  </item> 
  <item>
   <title><![CDATA[PŘIDÁNÍ PARAMETRŮ A UŽ.IVL. : Ano to funguje kdy&#382; ho pot&#345;ebuji...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115426&amp;title=pridani-parametru-a-uzivl#115426</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=4903">Lukáš Záruba</a><br /><strong>Předmět:</strong> 28335<br /><strong>Zasláno:</strong> 31.led.2019 v 12:01<br /><br />Ano to funguje když ho potřebuji spustit ale já bych ho chtěl uložit přímo do itp a iam. Pravidlo výše popsané mi připraví parametry a vlastnosti pro itp a iam, které jsou přeukládané ze starších projektů a ty je nemají. Nové již mají vše připravené v šablonách. Proto se snažím vytvořit si pravidlo které by mi po přeuložení starého modelu na nové pomohlo co nejvíce nastavit díl tak aby bez větších zásahů byl jako nová šablona.]]>
   </description>
   <pubDate>Thu, 31 Jan 2019 12:01:42 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115426&amp;title=pridani-parametru-a-uzivl#115426</guid>
  </item> 
  <item>
   <title><![CDATA[PŘIDÁNÍ PARAMETRŮ A UŽ.IVL. :  Zkuste se pod&#237;vat na RunExternalRule...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115425&amp;title=pridani-parametru-a-uzivl#115425</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> 28335<br /><strong>Zasláno:</strong> 31.led.2019 v 11:42<br /><br />Zkuste se podívat na <strong><em>RunExternalRule</em></strong>]]>
   </description>
   <pubDate>Thu, 31 Jan 2019 11:42:47 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115425&amp;title=pridani-parametru-a-uzivl#115425</guid>
  </item> 
  <item>
   <title><![CDATA[PŘIDÁNÍ PARAMETRŮ A UŽ.IVL. : Napad&#225; m&#283;, &#382;e kdy&#382; u&#382; m&#225;m pravidlo...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115424&amp;title=pridani-parametru-a-uzivl#115424</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=4903">Lukáš Záruba</a><br /><strong>Předmět:</strong> 28335<br /><strong>Zasláno:</strong> 31.led.2019 v 11:29<br /><br />Napadá mě, že když už mám pravidlo které mi vytvoří všechny potřebné parametry a vlastnosti aby z nich jiné pravidlo mohlo poskládat texty. Nedalo by se na konec tohoto pravidla napsat příkaz?<div><br></div><div>Něco takového -&nbsp;</div><div><br></div><div>Vlož do tohoto dokumentu externí pravidlo :</div><div><br></div><div>1) NADPIS</div><div>2) POPIS</div><div>3) MAT&nbsp;</div>]]>
   </description>
   <pubDate>Thu, 31 Jan 2019 11:29:46 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115424&amp;title=pridani-parametru-a-uzivl#115424</guid>
  </item> 
  <item>
   <title><![CDATA[PŘIDÁNÍ PARAMETRŮ A UŽ.IVL. : OK, d&#237;ky to je ono. Ji&#382; to funguje...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115423&amp;title=pridani-parametru-a-uzivl#115423</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=4903">Lukáš Záruba</a><br /><strong>Předmět:</strong> 28335<br /><strong>Zasláno:</strong> 31.led.2019 v 11:08<br /><br />OK, díky to je ono. Již to funguje a vypadá to takto:<div><br></div><div><pre><span style="color: #FF0000; font-weight: bold;">Sub</span> <span style="color: #800080; font-weight: bold;">Main</span><span style="font-weight: bold;">()</span>    <span style="color: #FF0000; font-weight: bold;">Dim</span> <span style="color: #800000;">userParams</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800000;">UserParameters</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">GetUserParams</span><span style="font-weight: bold;">(</span><span style="color: #800080; font-weight: bold;">ThisDoc</span>.<span style="color: #800080; font-weight: bold;">Document</span><span style="font-weight: bold;">)</span>     <span style="color: #800000;">EnsureParameter</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R1</span><span style="color: #008080;">"</span>, <span style="color: #800000;">comment</span>:<span style="font-weight: bold;">=</span><span style="color: #008080;">"</span><span style="color: #008080;">NADPIS - ROZM&#65533;R</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameter</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R2</span><span style="color: #008080;">"</span>, <span style="color: #800000;">comment</span>:<span style="font-weight: bold;">=</span><span style="color: #008080;">"</span><span style="color: #008080;">NADPIS - ROZM&#65533;R</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameter</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R3</span><span style="color: #008080;">"</span>, <span style="color: #800000;">comment</span>:<span style="font-weight: bold;">=</span><span style="color: #008080;">"</span><span style="color: #008080;">NADPIS - ROZM&#65533;R</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameter</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R4</span><span style="color: #008080;">"</span>, <span style="color: #800000;">comment</span>:<span style="font-weight: bold;">=</span><span style="color: #008080;">"</span><span style="color: #008080;">NADPIS - ROZM&#65533;R</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameter</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R5</span><span style="color: #008080;">"</span>, <span style="color: #800000;">comment</span>:<span style="font-weight: bold;">=</span><span style="color: #008080;">"</span><span style="color: #008080;">NADPIS - ROZM&#65533;R</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameter</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR1</span><span style="color: #008080;">"</span>, <span style="color: #800000;">comment</span>:<span style="font-weight: bold;">=</span><span style="color: #008080;">"</span><span style="color: #008080;">POPIS - ROZM&#65533;R</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameter</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR2</span><span style="color: #008080;">"</span>, <span style="color: #800000;">comment</span>:<span style="font-weight: bold;">=</span><span style="color: #008080;">"</span><span style="color: #008080;">POPIS - ROZM&#65533;R</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameter</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR3</span><span style="color: #008080;">"</span>, <span style="color: #800000;">comment</span>:<span style="font-weight: bold;">=</span><span style="color: #008080;">"</span><span style="color: #008080;">POPIS - ROZM&#65533;R</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameter</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR4</span><span style="color: #008080;">"</span>, <span style="color: #800000;">comment</span>:<span style="font-weight: bold;">=</span><span style="color: #008080;">"</span><span style="color: #008080;">POPIS - ROZM&#65533;R</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameter</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR5</span><span style="color: #008080;">"</span>, <span style="color: #800000;">comment</span>:<span style="font-weight: bold;">=</span><span style="color: #008080;">"</span><span style="color: #008080;">POPIS - ROZM&#65533;R</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameterTEXT</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">TEST</span><span style="color: #008080;">"</span>, <span style="color: #800000;">comment</span>:<span style="font-weight: bold;">=</span><span style="color: #008080;">"</span><span style="color: #008080;">TESTOVAC&#65533; PARAMETR</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>         <span style="color: #FF0000; font-weight: bold;">Dim</span> <span style="color: #800000;">customPropertySet</span> <span style="font-weight: bold;">=</span> <span style="color: #800080; font-weight: bold;">ThisDoc</span>.<span style="color: #800080; font-weight: bold;">Document</span>.<span style="color: #800000;">PropertySets</span>.<span style="color: #800000;">Item</span><span style="font-weight: bold;">(</span><span style="color: #008080;">"</span><span style="color: #008080;">Inventor User Defined Properties</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>     <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">N1</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">N1-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">N2</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">N2-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">N3</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">N3-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">N4</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">N4-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">N5</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">N5-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">P1</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">P1-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">P2</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">P2-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">P3</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">P3-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">P4</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">P4-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">P5</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">P5-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR1</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR1-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR2</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR2-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR3</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR3-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR4</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR4-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR5</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PR5-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R1</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R1-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R2</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R2-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R3</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R3-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R4</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R4-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R5</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">R5-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">MAT</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">MAT-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">MAT2</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">MAT2-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">TYP1</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">TYP1-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">TYP2</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">customPropertySet</span>, <span style="color: #008080;">"</span><span style="color: #008080;">TYP2-M</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span> <span style="color: #FF0000; font-weight: bold;">End Sub</span><span style="color: #FF0000; font-weight: bold;">Function</span> <span style="color: #800000;">GetUserParams</span><span style="font-weight: bold;">(</span><span style="color: #800000;">doc</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800000;">Document</span><span style="font-weight: bold;">)</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800000;">UserParameters</span>    <span style="color: #FF0000; font-weight: bold;">If</span> <span style="font-weight: bold;">(</span><span style="color: #800000;">doc</span>.<span style="color: #800000;">DocumentType</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">DocumentTypeEnum</span>.<span style="color: #800000;">kAssemblyDocumentObject</span><span style="font-weight: bold;">)</span> <span style="color: #FF0000; font-weight: bold;">Then</span>        <span style="color: #FF0000; font-weight: bold;">Dim</span> <span style="color: #800000;">asm</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800000;">AssemblyDocument</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">doc</span>        <span style="color: #FF0000; font-weight: bold;">Return</span> <span style="color: #800000;">asm</span>.<span style="color: #800000;">ComponentDefinition</span>.<span style="color: #800000;">Parameters</span>.<span style="color: #800000;">UserParameters</span>    <span style="color: #FF0000; font-weight: bold;">ElseIf</span> <span style="font-weight: bold;">(</span><span style="color: #800000;">doc</span>.<span style="color: #800000;">DocumentType</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">DocumentTypeEnum</span>.<span style="color: #800000;">kPartDocumentObject</span><span style="font-weight: bold;">)</span> <span style="color: #FF0000; font-weight: bold;">Then</span>        <span style="color: #FF0000; font-weight: bold;">Dim</span> <span style="color: #800000;">prt</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800000;">PartDocument</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">doc</span>        <span style="color: #FF0000; font-weight: bold;">Return</span> <span style="color: #800000;">prt</span>.<span style="color: #800000;">ComponentDefinition</span>.<span style="color: #800000;">Parameters</span>.<span style="color: #800000;">UserParameters</span>    <span style="color: #FF0000; font-weight: bold;">Else</span>        <span style="color: #FF0000; font-weight: bold;">Throw</span> <span style="color: #FF0000; font-weight: bold;">New</span> <span style="color: #800000;">ArgumentOutOfRangeException</span><span style="font-weight: bold;">(</span><span style="color: #008080;">"</span><span style="color: #008080;">Document can be AssemblyDocument or PartDocument</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #FF0000; font-weight: bold;">End</span> <span style="color: #FF0000; font-weight: bold;">If</span><span style="color: #FF0000; font-weight: bold;">End Function</span> <span style="color: #FF0000; font-weight: bold;">Function</span> <span style="color: #800000;">EnsureParameter</span><span style="font-weight: bold;">(</span>                <span style="color: #800000;">userParams</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800000;">UserParameters</span>,                <span style="color: #800000;">paramName</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #FF0000; font-weight: bold;">String</span>,                <span style="color: #FF0000; font-weight: bold;">Optional</span> <span style="color: #800000;">defaultValue</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #FF0000; font-weight: bold;">Double</span> <span style="font-weight: bold;">=</span> <span style="font-weight: bold;">0</span>,                <span style="color: #FF0000; font-weight: bold;">Optional</span> <span style="color: #800000;">units</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #FF0000; font-weight: bold;">String</span> <span style="font-weight: bold;">=</span> <span style="color: #008080;">"</span><span style="color: #008080;">mm</span><span style="color: #008080;">"</span>,                <span style="color: #FF0000; font-weight: bold;">Optional</span> <span style="color: #800000;">comment</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #FF0000; font-weight: bold;">String</span> <span style="font-weight: bold;">=</span> <span style="color: #008080;">""</span><span style="font-weight: bold;">)</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800080; font-weight: bold;">Parameter</span>    <span style="color: #FF0000; font-weight: bold;">Dim</span> <span style="color: #800000;">p</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800080; font-weight: bold;">Parameter</span>    <span style="color: #FF0000; font-weight: bold;">Try</span>        <span style="color: #800000;">p</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">userParams</span><span style="font-weight: bold;">(</span><span style="color: #800000;">paramName</span><span style="font-weight: bold;">)</span>    <span style="color: #FF0000; font-weight: bold;">Catch</span> <span style="color: #800000;">ex</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800000;">Exception</span>        <span style="color: #800000;">p</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">userParams</span>.<span style="color: #800000;">AddByValue</span><span style="font-weight: bold;">(</span><span style="color: #800000;">paramName</span>, <span style="color: #800000;">defaultValue</span>, <span style="color: #800000;">units</span><span style="font-weight: bold;">)</span>        <span style="color: #800000;">p</span>.<span style="color: #800000;">Comment</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">comment</span>    <span style="color: #FF0000; font-weight: bold;">End</span> <span style="color: #FF0000; font-weight: bold;">Try</span>    <span style="color: #FF0000; font-weight: bold;">Return</span> <span style="color: #800000;">p</span><span style="color: #FF0000; font-weight: bold;">End Function</span><span style="color: #FF0000; font-weight: bold;">Function</span> <span style="color: #800000;">EnsureParameterTEXT</span><span style="font-weight: bold;">(</span>                <span style="color: #800000;">userParams</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800000;">UserParameters</span>,                <span style="color: #800000;">paramName</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #FF0000; font-weight: bold;">String</span>,                <span style="color: #FF0000; font-weight: bold;">Optional</span> <span style="color: #800000;">defaultValue</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #FF0000; font-weight: bold;">String</span><span style="font-weight: bold;">=</span> <span style="color: #008080;">""</span>,                <span style="color: #FF0000; font-weight: bold;">Optional</span> <span style="color: #800000;">comment</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #FF0000; font-weight: bold;">String</span> <span style="font-weight: bold;">=</span> <span style="color: #008080;">""</span><span style="font-weight: bold;">)</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800080; font-weight: bold;">Parameter</span>    <span style="color: #FF0000; font-weight: bold;">Dim</span> <span style="color: #800000;">p</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800080; font-weight: bold;">Parameter</span>    <span style="color: #FF0000; font-weight: bold;">Try</span>        <span style="color: #800000;">p</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">userParams</span><span style="font-weight: bold;">(</span><span style="color: #800000;">paramName</span><span style="font-weight: bold;">)</span>    <span style="color: #FF0000; font-weight: bold;">Catch</span> <span style="color: #800000;">ex</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800000;">Exception</span>        <span style="color: #800000;">p</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">userParams</span>.<span style="color: #800000;">AddByValue</span><span style="font-weight: bold;">(</span><span style="color: #800000;">paramName</span>, <span style="color: #800000;">defaultValue</span>, <span style="color: #008080;">"</span><span style="color: #008080;">TEXT</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>        <span style="color: #800000;">p</span>.<span style="color: #800000;">Comment</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">comment</span>    <span style="color: #FF0000; font-weight: bold;">End</span> <span style="color: #FF0000; font-weight: bold;">Try</span>    <span style="color: #FF0000; font-weight: bold;">Return</span> <span style="color: #800000;">p</span><span style="color: #FF0000; font-weight: bold;">End Function</span><span style="color: #FF0000; font-weight: bold;">Function</span> <span style="color: #800000;">EnsureProperty</span><span style="font-weight: bold;">(</span><span style="color: #800000;">propertySet</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800000;">PropertySet</span>, <span style="color: #800000;">propName</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #FF0000; font-weight: bold;">String</span>, <span style="color: #FF0000; font-weight: bold;">Optional</span> <span style="color: #800000;">defaultValue</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #FF0000; font-weight: bold;">String</span>  <span style="font-weight: bold;">=</span> <span style="color: #008080;">""</span><span style="font-weight: bold;">)</span> <span style="color: #FF0000; font-weight: bold;">As</span> &#091;<span style="color: #FF0000; font-weight: bold;">Property</span>&#093;    <span style="color: #FF0000; font-weight: bold;">Dim</span> <span style="color: #800000;">p</span> <span style="color: #FF0000; font-weight: bold;">As</span> &#091;<span style="color: #FF0000; font-weight: bold;">Property</span>&#093;    <span style="color: #FF0000; font-weight: bold;">Try</span>        <span style="color: #800000;">p</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">propertySet</span><span style="font-weight: bold;">(</span><span style="color: #800000;">propName</span><span style="font-weight: bold;">)</span>    <span style="color: #FF0000; font-weight: bold;">Catch</span> <span style="color: #800000;">ex</span> <span style="color: #FF0000; font-weight: bold;">As</span> <span style="color: #800000;">Exception</span>        <span style="color: #800000;">p</span> <span style="font-weight: bold;">=</span> <span style="color: #800000;">propertySet</span>.<span style="color: #800000;">Add</span><span style="font-weight: bold;">(</span><span style="color: #800000;">defaultValue</span>,<span style="color: #800000;">propName</span><span style="font-weight: bold;">)</span>    <span style="color: #FF0000; font-weight: bold;">End</span> <span style="color: #FF0000; font-weight: bold;">Try</span>    <span style="color: #FF0000; font-weight: bold;">Return</span> <span style="color: #800000;">p</span><span style="color: #FF0000; font-weight: bold;">End Function</span></pre></div>]]>
   </description>
   <pubDate>Thu, 31 Jan 2019 11:08:12 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115423&amp;title=pridani-parametru-a-uzivl#115423</guid>
  </item> 
  <item>
   <title><![CDATA[PŘIDÁNÍ PARAMETRŮ A UŽ.IVL. :   t&#345;eba takhle Function EnsureParameter(...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115419&amp;title=pridani-parametru-a-uzivl#115419</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> 28335<br /><strong>Zasláno:</strong> 31.led.2019 v 08:39<br /><br />třeba takhle<div>&nbsp;</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>Function EnsureParameter(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; userParams As UserParameters,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; paramName As String,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Optional defaultValue As String= "",<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Optional comment As String = "") As Parameter<br>&nbsp;&nbsp;&nbsp; Dim p As Parameter<br>&nbsp;&nbsp;&nbsp; Try<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p = userParams(paramName)<br>&nbsp;&nbsp;&nbsp; Catch ex As Exception<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p = userParams.AddByValue(paramName, defaultValue, "TEXT")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; p.Comment = comment<br>&nbsp;&nbsp;&nbsp; End Try<br>&nbsp;&nbsp;&nbsp; Return p<br>End Function</div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Thu, 31 Jan 2019 08:39:33 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115419&amp;title=pridani-parametru-a-uzivl#115419</guid>
  </item> 
  <item>
   <title><![CDATA[PŘIDÁNÍ PARAMETRŮ A UŽ.IVL. : Je mo&#382;n&#233; do tohoto ilogicu dopsat...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115411&amp;title=pridani-parametru-a-uzivl#115411</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=4903">Lukáš Záruba</a><br /><strong>Předmět:</strong> 28335<br /><strong>Zasláno:</strong> 29.led.2019 v 18:19<br /><br />Je možné do tohoto ilogicu dopsat i část která by stejně vkládala textové parametry jako teď číselné parametry ?]]>
   </description>
   <pubDate>Tue, 29 Jan 2019 18:19:58 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115411&amp;title=pridani-parametru-a-uzivl#115411</guid>
  </item> 
  <item>
   <title><![CDATA[PŘIDÁNÍ PARAMETRŮ A UŽ.IVL. : d&#237;ky, u&#382; mi to funguje. ]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115404&amp;title=pridani-parametru-a-uzivl#115404</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=4903">Lukáš Záruba</a><br /><strong>Předmět:</strong> 28335<br /><strong>Zasláno:</strong> 29.led.2019 v 16:27<br /><br />díky, už mi to funguje.&nbsp;<img src="https://www.cadforum.cz/forum/smileys/smiley20.gif" border="0" alt="Thumbs Up" title="Thumbs Up" />]]>
   </description>
   <pubDate>Tue, 29 Jan 2019 16:27:15 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=28335&amp;PID=115404&amp;title=pridani-parametru-a-uzivl#115404</guid>
  </item> 
 </channel>
</rss>