CE-Upd14 Item Types and Expression

Hello,

I am looking to create an Expression to retrieve the Variation value of a profile which is part of a paramteric solid.

It looks like this:

The for me most obvious expression would be this.GetElement().GetDisplayValue("Variation"), but that does not give any result.

Is it possible to retrieve this info and if yes, how to do that? 

Thanks,
Andre

Parents
  • Hi Andre,

    Apologies for delayed reply.
    I have gone through your test file and observed that, you have used expression *this.GetElement().GetDisplayString("Variation")*.
    Here, Variation is display name of property and it's internal name is *ParameterSetName*.
    So, you need to use expression as *this.GetElement().GetDisplayString("ParameterSetName")*.
    This will return you correct value at Profile item type as below:
       
       
       
       Now, if you want to fetch this *Variation* at *Parameter Solid* level  then, you need to use expression as below:  
       

    this.GetItem("SmartFeaturesSchema:SmartFeatureContainer").GetRelatedItem("SmartFeatureToCellParametersRelationship:1:ParametricCellElement").ParameterSetName

     This expression is working at report dialog but unfortunately, not working at element properties dialog. I will try to check this at my side.
     Hope this will help you.

Reply
  • Hi Andre,

    Apologies for delayed reply.
    I have gone through your test file and observed that, you have used expression *this.GetElement().GetDisplayString("Variation")*.
    Here, Variation is display name of property and it's internal name is *ParameterSetName*.
    So, you need to use expression as *this.GetElement().GetDisplayString("ParameterSetName")*.
    This will return you correct value at Profile item type as below:
       
       
       
       Now, if you want to fetch this *Variation* at *Parameter Solid* level  then, you need to use expression as below:  
       

    this.GetItem("SmartFeaturesSchema:SmartFeatureContainer").GetRelatedItem("SmartFeatureToCellParametersRelationship:1:ParametricCellElement").ParameterSetName

     This expression is working at report dialog but unfortunately, not working at element properties dialog. I will try to check this at my side.
     Hope this will help you.

Children