Quantcast
Viewing all articles
Browse latest Browse all 12277

Forum Post: Custom_Origin issues and a failing Relationship class

Hello, I've submitted an SR on this topic; but thought that I'd reach out to the community to see if anyone here can lend some advice! I'd like to know exactly how the CUSTOM_ORIGIN_X (Y & Z as well) properties are supposed to function. It would appear that they are supposed to get populated with the offset between the equipment insertion point and the location of an Equipment Origin Note. However, this doesn't really do us any good as we want the location of the equipment to be defined by the location of the equipment origin note within the model file. In an attempt to get the information that we seek, I have created a custom property and assigned it an EC Expression that adds the model position and the offset dimension of the CUSTOM_ORIGIN properties, however I have some issues getting an expression working that will correctly populate this new property whether or not the equipment has an equipment origin note associated with it. In an attempt at trying something different, I have been working on creating a relationship between the EQUIPMENT and ORIGIN_EQUIPMENT classes so that I can access the model location of the note and apply it directly instead of needing to do a mathematical calculation. This has been a challenge as my EC Expression: this.GetRelatedInstance(EQUIPMENT_HAS_ORIGIN_EQUIPMENT:0:ORIGIN_EQUIPMENT).LOCATION_Y is returning a failure value within OPM.The expression is able to be evaluated by Class Editor without error so I would assume that it would be working correctly - but it is not and I don't know why. Perhaps I need to do something other than just creating a relationship and assigning it a source and target (I used 1 to 1 cardinality since one piece of equipment can only ever have one equipment origin note). Anyone have any suggestions to help me out here?

Viewing all articles
Browse latest Browse all 12277

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>