can't retrieve sequence diagrams after importing them - uml

I have tried to import mdj file with sequence diagrams and suddenly the diagrams disappeared and turned into collaborations. i dont know how to convert them back to sequence diagrams or retrieve them back . can anyone help me
I tried to go back to the older version but i still cant retrieve them.

Related

How to format the terminal window node is using to be in sections

I'm wanting to make an application with node have a cli interface, as it needs to be ran in a terminal. I want to split the terminal into several sections, one with some identification as to who is viewing the application, another with some other random info, a menu on the side that you can use the arrow keys to move up and down the options, a main logs section, and another that you can type, and press enter to send text in. I've drawn up a little diagram of how I want to make it: (I know this looks awful, it was made in mspaint)
I've gotten the console input part working by using the readline module, but I don't even know where to really start with designing the terminal how I want it, setting text in certain sections, etc. I've looked around at things like terminal-kit, and clci, but either they didn't seem like what I wanted, or their docs/examples were a mess.
I would prefer to do this with node only, not using another application in another language, as all of the stuff going to the console sections will be from the same node application.
I found the blessed library at https://github.com/chjj/blessed. It is based on the ncurses library (written in C, https://en.wikipedia.org/wiki/Ncurses) and it allows you to create different sections with specified heights, widths, etc. in different areas of the terminal. Very useful in theory, and you can follow the advice on the github page, clone the repo into your desktop, look into the test folder, and then run the different files ie. node test/widget-form.js to see the different types of interfaces that you can create in your terminal.
It hasn't really worked for me, because it keeps crashing on my end, but I see that there are a lot of open pull requests and that people are still trying, so it might be working for some, although I think that the usage for some "widgets" is limited. The next best thing I can recommend is either blessed-contrib or neo-blessed, the former being developed by some dude from Facebook. Blessed-contrib is newer so you might have more luck with it, but it's essentially made for visual output, so you'd be able to create a section for a log, a selection menu, a paragraph section, etc. but nothing to create an area where you can input text (so 4/5 of what you need), based on my reading of the documentation, which you'll find here https://github.com/yaronn/blessed-contrib.
I personally think it's dope. Good luck with it, I'm going through the motions of understanding the documentation better myself, and I've delved pretty deeply in it, so feel free to reach out if you need any help.
On another note, let me know if you've found anything else other than the resources I mentioned, which would be very helpful for me, as the alternative right now is for me to code the text user interface myself using C and the ncurses library, which I'm trying to avoid if it's unnecessary :)
EDIT:
I found something for you and for me that might send us in the right direction. Good news. This is the gitter-cli. It uses the library I mentioned above blessed. If you clone the gitter-cli's repo, follow the instructions to get a token and create an account, and join one of the rooms (you can find the name of the rooms like 'gitterHQ/javascript' on the gitter.im website), you'll see that the chat works. There might be some optimizations I'm not aware of, but I recommend just delving into their code while also delving into the blessed documentation to understand how it works. It should give you an idea of what to do next.
It took me a lot of hours to find all these different resources and connect the dots so you should definitely check them out.

Forge Color Display Error

I have set up the color scheme to identify the different system of the building services in Revit and Navisworks. When I uploaded to the forge viewer, the colors were shown correctly at the beginning. However, when I zoomed in, some of the colors were disappeared. Did anyone have this problem? How could the problem be solved?
Thank you.
Forge Display Error:
Zooming Lo01
Apologizing for any inconvenience caused, this might be a known issue of our model extraction service for the Revit, it has been logged as REVIT-120524 in our case system to let our dev team to allocate time to investigate it. You can send this id to forge.help#autodesk.com to inquire updates in the future.
BTW, the reason caused this issue I discovered is there are many MEP system type, and they have owned different colored material, fittings will take materail color from the first system type from corrosponding MEP systems. Currently, there is not formal solution to avoid this. We apology for this again. Fortunately, there is a workaroud you could try:
Split your MEP models into servral RVT files that contain single pipe system, duct system and others.
Upload them to the Forge for translation seperately.
Load translated models via the Forge Viewer.
Hope it helps.
This workaround is working on my live projects now, but might not suite for you. And it's not the formal solution, you might have to use it at your own risk.

Save tkinter canvas for reimport and add-ons

Strangely worded but a rather potential strange situation.
I'm plotting on a canvas a massive number of lines, err points in some cases. This plotting goes beyond the edge of the screen...by the time all the data is included at a decent, usable resolution it would probably be in the area of 10,000-20,000x10,000-20,000 pixels...maybe bigger than that even. In the current situation where I'm only displaying maybe 1-2% of the data to the screen it takes 30 seconds to create the graph. I got to thinking this morning that maybe my best bet given how much more data is going to be presented before everything is said and done would be to create an initial graph and save the image and then display the image since it should be much quicker to display the image of the graph already created/saved then to create it each and every time I run the program.
I started doing some research into the idea this morning and have run into a few problems and questions to help me decide if this is a good idea or not.
When I try to
from PIL import Image, ImageTk
I get the error message that it cannot import ImageTk
If I try
import PIL
I get no errors. I'm using Linux and Python 3.4.3. Since several of the ideas involve ImageTk, how do I correct the importing problem?
Edit:
Also when I try
from PIL import ImageGrab
I get the error no module named _grabscreen. Since that falls under PIL shouldn't it have been installed with PIL?
I know I would still need to install pyscreenshot to try the one technique I've seen presented here on SO.
Do any of these methods save the full canvas or only what you see on the physical screen. I would be wanting to save everything which is a much larger image then the physical screen display?
After saving the image and bringing it back up would I still be able to scroll around the image with tkinter? As well, would I be able to add extras to the image, in terms of adding points of interest to the image(this would be a road map image).
So far I've only ever used tkinter for line graphs and not anything else so I don't have the experience to know the limitations versus what I might be wanting to do.
I have a few other ideas of how I might be able to handle the problem but none of the other ideas are as fast as this idea would be.
I just to need to get an idea as to what the limitations are to decide if I want to try to go any further with testing this idea out or not.
Thanks.

Libraries for text manipulation

So...
I plan on doing an animation that pulls all the text from the screen to the middle and lets it pulse like a heart. For that I checked if I'm able to manipulate whole Strings and Chars the way I'm able to manipulate circles, for example. I found the libraries Nexttext and Fontastic, but those seem to be outdated, therefore I can't use them with Processing 3.0. Than there is the library Geomerative, which I manged to install through Processings library manager, but this one yields the error "duplicate libraries", which I can't find a , for me understandable, workaround for. I'm also using minim, since I combine the pulse with music input, minim works fine though.
Thus I'm asking if anyone here has an idea on how to fix this error, make the outdated libraries run or maybe someone has an alternative way/library to manipulate text.
Apparently the processing forum is not that active, hence I'm asking here, there was one suggestions tho, that I should search for similar Java libraries, which I yet have to do.
What exactly do you mean when you say you want to pull text from the screen? Do you mean you want to get text from another application and copy it into Processing? Or are you just talking about doing something inside the Processing window?
If you're just talking about manipulating text within the Processing window, then I'm not sure why you need a library for this. Processing has several functions that allow you to draw text, change its font, size, positioning, etc.
Anyway, the issue you've encountered is a known bug. Looks like the only solution for now is to use an old version of Processing. You can download them from the same place you downloaded Processing 3.
Both Geomerative and Fontastic work with Processing 3.2.3
Bare in mind is the bug Kevin mentioned.
However, the only issue I had was compiling examples that had this line:
import processing.opengl.*;
Simply remove or comment this line and the example should compile

Drawing component diagrams in TinyUML

I am working on extending a small application that uses the 'dot' tool to draw UML class and state diagrams, to implement component diagrams (I am running into a lot of problems accommodating the UML 2.x notation for the same).
I intend to display the interfaces that a particular component requires and provides through the use of lollipop notations. Now while trying to do so, I am not able to display the edges between two nodes as a straight line. Even if I am able to display one edge as a straight edge, I am unable to maintain that state for all the edges.
Just wanted to know is there any particular way apart from the usual attributes like weight, len (for neato), k, etc.? (or indeed any other tools that u may suggest ?) Appreciate your help.
Best,
Arun
Sorry I never used TinyUML, but as you asked for any other tool suggestion let me tell you that I'm very comfortable using StarUML (Open Source).

Resources