Hi,
with VBA and your wish to run that with SendCommand (which I would try to avoid as often as possible) you can use the handle and LISP to make an object selected.
The LISP statement therefor is:
(sssetfirst (setq SELSET (ssadd (handent "287"))) SELSET)
That makes the object with handle &h287 selected/gripped.
(whereas "287" is a handle (hex value of a handle), you should take your handle from your routine.)
If you want to use move with that single object you can start
_MOVE
(handent "287")
0,0,0,
1,1,1
...also with SendCommand.
But take care, SendCommand is easy to use in some cases, but generates a lot of conflicts as you don't get feedback (e.g if the user cancels within the command).
Good luck, - alfred -
------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ...
blog.ish-solutions.at ...
LinkedIn ...
CDay 2026------------------------------------------------------------------------------------
(not an Autodesk consultant)