Welcome to the COE Discussion Forum! 

 

To participate in the discussion forum, you must be logged in to the website.  If you forget your login information, please contact COE Headquarters at coe@coe.org or (800) 263-2255.

If you are new to the COE Discussion Forum and would like to participate, please register.


Register Today
COE 2009 Annual PLM Conference & TechniFair

COE DISCUSSION FORUM
Subject: Delete Deactivated Features and the Associated Sketch

You are not authorized to post a reply.   
Author Messages
TSQMAN

12 Oct 2008 07:53 AM
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






You are not authorized to post a reply.
Forums > COE Forums > CATIA V5 > Delete Deactivated Features and the Associated Sketch



ActiveForums 3.6

    

401 North Michigan Avenue, Chicago, IL 60611-4267 | (312) 321-5153 | (800) COE-CALL (U.S.)