I'm trying to insert a lofted bend between two splines using a macro. Here's the code I'm currently trying to use:
Call Part.Extension.SelectByID2("SideplatePath1", "SKETCH", 0, 0, 0, False, 1, Nothing, 0) | |
Call Part.Extension.SelectByID2("SideplatePath3", "SKETCH", 0, 0, 0, True, 1, Nothing, 0) | |
Part.InsertSheetMetalLoftedBend 0, 0.0127 |
The help page for the method doesn't give any hints as to how to select the boundaries for the loft. Preselecting them as above returns an "Object doesn't support this property or method" error. However, with the sketches thus preselected, if I manually create the loft, it properly accepts them as the loft boundaries and lets me move forward. Anyone have any suggestions on how to use this tool? I haven't done sheet metal with a macro before; is there a requirement to first create a sheet metal feature or does that all happen automatically as when creating bent parts manually?
SolidworksApi macros