×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

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

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

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

(OP)
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,

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

yep that would work, I've done it.
  • you need to go with recursive script
  • 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.
  • you can use object Dictionary to easily keep track of number of instance of a partnumber.
post your progress I'll help


Eric N.
indocti discant et ament meminisse periti

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

(OP)
hi thanks for the replies. but can i also just delete the instance name and how?

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

(OP)
or i have an idea just delete the part name and leave the instance name

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources