Inventor General Discussion

Active Member
Posts: 7
Registered: ‎09-10-2011
Message 1 of 2 (391 Views)

How to read file properties Inventor (ipt. idw. dwg) of a web application.

391 Views, 1 Replies
04-03-2013 12:49 PM

Hello I am developing a web app ASP.NET MVC 3, which will read the properties files of Inventor (dwg, idw, ipt, iam). Read the properties of these files is by using objects Apprentice Server, which provides Autodesk Inventor View 2012. Connection objects is done through the library RxApprentice.tlb.


Code is shown below:

 public ActionResult Index ()
           ApprenticeServerComponent appServerComponent = new ApprenticeServerComponent ();

           ApprenticeServerDocument apprenticeServerDocument = appServerComponent.Open (FileName);

           var ListPropety = apprenticeServerDocument.PropertySets ["Design Tracking Properties"].

                                                                                                             Cast <Property> (). ToList ();

           var CollectionProperty = ListPropety
                                . Where (x => x.Name! = "Thumbnail")
                                . ToDictionary <Property, string, object> (
                                    property => property.Name,
                                    property => property.Value
                ViewBag.CollectonProperty = CollectionProperty;
                catch (System.Runtime.InteropServices.COMException ex)
                    ViewBag.ComException = ex.Message;
            return View ();

While debugging applications on Web-server - IIS Express 7.5 development environment Visual Studio 2010 application runs without errors.
After publishing a Web application on IIS 7.0 the following error: "Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))».


A tried: change User Account Control Settings, and set permissions to configuration DCOM objects in Component Services  - no results.

Is it possible to read the file properties Inventor of Web applications, and how to do it? Help solve the problem. Thanks for any help!

*Expert Elite*
Posts: 2,804
Registered: ‎03-08-2006
Message 2 of 2 (389 Views)

Re: How to read file properties Inventor (ipt. idw. dwg) of a web application.

04-03-2013 12:51 PM in reply to: prixodkomv

Hi prixodkomv,

You might have better luck asking questions and searching for answers of this type on the Inventor Customization forum:



I hope this helps.
Best of luck to you in all of your Inventor pursuits,

  solution.png  Did you find this reply helpful ? If so please use the Accept as Solution or  Kudos button below.

You are not logged in.

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

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