Results 1 to 4 of 4

Thread: Get ObjectId on Mac system

  1. #1
    Woo! Hoo! my 1st post
    Join Date
    2017-05
    Posts
    1
    Login to Give a bone
    0

    Default Get ObjectId on Mac system

    There are some useful LISP programs out there that place object references into fields for doing calculations like area and perimeter, but they all depend on obtaining the ObjectId of an entity. The function that is always used, (vla-get-objectID entity), is visual lisp / activeX, so it only works on Windows platforms. Is there a way to get the ObjectId with mac autolisp? Alternatively, is there another way to put an object reference inside a field?

    Using AutoCAD for Mac, 2017 version.

    Thanks,
    Sebastian

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

    Default Re: Get ObjectId on Mac system

    Can you use the FIELD command or right-click in text to insert a field with AutoCAD for Mac? If it supports fields you can use the dialog box to get object references. Sounds like AutoCAD for Mac is somewhere between LT and the full version of AutoCAD. Are there advantages to using a Mac? I know they're expensive.

  3. #3
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    561
    Login to Give a bone
    0

    Default Re: Get ObjectId on Mac system

    Every object has a "handle" which can be used in programs to change a single object. Its accessible via normal lisp as well.

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

    Default Re: Get ObjectId on Mac system

    Quote Originally Posted by BIG-AL View Post
    Every object has a "handle" which can be used in programs to change a single object. Its accessible via normal lisp as well.
    True, but a "handle" doesn't help you get an "ObjectId" needed for field calculations. Handles were added in r13, but I haven't found much use for them.

Similar Threads

  1. ObjectID stopped changing?
    By metron4 in forum AutoCAD Fields
    Replies: 0
    Last Post: 2010-08-06, 10:34 PM
  2. Replies: 2
    Last Post: 2009-06-10, 05:14 AM
  3. Function to select an ObjectId
    By clovis in forum AutoLISP
    Replies: 2
    Last Post: 2008-12-02, 08:12 AM
  4. Handle vs. ObjectID
    By bweir in forum VBA/COM Interop
    Replies: 8
    Last Post: 2006-07-10, 03:26 PM
  5. select objects by handle or objectID
    By zfoland20 in forum AutoCAD Customization
    Replies: 1
    Last Post: 2004-09-01, 08:42 PM

Posting Permissions

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