×
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

Change color of tangent continuous faces

Change color of tangent continuous faces

Change color of tangent continuous faces

(OP)
We need to change the color of tangent continuous faces of a solid body. As of now we are selecting the faces one by one. Is there any option in Catia to select All tangent continuous faces at a time, like propagation/federate option of Join command.

I checked the following thread, it didn't help,
http://www.eng-tips.com/viewthread.cfm?qid=316341

Can we use VBA functions like SelectElement3 to select the tangent continuous faces.

RE: Change color of tangent continuous faces

(OP)
Sub CATMain()

Dim InputObjectType(0)
Set Document = CATIA.ActiveDocument
Set Selection = Document.Selection
Dim prtPart As Part
Set prtPart = CATIA.ActiveDocument.Part
Dim oHSF As HybridShapeFactory
Set oHSF = prtPart.HybridShapeFactory

InputObjectType(0) = "Face"
Status = Selection.SelectElement2(InputObjectType, "Select a face", True)
If (Status = "cancel") Then Exit Sub
Set FirstFace = Selection.Item(1).Value
Selection.Clear

Dim newelement1 As HybridShapeExtract
Set newelement1 = oHSF.AddNewExtract(FirstFace)
newelement1.PropagationType = 2
newelement1.ComplementaryExtract = False
newelement1.IsFederated = False

prtPart.UpdateObject newelement1

Selection.Add newelement1

Selection.VisProperties.SetRealColor 0, 255, 0, 0
prtPart.UpdateObject Selection

End Sub

RE: Change color of tangent continuous faces

(OP)
I tried the above mentioned code but it tries to select the Extract feature, instead of parent Faces

RE: Change color of tangent continuous faces

create a solid thickness of 0.001mm, then another one on top of it of -.001mm. You can color the last one with 1 click.

Eric N.
indocti discant et ament meminisse periti

RE: Change color of tangent continuous faces

(OP)
Is it not possible to select, without creating new features? The thread I have mentioned in the first post suggests a similar solution.

RE: Change color of tangent continuous faces

There is a toolbar for this if you have the Core/Cavity Design module. You can find it under Insert --> Analysis --> Face Color Editor.



Win 7
23SP5/24SP3, 3DVIA Composer 2015

RE: Change color of tangent continuous faces


Win 7
23SP5/24SP3, 3DVIA Composer 2015

RE: Change color of tangent continuous faces

(OP)
Thanks for the tip DBezaire, and a star for you! I was looking for such option. Unfortunately we don't have the Core and Cavity license with us.

RE: Change color of tangent continuous faces

Thank you. It's a pretty handy module for separating data, stock boxing and analysis of parts. I steal it from time to time but it is paired up with a YM2 and used in our estimating department.

Win 7
23SP5/24SP3, 3DVIA Composer 2015

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