Automatic component assembly when updating dimensions

Automatic component assembly when updating dimensions

Anonymous
Not applicable
931 Views
7 Replies
Message 1 of 8

Automatic component assembly when updating dimensions

Anonymous
Not applicable

It is possible that inventor automatically assembles components when updating a dimension, as an example I have this assembly where the base must govern the number of panels that compose it, currently the length is 200 mm and it is composed of 2 panels of 100 mm for each of its longer sides, it is possible to program in some way that by increasing the value from 200 mm to 300 mm inventor automatically assembles a third panel of 100 mm to complete the assembly, the final objective is to move the value and inventor decreases or increases the number of panels automatically.

0 Likes
Accepted solutions (1)
932 Views
7 Replies
Replies (7)
Message 2 of 8

bhavik4244
Collaborator
Collaborator

@Anonymous 

 

you may able to achieve this with the begin manage function (From Snippets) in iLogic. Here below the link to learn it.

 

https://knowledge.autodesk.com/support/inventor/learn-explore/caas/CloudHelp/cloudhelp/2019/ENU/Inventor-WhatsNew/files/GUID-80AD0392-0B8C-4A27-A9B3-7466D53999BF-htm.html

 

 


Bhavik Suthar
0 Likes
Message 3 of 8

WCrihfield
Mentor
Mentor

You could have a rule that:

  • checks the overall length needed, and knows the length of the panel being used to fill that length.
  • does some math to figure how many panels it will take to fill that length
  • If more than one is needed, it creates a 'RectangularOccurrencePattern' (if it doesn't already exist), with that panel as its source, to fill the needed overall length.
  • If the (named) pattern already exists, and you reduce the overall length, the rule will run again and does the math, and either adjusts the quantity of the pattern, or deletes the pattern if only one panel is needed.
  • The quantity of the pattern will be a either a ModelParameter or a UserParameter, however you want to set it up.
  • You can use the iLogic Event Triggers to trigger the rule to run.   Or if it is a local rule, you can simply include the name of a local parameter in the rule, that you want it to monitor, then when that local parameter changes, it will trigger the rule to run.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.

If you have time, please... Vote For My IDEAS 💡or you can Explore My CONTRIBUTIONS

Inventor 2021 Help | Inventor Forum | Inventor Customization Forum | Inventor Ideas Forum

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 4 of 8

Anonymous
Not applicable

Is it possible that you can show me an example of how the code or configuration would be in ilogic?
I have practically no experience in development or code generation and I do not understand the environment well, if possible give me an example of what this would be like that you tell me I can use it to base myself and develop it completely, I thank you very much for your contribution

regards

0 Likes
Message 5 of 8

Anonymous
Not applicable
Is it possible that you can show me an example of how the code or configuration would be in ilogic?
I have practically no experience in development or code generation and I do not understand the environment well, if possible give me an example of what this would be like that you tell me I can use it to base myself and develop it completely, I thank you very much for your contribution

regards
0 Likes
Message 6 of 8

WCrihfield
Mentor
Mentor
Accepted solution

Maybe...depending on scope, complexity, and available free time.  What version and year of Inventor are you using?  I'm using Inventor Professional 2021.1, so I can open most, but can't save as previous versions.  Could you supply the model files?  If you do supply model files, make sure they don't contain any personal, private, or proprietary information.

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 7 of 8

Anonymous
Not applicable

I use 2021 and I need a starting point that at the moment I don't have because of my little experience with this programming language, once I have that base I can use it and develop the details later.

 

Add a model that I am using for a test, where the concept is the same, four corner pieces control the width and length of the model and I need to adapt walls automatically when the model grows or decreases in size.

 

When you have the opportunity you can review the model, the goal is to make the red walls fit into the space between the yellow corners.

 

I appreciate your attention and help.

0 Likes
Message 8 of 8

WCrihfield
Mentor
Mentor

I have attached the updated files. I only made any changes in the main assembly file. I simply created a rectangular pattern of each of the two wall parts, created new user parameters to use as the quantity parameters for those two new patterns, and created a simple local iLogic rule to update the quantity when the length or width changes. Right now it only works when the new length or width values are a multiple of the wall part's width, but more work can be done to make it smarter.

 

 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes