Solidworks API retrieve all dimensions of a drawing

Hello

 

I am looking for a way to retrieve all the dimensions of a drawing and compile them on an excel file.

 

Do you have any ideas for recovering the dimensions of a drawing? The rest I think I can manage.

 

Thank you in advance,

Gautier.

Maybe this macro...

Cdlt


addflagsandexportdims.swp

Hello

 

Yes, that's exactly what I want, thank you. However when I launch your macro, I get a beug at this line:

"nNumProp=swconfig. GetCustomProperties(vPropName, vPropValue, vproptype)".

 

Apparently this line: "swView.GetReferencedModelName" gives me an empty name.

 

Any ideas?

On the other hand, do you know the method to do the same thing but with geometric tolerances?

 

Thank you in advance,