Cannot get properties off sheet metal cut list item

Hi,

I ran into a problem when programming an application which makes sheetmetal drawings and calculations for further processing.

I'm using SW2011 and I want to get the properties of a sheet metal cut list item like:

- Bounding Box Length

- Cut Outs

- Bounding Box Area

- ...

All this properties are summarized in the custom properties of the cut list item.

For this, I'm using : (I'm programming in C#)

               //SELECTING

               bool boolstatus = swModel.Extension.SelectByID2("Cut-List-Item1", "SUBWELDFOLDER", 0, 0, 0, false, 0, null, 0);

               //GETTING SELECTED OBJECT
                SelectionMgr swSelMgr = (SelectionMgr)swModel.SelectionManager;
                Feature swFeat = (Feature)swSelMgr.GetSelectedObject6(1, 0);

                CustomPropertyManager oCustPropMngr = swFeat.CustomPropertyManager;

                //GETTING CUSTOM PROPERTY NAMES

                object[] custPropNames = (object[])oCustPropMngr.GetNames();

                //GETTING THE VALUES

                oCustPropMngr.Get2(sProperty, out sValue, out sResolvedvalue);

(First I do: myBodyFolder.UpdateCutList(), otherwise the bounding box mesurements are not calculated)

I know this code works, but only if the user already manually openend the custom properties dialog and closed it again without doing anything else, and then saved the part.

I also used the SwDocumentMgr, but the same thing happens.

So I'm looking for a chunk of code that will open the custom property window and then closes it, or some other update statement.

I'm desperately appreciating any form of help.

Greetings,

Jeroen

SolidworksApi macros