05-27-2009 04:30 AM
I'm using the 3D picture control for my application, and I want to be able to select objects I have created, by clicking on them with the mouse.
I have tried using the Pick Point Method of the 3D Picture control with no luck.
Has anyone managed to do this yet
Thanks
05-29-2009 06:09 AM
Hi Jam.hall,
I have created an example file for you which can be found at the Ni community pages. Please see the following link:
http://decibel.ni.com/content/docs/DOC-4958
If you have any questions or if this does not solve your issue please let me know.
Best regards,
John
05-29-2009 10:15 AM
That's a pretty neat example.
A few minor nitpick points:
05-29-2009 10:29 AM
Thanks for the feedback:)
The subtract was left over from debugging, decrement is defiantly the better option!
I also agree it would make more sense to return a "No Object" message.
I have updated the example to reflect these changes.
The timeout case is actually to hide a little bug in the code 🙂
When the code first starts up two of the blocks do not appear....... and I can not work out why! They only appear after the event structure has executed at least once so the timeout case was to force this execution. As you rightly say there is no other purpose for it when using the event structure in this manor.
Again, thanks for the feedback 🙂
05-29-2009 10:53 AM
John.P wrote:Hi Jam.hall,
I have created an example file for you which can be found at the Ni community pages. Please see the following link:
http://decibel.ni.com/content/docs/DOC-4958
If you have any questions or if this does not solve your issue please let me know.
Best regards,
John
How do you download the example at that link? There is a section called Downloads. It has the name of the file followed by the word "QUEUED". But nothing there is selectable to be able to start a download.
05-29-2009 11:01 AM
John.P wrote:The timeout case is actually to hide a little bug in the code 🙂
When the code first starts up two of the blocks do not appear....... and I can not work out why! They only appear after the event structure has executed at least once so the timeout case was to force this execution. As you rightly say there is no other purpose for it when using the event structure in this manor.
I do not see this behavior. With the timeout constant removed all blocks are drawn. I'm running 8.6 in an XP virtual machine, but I don't think that would matter in this case.