×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

CATIA V5 Script to Show only Solids

CATIA V5 Script to Show only Solids

CATIA V5 Script to Show only Solids

(OP)
This has been discussed many times before, but I am trying to understand why my application of this concept won't work.

I can perform the following:
Edit->Search->Advanced and enter
.-'Part Design'.'PartDesign Feature'
in the Composed query.
Select Look: Visible on Screen and click "Search and Select" and it will highlight everything that is not a solid in my product or part.

When I try to put this into a macro as:
=========================================
Language="VBSCRIPT"

Sub CATMain()

Set productDocument1 = CATIA.ActiveDocument

Set selection1 = productDocument1.Selection

selection1.Search type!='PartDesign Feature',scr

selection1.VisProperties.SetShow 1

selection1.clear

End Sub
==========================================

it doesn't work.

Can't someone show me the error of my ways?

Thanks,
Jeff

RE: CATIA V5 Script to Show only Solids

(OP)
Cool Help file, thanks!

Here is what I ended up doing, I replaced the search type with:
======================
selection1.Search "t!=Part*&t!=Product*&t!=Surface,scr"
======================
and that seemed to do the trick.  (I added the surface type to keep surfaces displayed from what I originally intended in my first post.

Jeff
 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources