<?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 : VYPLNĚNÍ HODNOT PŘIDANÝCH PARAMETRŮ</title>
  <link>https://www.cadforum.cz/forum/</link>
  <description><![CDATA[Toto je XML obsahový kanál serveru; CAD F&#243;rum : iLogic a ETO : VYPLNĚNÍ HODNOT PŘIDANÝCH PARAMETRŮ]]></description>
  <pubDate>Thu, 07 May 2026 06:14:05 +0000</pubDate>
  <lastBuildDate>Fri, 15 Feb 2019 11:42:58 +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=28418</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[VYPLNĚNÍ HODNOT PŘIDANÝCH PARAMETRŮ :  N&#225;vratovou hodnotou funkce EnsureParameter...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=28418&amp;PID=115616&amp;title=vyplneni-hodnot-pridanych-parametru#115616</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> 28418<br /><strong>Zasláno:</strong> 15.úno.2019 v 11:42<br /><br />Návratovou hodnotou funkce EnsureParameter je objekt typu Parameter. Doporučuju si přečíst dokumentaci k tomuto objektu.<div>&nbsp;</div><div>Nejdůležitější jsou pro vás v tuto chvíli p.Value a p.Expression</div>]]>
   </description>
   <pubDate>Fri, 15 Feb 2019 11:42:58 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=28418&amp;PID=115616&amp;title=vyplneni-hodnot-pridanych-parametru#115616</guid>
  </item> 
  <item>
   <title><![CDATA[VYPLNĚNÍ HODNOT PŘIDANÝCH PARAMETRŮ : Zdrav&#237;m,Jak mi pan Navara v p&#345;edchoz&#237;m...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=28418&amp;PID=115615&amp;title=vyplneni-hodnot-pridanych-parametru#115615</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> 28418<br /><strong>Zasláno:</strong> 15.úno.2019 v 11:34<br /><br />Zdravím,<div><br></div><div>Jak mi pan Navara v předchozím dotazu ukázal, tak jsem schopen přidat jakoukoliv vlastnost nebo parametr. Teď bych potřeboval vědět jak vložím hodnoty do těchto parametrů.</div><div>Mám toto pravidlo, které mi založí UŽIVATELSKÉ PARAMETRY :</div><div>&nbsp;</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;">EnsureParameterMM</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">DELKA</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;">D&#65533;LKA CEL&#65533;HO PROFILU</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameterMM</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PU_DIRA_PRVNI_Z_LEVA</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;">N&#65533;&#65533;RT - PRVN&#65533; V &#65533;AD&#65533; OD HRANY</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameterMM</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PU_DIRA_POSLEDNI_Z_LEVA</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;">N&#65533;&#65533;RT - POSLEDN&#65533; V &#65533;AD&#65533; OD HRANY</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameterUL</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PU_DIRA_POCET</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;">POLE - PO&#65533;ET PRVK&#65533;</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameterMM</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PU_DIRA_ROZTEC</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;">POLE - ROZTE&#65533; PRVK&#65533;</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameterMM</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PU_DIRA_LINIE</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;">LINIE - D&#65533;LKA CEL&#65533;HO POLE</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameterMM</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PU_DIRA_ROZTEC_ODSAZENI</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;">MIN. ODSAZEN&#65533; OD HRANY ( DOPO&#65533;ET ROZD&#65533;LU)</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameterMM</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PU_DIRA_ROZTEC_ODSATENI_OD_KONCU</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;">MIN. ODSAZEN&#65533; OD HRANY</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameterMM</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PU_DIRA_ROZTEC_DOPORUCENA</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;">P&#65533;IBLI&#65533;N&#65533; ROZTEC</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameterUL</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PU_VYKRES_POCET_ROZTECI</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;">PRO V&#65533;KRES</span><span style="color: #008080;">"</span><span style="font-weight: bold;">)</span>    <span style="color: #800000;">EnsureParameterMM</span><span style="font-weight: bold;">(</span><span style="color: #800000;">userParams</span>, <span style="color: #008080;">"</span><span style="color: #008080;">PU_VYKRES_DIRA_ROZTEC</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;">PRO V&#65533;KRES</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;">EnsureParameterMM</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;">EnsureParameterUL</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;">ul</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></pre><pre><br></pre><pre><div style="font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal;">Funguje to skvěle.</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal;">Já bych ještě potřeboval ukázat jak mám do těchto přidaných parametrů vložit hodnoty, v tomto případě se nejedná jen o konkrétní čísla ale i o vzorce. Viz tabulka níže:</div><div style="font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal;"><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal;"><img src="uploads/4903/POLE_EXCEL_2019-02-15_11-34-07.JPG" height="382" width="1340" border="0" /><br></div></pre></div>]]>
   </description>
   <pubDate>Fri, 15 Feb 2019 11:34:49 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=28418&amp;PID=115615&amp;title=vyplneni-hodnot-pridanych-parametru#115615</guid>
  </item> 
 </channel>
</rss>