dbml to draw.io xml parser - draw.io

I wonder if anyone knows a way to convert .dbml data models to draw.io (diagrams.net) diagrams?
I tried searching for python packages but couldn't find any. I also found that draw.io can read .txt and other formats to create diagrams, but no dbml yet.

Related

Open Source Tools for MDA/MDD

I need to do some research in MDA/MDD to find Open-Source-Tools which will help me to develop code-generators and transformators.
But there are only a few tools which are actually supported. Do I search in the wrong direction?
Do You know open source tools for MDA/MDD?
Greetings Dominic
I found andromda, Eclipse Modelling Framework and a few tools like plantuml, which help to create diagrams .
My plan is to read diagrams with plantuml and convert them with emf to code and the reverse way.
Telosys could be a solution to your need (https://doc.telosys.org/)
Telosys has its own DSL to define the models (based on text files with a simple grammar), see https://doc.telosys.org/dsl-model
A Telosys model can be used to generate any kind of target language (including PlantUML) but Telosys cannot parse PlantUML files, so the input model must be a Telosys model (or a database schema if you create the model from a relational DB).

Is there any documentation for the Dia (diagram editor) module for python?

The Dia diagram editor has a python module named dia that comes with the installation of the editor. It can be used to write plugins for the editor but I can't seem to find any documentation for it. I would like to know what classes/methods are defined in the module so I can write my plugin. The only example I was able to find was a hello world plugin which is particularly useless for understanding the module.
Are the any resources/code snippets that could be used to gather further understanding of this module? I would like to get information about diagram elements in a diagram, I'm trying to write a custom export function basically.

How to make graphs in Django (using data from Excel)

What would be the most efficient way to grab data from Excel/Google Sheets using Python(2.7)/Django and then transform that data into beautiful graphs, charts etc. just like in this mockup?
Best regards,
Daviddep
Use the google docs api/sdk to read the sheet, or save them as .csv.
Read the csv, convert them to json.
Send the json to a javascript library like d3.js to create beautiful graphs
http://d3js.org/
http://datamaps.github.io/

Schema for the <project> XML in a Sitecore package

Does anyone have the schema that relates to the XML document that appears in the installer folder of a Sitecore package file?
Especially interested in the format of the project/Sources/xitems/Entries/x-item element.
That XML file seems to be a representation of the Sitecore.Install.PackageProject class, so I tried to generate an XSD from code using serialization on that class.
However, if you use a decompile to take a look at how package building and installation works, you'll find out that Sitecore has written their own serializer for this.
So I wasn't able to generate a correct XSD with the .NET serializer.
With a decompiler (I use dotPeek, freeware) you can track down a lot of information about that XML file and how it's being used by Sitecore, but I donĀ“t see a (realistic) way to extract a schema from this.
If you're going to look into it, look inside Sitecore.Kernel.dll and look for the Sitecore.Install namespace.
Have you tried asking Sitecore Support? If anyone has this schema, it's them.

generate 3dsMax object

Im coding Computer Graphich project which draws a glass in OpenGL, so I did make a glass model in 3dsMax but dont know how to generate it to file which contains co-ordinate of points of glass to use for OpenGL code. Anyone know?
You need to write 3ds max exporter plugin using 3ds max sdk and export the model. For a beginner this is going to be extremely difficult.
Alternatively, you could export from 3dsmax into some kind of format that is easy to parse and write importer for that format in your program.
Or you could try searching for the library that can parse one of the formats 3dsmax can export.
The following link is to a partially implemented .3ds loader written by: Matthew Fairfax
http://www.garagegames.com/community/resources/view/506
This was what I used while I was at university to read in objects. This loader only really includes the mesh data and possibly the material data. But if you look at the 3ds file format it should be fairly easy to get the rest of the parts reading in as well.
using google for about 20s I also found the following link which looks fairly detailed for the file format and has code at the bottom that should help you work out the loading.
http://www.martinreddy.net/gfx/3d/3DS.spec