drawio-desktop icon indicating copy to clipboard operation
drawio-desktop copied to clipboard

Option to insert CSV from command line

Open clouddistortion opened this issue 4 years ago • 5 comments

I would very much like a way how I can programatically generate diagrams (e.g. in XML) from with my programming language of choice.

I had a look at the exported XML but that seems to be very complicated to generate that. Later I saw the GUI feature in Arrange-->Insert-->Advanced-->CSV that supports importing defined diagrams from csv but unfortunately the option is missing in the command line client

clouddistortion avatar Jan 18 '20 18:01 clouddistortion

I would really appreciate this feature!

OlegLoewen avatar Mar 15 '22 09:03 OlegLoewen

if you tell me where to begin I can provide a pull request.

OlegLoewen avatar Mar 15 '22 09:03 OlegLoewen

#202 and #8ß7 referring to each other and both are closed without further comment. So what about that request?

empusas avatar Apr 23 '22 19:04 empusas

This is 202 and it's not closed. I don't understand your point.

davidjgraph avatar Apr 25 '22 08:04 davidjgraph

This would be would be a great option indeed.

neeles83 avatar May 06 '22 13:05 neeles83

I would appreciate this too - it would be an important feature for generating diagrams in a CI/CD pipeline

mostsignificant avatar Nov 14 '22 09:11 mostsignificant

Will be available in the next release Usage (the same but input file extension is .csv):

-x file.csv -f [xml/pdf/png/jpg/svg]

m-mohamedin avatar Nov 14 '22 20:11 m-mohamedin

@m-mohamedin Excellent news. Do you have a link to the documentation for this new feature so I can have a play once it is released?

MichaelCropper avatar Nov 14 '22 23:11 MichaelCropper

@m-mohamedin Excellent news. Do you have a link to the documentation for this new feature so I can have a play once it is released?

Nothing special, just the input file is *.csv file instead of *.drawio

m-mohamedin avatar Nov 15 '22 01:11 m-mohamedin

Internal commit https://github.com/jgraph/drawio-dev/commit/fd04104ee1a48594a5248bcbf637f67139689a23

davidjgraph avatar Nov 22 '22 13:11 davidjgraph

@m-mohamedin Excellent news. Do you have a link to the documentation for this new feature so I can have a play once it is released?

Nothing special, just the input file is *.csv file instead of *.drawio

@m-mohamedin I've tried to use drawio input.csv -c but I get invalid file errors. How to do this on the command line? I've used the csv files from https://drawio-app.com/import-from-csv-to-drawio/

TrifarianGlory avatar Nov 27 '22 20:11 TrifarianGlory

@m-mohamedin Excellent news. Do you have a link to the documentation for this new feature so I can have a play once it is released?

Nothing special, just the input file is *.csv file instead of *.drawio

@m-mohamedin I've tried to use drawio input.csv -c but I get invalid file errors. How to do this on the command line? I've used the csv files from https://drawio-app.com/import-from-csv-to-drawio/

Sorry but the new version not released yet

m-mohamedin avatar Nov 28 '22 02:11 m-mohamedin

drawio -x input.csv works, generates a PDF file (default option for -x). drawio input.csv, still invalid file errors, expected to open DrawIO with the generated content.

Workaround for my use case is to generate the file but specify XML format, and then open the XML file: drawio -x input.csv -f xml drawio input.xml

Tried after installing the v20.7.4 RPM.

WilliamStenberg avatar Dec 29 '22 23:12 WilliamStenberg

Hi i am desperate to get the CSV import to work from the command line I am using the latest desktop version 21.6.5 but if I try something like this below I get no errors and no output: & "C:/Program Files/draw.io/draw.io.exe" -x C:\Temp\draw\test.csv -f xml :( is there a step by step guide ??

glisterGIT avatar Aug 09 '23 17:08 glisterGIT

Hi i am desperate to get the CSV import to work from the command line I am using the latest desktop version 21.6.5 but if I try something like this below I get no errors and no output: & "C:/Program Files/draw.io/draw.io.exe" -x C:\Temp\draw\test.csv -f xml :( is there a step by step guide ??

I get the same result. With 20.7.4 everything works fine, but with 21.6.5 there is no errors/outputs - process stuck in background

emptaj avatar Aug 10 '23 11:08 emptaj

could it be a bug do you think im not sure where to log it...

glisterGIT avatar Aug 10 '23 12:08 glisterGIT

I've tested different versions: 21.6.5, 21.6.1, 21.5.1 and 20.7.4. It works only for the last one. We can create another ticket in https://github.com/jgraph/drawio-desktop/issues section - this place is dedicated for reporting issues

emptaj avatar Aug 10 '23 12:08 emptaj

yep tested myself and it works on 20.7.4, but I can only create xml or pdf. I am really after html

glisterGIT avatar Aug 10 '23 12:08 glisterGIT