Karissap Posted July 25, 2007 Report Share Posted July 25, 2007 I was wondering if anyone knew how to change the visibility of 3d graph cursors programmatically, there must be a way to do it seeing as it can be changed in the properties dialog box, it's probably private but since when has that stopped anyone . http://forums.lavag.org/index.php?act=attach&type=post&id=6431 The only property node I can find for 3d graph cursors is count, and it's read only. It would be great if I could read the cursor position programmatically too. Quote Link to comment
Yair Posted July 25, 2007 Report Share Posted July 25, 2007 The 3D graph is an ActiveX object, and as such you need to use ActiveX methods. In this case, it's literally a method - you need to use an invoke node and call the Item method, which will return a reference to the cursor, which you can then handle. I'm guessing the way of identifying an Item is by using its index, but I haven't checked it. Quote Link to comment
Jan Florjanczyk Posted July 25, 2007 Report Share Posted July 25, 2007 Hi Karissap! Here's a simple VI showing how you can get to those properties. I agree it's not the most intuitive thing Jan Quote Link to comment
Grampa_of_Oliva_n_Eden Posted July 25, 2007 Report Share Posted July 25, 2007 QUOTE(Jan Florjanczyk @ Jul 24 2007, 08:34 AM) Hi Karissap!Here's a simple VI showing how you can get to those properties. I agree it's not the most intuitive thing Jan In this thread http://forums.ni.com/ni/board/message?board.id=170&message.id=143663&jump=true' target="_blank">http://forums.ni.com/ni/board/message?boar...3&jump=true on the NI forum, I posted a worse case example for the 3-d graph. I have not run across any of the properties of the 3d graph that could not be manipulated progamatically. The "hints" I offer for using the 3-d graph is to 1) first observe where you found the property in the property browser then construct your code using invoke nodes and property nodes in an analogous manner. 2) All indexes used by the 3d graph are "1 based" NOT "0 based". 3) Colors are BGR not RGB I think that all you need to know to be dangerous! Ben Quote Link to comment
Karissap Posted July 26, 2007 Author Report Share Posted July 26, 2007 Thanks everyone, exactly what I was after and thanks for the extra hints as well, I think they'll come in handy . Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.