<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic To call a function from button handler in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/to-call-a-function-from-button-handler/m-p/10836918#M132875</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to call a function from a button I added into a form, the problem is that the handler doesn't allow me to call that function because it requires external parameters, which the handler can't read due to input restrictions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fix this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Some code sample:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Public Sub Button&lt;BR /&gt;        Dim&lt;/SPAN&gt; &lt;SPAN&gt;oButton1&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;Button&lt;/SPAN&gt;()
	&lt;SPAN&gt;oForm&lt;/SPAN&gt;.&lt;SPAN&gt;Controls&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oButton1&lt;/SPAN&gt;)
	&lt;SPAN&gt;AddHandler&lt;/SPAN&gt; &lt;SPAN&gt;oButton1&lt;/SPAN&gt;.&lt;SPAN&gt;Click&lt;/SPAN&gt;, &lt;SPAN&gt;AddressOf&lt;/SPAN&gt; &lt;SPAN&gt;oButton1_Click&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;oButton1_Click&lt;/SPAN&gt;(&lt;SPAN&gt;ByVal&lt;/SPAN&gt; &lt;SPAN&gt;oSender&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Object&lt;/SPAN&gt;, &lt;SPAN&gt;ByVal&lt;/SPAN&gt; &lt;SPAN&gt;oEventArgs&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;EventArgs&lt;/SPAN&gt;)
	Call MyClickFunction(oParam)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Dec 2021 23:11:15 GMT</pubDate>
    <dc:creator>dialunau</dc:creator>
    <dc:date>2021-12-21T23:11:15Z</dc:date>
    <item>
      <title>To call a function from button handler</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/to-call-a-function-from-button-handler/m-p/10836918#M132875</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to call a function from a button I added into a form, the problem is that the handler doesn't allow me to call that function because it requires external parameters, which the handler can't read due to input restrictions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I fix this?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Some code sample:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Public Sub Button&lt;BR /&gt;        Dim&lt;/SPAN&gt; &lt;SPAN&gt;oButton1&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;Button&lt;/SPAN&gt;()
	&lt;SPAN&gt;oForm&lt;/SPAN&gt;.&lt;SPAN&gt;Controls&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oButton1&lt;/SPAN&gt;)
	&lt;SPAN&gt;AddHandler&lt;/SPAN&gt; &lt;SPAN&gt;oButton1&lt;/SPAN&gt;.&lt;SPAN&gt;Click&lt;/SPAN&gt;, &lt;SPAN&gt;AddressOf&lt;/SPAN&gt; &lt;SPAN&gt;oButton1_Click&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;oButton1_Click&lt;/SPAN&gt;(&lt;SPAN&gt;ByVal&lt;/SPAN&gt; &lt;SPAN&gt;oSender&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;Object&lt;/SPAN&gt;, &lt;SPAN&gt;ByVal&lt;/SPAN&gt; &lt;SPAN&gt;oEventArgs&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;EventArgs&lt;/SPAN&gt;)
	Call MyClickFunction(oParam)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2021 23:11:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/to-call-a-function-from-button-handler/m-p/10836918#M132875</guid>
      <dc:creator>dialunau</dc:creator>
      <dc:date>2021-12-21T23:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: To call a function from button handler</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/to-call-a-function-from-button-handler/m-p/10837755#M132889</link>
      <description>&lt;P&gt;I guess this is a follow up to your other question. I don't understand your exact problem. but I figured I could show off some solutions for passing parameters around.&lt;/P&gt;&lt;P&gt;Notice&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I defined the variable _occName in the class (not in a function) therefore it's available in all functions. it is set and in the sub New and was used in the function MyClickFunction&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;I defined the public property MyProperty.&amp;nbsp; this is set in the MyClickFunction but used out site the winform class in the rule.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hopefully you answer is solved like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ce5c95;"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;Main&lt;/SPAN&gt;()
	&lt;SPAN style="color: #b2b2b5;"&gt;'//////// GET THE OCCURRENCE NAME ////////&lt;/SPAN&gt;
	&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;occ&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;ComponentOccurrence&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Pick&lt;/SPAN&gt;(
			&lt;SPAN style="color: #db9652;"&gt;SelectionFilterEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;kAssemblyOccurrenceFilter&lt;/SPAN&gt;, 
			&lt;SPAN style="color: #35b173;"&gt;"Select occurrence"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;occName&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;occ&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Name&lt;/SPAN&gt;
	
	&lt;SPAN style="color: #b2b2b5;"&gt;'//////// RUN THE FORM ////////&lt;/SPAN&gt;
	&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oForm&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;WinForm&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;occName&lt;/SPAN&gt;)
	&lt;SPAN style="color: #db9652;"&gt;oForm&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;ShowDialog&lt;/SPAN&gt;()
	
	&lt;SPAN style="color: #db9652;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;oForm&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;MyProperty&lt;/SPAN&gt;)
	
&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Sub&lt;/SPAN&gt;

&lt;SPAN style="color: #ce5c95;"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Class&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;WinForm&lt;/SPAN&gt;
	&lt;SPAN style="color: #ce5c95;"&gt;Inherits&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Windows&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Forms&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Form&lt;/SPAN&gt;
	
	&lt;SPAN style="color: #ce5c95;"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oLargerFont&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Drawing&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Font&lt;/SPAN&gt; = &lt;SPAN style="color: #ce5c95;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;Font&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Arial"&lt;/SPAN&gt;, 10)
	&lt;EM&gt;&lt;STRONG&gt;&lt;U&gt;&lt;SPAN style="color: #ce5c95;"&gt;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;P&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;rivate&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;_occName&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt;
	&lt;SPAN style="color: #ce5c95;"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Property&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;MyProperty&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/EM&gt;
		
	&lt;SPAN style="color: #b2b2b5;"&gt;'//////// CREATE NEW INSTANCE ////////&lt;/SPAN&gt;
	&lt;SPAN style="color: #ce5c95;"&gt;Public&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;New&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;occName&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt;)
		&lt;SPAN style="color: #db9652;"&gt;oForm&lt;/SPAN&gt; = &lt;SPAN style="color: #ce5c95;"&gt;Me&lt;/SPAN&gt;
		&lt;SPAN style="color: #db9652;"&gt;_occName&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;occName&lt;/SPAN&gt;
		
		&lt;SPAN style="color: #b2b2b5;"&gt;'//////// PARAMETERS FOR THE FORM ////////&lt;/SPAN&gt;
		&lt;SPAN style="color: #ce5c95;"&gt;With&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oForm&lt;/SPAN&gt;
			.&lt;SPAN style="color: #db9652;"&gt;FormBorderStyle&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;FormBorderStyle&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;FixedToolWindow&lt;/SPAN&gt;
			.&lt;SPAN style="color: #db9652;"&gt;StartPosition&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;FormStartPosition&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;CenterScreen&lt;/SPAN&gt;
			.&lt;SPAN style="color: #db9652;"&gt;Width&lt;/SPAN&gt; = 300
			.&lt;SPAN style="color: #db9652;"&gt;Height&lt;/SPAN&gt; = 700
			.&lt;SPAN style="color: #db9652;"&gt;TopMost&lt;/SPAN&gt; = &lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;
			.&lt;SPAN style="color: #db9652;"&gt;Font&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;oLargerFont&lt;/SPAN&gt;
			.&lt;SPAN style="color: #db9652;"&gt;Text&lt;/SPAN&gt; = &lt;SPAN style="color: #35b173;"&gt;"Component Select"&lt;/SPAN&gt;
			.&lt;SPAN style="color: #db9652;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #35b173;"&gt;"Components"&lt;/SPAN&gt;
			.&lt;SPAN style="color: #db9652;"&gt;ShowInTaskbar&lt;/SPAN&gt; = &lt;SPAN style="color: #ce5c95;"&gt;False&lt;/SPAN&gt;
		&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;With&lt;/SPAN&gt;
		
		&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oButton1&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;Button&lt;/SPAN&gt;()
		&lt;SPAN style="color: #ce5c95;"&gt;With&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oButton1&lt;/SPAN&gt;
			.&lt;SPAN style="color: #db9652;"&gt;Text&lt;/SPAN&gt; = &lt;SPAN style="color: #35b173;"&gt;"MODIFY"&lt;/SPAN&gt;
			.&lt;SPAN style="color: #db9652;"&gt;Top&lt;/SPAN&gt; = 25
			.&lt;SPAN style="color: #db9652;"&gt;Left&lt;/SPAN&gt; = 25
			.&lt;SPAN style="color: #db9652;"&gt;Enabled&lt;/SPAN&gt; = &lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;
			.&lt;SPAN style="color: #db9652;"&gt;AutoSize&lt;/SPAN&gt; = &lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;
		&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;With&lt;/SPAN&gt;
		&lt;SPAN style="color: #db9652;"&gt;oForm&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Controls&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;oButton1&lt;/SPAN&gt;)
		&lt;SPAN style="color: #ce5c95;"&gt;AddHandler&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oButton1&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Click&lt;/SPAN&gt;, &lt;SPAN style="color: #ce5c95;"&gt;AddressOf&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oButton1_Click&lt;/SPAN&gt;
		
		&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oOptions&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;List&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;Of&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt;)
		&lt;SPAN style="color: #db9652;"&gt;oOptions&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;AddRange&lt;/SPAN&gt;({&lt;SPAN style="color: #35b173;"&gt;"Option 1"&lt;/SPAN&gt;,&lt;SPAN style="color: #35b173;"&gt;"Option 2"&lt;/SPAN&gt;,&lt;SPAN style="color: #35b173;"&gt;"Option 3"&lt;/SPAN&gt;})

		&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oGroupBox&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;GroupBox&lt;/SPAN&gt; = &lt;SPAN style="color: #ce5c95;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;GroupBox&lt;/SPAN&gt;()
		&lt;SPAN style="color: #db9652;"&gt;oGroupBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Left&lt;/SPAN&gt; = 25
		&lt;SPAN style="color: #db9652;"&gt;oGroupBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Width&lt;/SPAN&gt; = 150
		&lt;SPAN style="color: #db9652;"&gt;oGroupBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Top&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;oButton1&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Bottom&lt;/SPAN&gt; + 20
		&lt;SPAN style="color: #db9652;"&gt;oGroupBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Height&lt;/SPAN&gt; = 100
		&lt;SPAN style="color: #db9652;"&gt;oGroupBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Text&lt;/SPAN&gt; = &lt;SPAN style="color: #35b173;"&gt;"Choose"&lt;/SPAN&gt;
		&lt;SPAN style="color: #db9652;"&gt;oForm&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Controls&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;oGroupBox&lt;/SPAN&gt;)
		
		&lt;SPAN style="color: #b2b2b5;"&gt;'//////// RADIOBUTTON PARAMETERS ////////&lt;/SPAN&gt;
		&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oRadioButton1&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;RadioButton&lt;/SPAN&gt;()
		&lt;SPAN style="color: #db9652;"&gt;oGroupBox&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Controls&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;oRadioButton1&lt;/SPAN&gt;)
		&lt;SPAN style="color: #db9652;"&gt;oRadioButton1&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Text&lt;/SPAN&gt; = &lt;SPAN style="color: #db9652;"&gt;occName&lt;/SPAN&gt;
		&lt;SPAN style="color: #db9652;"&gt;oRadioButton1&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Top&lt;/SPAN&gt; = 20
		&lt;SPAN style="color: #db9652;"&gt;oRadioButton1&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Left&lt;/SPAN&gt; = 35
		&lt;SPAN style="color: #db9652;"&gt;oRadioButton1&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;AutoSize&lt;/SPAN&gt; = &lt;SPAN style="color: #ce5c95;"&gt;True&lt;/SPAN&gt;
	&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Sub&lt;/SPAN&gt;
  
	&lt;SPAN style="color: #ce5c95;"&gt;Private&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oButton1_Click&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;ByVal&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oSender&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Object&lt;/SPAN&gt;, &lt;SPAN style="color: #ce5c95;"&gt;ByVal&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;oEventArgs&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;System&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;EventArgs&lt;/SPAN&gt;)
		&lt;SPAN style="color: #db9652;"&gt;MyClickFunction&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"My param"&lt;/SPAN&gt;)
	&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Sub&lt;/SPAN&gt;
	
	&lt;SPAN style="color: #ce5c95;"&gt;Private&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Sub&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;MyClickFunction&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;oParam&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt;)
		&lt;SPAN style="color: #db9652;"&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN style="color: #db9652;"&gt;_occName&lt;/SPAN&gt; + &lt;SPAN style="color: #35b173;"&gt;" : "&lt;/SPAN&gt; + &lt;SPAN style="color: #db9652;"&gt;oParam&lt;/SPAN&gt;)
		&lt;SPAN style="color: #db9652;"&gt;MyProperty&lt;/SPAN&gt; = &lt;SPAN style="color: #35b173;"&gt;"I set my property here but it is used in the rule class"&lt;/SPAN&gt;
	&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Sub&lt;/SPAN&gt;
&lt;SPAN style="color: #ce5c95;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;Class&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 11:31:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/to-call-a-function-from-button-handler/m-p/10837755#M132889</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2021-12-22T11:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: To call a function from button handler</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/to-call-a-function-from-button-handler/m-p/10838784#M132912</link>
      <description>&lt;P&gt;That was really helpful, now I can access my data between classes and functions. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 21:53:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/to-call-a-function-from-button-handler/m-p/10838784#M132912</guid>
      <dc:creator>dialunau</dc:creator>
      <dc:date>2021-12-22T21:53:46Z</dc:date>
    </item>
  </channel>
</rss>

