cancel
Showing results for 
Search instead for 
Did you mean: 

RulestreamModelServices - How should 'SetPropertyValueByPath' be used?

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

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?

Siemens Genius Siemens Genius
Siemens Genius

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?

Solution Partner Valued Contributor Solution Partner Valued Contributor
Solution Partner Valued Contributor

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