ds-blue-logo
Preview  |  SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
KMKarl Madison14/10/2024

Hello, I debugging a code and I need to select the body of the flat pattern which is currently activated. I used this :   Set swBody = flatPattern.GetBody but the body is not selected. 

Here is the code :

Sub ExportFlatPattern(part As SldWorks.PartDoc, flatPattern As SldWorks.Feature, outFilePath As String, opts As SheetMetalOptions_e, conf As String)
   
   Dim swModel As SldWorks.ModelDoc2
Set swModel = swApp.ActiveDo