Showing results for 
Search instead for 
Do you mean 
Reply

RulestreamModelServices - How should 'SetPropertyValueByPath' be used?

Hi Experts,

 

In RulestreamModelServices there is a method 'SetPropertyValueByPath', how should it be used?

I tried all of the syntaxes below but nothing worked:

g_msc.SetPropertyValueByPath(@"Shapes.ShapesGroup/ShapesGroup: 1/Radius", "12");

g_msc.SetPropertyValueByPath(@"Shapes.ShapesGroup/ShapesGroup: 1.Radius", "12");

g_msc.SetPropertyValueByPath(@"Shapes.ShapesGroup/ShapesGroup: 1@Radius", "12");

g_msc.SetPropertyValueByPath(@"Shapes.ShapesGroup/ShapesGroup: 1[Radius]", "12");

g_msc.SetPropertyValueByPath(@"Shapes.ShapesGroup/ShapesGroup: 1/Radius", "12");

 

Thanks,

-Thilak Rao

2 REPLIES

Re: RulestreamModelServices - How should 'SetPropertyValueByPath' be used?

Use normal, everyday Rulestream product control model hierarchy syntax for this:

 

Session.SetPropertyValueByPath("RootPart.SubpartCollectionName(1).Radius", "12")

 

For more information on this and other methods, browse to:

http://your-server/ModelServicesWS/index.html

 

Then click on the com.rulestream.eto.modelservices package at the upper left.

 

Then click the "CLASS" link (top of UI).

 

Scroll down to the "Method Detail" section and you'll see descriptions of each function, lists of parameters with explanations, return information.

 

 

Re: RulestreamModelServices - How should 'SetPropertyValueByPath' be used?

Hi Rick,

 

I am on release 8.12.0.

I tried the following and it still doesn't work. It returns -1 return code.

g_msc.SetPropertyValueByPath("RootPart.ShapesGroup(1).Radius", textBox1.Text)

 

Any more suggestions?

 

Thanks,

-Thilak Rao