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!

Change color of tangent continuous faces 1

Status
Not open for further replies.

man2007

Aerospace
Nov 6, 2007
283
IN
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,

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

Recommended for you

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
 
I tried the above mentioned code but it tries to select the Extract feature, instead of parent 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
 
Is it not possible to select, without creating new features? The thread I have mentioned in the first post suggests a similar solution.
 
There is a toolbar for this if you have the Core/Cavity Design module. You can find it under Insert --> Analysis --> Face Color Editor.

downloadfile.aspx




Win 7
23SP5/24SP3, 3DVIA Composer 2015
 
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.
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top