My best guess is that you fail to feed the parameter list correctly to
the command; to make sure it gets what it expects I usually store the
parameters in a collection and use the GetAsText() method:
var oTorus = ActiveSceneRoot.AddGeometry("Torus", "MeshSurface");
var cParams = new ActiveXObject("XSI.Collection");
cParams.Add(oTorus.PosX);
cParams.Add(oTorus.PosY);
cParams.Add(oTorus.PosZ);
PlotAndApplyAction(ActiveSceneRoot, cParams.GetAsText(), "MyAction", 0,
100, 1, 20, 3, false, 0.01, true, false, true, false);
Hope that helps...
-André
Frank Lenhard wrote:
Hi,
i am calling the plotting commands from a jscript. problem however is,
that the dialog pops up each time as if i had choosen the plot command
from the menue. any idea how to prevent that?
PlotConstrainedtransform does this.
PlotAndApplyAction however doesnt pop up the dialog, but in return
doesnt plot anything. no error logged :/
ciao
franky
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi