×
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

Selection of tangent surfaces using a macro

Selection of tangent surfaces using a macro

Selection of tangent surfaces using a macro

(OP)
Hello

In one of our processes we are required to color several surfaces differently than the rest of the component (i.e. component is blue with important surfaces yellow). I have managed to write a macro that would color a surface just by clicking on it and I was wondering if there is a way of making that selection have a tangent propagation (like the "Extract" command has) but without extracting the surface as I need to change the color of the solid faces.
I would be grateful if someone could point me in the right direction.

This is what I am currently using for selection:

CODE --> Catscript

Dim Suprafata(0)
Suprafata(0) = "Face"
For i = 1 To 500

oSel.Clear
Ret = oSel.SelectElement2(Suprafata, "Select Surface to Color", True)
			If (Ret = "Cancel") Then
			Exit Sub 

Thank you.

RE: Selection of tangent surfaces using a macro

I already asked that question and seems like there is not way to do that without extract.

Regards,
Jenia Ladkov

RE: Selection of tangent surfaces using a macro

It must be there something wrong.

You start a for cycle and don't have a next.

You also only selects a face nothing more...

Why you don't select the features that creates those faces, and them paint them?

Tiago Figueiredo
Tooling Engineer

Youtube channel:
https://www.youtube.com/channel/UC1qdlBeJJEgMgpPLV...

RE: Selection of tangent surfaces using a macro

if you have Core & Cavity Design you can use Face Color Edition with tgt continuity.

Eric N.
indocti discant et ament meminisse periti

RE: Selection of tangent surfaces using a macro

(OP)
TiagoFigueiredo that is just a part of the code, relevant to my question.

itsmyjob Unfortunately I do not have it but I have noticed there is something similar in the machining module. I might be able to use something from there.

Thank you

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