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…

No class member being rendered to document

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.

Convert the context from shape to model element

Class member being rendered to document

Related Know-how

Related Link

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply