Continue to Site

Welcome to 3DCADForums

Join our CAD community forums where over 25,000 users interact to solve day to day problems and share ideas. We encourage you to visit, invite you to participate and look forward to your input and opinions. Acrobat 3D, AutoCAD, Catia, Inventor, IronCAD, Creo, Pro/ENGINEER, Solid Edge, SolidWorks, and others.

Nee Help with Script for deactivating independent sketches

weddler

New member
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
 

Articles From 3DCAD World

Sponsor

Back
Top