Rename Custom property Name NOT the Value

Hi everyone,

I am trying to compose a macro that will allow me to rename the Custom Property Name by keeping it's value.

I thought it will be something like a find & replace procedure am I right???

This is actually the first step as the second part will require to open the relevant drawing file of a part or an assy and replace

the link of the old custom property name in the title block.

Find below a more detailed example:

User: Open part or Assy and Run Macro...

Macro: It will find the custom property with existing name "Part Number (AD)"

and it will replace it with a New custom property name as "Part Number (AD)-1"

Then,

The Macro will open the drawing that have the same name with the already open part or assy.

It will edit the title-block and it will replace the old custom property link with the new one.

Please let me know your thoughts if what I'm looking is not too crazy.

Regards

SolidworksApi macros