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