Skip to content

Importing a Linked Node in Another Map / Syncing Nodes Across Maps #1706

Answered by abc16361
CD80-86 asked this question in Help
Discussion options

You must be logged in to vote

I just tested the method appendBranch and it works better, so I agree to use it. Copying does preserve node's id, but in the case that there are multiple target nodes linking to a same source node, that node id cannot be used to identify other node copies, so adding an attribute helps in this way. Here I edit a little bit more and use headless loader, maybe it runs faster in a large map, and it works no matter whether the source map is open or not. In the new code, the whole map is scanned to update multiple nodes ( from the same source, NOT different source nodes ).

// @ExecutionModes({ON_SINGLE_NODE})


def nodeLink = node.link.text
def nLnk = nodeLink.split('#')
def mapPath = nLnk[0].r…

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
11 replies
@abc16361
Comment options

@euu2021
Comment options

@CD80-86
Comment options

@abc16361
Comment options

Answer selected by CD80-86
@CD80-86
Comment options

Comment options

You must be logged in to vote
1 reply
@CD80-86
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants