Skip to content

Export / visualize #354

Answered by igordejanovic
fkgl asked this question in Q&A
Oct 16, 2021 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

If I understand the question correctly you are trying to achieve the same effect from Python code what can be done through textx generate command?

textx visualize is an old command which has been superseded by textx generate as visualization is nothing more but generating output in dot, plantUML or some other graph language.

textx generate is implemented here. You can see that it calls registered generator function here. Generators are registered using registration and discovery API.

textX has several built-in generators which you can see with textx list-generators. To call them see this part of the doc.

For example, to visualize .tx files:

from textx import metamodel_for_file
from textx i…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fkgl
Comment options

@igordejanovic
Comment options

@fkgl
Comment options

Answer selected by fkgl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #353 on October 16, 2021 08:36.