FeatureByName and cut lists

I am having no luck getting FeatureByName to work properly for cut lists.  C++, COM and VB all return NULL or Nothing.

<p>Dim swApp As SldWorks.SldWorks<br>Dim mDoc As ModelDoc2<br>Dim pDoc As PartDoc<br>Dim feat As Feature<br>Dim folder As BodyFolder<br>Sub main()<br>    Set swApp = Application.SldWorks<br>    Set mDoc = swApp.ActiveDoc<br>    Set pDoc = mDoc<br>    Set feat = pDoc.FeatureByName("Cut list")<br>    Set folder = feat.GetSpecificFeature2<br>    Debug.Print folder.Type<br>End Sub</p><br>

I've tried all different variations such as "Cut List", "Cut list", "Cut list(1)" to no avail.  Works great for othe folder types (solid bodies, surface bodies, sub folders, etc).  Just not for cut lists.

Jim S.

SolidworksApi macros
Answers 2
SF
SF 2009-12-21 Best Answer
The Cut-List folder is also named "Solid Bodies". So use this name to retrieve the pointer to the BodyFolder.
JS
JS 2009-12-21

A bit unintuitive.  And the folder type is still SolidBodyFolder.

After reading the help more closely, the CutListFolder type is associated with subfolders of the Cut list folder.  With this knowledge in hand, things work as expected.

Jim S.