Automatically Rename Tabs (New Sheet) in a Solidworks MEP

Hello 

 

As said in the title, I'm looking for a way to automatically rename my Solidworks onflets (which are basically called "Sheet1").

 

I have a variable that I use for my title block, is there a way to rename this tab with the value of this variable?

 

Thank you in advance.

 

Sincerely,

 

Elise KOENIG

Hello

Yes you have to use a SolidWorks macro, do you know VBA programming?

Here is a macro that I uploaded to Lynkoa:

http://www.lynkoa.com/tutos/macro-solidworks-renommer-feuille-1-de-la-msie-en-plan

Hello .PL,

 

First of all, thank you very much for the help!

 

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.

 

Do you have a solution?

 

Thank you!

 

 

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.

Maybe a new question?