• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk Inventor Customization

    Reply
    ADN Support Specialist
    Posts: 55
    Registered: ‎08-25-2004

    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

    Please use plain text.
    Mentor
    Posts: 343
    Registered: ‎11-28-2007

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

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

    Ok, thanks

    Please use plain text.
    Active Member
    fjr74vp
    Posts: 7
    Registered: ‎07-22-2011

    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.

    Please use plain text.
    Active Member
    fjr74vp
    Posts: 7
    Registered: ‎07-22-2011

    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.
    Please use plain text.
    Valued Contributor
    Posts: 51
    Registered: ‎05-30-2008

    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

    Please use plain text.
    ADN Support Specialist
    xiaodong.liang
    Posts: 861
    Registered: ‎06-12-2011

    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

    Please use plain text.
    Valued Contributor
    Posts: 84
    Registered: ‎07-01-2012

    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 -

    -------------------------------------------------------------------------------------
    Please use plain text.
    Member
    Posts: 4
    Registered: ‎11-22-2012

    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

    Please use plain text.
    ADN Support Specialist
    Posts: 55
    Registered: ‎08-25-2004

    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

    Please use plain text.
    *Expert Elite*
    ScottMoyse
    Posts: 1,278
    Registered: ‎06-10-2009

    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!


       

    Please use plain text.