question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple imports from CSV with parent/child skews the output

See original GitHub issue

Repro:

Import the following draw.io CSV file, then import it again with new ID values (e.g., append a zero to each ID and parent ID value).

The result is that imports after the initial import cause the child items inside the container to all be skewed inside the container by the x,y value of the parent item.

## Shapes and their styles
# stylename: shapeType
# label: %name%
# ignore: id
# identity: id
# left: xposn
# top: yposn
# parent: rparent
# parentstyle: shape=rect;whiteSpace=wrap;html=1;horizontal=1;horizontalStack=0;resizeParent=1;fillColor=#F0F8FF;strokeColor=#666666;perimeter=rectanglePerimeter;container=1;recursiveResize=0;collapsible=0;
##*************
id,rparent,name,shapeType,xposn,yposn
a0,1,TopBox,rect,300,200
a1,a0,Name1,rect,50,80
a2,a0,Name2,rect,100,120
a3,a0,Name3,rect,150,80

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
chmduquesnecommented, Nov 30, 2021

Hi,

I found this issue while searching if there is a way to create a container shape in a csv import. I cannot find any reference to the “parent” configuration statements in the examples (found above)

# parent: parent-application
#
# parentstyle: %shapes%

I would be very interested in knowing how to use these statements, if they are supported (even if a bit buggy).

Is this something that one can experiment with?

Cheers, Christophe-Marie

By the way: thanks for the csv import! I wrote a small python library to export a python networkx graph in drawio and I will opensource it soon 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSV import Parent-child mapping | Jira
Whenever a CSV import is performed, we usually end up losing Parent-child relationships. Cause. This is due to improper mapping of the parent...
Read more >
How do I link multiple new children simultaneously using ...
Hello, I am trying to import multiple new child work items to a parent that already exists using the import from csv tool....
Read more >
Importing WooCommerce Variable Products from CSV
This article will help you understand how you can easily import and export variable products in a WooCommerce store easily using a CSV...
Read more >
Example Code To Simplify Your Imports and Exports
The example works for CSV, Excel, and Google Merchant Center exports only. You must include _my_time when configuring the export. function filter_export_by_date ...
Read more >
Product CSV Importer and Exporter - WooCommerce
Import, export, or update hundreds or thousands of products in your WooCommerce store with a single CSV. This tool supports most product types,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found