ParallelGraphics Forums
SDK
You are here: [Forums]::[General]::[SDK]

Registration 
Registration
Forgot your password?

Help 
Help
Support

Quick search 

Subscribe to newsletters 

Install Cortona VRML Client for FREE!
Outline 3D
Try RobinZone!
email:  password:
   General - SDK

Subject: Re: SFNode eventIn field - Value
Sender: dan.vera@gmail.com 27.06.07 17:20


Thanks Alex, it works fine now.
Hi,
I have problems handling SFNode field using Cortona SDK and VB.net:

The following won't work:

    Dim myfield As VRMLField
    Dim testnode As VRMLNode
    myfield = Engine.CreateField("SFNode")
    testnode = Engine.Nodes.Item("test")
    myfield.value = testnode

I did the same with other SFfield (e.g. SFInt32) and it works fine.

Any suggestions? Thanks in Advance.

Dan
You have to cast field created by Engine.CreateField to type VRMLAutomation.SFNode. This code should work:

    Dim myfield As VRMLAutomation.SFNode
    Dim testnode As VRMLAutomation.VRMLNode
    myfield = engine.CreateField("SFNode")
    testnode = engine.Nodes.Item("test")
    myfield.value = testnode


 


SFNode eventIn field - Value / dan.vera@gmail.com / 22.06.07 10:22
     Re: SFNode eventIn field - Value / nalex@parallelgraphics.com / 27.06.07 04:54
         Re: SFNode eventIn field - Value / dan.vera@gmail.com / 27.06.07 17:20

Messages in thread: 3


© 1998-2007 ParallelGraphics. All rights reserved. Terms of use.