cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

API - appName on rsLineItem is always null.

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

Hi Experts,

 

I am using ModelServices and am able to access the Projects and LineItems. However the appName on the LineItem is null for all cases. If you use the UI (Thin or Thick Client) the Properties does display the Application name. How do I obtain the same via the API.

 

RS 8.12.0

VS 2013 C#

 

Thanks,

-Thilak Rao

4 REPLIES

Re: API - appName on rsLineItem is always null.

Experimenter
Experimenter

Good afternoon, Thilak.
May be this is not right place to ask this question, but based on your topic it seems that you can help me.
Is there any possibility to filter project/line items based on the user. For example, one user would like to see only the project from certain customer, another user would like to see only projects which were created less than 3 month ago, etc.

 

Thanks

 

Kirill

Re: API - appName on rsLineItem is always null.

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

Hi Kirill,

 

Please let me know if there is a different forum for Rulestream API questions.

 

Your question is to the point and does not describe your enivornment or what is at your disposal. So here are

a few things:

1. From API - Yes you can do this if you are using ModelServices. It might also be possible with the Thick client but haven't looked at it much.

2. Out of the box functionality of Rulestream on desktop - The current UI has not provided such functionality so you can't do much other than sorting them by the columns.

 

Thanks,

-Thilak Rao

Re: API - appName on rsLineItem is always null.

Experimenter
Experimenter

Thanks for the info, Thilak !

Re: API - appName on rsLineItem is always null.

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

This can be achieved as shown in the sample code below:

g_msc.GetPartDesign(lineItem.partFamilyID).appDisplayName

 

where

g_msc is the modelservicesclient object.

lineItem is the rsLineItem object.

 

Thanks to Trent from Siemens PLM for sharing this tip.

 

Thanks,

-Thilak Rao