×
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

Macro for hiding Axis and/or planes

Macro for hiding Axis and/or planes

Macro for hiding Axis and/or planes

(OP)
Does anybody know where I could retrieve a macro for hiding axis and/or planes? Preferably both. When I bring parts up in TCe it is loaded with them and I don't have the time to individually hide them all.

RE: Macro for hiding Axis and/or planes

I use the search tool(edit>search) or (ctrl f).
Setup your query for axis system (visible) then in the advanced tab select "or", then select plane (visible). The visible option is available if you hit the more button.
Select the search icon (not search and select). Now you can add your query as a favorite.

Once the query has been added as a favorite it will stay with your catsettings.
Now in any file select search / favorites, select your saved query and choose the "search and select" icon.
select hide/show.

You could probably record the steps to a macro, I find hitting ctrl f then favorites is quick enough.

RE: Macro for hiding Axis and/or planes

This is for hiding the planes.

CODE --> VBScript

Set productDocument1 = CATIA.ActiveDocument

Set product1 = productDocument1.Product

Set productDocument1 = CATIA.ActiveDocument

Set selection1 = productDocument1.Selection

selection1.Search "CatPrtSearch.Plane,All"

Set visPropertySet1 = selection1.VisProperties

visPropertySet1.SetShow catVisPropertyNoShowAttr

selection1.Clear 

And you can change the search to do it for the axis.
I have the same issue with a lot of parts.

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