<?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>tema API: Setting Stock From Curve en FeatureCAM Forum</title>
    <link>https://forums.autodesk.com/t5/featurecam-forum/api-setting-stock-from-curve/m-p/8155665#M3347</link>
    <description>&lt;P&gt;The FMStock member SetDimmensions() has an optional parameter of StockCurve with type string. My goal is obviously to generate the stock from an existing curve. If this member function is the correct way to go about the issue great, what is this parameter expecting? Ive tried passing it the name of the curve, and implicitly casting string to the Curve variable. If not what is the best way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jul 2018 20:27:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-25T20:27:54Z</dc:date>
    <item>
      <title>API: Setting Stock From Curve</title>
      <link>https://forums.autodesk.com/t5/featurecam-forum/api-setting-stock-from-curve/m-p/8155665#M3347</link>
      <description>&lt;P&gt;The FMStock member SetDimmensions() has an optional parameter of StockCurve with type string. My goal is obviously to generate the stock from an existing curve. If this member function is the correct way to go about the issue great, what is this parameter expecting? Ive tried passing it the name of the curve, and implicitly casting string to the Curve variable. If not what is the best way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 20:27:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/featurecam-forum/api-setting-stock-from-curve/m-p/8155665#M3347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-25T20:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: API: Setting Stock From Curve</title>
      <link>https://forums.autodesk.com/t5/featurecam-forum/api-setting-stock-from-curve/m-p/8156800#M3359</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@Anonymous&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for posting!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are correct. Using the method "SetDimensions" is the right way of setting a stock curve. There is a little quirk when setting a stock curve. This is that you &lt;STRONG&gt;need&lt;/STRONG&gt; to set the width, length and thickness, even though they aren't used with a stock curve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code you can use to set a stock curve is as follows;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;!--StartFragment --&gt;&lt;/P&gt;
&lt;PRE&gt;    &lt;SPAN&gt;Dim&lt;/SPAN&gt; doc &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;FMDocument&lt;/SPAN&gt;
    &lt;SPAN&gt;Set&lt;/SPAN&gt; doc = &lt;SPAN&gt;Application.ActiveDocument&lt;/SPAN&gt;

    &lt;SPAN&gt;Dim&lt;/SPAN&gt; stock &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;FMStock&lt;/SPAN&gt;
    &lt;SPAN&gt;Set&lt;/SPAN&gt; stock = doc&lt;SPAN&gt;.Stock&lt;/SPAN&gt;

    &lt;SPAN&gt;Dim&lt;/SPAN&gt; curve &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;

    &lt;STRONG&gt;stock.SetDimensions(,2000,2000,30,,,,,"curve2")&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;!--EndFragment --&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps! If this answers your query, please accept this reply as a solution.&amp;nbsp;If not, please reply to this post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 09:50:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/featurecam-forum/api-setting-stock-from-curve/m-p/8156800#M3359</guid>
      <dc:creator>spencer.hardcastle</dc:creator>
      <dc:date>2018-07-26T09:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: API: Setting Stock From Curve</title>
      <link>https://forums.autodesk.com/t5/featurecam-forum/api-setting-stock-from-curve/m-p/8157157#M3364</link>
      <description>&lt;P&gt;Ahhh yet another quirk withing the FC API! Your solution pointed me in the right direction. I assume your proposed solution was directed at milling setups, as I found that when creating a turning document, the Length, OD, and ID parameters need to be filled in for the stock curve to work. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 12:26:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/featurecam-forum/api-setting-stock-from-curve/m-p/8157157#M3364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-26T12:26:05Z</dc:date>
    </item>
  </channel>
</rss>

