Cancel
Showing results for 
Search instead for 
Did you mean: 

SOA API: How to find a compound property segment?

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

There is a custom compound property 'abc' on DesignRevision which referes property xyz on PartRevision through "representation_for" relation.

 

abc

Path:    DesignRevision.representation_for

                        Part Revision.xyz

 

If object class name ("Design Revision") and property name ("abc") are input, is it possible to get relation (representation_for), Object class (PartRevision) and source property (xyz) as output ?

2 REPLIES

Re: SOA API: How to find a compound property segment?

Siemens Genius Siemens Genius
Siemens Genius

I'm not aware of any API that can give you this directly.

 

The compound property definitions are stored in ImanCompoundPropDef objects.

There are properties display_type_name and compound_prop_name that give you the type and property where the compound is defined.

source_type_name and source_prop_name give you the target at the end of the compound.

object_hierarchy is a string array that gives you the segments.

You would need to query the objects and parse the segments yourself.

Re: SOA API: How to find a compound property segment?

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

Thanks @jonathan_morris I will try this.