×
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

Putting newly created edge into selection without selecting it

Putting newly created edge into selection without selecting it

Putting newly created edge into selection without selecting it

(OP)
I want to create a shaft and add a chamfer on its one edge.
I know the edge on which i want to add chamfer.
So, i only want from user the length of chamfer and edge selected by itself.
Anybody knows how edges can be send to selection without selecting it?
Is There any name method for catia by which i can select it?
for example

Sub catmain()
... ' the sketch creting programming

set shaft1= part1.shapefactory.AddNewShaft(sketch1)
'add new shaft

set reference1 =
' I want newly created edge reference here
set chamfer1 = part1.shapefactory.AddNewChamfer(reference1, catTangencyChamfer, catLengthAngleChamfer, catNoReverseChamfer, 1#, 45#)

end sub

If anyone know something about it please help asap.

RE: Putting newly created edge into selection without selecting it

First I would like to say I really like your request, too many times, developers will just ask user to select the edge and voila... well when the code can be smart, you should look into it, and you do. Thanks.

could you share with us the shape of the shaft and indicate which edge you want to chamfer?

you said you know the edge you want to chamfer. May I ask how do you know? how do you define it? This will help you find the steps in catia.

for instance, if the edge if the foremost edge of a cylinder in the Y direction when Y is also the revolution axis, then you could use extremum to find the end face in the Y direction, then search the edge of that face...

Eric N.
indocti discant et ament meminisse periti

RE: Putting newly created edge into selection without selecting it

or if the script create the sketch for the shaft and the geometry in the sketch always the same then maybe searching for edges in the shaft and picking the nth edge will do... you just have to manually define n

Eric N.
indocti discant et ament meminisse periti

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