Print within a sub - Grasshopper2024-03-29T10:54:08Zhttps://www.grasshopper3d.com/forum/topics/print-within-a-sub?commentId=2985220%3AComment%3A390711&x=1&feed=yes&xn_auth=noHi David,
Thank you very mu…tag:www.grasshopper3d.com,2011-08-24:2985220:Comment:3907112011-08-24T07:50:19.885ZVictor Leunghttps://www.grasshopper3d.com/profile/VictorLeung
<p>Hi David,</p>
<p> </p>
<p>Thank you very much for the explanation. I thought about the <strong>me</strong>, but had no idea how to use it in this case.</p>
<p> </p>
<p>Victor</p>
<p>Hi David,</p>
<p> </p>
<p>Thank you very much for the explanation. I thought about the <strong>me</strong>, but had no idea how to use it in this case.</p>
<p> </p>
<p>Victor</p> Hi Victor,The Print method be…tag:www.grasshopper3d.com,2011-08-24:2985220:Comment:3906112011-08-24T07:07:56.708ZDavid Reeveshttps://www.grasshopper3d.com/profile/DavidReeves
Hi Victor,<br></br><br></br>The Print method belongs to the Script_Instance class. In order to access it within a custom class you could pass the current instance of Script_Instance as an argument to your PrintPosH method.<br></br><br></br>
<p>Public Sub PrintPosH(<strong>ByVal sI as Script_Instance</strong>)</p>
<p> <strong>sI</strong>.Print(PosH)</p>
<p> End Sub</p>
<p> </p>
<p>Use the "me" keyword to pass the current instance of Script_Instance as an argument within RunScript.</p>
<p>Dim vP as new…</p>
Hi Victor,<br/><br/>The Print method belongs to the Script_Instance class. In order to access it within a custom class you could pass the current instance of Script_Instance as an argument to your PrintPosH method.<br/><br/>
<p>Public Sub PrintPosH(<strong>ByVal sI as Script_Instance</strong>)</p>
<p> <strong>sI</strong>.Print(PosH)</p>
<p> End Sub</p>
<p> </p>
<p>Use the "me" keyword to pass the current instance of Script_Instance as an argument within RunScript.</p>
<p>Dim vP as new VertPackage()<br/>vP.PrintPosH(<strong>me</strong>) </p>