ParallelGraphics Forums
SDK
You are here:
[Forums]
::
[General]
::
[SDK]
All forums
How to use forums
Favorites
Services
Registration
Registration
Forgot your password?
Help
Help
Support
Quick search
Subscribe to newsletters
email:
password:
 
General
-
SDK
[reply]
[back to forum]
[new message]
[all forums]
Subject:
Set VRML field values through automation interface
Sender:
zappy1130@yahoo.com
20.04.07 05:25
Hi.
I wanna set VRML field values inside the scene via VRML automation interface. I've developed the application in C#.
This functions runs when the application starts.
public void SceneOnLoaded()
{
axCortonaBE.SRC = @"file://D:\test.wrl";
axCortonaBE.Refresh();
}
When the button is clicked, it invokes this.
private void button1_Click(object sender, EventArgs e)
{
Iengine = (VRMLAutomation.IEngine)axCortonaBE.Engine;
Iengine.AutoRefresh = 1;
Object nodeObj = "box";
Object fieldName = "size";
VRMLAutomation.VRMLNode node =(VRMLAutomation.VRMLNode)Iengine.Nodes.get_Item(ref nodeObj);
VRMLAutomation.VRMLField field =(VRMLAutomation.VRMLField)node.Fields.get_Item(ref fieldName);
VRMLAutomation.ISFVec3fObject boxSize1 = (VRMLAutomation.ISFVec3fObject)field;
boxSize1.x = (float)10;
boxSize1.y = (float)10;
boxSize1.z = (float)10;
Iengine.Refresh();
}
The problem is the Object's size in the VRML scene isn't got updated after clicking the button. I think something is missing in the code itself, but I'm not sure what's it. Please give some advice on how this could be done. Thanks.
[reply]
[back to forum]
[new message]
[all forums]
Set VRML field values through automation interface
/
zappy1130@yahoo.com
/ 20.04.07 05:25
Messages in thread:
1
[reply]
[back to forum]
[new message]
[all forums]
© 1998-2007
ParallelGraphics
. All rights reserved.
Terms of use
.