I’ve created simple application using VizToolkit controls library. Project files are avaible for download in our Download section. I decided to share both Visual Studio 2005 and Visual Studio 2008 projects. They are both included in a package. I hope this will help you to get started.

VizToolkit Sample App
This simple application allows user to connect to viz|engine on local machine (localhost) and send commands. It also displays responses from viz.
If you have any problems running this example or any questions regarding it – please feel free to place a comment under this post entry. I will try to answer to all of them.

check the vizSend.exe in you viz program folder ;-)
:-) I know that. The point of this app was to show how easy it is to use VizToolkit controls in any external control application. This simple example just shows several mechanisms and proper usage of these controls.
Regards
How about controlling a remote VizRt engine? I don’t see the server name or port number being set on the code or configuration files…
Never mind, I just did!
Glad to hear you worked it out for yourself. As I recall in this particular example both VizMachine and VizPort were set in designer window, so the code for this is placed in “Form1.Designer.cs” file. You can of course set this programatically. One thing you should be aware of though is when you set new VizMachine or VizPort property of VizConnection component, and connection to VizMachine is established it would probably be closed. In my projects I always make sure new new viz machine is being assigned only when connection to previous machine is closed. This way I can be sure no unexpected exceptions are triggered.
Hi Hormon,
Can you please tell few commands example to display some scene in engine window.
Thanks
Are you using VizToolkit Controls Library? If so I encourage you to take a look at its documentation. You will find the list of all avaible methods and objects there to make your application communicate with viz|engine. As for the viz commands you can find Viz Commands Manual on viz forums.
Good luck
Hi Hormon,
Thank you for sharing you knowledge its really very helpful for me. Your Sample application is really good to learn and start.
Thanks & Regards
Hi Hormon,
Sorry to bother u again. I am running Viz Artist 2.8 on Windows 7 but not able to connect the sample application to Viz Engine.
I tried doing it on Windox XP its working fine. So is there any change required to run sample application on Windows 7.
Thanks & Regards
Well, it should also work on Windows 7. Have you checked network settings? I’m not sure, since I’ve only checked this under Vista, but maybe system is set to disallow network connections to ports on your machine. Basically the code should work regardless of operating system, it is dependent only from .NET Framework.
Don’t know where to make changes confused.
Please check following file in your system folder:
system32/drivers/etc
and look for the file named “hosts”. Inside you should have the following line
127.0.0.1 localhost
or
localhost 127.0.0.1
If this line does not exists or is commented or contains something else it may mean that your system tries to force IPv6 over IPv4 and you probably still use IPv4.
Let me know if it solved your problem.
Cheers
Hi,
The localhost line was commented and (::1 localhost) this was written under localhost line I removed it and its working now.
So now this application is tested on windows 7.
Thanks a lot once again.
it couldn’t be connected to VizEngine 2.8 on Windows7 64 bit version.Gopal is it working on your system. if is it true then where is my fault. plase help me:) and of course Hormon excellent work.
congratulations.