FHIR Chat · UML models · committers

Stream: committers

Topic: UML models


view this post on Zulip Grahame Grieve (May 23 2018 at 06:29):

I have just committed a new bit of functionality for resource editors. You can now layout your UML diagrams graphically. Here's how it works if you want to layout the UML graphically:

  • there's a generated file in the source directory [n].gen.svg
  • rename it to [n].svg
  • open it in Inkscape (only inkscape is supported for this option)
  • don't worry that the rendering of the text is all wrong in Inkscape
  • move the classes around to where you want them
  • don't worry about moving anything else (e.g. links, text) - it will all be ignored. don't move anything else (reasons are deep inside the svg. all you do is move the class boxes).
  • save the file
  • rebuild

view this post on Zulip Grahame Grieve (May 23 2018 at 06:31):

once you do this, the UML layout hinting in the spreadsheet will be ignored, and the class left:top from inkscape will be used instead

view this post on Zulip Grahame Grieve (May 23 2018 at 07:19):

from doing this, it might take a couple of cycles to get it nailed, since you lose track of what you're doing in inkscape after you've made enough changes. But you can simply regenerate and start again in Inkscape till you get it looking how you like

view this post on Zulip Brian Postlethwaite (Aug 10 2018 at 23:47):

Should these file also be added (pretty sure this is now a dumb question too)

view this post on Zulip Grahame Grieve (Aug 10 2018 at 23:48):

yes you need to commit them if you start using them

view this post on Zulip Grahame Grieve (Aug 10 2018 at 23:48):

that is, you need to commit the .svg file. you never commit the .gen.svg file

view this post on Zulip Brian Postlethwaite (Aug 10 2018 at 23:49):

Cool, thanks, all good then.

view this post on Zulip Brian Postlethwaite (Aug 10 2018 at 23:49):

Is telling SVN to ignore *.gen.svg a global thing, or local to my SVN install?

view this post on Zulip Brian Postlethwaite (Aug 11 2018 at 00:53):

I notice that the UML diagram for ImplementationGuide is horrendous.

view this post on Zulip Grahame Grieve (Aug 11 2018 at 03:47):

cleaning up UML diagrams is one of the things I do after the freeze

view this post on Zulip Grahame Grieve (Aug 11 2018 at 03:47):

it's one of the reasons for it .

view this post on Zulip Brian Postlethwaite (Aug 11 2018 at 03:55):

Thanks.


Last updated: Apr 12 2022 at 19:14 UTC