Link parameters with iLogic

Link parameters with iLogic

kresh.bell
Collaborator Collaborator
621 Views
12 Replies
Message 1 of 13

Link parameters with iLogic

kresh.bell
Collaborator
Collaborator

Hi,

could someone make me an iLogic that would do the following when run it:
- I have the "LW" parameter in the assembly environment (it never changes its name).
- after iLogic is run, I would like it to open win explorer in the assembly location
- after that, I would like select the part in whose parameters is the driven dimension whose value I want to link with the "LW" parameter
- is it possible that after selecting that driven dimension, iLogic automatically links it with the "LW" parameter?

 

thanks

0 Likes
622 Views
12 Replies
Replies (12)
Message 2 of 13

bradeneuropeArthur
Mentor
Mentor
Sure. Keep reading....

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 13

bradeneuropeArthur
Mentor
Mentor

do you prefer an add-in or via i-logic or VBA?

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 4 of 13

kresh.bell
Collaborator
Collaborator

Hi,

thanks for reply, iLogic I think

0 Likes
Message 5 of 13

bradeneuropeArthur
Mentor
Mentor
let me program quickly...

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 6 of 13

bradeneuropeArthur
Mentor
Mentor
what is the name of the paramater to link to?

after that, I would like select the part in whose parameters is the driven dimension whose value I want to link with the "LW" parameter

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 7 of 13

kresh.bell
Collaborator
Collaborator

it is not always the same

0 Likes
Message 8 of 13

bradeneuropeArthur
Mentor
Mentor

Like this:

Dim a As Inventor.AssemblyDocument = ThisAssembly.Document
Dim p As Inventor.Parameter = a.ComponentDefinition.Parameters.Item("LW")
p.ExposedAsProperty = True
Dim d As Inventor.FileDialog 
ThisApplication.CreateFileDialog(d)
Dim fio As New System.IO.FileInfo(a.FullFileName)
Dim dio As New System.IO.DirectoryInfo(fio.DirectoryName)
msgbox(dio.FullName)
d.InitialDirectory = dio.FullName
d.Filter = "[*ipt]"
d.MultiSelectEnabled = False
d.ShowOpen

Dim prt As Inventor.PartDocument = ThisApplication.Documents.Open(d.FileName, True) 

Dim pc As Inventor.PartComponentDefinition = prt.ComponentDefinition

pc.Parameters.DerivedParameterTables.Add2(a.FullFileName)

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 9 of 13

kresh.bell
Collaborator
Collaborator

Thanks, but maybe we didn't understand each other, I would like the option to select a parameter for the link, not to open the part where that parameter is located

 

2023-05-17_22-01-14.jpg

 

 

0 Likes
Message 10 of 13

bradeneuropeArthur
Mentor
Mentor

Could you add some more screenshots or explain step by step, because I think indeed I don't understand what you exactly need.

 

Best 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 11 of 13

kresh.bell
Collaborator
Collaborator

Open assembly parameters, click link

01.jpg

 

select part file in same folder where is assembly

02.jpg

 

in that part select parameter for link

03.jpg

 

in assembly, add parameter from part to parameter LW in assembly

04.jpg

0 Likes
Message 12 of 13

kresh.bell
Collaborator
Collaborator

nobody have idea about this?

0 Likes
Message 13 of 13

A.Acheson
Mentor
Mentor

Hi @kresh.bell 

@bradeneuropeArthur got you to the point of adding the derived parameter table and what you need now is to add the parameter. See API help for adding table and the sample for adding the parameter.

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes