Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations JStephen 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
Status
Not open for further replies.
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top