See the top rated post in this thread. Click here

Results 1 to 3 of 3

Thread: to access an excel OLE worksheet with autolisp

  1. #1
    Member
    Join Date
    2007-08
    Posts
    18
    Login to Give a bone
    0

    Unhappy to access an excel OLE worksheet with autolisp

    Dear;
    How do I access an excel spreadsheet pasted as OLE object in AutoCAD through lisp? I have looked at the activex properties of the OLE object, but I have not found how to point the spreadsheet. I need a string to fill in the code line below!

    (setq plan (vlax-invoke-method wb-collection "open" "c: \\ WheretheWorksht.OLE.xls, OhMyGod?"))

    Someone help?

    Grateful;
    Ederson

  2. #2
    Certifiable AUGI Addict
    Join Date
    2001-03
    Location
    Tallahassee, FL USA
    Posts
    3,667
    Login to Give a bone
    0

    Default Re: to access an excel OLE worksheet with autolisp

    Gotta ask why would anyone ever insert an excel spreadsheet as OLE object instead of a table in AutoCAD?

  3. #3
    Member
    Join Date
    2007-08
    Posts
    18
    Login to Give a bone
    1

    Default Re: to access an excel OLE worksheet with autolisp

    It is a good question. But the designs are ready and there are many and contains data that need to be extracted from there!
    For the time being, I directed a designer to open the drawings and open the OLE and copy and paste them as AutoCAD tables.
    When it's ready I put my lisp to rotate ...
    Thank you!

Similar Threads

  1. EXCEL and AutoLISP
    By pratikbajaria692860 in forum AutoLISP
    Replies: 1
    Last Post: 2015-02-19, 06:25 PM
  2. How do you access Styles via autolisp?
    By treaves04413213 in forum AutoLISP
    Replies: 2
    Last Post: 2013-10-22, 12:25 PM
  3. Access Font File through AutoLISP
    By samir.joshi in forum AutoLISP
    Replies: 3
    Last Post: 2009-06-11, 12:18 PM
  4. Inserting Excel Worksheet
    By mmenendez in forum Revit Architecture - General
    Replies: 6
    Last Post: 2006-06-16, 05:21 PM
  5. URGENT: How to import Excel Worksheet
    By Gadget Man in forum Revit Architecture - General
    Replies: 33
    Last Post: 2005-06-01, 05:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •