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

    .NET

    Reply
    New Member
    Posts: 1
    Registered: ‎08-12-2008
    Accepted Solution

    'Open' is not a member of ApplicationServices.DocumentCollection

    792 Views, 1 Replies
    04-25-2012 08:40 AM

    I have a VB.NET 4.0 app which was working fine with references to ObjectARX 2011.

    I have removed these references and added references to ObjectARX2013, and now I get the following error at compile time:

     

    'Open' is not a member of 'Autodesk.AutoCAD.ApplicationServices.DocumentCollection'

     

    Code:

    Dim docs As DocumentCollection
    docs = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager
    docs.Open(sDrawingPath, False) 

     

    Everything else works fine - if I common out the last line then it compiles fine.

    Does anybody have any ideas? 

    Please use plain text.
    Moderator
    Alexander.Rivilis
    Posts: 1,168
    Registered: ‎04-09-2008

    Re: 'Open' is not a member of ApplicationServices.DocumentCollection

    04-25-2012 10:14 AM in reply to: daniel.messenger

    DocumentCollectionExtension.Open

    P.S.: Also read ObjectARX for AutoCAD 2013 Docs: Managed Class Reference -> Migration Guide->.NET Migration Guide


    Пожалуйста не забывайте про Утвердить в качестве решения!Утвердить в качестве решения и Give Kudos!Баллы
    Please remember to Accept Solution!Accept as Solution and Give Kudos!Kudos

    Please use plain text.