Inventor Customization

Reply
ADN Support Specialist
wayne.brill
Posts: 198
Registered: ‎08-25-2004
Message 11 of 26 (1,488 Views)

Re: Check out the self-paced guide “My First Plug-in”

11-09-2011 07:41 AM in reply to: tmccar

Hi,

 

Unfortunately not, at this point in time we only have VB.NET, however we are looking to potentially expand on the languages we offer so if we have a C# one in the future, I will definitely let you know.

 

Thanks,

Wayne Brill

Autodesk Developer Network



Wayne Brill
Developer Technical Services
Autodesk Developer Network

Mentor
tmccar
Posts: 461
Registered: ‎11-28-2007
Message 12 of 26 (1,484 Views)

Re: Check out the self-paced guide “My First Plug-in”

11-09-2011 09:30 AM in reply to: wayne.brill

Ok, thanks

Active Member
fjr74vp
Posts: 7
Registered: ‎07-22-2011
Message 13 of 26 (1,377 Views)

Re: Check out the self-paced guide “My First Plug-in”

03-02-2012 10:00 AM in reply to: wayne.brill

Let me take a question. I think that the self-paced code assumes there is only one instance of Inventor running. But, in running the code, if there are more than one instance of Inventor opened, the program will take the first opened instance and will ignore all the others instances. How could I change this behavior? For example, a way to choose the open Inventor instance that I want to connect.

Active Member
fjr74vp
Posts: 7
Registered: ‎07-22-2011
Message 14 of 26 (1,376 Views)

Re: Check out the self-paced guide “My First Plug-in”

03-02-2012 10:41 AM in reply to: wayne.brill
well, searching a bit more, I saw that it is a purely .Net issue. I'll try to find a solution, but if someone could show me a path, I would appreciate it.
Valued Contributor
falkmassmann
Posts: 79
Registered: ‎05-30-2008
Message 15 of 26 (1,213 Views)

Re: Check out the self-paced guide “My First Plug-in”

09-25-2012 12:04 PM in reply to: fjr74vp

Hi there,

 

I´m having a little bit of trouble with the guide. The plugin runs and does what it should, but in the output window it throws a couple of exceptions at me. I´m on a german OS, so "Ausnahme" means exception and the rest should be self explanatory, if not just ask.

 

Here is the error code:

Eine Ausnahme (erste Chance) des Typs "System.Runtime.InteropServices.COMException" ist in mscorlib.dll aufgetreten.
Volumenkörper1:1
Eine Ausnahme (erste Chance) des Typs "System.NullReferenceException" ist in MyFirstInventorPlugin_Lesson1.exe aufgetreten.
Eine Ausnahme (erste Chance) des Typs "System.Runtime.InteropServices.COMException" ist in mscorlib.dll aufgetreten.
Eine Ausnahme (erste Chance) des Typs "System.Runtime.InteropServices.COMException" ist in mscorlib.dll aufgetreten.

While this doens´t stop the plugin from running, it will create an error when I select a non component like a workplane or else.

 

 

I can still run the plugin but it seems to have trouble with that COM object. Any ideas what´s causing this.

I have the feeling it will eventually give me more problems on the road ahead.

 

Best regards

 

Falk

ADN Support Specialist
xiaodong.liang
Posts: 1,265
Registered: ‎06-12-2011
Message 16 of 26 (1,190 Views)

Re: Check out the self-paced guide “My First Plug-in”

10-10-2012 02:28 AM in reply to: falkmassmann

Hi,

 

is the problem solved?  I checked the source project 'lesson1_VisualExpress2010'. There is only 81 lines totally. But in your error dialog, it looks the failure occured at line 114. Did you add some of your own codes? If yes, could you share a copy for us to diagnose?



Xiaodong Liang
Developer Technical Services
Autodesk Developer Network

Distinguished Contributor
ADNpati
Posts: 125
Registered: ‎07-01-2012
Message 17 of 26 (1,161 Views)

Re: Check out the self-paced guide “My First Plug-in”

10-29-2012 09:40 PM in reply to: xiaodong.liang

Hi There,

 

If yo have some time, can you please check the following link..

 

http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/HoleList/m-p/3678504#M40777

 

Thanks.

Mechanical Engineer
Inventor Applications Engineer

--------------------------------------------------------------------------------------

If my solution seems to remedy your problem, please press the Accept Solution button, Some KUDOS -

-------------------------------------------------------------------------------------
Member
purushottam2
Posts: 4
Registered: ‎11-22-2012
Message 18 of 26 (1,124 Views)

Re: Check out the self-paced guide “My First Plug-in”

11-26-2012 06:46 AM in reply to: wayne.brill

Hi,

 

I am a experinced software developer (.net) and new to the Autodesk. My forhthcoming assignment is to create a tool in .net using Visual Studio 2010 that will automate all the steps of inventor by Inventor API.

 

My orgnization is used to draw the Flange and base plate of electrical pole in the Inventor. And i want to automate this whole process. Suppose a drafter have to create 10 flange design in the Inventor then he will save all the input in the .csv file and my tool will read the inputs from the file and will create all the 10 design and save at any location.

 

First of all i want to know, is it possibe to automate each steps of the Inventor? If yes then please let me know form where i can access information about the all APIs.

 

Thanks in Advance

ADN Support Specialist
wayne.brill
Posts: 198
Registered: ‎08-25-2004
Message 19 of 26 (1,119 Views)

Re: Check out the self-paced guide “My First Plug-in”

11-26-2012 02:00 PM in reply to: purushottam2

Hi,

 

From your description I would say that the Inventor API will allow you to automate this process.

 

Lesson 7 has links to resources for learning the Inventor API.

http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=17329549

 

Also the API is documented in the API help file. On my system it is here:

"C:\Program Files\Autodesk\Inventor 2013\Local Help\admapi_17_0.chm"

 

I would also check to see if using iLogic would meet your requirement. iLogic is documented in the Inventor help file:

http://wikihelp.autodesk.com/Inventor/enu/2013/Help/0126-Tutorial126/0127-Inventor127/0261-iLogic_B2...

 

Also Inventor Engineer-To-Order is a configurator which may also be of interest. http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=18361292 

 

Cheers,



Wayne Brill
Developer Technical Services
Autodesk Developer Network

*Expert Elite*
scottmoyse
Posts: 1,616
Registered: ‎06-10-2009
Message 20 of 26 (918 Views)

Re: Check out the self-paced guide “My First Plug-in”

04-13-2013 07:39 PM in reply to: wayne.brill

I moved this to here http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/My-First-Plugin-Lesson-3-C-issue/td-p/...

Cheers
Scott Moyse

Please use Mark Solutions!.Accept as Solution &Give Kudos!Kudos to further enhance the value of these forums. Cheers!


   

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube