<?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: I have an .stl file that I want to turn into a solid in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/i-have-an-stl-file-that-i-want-to-turn-into-a-solid/m-p/13624443#M301</link>
    <description>&lt;LI-CODE lang="general"&gt;Sub ImportFunc()
    ' Set STL translator's CLSID and STL file name.
    Dim strCLSID As String
    Dim strFileName As String
    strCLSld = "{81CA7D27-2DBE-4058-8188-9136F85FC859}"
    strFileName = "C:\Part1.stl"
      
    Dim oAddIns As ApplicationAddIns
    Set oAddIns = ThisApplication.ApplicationAddIns
    
    ' Find the Rhino translator, get the CLSID and activate it.
    Dim oTransAddIn As TranslatorAddIn
    Set oTransAddIn = oAddIns.ItemById(strCLSld)
    oTransAddIn.Activate
    
    ' Get the transient object and take it as a factory to produce other objects
    Dim transientObj As TransientObjects
    Set transientObj = ThisApplication.TransientObjects
    
    ' Prepare the first parameter for Open(), the file name
    Dim file As DataMedium
    Set file = transientObj.CreateDataMedium
    file.FileName = strFileName
    
    ' Prepare the second parameter for Open(), the open type.
    Dim context As TranslationContext
    Set context = transientObj.CreateTranslationContext
    context.Type = kDataDropIOMechanism
    
    ' Prepare the 3rd parameter for Open(), the options.
    Dim options As NameValueMap
    Set options = transientObj.CreateNameValueMap
    options.Value("SaveComponentDuringLoad") = False
    options.Value("SaveLocationIndex") = 0
    options.Value("ComponentDestFolder") = ""
    options.Value("ImportUnit") = 1
    options.Value("ImportColor") = True
    options.Value("ImportColorIndex") = 0
    
    ' Prepare the fourth parameter for Open(), the final document.
    Dim sourceObj As Object
    
    ' Open the STL file.
    oTransAddIn.Open file, context, options, sourceObj
End Sub&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 12 May 2025 00:33:22 GMT</pubDate>
    <dc:creator>Stakin</dc:creator>
    <dc:date>2025-05-12T00:33:22Z</dc:date>
    <item>
      <title>I have an .stl file that I want to turn into a solid</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/i-have-an-stl-file-that-i-want-to-turn-into-a-solid/m-p/13623782#M300</link>
      <description>&lt;P&gt;I have used the Mesh Enabler add-in to try and convert an .stl object into a solid that I can scale. However, all I get is a mesh feature that I cannot do basically anything with it. Is there a way to turn it into a solid .ipt or .stp object?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach both the .stl file and the converted-with Mesh Enabler file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PD.: It would be useful if I could do this either in Inventor or Fusion360.&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 02:23:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/i-have-an-stl-file-that-i-want-to-turn-into-a-solid/m-p/13623782#M300</guid>
      <dc:creator>redondelosCRREA</dc:creator>
      <dc:date>2025-05-11T02:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: I have an .stl file that I want to turn into a solid</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/i-have-an-stl-file-that-i-want-to-turn-into-a-solid/m-p/13624443#M301</link>
      <description>&lt;LI-CODE lang="general"&gt;Sub ImportFunc()
    ' Set STL translator's CLSID and STL file name.
    Dim strCLSID As String
    Dim strFileName As String
    strCLSld = "{81CA7D27-2DBE-4058-8188-9136F85FC859}"
    strFileName = "C:\Part1.stl"
      
    Dim oAddIns As ApplicationAddIns
    Set oAddIns = ThisApplication.ApplicationAddIns
    
    ' Find the Rhino translator, get the CLSID and activate it.
    Dim oTransAddIn As TranslatorAddIn
    Set oTransAddIn = oAddIns.ItemById(strCLSld)
    oTransAddIn.Activate
    
    ' Get the transient object and take it as a factory to produce other objects
    Dim transientObj As TransientObjects
    Set transientObj = ThisApplication.TransientObjects
    
    ' Prepare the first parameter for Open(), the file name
    Dim file As DataMedium
    Set file = transientObj.CreateDataMedium
    file.FileName = strFileName
    
    ' Prepare the second parameter for Open(), the open type.
    Dim context As TranslationContext
    Set context = transientObj.CreateTranslationContext
    context.Type = kDataDropIOMechanism
    
    ' Prepare the 3rd parameter for Open(), the options.
    Dim options As NameValueMap
    Set options = transientObj.CreateNameValueMap
    options.Value("SaveComponentDuringLoad") = False
    options.Value("SaveLocationIndex") = 0
    options.Value("ComponentDestFolder") = ""
    options.Value("ImportUnit") = 1
    options.Value("ImportColor") = True
    options.Value("ImportColorIndex") = 0
    
    ' Prepare the fourth parameter for Open(), the final document.
    Dim sourceObj As Object
    
    ' Open the STL file.
    oTransAddIn.Open file, context, options, sourceObj
End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 12 May 2025 00:33:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/i-have-an-stl-file-that-i-want-to-turn-into-a-solid/m-p/13624443#M301</guid>
      <dc:creator>Stakin</dc:creator>
      <dc:date>2025-05-12T00:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: I have an .stl file that I want to turn into a solid</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/i-have-an-stl-file-that-i-want-to-turn-into-a-solid/m-p/13625715#M302</link>
      <description>&lt;P&gt;Just dropping the Link in here to the Inventor API online help 'Sample' documentation for this, called "Open an STL file using the STL Translator Sample".&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=ImportSTLslator_Sample" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=ImportSTLslator_Sample&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But just so you know, that example is in VBA, not iLogic or vb.net, and is designed for use from Inventor, not Fusion 360.&lt;/P&gt;
&lt;P&gt;If you need it in a different programming language, such as for use in an iLogic rule, just let us know.&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 12:37:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/i-have-an-stl-file-that-i-want-to-turn-into-a-solid/m-p/13625715#M302</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-05-12T12:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: I have an .stl file that I want to turn into a solid</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/i-have-an-stl-file-that-i-want-to-turn-into-a-solid/m-p/13626455#M303</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8098019"&gt;@redondelosCRREA&lt;/a&gt;&amp;nbsp;- I'm not seeing any attachments. You should be able to right-click on the mesh feature and Convert to Base Feature&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jjstr8_1-1747070940706.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1532594i4EFB4F2C5E77CDB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jjstr8_1-1747070940706.png" alt="jjstr8_1-1747070940706.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After that, you can do a Direct Edit to scale, move, or rotate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jjstr8_0-1747070860814.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1532593i370209125B3E29F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jjstr8_0-1747070860814.png" alt="jjstr8_0-1747070860814.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2025 17:32:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/i-have-an-stl-file-that-i-want-to-turn-into-a-solid/m-p/13626455#M303</guid>
      <dc:creator>jjstr8</dc:creator>
      <dc:date>2025-05-12T17:32:13Z</dc:date>
    </item>
  </channel>
</rss>

