Tracker: PLCS templates  :—Open Issues not reminded or considered

[Index] [Process] [All issues] [CCB issues]

Export date: 2012-10-15 09:46:35

Row Id Category Summary Details Priority Status Resolution Release Submitter Assignee Closer
1 3572666 Help Section: templates modelling conventions We need a section in the help file detailing the modelling / naming conventions of templates 5 Open None robbod nobody nobody
2 3574113 All templates: Magicdraw loading modules issue When opening a template MD file that depends on other modules that are also depending on other modules, MD is asking every time to locate those modules. This is not solved by simply resolving the location of the modules and saving the project because sub-modules are not saved. The first thing to do is of course to set a global path variable for the plcslib/data folder : PLCSlib.data (as suggested by the plcslib help) (see attached MD_PathVariables.png) That's not enough: In a mdxml file of a template using other modules we will notice the following kind of resource path: <module resource='file:/C:/Users/rbn/Documents/sforge/plcs/plcslib/plcslib/data/contexts/OASIS/templates/Identification/dvlp/OASISIdentification.mdxml' autoloadType='ALWAYS_LOAD' readOnly='true' loadIndex='true' requiredVersion='-1'> <mount mountPoint='_17_0_1_2b2015d_1304601244526_879759_10892' mountedOn='_17_0_4_28b0143_1349086397534_979061_14665'/> </module> to avoid an absolute path here, we need to set up also the Global module paths (see attached MD_GlobalModulePath.png) so that absolute path becomes instead: <module resource='file:/C:/%3CPLCSlib.data%3E/contexts/OASIS/templates/PersonInOrganization/dvlp/OASISPersonInOrganization.mdxml' autoloadType='ALWAYS_LOAD' readOnly='true' loadIndex='true' requiredVersion='-1'> <mount mountPoint='_17_0_4_28b0143_1342682128292_182626_13644' mountedOn='_17_0_4_28b0143_1349086397534_979061_14665'/> </module> Also before committing to CVS we need to make sure that any FileProperty in the mdxml file is using the path variable: in a mdxml file => under: <options> we will find <options> ... <mdElement elementClass='StyleManager'> ... <mdElement elementClass='SimpleStyle'> ... <mdElement elementClass='PropertyManager'> ... <mdElement elementClass='ClassPathListProperty'> ... and a set of <mdElement elementClass='FileProperty'> make sure that all of the one representing a path to a template dvlp folder are using the path variable: for instance: <mdElement elementClass='FileProperty'> <value>&lt;PLCSlib.data&gt;\contexts\OASIS\templates\Organization\dvlp</value> <selectionMode xmi:value='0'/> <displayFullPath xmi:value='true'/> <useFilePreviewer xmi:value='false'/> <displayAllFiles xmi:value='true'/> <fileType>FILE_TYPE_ANY</fileType> </mdElement> <mdElement elementClass='FileProperty'> <value>C:\Users\frell\PLCSLib\plcslib\data\contexts\OASIS\templates\Classifier\dvlp</value> <selectionMode xmi:value='0'/> <displayFullPath xmi:value='true'/> <useFilePreviewer xmi:value='false'/> <displayAllFiles xmi:value='true'/> <fileType>FILE_TYPE_ANY</fileType> </mdElement> The first one is correct, but not the second one. 5 Open None phoubaux phoubaux nobody