Why the class members not being generate to document?
Trying to create custom document template on Class Diagram to output its containing classes and its members but none of the class member being rendered…
This is caused by the template is created under the Class Diagram. When the template is created under Class Diagram it is looping for the class shapes but not the actual class model. This is why it can’t retrieve its containing class members such as attributes and operations.
To retrieve the class member you can put the <ElementBaseInitiationBlock> node into your template to convert the current context from class shape to class model.Once it changed the context to class model you can then retrieve all its properties as well as its child element.
Related Know-how |
Related Link |
Leave a Reply
Want to join the discussion?Feel free to contribute!