×
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 force user to select Geometric Set(HybridBody) when there is another hybridbody inside it

Catia V5 force user to select Geometric Set(HybridBody) when there is another hybridbody inside it

Catia V5 force user to select Geometric Set(HybridBody) when there is another hybridbody inside it

(OP)




As shown in the image there is HybridBody(Repetition(Points and Planes))) inside a HybridBody(Geometric set CSYS). I want to force the user to select only Geometric set(CSYS) instead of Repetition(Points and Planes))) using filter.

The problem is since both Geometric set and Repetition(Points and Planes))) are HybridBody, I'm not able to force the user to select only Geometric set.

Dim varFilter(1) As Variant
Dim objSel As Selection
Dim objSelLB As Object 'Variable declared as object
Dim strReturn As String
Dim strMsg As String
'Only below geometric types will be selected
varFilter(0) = "Body" 'Body represents a solid body
varFilter(1) = "HybridBody" 'HybridBody represents a geometrical set

Set objSel = CATIA.ActiveDocument.Selection
Set objSelLB = objSel
strMsg = "Select a geometrical set."
strReturn = objSelLB.SelectElement2(varFilter, strMsg, False)

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