简体   繁体   English

如何在理解中一次创建多个蝴蝶图?

[英]How can I create several butterfly diagrams at once in Understand?

Background背景

In the "Show Graphic Views" menu of Understand , there is the option to create a butterfly graph , for one specific entity as seen below:在“了解”的“显示图形视图”菜单中,可以选择为一个特定实体创建蝴蝶图,如下所示:

在此处输入图像描述

In addition, there is the und command as well.此外,还有und 命令 This command has the capability of running commands in a batch in the following way:该命令具有以下方式批量运行命令的能力:

Once you have identified the commands you want to run using interactive mode, place those exact commands in a text file.确定要使用交互模式运行的命令后,将这些确切的命令放在文本文件中。 No need to include the first und command or the quit command, those are handled automatically.无需包含第一个 und 命令或 quit 命令,它们会自动处理。

Then all you have to do is run然后你所要做的就是运行

und myCommands.txt和 myCommands.txt

I have over 1000 c++ classes that I want to create butterfly diagrams for.我有超过 1000 个 c++ 类,我想为其创建蝴蝶图。 Given the automation capability of the und command, and the ability for understand to create butterfly diagrams for various entities I wanted to know....鉴于 und 命令的自动化能力,以及理解为我想知道的各种实体创建蝴蝶图的能力......

Question问题

Is there a way for Understand to automate the creation of butterfly diagrams?有没有办法让理解自动创建蝴蝶图?

Yes, you can script this using perl or Python... Open the tool, and check out the top menu, Help >> Perl API or Help >> Python API... There is a help on the API They show an example like this (create the "callby" graph for all the funcions...), just change it to butterfly. Yes, you can script this using perl or Python... Open the tool, and check out the top menu, Help >> Perl API or Help >> Python API... There is a help on the API They show an example like这个(为所有函数创建“callby”图......),只需将其更改为蝴蝶。

import understand
db = understand.open("test.udb")
for func in db.ents("function,method,procedure"):
  file = "callby_" + func.name() + ".png"
  print (func.longname(),"->",file)
  func.draw("Called By",file)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 创建后如何重命名舵图? - How can i rename a helm chart once created? 我怎么理解,哪个 ember 插件版本与 ember-cli 或节点版本兼容 - how can i understand ,which ember addon version compatibility with ember-cli or node version 无法理解如何使用其他文件中的类 - Can't understand how to use classes from other files 我们可以将两个dgml图合并为一个图吗? - Can we merge two dgml diagrams into a single one? 如何创建基于时间的 Makefile 规则? - How can I create a time-based Makefile rule? 如何从gradle中的自定义配置创建ClassLoader? - How can I create a ClassLoader from a custom configuration in gradle? 如何创建依赖于特定内核的Debian软件包 - How can I create a debian package that depends on a specific kernel 如何创建可以在其他项目之间共享的项目(依赖项)? - How do I create a project (dependency) that I can share between other projects? wpf-如何在datagrid内的扩展器和datagridrow属性之一之间创建依赖项 - wpf - how can I create a dependency between expander inside datagrid and one of datagridrow properties 如何使用 Maven 创建具有依赖项的不可执行 JAR? - How can I create a non-executable JAR with dependencies using Maven?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM