Creating Joint on the center of a slot

Creating Joint on the center of a slot

dg2405
Advocate Advocate
664 Views
5 Replies
Message 1 of 6

Creating Joint on the center of a slot

dg2405
Advocate
Advocate

Can somebody tell me how to define the GeometryIntent to place something to the middle of a slot? Creating joints via iLogic on any intent on the face works well, but i need the middle of the slot:

sss.png

Looking with vba on a manually created joint on a slot, the values "point" and "intent" are different. The point-coordinates are the end of the slot, and the intent-coordinates are the middle. But i don't know how to achieve this!

Joint.png

665 Views
5 Replies
Replies (5)
Message 2 of 6

dg2405
Advocate
Advocate

Anybody has a hint how to do this? I have tried everything.... This thing makes me cracy 🙂

0 Likes
Message 3 of 6

^_^clovis^_^
Advocate
Advocate

Hi dg2405,

I suppose a "join" constraint is a 3d constraint in one go. So you might have to define a surface contact + point on this surface + an orientation. Seeing the type of screw you're using, I'd use the top of it for the surface contact , the center of it as point contact and the 2 centers of the hole as orientation.

My 2 cents

0 Likes
Message 4 of 6

dg2405
Advocate
Advocate

I think it's not possible to create a joint on a slot with api!

Even copying a jointdefinition from a joint which is created manually on the middle of a slot fails:

Dim oAsmDoc As AssemblyDocument = ThisDoc.Document
Dim oAsmCompDef As AssemblyComponentDefinition = oAsmDoc.ComponentDefinition
Dim oJoint As AssemblyJoint = oAsmCompDef.Joints("Starr:1")
Dim oJointDef As AssemblyJointDefinition = oJoint.Definition.Copy()
oAsmCompDef.Joints.Add(oJointDef)

 The new joint is created on the center of one of the two slot arcs.

@Anonymous Please tell me if it's possible to this with api and when yes tell me how.

0 Likes
Message 5 of 6

^_^clovis^_^
Advocate
Advocate

If a "joint" constraint can't be created, you could add a workpoint en axis in the feature "create slot" where you want to constraint a screw. Also, you could create some iMates with those point en axis.

0 Likes
Message 6 of 6

^_^clovis^_^
Advocate
Advocate

maybe..

 

The part receiving the screw:

create slot

share the sketch

create a cylinder as extra solid in its center.

put an iMate on it Insert "center-axis down".

make the extra cylinder invisible

 

the screw:

add an iMate insert on top "center-axis down"

 

Inventor UI needs surface as ref.

 

0 Likes