passing selected objects to a function called by bindkey
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
passing selected objects to a function called by bindkey

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
SS
Guest





Posted: Sat Dec 10, 2005 1:10 am    Post subject: passing selected objects to a function called by bindkey Reply with quote

Hi All,
I want to set a bindkey to call 2 functions. I am setting
the bindkey as shown below

hiSetBindKey("Layout" "None<Btn2Down>EF" "mouseAddPt()
snapEdge(geGetSelSet(getCurrentWindow())")

I am selecting 2 objects, the first object is selected with left mouse
key. The second object is selected with middle mouse key. I want to
pass the selected objects in the current window to the function
snapEdge(). however only the first object selected gets passed not the
second object. I can see both the objects getting selected in the
window.

I guess this is because mouseAddPt() and snapEdge() get called
concurrently.

Is there a way to get around this problem?

thanks,
Sriram

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB