Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

iLogic trigger needed for either "Update" or "Reference Parameter change"

llorden4
Collaborator

iLogic trigger needed for either "Update" or "Reference Parameter change"

llorden4
Collaborator
Collaborator

In prepping some complex files and assemblies for my drafting teams, I've discovered some limitations with Inventor and in searching around the forums and the web I have the solution but need the trigger.  The situation is too complex to describe all the how, when & why I take this path but the short of it all is that I'm using Parameters in a part file to drive changes and using Reference Parameters in an assembly file to derive the basic information I need from the part file inserted to drive other formulas in the assembly file.

 

When using the Update function to update the assembly file with the model changes everything gets updated correctly "except" for the User Parameters driven by the Reference Parameters; this appears to only be corrected by a "Rebuild All" function.  I've created a rule to rebuild but the only success I've had with getting the rule to fire is with saving or opening the document.

 

From searching the forums, there doesn't appear to be a trigger for an update or a parameter change except strictly for the "Model" parameters.  Has anyone figured out way to create or attach a trigger to the Update or "Any change to any Parameter"?

 

 

If anyone from Autodesk reads this, the desired solution is to simply have all the parameters update not just a select few, so such rules are not needed.  (hint, hint:  Future Update)

Autodesk Inventor Certified Professional
0 Likes
Reply
650 Views
4 Replies
Replies (4)

MechMachineMan
Advisor
Advisor

If you are doing something so complex, why rely on the limited architecture built into inventor instead of developing your own add-in to control said limitations?

 

Also, maybe a workaround of making a model parameter that references the reference parameter would work.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes

llorden4
Collaborator
Collaborator

Why develop an add-in for a button that already exists?

 

Why develop something I'd have to install on every machine and maintain vs just applying a feature that is part of the file and requires no special handling?

 

I did like your idea on creating a (dummy) model parameter linked to a reference parameter but I would need to create one for each reference I'm creating to guarantee an update if "any" single variable changes.  I'll keep that option around as "Plan B" if nothing better comes along, else there's some bloatware involved but I think that'll work.

 

 

*edit*

Figured a simple routine to put all those equations into one dimension and gave it a try [example:   (d1+d2+d3+d4...)/(d1+d2+d3+d4...)*1in] that would cover all the referenced dimensions under one model parameter placement.  Unfortunately, even though the "Reference Parameters" are updating they do not appear to update anywhere else in the Parameters table.  It seems Reference dimensions only update in that part of the the Parameters table and does not dynamically update anywhere else.

*end edit*

 

 

And please, enough with the "why" questions (from anyone!)

why.png


@MechMachineMan wrote:

If you are doing something so complex, why rely on the limited architecture built into inventor instead of developing your own add-in to control said limitations?

 

Also, maybe a workaround of making a model parameter that references the reference parameter would work.


 

 

Autodesk Inventor Certified Professional
0 Likes

MechMachineMan
Advisor
Advisor

If you've ever head of 'implied solutions' and take into account the context - a public forum where every level of user is allowed to post - you would understand why asking why is a necessary step.

 

If there is so much complexity in one file put a trigger on a visible open to explain that it required certain steps to ensure the files are properly updated, or even attach them on save. This should suffice unless the file is used too frequently for this to be efficient (ie; multiple times a day), or is prone to causes unnecessary costs.

 

Again, like I said, maybe review the 'why' you need it and the 'how' you are currently doing it and you might come across a more elegant solution.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
0 Likes

Anonymous
Not applicable

Click and drang any fully constrained sketchpoint or sketch geometry. It will update all refernece parameters.

0 Likes