View Full Version : Get ObjectId on Mac system
lance_uppercut
2017-05-30, 04:00 PM
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
Tom Beauford
2017-05-31, 05:56 PM
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.
BIG-AL
2017-06-01, 09:08 AM
Every object has a "handle" which can be used in programs to change a single object. Its accessible via normal lisp as well.
Tom Beauford
2017-06-01, 11:59 AM
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.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.