iLogic rule. Create intersection paths for group bodies and one base body

iLogic rule. Create intersection paths for group bodies and one base body

a9011
Collaborator Collaborator
1,048 Views
3 Replies
Message 1 of 4

iLogic rule. Create intersection paths for group bodies and one base body

a9011
Collaborator
Collaborator

Hello community members!
I study the rules with great interest. And today I have one question.
I have multiple solids (group 1) that intersect another solid (base body) at a 90 degree angle. All solids in group 1 are flat. The base body is flat too.

iLogic8554854987.PNG
I use a 3D sketch (the path of intersection of two planes): I select the vertical face of one of the solid bodies of group 1 and the horizontal face of the base body. Then I select the parallel vertical edge and do the same.
As you can imagine, it takes a long time if there are a lot of parts from group 1.
Therefore, I decomposed the task for the rule.
1) We combine vertical solids into group 1 by name (for example, group1_body1, group1_body2, ...);
2) Create a name for each vertical face of each solid from group 1 (for example, group1_body1_face1, group1_body1_face2, ...);
3) Create a name for the horizontal face of the base body (for example, base body_face1);
3) Automatically add all bodies with the name "group1 .." to the list;
4) In a loop, select each body from the list. For each vertical face of the selected body, draw a 3D sketch (face intersection and base body_face1). In this case, the sketch must be construction geometry.
All intersections are constructed with respect to baseface_body1.
I will be very happy if you can help create a rule to automate the construction of all such intersections!

Дорогу спроектирует идущий!
0 Likes
1,049 Views
3 Replies
Replies (3)
Message 2 of 4

robertast
Collaborator
Collaborator

@a9011  

look this: Cut component 

think about how to adapt it to yourself, it’s really possible

Message 3 of 4

Maxim-CADman77
Advisor
Advisor

@a9011 

I wonder if Cross-Joint-Slot Cutter is close to what you need?  

Please vote for Inventor-Idea Text Search within Option Names

0 Likes
Message 4 of 4

_dscholtes_
Advocate
Advocate

@a9011 wrote:

Therefore, I decomposed the task for the rule.
1) We combine vertical solids into group 1 by name (for example, group1_body1, group1_body2, ...);
2) Create a name for each vertical face of each solid from group 1 (for example, group1_body1_face1, group1_body1_face2, ...);
3) Create a name for the horizontal face of the base body (for example, base body_face1);
3) Automatically add all bodies with the name "group1 .." to the list;
4) In a loop, select each body from the list. For each vertical face of the selected body, draw a 3D sketch (face intersection and base body_face1). In this case, the sketch must be construction geometry.
All intersections are constructed with respect to baseface_body1.

Personally, I haven't used named faces or other geometry so far. Depending on the chance of changing geometry, naming a face can be useful. My first thoughts:

To get base body, selected surface and create group 1 using as less user interaction as possible:
1) Select the horizontal face of the base body (manually or get the named face by code);
2) Get the associated body of the selected face by code and store it as an object;
     As there is only 1 base body, all other bodies must be part of group 1.
3) In a loop, go through all bodies and add them to a collection (except the base body).


Creating the sketches:
4) In a loop, go through each body in the collection and create a 3D sketch;
5) For each face in the body, create intersection curve with already stored face of base body;
     Horizontal faces will not create a result; catch the error if Inventor throws one.
6) After all faces are done, select all geometry in the 3D sketch and set them to construction geometry.

7) Close the sketch.

0 Likes