Pick GeometryIntent for assemly joint

Pick GeometryIntent for assemly joint

torbjorn_heglum1
Collaborator Collaborator
406 Views
2 Replies
Message 1 of 3

Pick GeometryIntent for assemly joint

torbjorn_heglum1
Collaborator
Collaborator

I am thinking of make a macro to place and constrain many components in one go, using joints. The idea is to let the user:

1. select the component (selecting the wanted GeometryIntent)

2. then by click on a corresponding GeometryIntent on another component, place a copy of the component and a rigid joint between the two GeometryIntents  

 

I already have created  macro that can do a similar operation, is but based on insert constraints between circular edges instead of joints (somewhat similar to the KwikSert app). Here I use the CommanManager.Pick method to select circular entities. This method uses filters (SelectionFilterEnum) to select specific types of objects.

 

It don't find any filters for GeometryIntents, do anyone have a tip on how to pick this objects?

 

Torbjørn

Inventor 2017.4

 

0 Likes
407 Views
2 Replies
Replies (2)
Message 2 of 3

BrianEkins
Mentor
Mentor

GeometryIntent objects aren't user selected but are API only objects that you create and use as input to other methods.  They are basically a wrapper for the geometry and some other information.  For example, they're also used when creating dimensions in a drawing and for a radius dimension, it encapsulates the drawing curve and a point along the curve where the dimension will point.

 

The AssemblyComponentDefinition object supports the CreateGeometryIntent method to allow you to create a Geometry intent.  It takes the geometric entity and additional information that defines the "intent" or the other data that will be needed.  This sample demonstrates how they're used to create a rotational joint.

 

http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-3AEF340A-7B70-4FF5-BB3A-88935F805039

 

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
0 Likes
Message 3 of 3

torbjorn_heglum1
Collaborator
Collaborator

Thanks for the info.

 

I have seen the example you refer, this was sort of the base for on how to create the joint by API. This lead to the next step; how the references could be picked interactively by the user, more or less similar as in the joint command. I.e some kind of selection that highlight possible joint points that can be clicked.

 

So, if I understand correctly, this is currently not possible - not supported by the API. I would need to make this my own way, selecting one point and one face for each side of the joint. 

 

Thanks,

Torbjørn

 

0 Likes