Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

Nee Help with Script for deactivating independent sketches

  • Thread starter Thread starter weddler
  • Start date Start date
W

weddler

Guest
Hi,

I am having problems trying to write a script for deactivating independent sketches. The Catia documentation example doesn't seem to work for me. When I try it, it wants to pick all sketches instead of just the ones not related to any geometry. I have listed the example below, which is given in the documentation. If anybody can help with this, I'd appreciate it.

Thank You,

Rich :confused:

Example:

o Property Sketches( ) As CATIASketches (Read Only)

Returns the body's Sketches collection. These skectches are independent from any shape, since they haven't yet been used to create shapes.
Example:
The following example returns in skColl the collection of independent sketches of the main body of partDoc part document:
Dim body As Body
Set body = partDoc.Part.Bodies.MainBody
Set skColl = body.Sketches
 

Part and Inventory Search

Sponsor

Back
Top