Inventor General Discussion

Inventor General Discussion

Reply
Active Contributor
WHassan
Posts: 32
Registered: ‎07-17-2012
Message 1 of 3 (699 Views)

using a VB.net form with iLogic (Tutorial)

699 Views, 2 Replies
11-29-2012 03:14 PM

Hello All.

 

I have been using ilogic and Inventor VBA for a few months now, but I still consider myself fairly new to VB.Net

 

My objective is to create a form in VB.net (using Visual Studio) (As the dynamic nature of the form I need for this project exceeds the capability of the form generation tool provided with iLogic)

 

With Inventor install (2012) came bundled a few iLogic samples. I took a few hints from the "Railing iLogic Sample Advanced.iam" but I am still trying to figure out how does the VB.net-form communicate with (iLogic) parameters of the inventor file. (I don't know what contents does a .dll carry over from a VB.net project)

 

Should use:

 

Dim oUserParameters as UserParameters

Set oUserParameters = invApp.ActiveDocument.ComponentDefinition.Parameters.UserParameters.Item("xxx")

 

...to change the parameters' values (embedded within the code of the form) or if anyone could explain (or point me towards a blog/tutorial) on how iLogic can read from the form.

 

I can use the trick explained in this post ("My first plug-in)

http://forums.autodesk.com/t5/Autodesk-Inventor/Check-out-the-self-paced-guide-My-First-Plug-in/td-p...  

 

... but I think I would like this projects applicaion restricted to a single Assembly (.iam file) only.

 

Both short and long responses will be helpful;

and is appreciated. Thanking you,

 

Wajih

 

*Expert Elite*
Mark_Wigan
Posts: 441
Registered: ‎03-07-2006
Message 2 of 3 (680 Views)

Re: using a VB.net form with iLogic (Tutorial)

11-30-2012 08:06 AM in reply to: WHassan

hi, it may be quicker if you post in the customisation area of the inventor forum... just one click away from here.

 

if i knew a bit about iLogic i would to help but unfortunately i can't. the inventor VBA may help if you want to look into that as well.

best regards,
- Mark

PDSU 2014 Windows 7, 64bit. (please consider Kudos or Tag as Solved if your issue is sorted)

Active Contributor
WHassan
Posts: 32
Registered: ‎07-17-2012
Message 3 of 3 (674 Views)

Re: using a VB.net form with iLogic (Tutorial)

11-30-2012 09:09 AM in reply to: Mark_Wigan

Will do that Thanks Mark,

 

Wajih

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.