You might get better results if you post in the Catia forum. It would also help if you asked how to achieve what you need rather than asking for someone else to create the macro for you. You might get lucky and have someone share one that is already written.
"Good to know you got shoes to wear when you find the floor." - [small]Robert Hunter[/small]