Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

MACRO: CATScript - search-function

Status
Not open for further replies.

sivo

Automotive
May 24, 2005
2
Hi!
I want to select all faces with on color ("orange") in a product consisting of two parts.
Here's my code:

Set oSelection = CATIA.ActiveDocument.Selection
oSelection.Clear
oSelection.Search("Topology.CGMFace.Color='(155,200,145)',all")

all I get in return is one part

using edit->search with same settings, I get all the faces I want

what's wrong with the code?
how can I use the edit->search include topology option in a macro? I think this is what I need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor