×
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

Delete Deactivated Features and the Associated Sketch

Delete Deactivated Features and the Associated Sketch

Delete Deactivated Features and the Associated Sketch

(OP)
To whom it may concern:

I'm trying to create a CATScript that will search a CATPart and delete the deactivated
features and their associated sketches from the CATIA tree. I've had limited success with
this I can use the following search string: "selection1.Search "CATPrtSearch.PartDesign
Feature.Activity=FALSE"" to remove the deactivated features but the sketch that was used
to create the deactivated feature remains behind in the CATIA tree. Please don't suggest
"Delete Useless Elements" this tends to delete elements that we don't want deleted I have
already tried this. The CATScript must be able to run without any human interaction.

Additional information that may help: The sketches that we are trying to delete are renamed
a specific way and are linked to other CATParts through Published elements (see attached .jpg file).

I'm new to the programming aspect of CATIA and I can't figure out how to accomplish this.

Any help in this matter would be greatly appreciated; samples and examples you are
willing to share would be great.

Thank You in Advance
TSQMAN

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