<?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 Re: Problem with Macro to load triangle block definition in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874497#M4237</link>
    <description>&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;FORM BLOCK
EDIT BLOCKTYPE TRIANGLES

// Open Import Browser
STRING $VarModel = ''
$VarModel = FILESELECT "Please select a exported ViewMill state file"


// Load exported ViewMill state model as new Block
GET BLOCK $VarModel


EDIT BLOCK COORDINATE WORLD
DRAW BLOCK
BLOCK ACCEPT&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Apr 2023 12:38:42 GMT</pubDate>
    <dc:creator>iamcdn79</dc:creator>
    <dc:date>2023-04-05T12:38:42Z</dc:date>
    <item>
      <title>Problem with Macro to load triangle block definition</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874360#M4236</link>
      <description>&lt;P&gt;Hello. I'm not sure of the correct syntax I need to get this to work. I'm trying to write a macro to load an exported ViemMill model as block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;FORM BLOCK
EDIT BLOCKTYPE TRIANGLES

// Open Import Browser
STRING $VarModel = ''
$VarModel = FILESELECT "Please select a exported ViewMill state file"


// Load exported ViewMill state model as new Block
GET BLOCK FILEOPEN $VarModel


EDIT BLOCK COORDINATE WORLD
DRAW BLOCK
BLOCK ACCEPT&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm getting the following error: "Unable to open block definition file '$VarModel' from line 10.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 11:54:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874360#M4236</guid>
      <dc:creator>Jason_McDaniel</dc:creator>
      <dc:date>2023-04-05T11:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Macro to load triangle block definition</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874497#M4237</link>
      <description>&lt;P&gt;Try&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;FORM BLOCK
EDIT BLOCKTYPE TRIANGLES

// Open Import Browser
STRING $VarModel = ''
$VarModel = FILESELECT "Please select a exported ViewMill state file"


// Load exported ViewMill state model as new Block
GET BLOCK $VarModel


EDIT BLOCK COORDINATE WORLD
DRAW BLOCK
BLOCK ACCEPT&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 12:38:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874497#M4237</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2023-04-05T12:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Macro to load triangle block definition</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874515#M4238</link>
      <description>&lt;P&gt;Try this....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FORM BLOCK&lt;BR /&gt;EDIT BLOCKTYPE TRIANGLES&lt;BR /&gt;EDIT BLOCK COORDINATE WORLD&lt;BR /&gt;// Open Import Browser&lt;BR /&gt;STRING $VarModel = ''&lt;BR /&gt;$VarModel = FILESELECT "Please select a exported ViewMill state file"&lt;/P&gt;&lt;P&gt;// Load exported ViewMill state model as new Block&lt;BR /&gt;GET BLOCK $VarModel&lt;BR /&gt;BLOCK ACCEPT&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 12:43:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874515#M4238</guid>
      <dc:creator>kevin.hammond3WX4X</dc:creator>
      <dc:date>2023-04-05T12:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Macro to load triangle block definition</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874541#M4239</link>
      <description>This works. Thank you. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 05 Apr 2023 12:52:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874541#M4239</guid>
      <dc:creator>Jason_McDaniel</dc:creator>
      <dc:date>2023-04-05T12:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Macro to load triangle block definition</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874543#M4240</link>
      <description>This works. I don't know why I thought I needed the FILEOPEN command there. Thank you. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Wed, 05 Apr 2023 12:52:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874543#M4240</guid>
      <dc:creator>Jason_McDaniel</dc:creator>
      <dc:date>2023-04-05T12:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Macro to load triangle block definition</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874682#M4241</link>
      <description>&lt;P&gt;FILEOPEN raises the file browser and puts you into a state where PowerMill variables aren't known. I would recommend not using FILEOPEN FILESAVE when writing macros unless you really want the user to interact with the file system via the browser.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 13:36:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874682#M4241</guid>
      <dc:creator>urizenYHS3W</dc:creator>
      <dc:date>2023-04-05T13:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Macro to load triangle block definition</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874761#M4242</link>
      <description>Good to know. Thank you.</description>
      <pubDate>Wed, 05 Apr 2023 13:58:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/problem-with-macro-to-load-triangle-block-definition/m-p/11874761#M4242</guid>
      <dc:creator>Jason_McDaniel</dc:creator>
      <dc:date>2023-04-05T13:58:35Z</dc:date>
    </item>
  </channel>
</rss>

