Choosing the same Pattern lines

Choosing the same Pattern lines

h.memis
Contributor Contributor
523 Views
5 Replies
Message 1 of 6

Choosing the same Pattern lines

h.memis
Contributor
Contributor

Hello there,

I want to choose the same diameters for chamfering.(Model/Part)

Can you help me.

I would appreciate it if ilogic.

0 Likes
524 Views
5 Replies
Replies (5)
Message 2 of 6

bhavik4244
Collaborator
Collaborator

@h.memis 

 

It would be nice if you can attache the part.


Bhavik Suthar
0 Likes
Message 3 of 6

h.memis
Contributor
Contributor

I have a code. It collectively holds the surfaces of the holes I choose.

 

İlogic

Dim oDoc As PartDocument= ThisDoc.Document
Dim oCD As ComponentDefinition = oDoc.ComponentDefinition
Dim oRad1 As Double, Rad2 As Double
Dim oCommand As CommandManager = ThisApplication.CommandManager

Line1 : 
Dim oF1 As Face = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kPartFaceFilter,"Select Cylindrical Face") 
If oF1.SurfaceType <> 5891 Then GoTo Line1
oRad1 = Round(oF1.Geometry.Radius,3)
oCommand.DoSelect(oF1)

For Each oSolid As SurfaceBody In oCD.SurfaceBodies
	For Each oFace As Face In oSolid.Faces
		If oFace.SurfaceType = 5891 Then
			oRad2 = Round(oFace.Geometry.Radius,3)
			If oRad2 = oRad1 Then oCommand.DoSelect(oFace)
		End If
	Next
Next

 

What I want now. keeping the lines of the holes I chose.

Ekran Alıntısı.PNG

Choosing the holes one by one is very tiring

0 Likes
Message 4 of 6

h.memis
Contributor
Contributor

.

0 Likes
Message 5 of 6

WCrihfield
Mentor
Mentor

Hi @h.memis.  It looks like you are trying to add a chamfer to the top edge of a series of holes in your part.  Are you trying to develop a code to automate adding the same chamfer to the same top edge of all those holes?  If we can understand your higher goals, then our attempts to help you achieve the smaller goals might be better suited to your application and needs.  Are those holes actual HoleFeatures, or are they extruded cuts from circular sketches?  Are they created from a sketch pattern, patterned feature, or created individually?  If all holes are the same, and all the new chamfers will be the same, is there any reason why the first chamfer feature couldn't just be patterned across to the other holes?  You may have to provide more detailed information about what all you are really trying to do, so we can better help you.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 6 of 6

h.memis
Contributor
Contributor

Hi @WCrihfield

 

I want to do exactly this. I want to run chamfer command on the same holes.

 

Example :

M6(Ø4,9170) hole = 0,5415 chamfer
M8(Ø6.6470)=0.6765 chamfer

 

Holes do not need to be duplicated. I want to apply it to all holes of the same diameter on the part.

sorry i used a translation.

 

 

Why do I choose the long way?

1.PNG

0 Likes