iLogic Top Level User Parameter

iLogic Top Level User Parameter

chayman
Enthusiast Enthusiast
451 Views
4 Replies
Message 1 of 5

iLogic Top Level User Parameter

chayman
Enthusiast
Enthusiast

Is is possible when creating a user parameter at the top level assembly, that it could drive the exact same user parameter in a sub assembly using iLogic?


For example I have a width that changes depending on a percentage. For a 6" width @ 100% = 6", for a 6" width @ 80% = 4.8" etc.

 

I created a user parameter in the sub assembly called "Percent_Width" (numerical value - ul). 

Using iLogic, I can adjust the width accordingly using a form and entering the percentage (between 1ul and 0.3ul)

 

I then dropped the sub assembly into a TLA and created the exact same user parameter.

Now I am having difficulty using iLogic to control the width from the TLA.

 

I know I can create a lot of if statements to get it to work but is there any easier way?

 

 

0 Likes
452 Views
4 Replies
Replies (4)
Message 2 of 5

MechMachineMan
Advisor
Advisor

Are you saying you want to SYNC the same user parameter across multiple assemblies to be the same value, or something else yet?


--------------------------------------
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
Message 3 of 5

johnsonshiue
Community Manager
Community Manager

Hi! I am not an iLogic expert. But, what you described here should work. At the top level assembly, the rule at top level can access any parameter at lower levels. If it does not work, please attach an example so forum experts can comment further.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes
Message 4 of 5

chayman
Enthusiast
Enthusiast
Essentially yes.

I want a user parameter in the top level assembly to control a user
parameter in the sub assembly - these just happen to be the same user
parameter.


0 Likes
Message 5 of 5

chris
Advisor
Advisor

yes, I do this all the time, I often use the same "parameter" name at the assembly level as individual parts... saves on me having to remember parameter names within parts or sub assemblies and their parts.

0 Likes