Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

MACRO PART NUMBER WILL BE THE SAME AS INSTANCE NAME, HELP

Status
Not open for further replies.

bambambidam

Electrical
Jul 28, 2017
17
hi all,

i would like to create a macro that will change part number and will be the same as instance name.
because when i'm exporting catia product to 3dxml file it copies both partnumber and instance name in the specification tree, I only need to show instance name.

thank you and regards,
 
Replies continue below

Recommended for you

yep that would work, I've done it.
[ul]
[li]you need to go with recursive script[/li]
[li]you should avoid instance with same name in a product level, as the script should not take long to run, you can think about using 2 passes, first one with dummy name or dummy number to clean everything then second pass would make it good.[/li]
[li]you can use object Dictionary to easily keep track of number of instance of a partnumber.[/li]
[/ul]

post your progress I'll help




Eric N.
indocti discant et ament meminisse periti
 
Hi

You can try also something else, results may be different

Capture_xejnf9.jpg


Capture_1_majrm0.jpg



Regards
Fernando

- Romania
- EU
 
hi thanks for the replies. but can i also just delete the instance name and how?
 
or i have an idea just delete the part name and leave the instance name
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor