The macro works very well. But then my tab is called "Plan", which is normal.
I would like her to get the name of the drawing. This drawing name is stored in a property of the numbered drawing NUMERO_DESSIN my home. but I can't give the value of my NUMERO_DESSIN property to a VBA variable.
I tried with the internal properties of Solidworks like "SW-Sheet Scale", but that doesn't work either. It can't retrieve the value of the property to put it in a VBA variable.
In fact, I succeeded with the GetCustomInfoValue property that you were prosperiping.
Except that I would like to get the number of the drawing. And NUMERO_DESSIN is a piece property. Ore I can only make your function work with the sproperties plans. A solution?
You would either have to retrieve the part property of the part incoprored in the plane, or create a plan property that has the value of the part property NUMERO_DESSIN.
In fact, I succeeded with the GetCustomInfoValue property that you were prosperiping.
Except that I would like to get the number of the drawing. And NUMERO_DESSIN is a piece property. Ore I can only make your function work with the sproperties plans. A solution?
You would either have to retrieve the part property of the part incoprored in the plane, or create a plan property that has the value of the part property NUMERO_DESSIN.