Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Pickfirst working only while VBA routine running from visual basic editor

1 REPLY 1
Reply
Message 1 of 2
remy.baud
241 Views, 1 Reply

Pickfirst working only while VBA routine running from visual basic editor

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

1 REPLY 1
Message 2 of 2
pendean
in reply to: remy.baud

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost