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.
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
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...
indocti discant et ament meminisse periti
RE: Putting newly created edge into selection without selecting it
indocti discant et ament meminisse periti