Derived Part - Replace Model Reference - iLogic => VB.Net

Derived Part - Replace Model Reference - iLogic => VB.Net

GeorgK
Advisor Advisor
1,129 Views
4 Replies
Message 1 of 5

Derived Part - Replace Model Reference - iLogic => VB.Net

GeorgK
Advisor
Advisor

Hello together,

 

I tried to convert the iLogic-program to VB.Net.

 

https://forums.autodesk.com/autodesk/attachments/autodesk/78/469742/1/BasePartReplacer.iLogicVb.txt

 

Is there a simple method to convert the

 

Dim selectedName As String = InputListBox("Select the part to replace", partNameList, partNameList(0), "Replace Part", "Parts").ToString()

to VB.Net?

 

Thank you

 

Georg

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

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Hi,

 

Dim selectedName As String = InputBox("Select the part to replace", "partNameList", "partNameList(0)", , )

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

Message 3 of 5

GeorgK
Advisor
Advisor

Thank you very much. That's quite easy. Sometimes you do not see the forest for the trees

0 Likes
Message 4 of 5

ngdnam88
Advocate
Advocate
Accepted solution

Hi @GeorgK,
Is possible to share your VB.NET code? I'm trying converting to VB.NET too but got an error:

ngnam1988_0-1689390916184.png

Help me please,
Thanks,

Message 5 of 5

A.Acheson
Mentor
Mentor

Hi @ngdnam88 

I would think your error is unrelated. Can you share the full code and the error message your receiving? It might be best also to start a new post as this one is already solved. 

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