Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

spencer.hardcastle
en respuesta a: Anonymous

Hi @Anonymous

 

Thanks for posting!

 

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 need to set the width, length and thickness, even though they aren't used with a stock curve.

 

The code you can use to set a stock curve is as follows;


    Dim doc As FMDocument
    Set doc = Application.ActiveDocument

    Dim stock As FMStock
    Set stock = doc.Stock

    Dim curve As String

    stock.SetDimensions(,2000,2000,30,,,,,"curve2")

 

I hope this helps! If this answers your query, please accept this reply as a solution. If not, please reply to this post.

 


Spencer Hardcastle
Manager of Customer Advocacy - Autodesk Fusion