Hi Guys,
I have an issue with the pickfirst selection in my VBA Routine.
If i run my VBA routine using the visual basic editor Run->Run, ThisDrawing.PickfirstSelectionSet.Count works correctly and display the number of the current selected objects in Autocad.
But...
Now if i run this VBA routine using a command via Lisp OR using a Custom button, ThisDrawing.PickfirstSelectionSet.Count ALWAYS shows "0".
Someone did already experience this issue?!
The List function to start the vba routine is:
--------------------------------------------------------
(defun C:rotobj ()
(vl-load-com)
(vl-vbarun "acad.dvb!RotateObjects")
)
Alternatively, the command behind the Custom button is:
-----------------------------------
-vbarun;RotateObjects
-----------------------------------
regards