Reply
Solved! Go to solution

Defining the Custom Occurence Property

Hi,

assuming the new ST9 fetaure of a Custom Occurence Property within assemblies I have seen that theer alsso seems to be the possibility to define lists for those Occurence Properties.

But I haven't sen any description or definition of the form of that list entries.

 

Tried several syntax of HTML, XML, semicolon and so on but all of them brought no proper result.

 

Any hints or ideas?

 

Thanks in advance

 



regards
Wolfgang
8 REPLIES
Solution
Solution
Accepted by topic author hawcad
‎07-28-2016 12:43 PM

Re: Defining the Custom Occurence Property

[ Edited ]

Hi Wolfgang,

 

All custom properties must be contained in an XML file defined in Solid Edge Options/File Locations/Custom Occurrence Property File (Program/Preferences/CustomOccurrenceProperty.xml by default). If you look at CustomOccurrenceProperty.xml that is delivered, it describes the format as well as a few example properties that will show you how to create the properties. For the list scenario, look at the 'Maintenance' property that is an example property in the file:

 

<OccurrenceProperty>
    <Name>Maintenance</Name>
    <Description>Specifies the maintenance schedule for the component (Can be overridden from upper level) (Global+Overrides)</Description>
    <PropertyBehavior>Global+Overrides</PropertyBehavior>
    <ListOfValues>
        <Value></Value>
        <Value>Daily</Value>
        <Value>Weekly</Value>
        <Value>Bi-Weekly</Value>
        <Value>Monthly</Value>
        <Value>Quarterly</Value>
        <Value>Yearly</Value>
    </ListOfValues>

    <DefaultValue></DefaultValue>

</OccurrenceProperty>

 

The first value in the example list of values will give you a blank entry.

 

Hope this helps,

Greg

Re: Defining the Custom Occurence Property

Hi,


Thanks a lot - works fine!

 

<Value> was the mistake!

 



regards
Wolfgang

Re: Defining the Custom Occurence Property

Great!

Re: Defining the Custom Occurence Property

[ Edited ]

Hi,

 

thanks for the explanation of the XML file.

But is there a GUI friendlier setting for this? Like the options.xml tool (SEadmin)?

-------
Daniël Schuiling
Solid Edge ST7
Teamcenter 10

Re: Defining the Custom Occurence Property

Hi Daniel,

 

Unfortunately there is not.

 

Greg

Re: Defining the Custom Occurence Property

Smiley LOL

Funny, new custom interface but no GUI. Lets do a propseed work method then.

-------
Daniël Schuiling
Solid Edge ST7
Teamcenter 10

Re: Defining the Custom Occurence Property

@GregLuckett, just a comment: the path you give makes no sense to me. Mine is in the preferences folder. Don't even have a "common" folder.

Bruce Shand
ST9 MP8 - Insight - Win10 - K4200

Re: Defining the Custom Occurence Property

[ Edited ]

@bshand, sorry about that, you are correct. It is in the 'Preferences' folder in the program directory. I was thinking in terms of a development build... I fixed it in the other post.

 

Greg