Populating default parameter with newly created parameter using iLogic

Populating default parameter with newly created parameter using iLogic

eugene.morales
Enthusiast Enthusiast
754 Views
4 Replies
Message 1 of 5

Populating default parameter with newly created parameter using iLogic

eugene.morales
Enthusiast
Enthusiast

I would like my parts template to contain the iLogic rule to populate the default parameter with the newly created parameter.

Default Parameter;

O_L = 1

O_W = 1

Newly Created Parameter;

d1 = 300 (may vary depending on part size)

d2 = 300 (may vary depending on part size)

 

The iLogic should read the default parameter if the newly created parameter is not created yet. Once it is created, it will automatically populate the default parameter.

 

I'm still a beginner using iLogic and I wanted to learn more how to create my own rule. Hopefully I could manage to create and share in this forum.

0 Likes
Accepted solutions (1)
755 Views
4 Replies
Replies (4)
Message 2 of 5

bradeneuropeArthur
Mentor
Mentor

Hi,

 

I don't understand what you try to do.

Isn't it easier to add these parameters to your template per default, instead of adding them with illogic?

 

Regards,

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 5

clutsa
Collaborator
Collaborator
Accepted solution

Are you looking for something like this?

For Each param In ThisApplication.ActiveDocument.ComponentDefinition.Parameters
	If param.Name = "d1" Then
		Parameter("O_L") = d1
	End If
	If param.Name = "d2" Then
		Parameter("O_W") = d2
	End If
Next

If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State

Custom Glyph Icon for iMates

0 Likes
Message 4 of 5

eugene.morales
Enthusiast
Enthusiast

Hi,

I've set a couple of custom parameter which is the O_L & O_W then if I create a plate with Length(d1) & Width(d2) parameter that is the time I will derive d1 & d2 to my custom parameter. Instead of manually deriving them I would like iLogic to automatically derive it for me. I hope it's clear as mud. ☺

0 Likes
Message 5 of 5

eugene.morales
Enthusiast
Enthusiast

Thank you very much for your help.

0 Likes