Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Missing DiagramItems after succesful pasteSelectio (Read 4486 times)
SeppiK
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 15th, 2008
Missing DiagramItems after succesful pasteSelectio
Jan 14th, 2009 at 2:38pm
Print Post  
I use copy- and pasteSelection() to implement my own copy and paste concept.
After using this, the DiagramView.Diagram.Items holds the new objects, but they arenīt draw into the diagram.
To use DiagramView.update() and DiagramView.refresh() are unsuccessful.

  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing DiagramItems after succesful pasteSele
Reply #1 - Jan 14th, 2009 at 2:48pm
Print Post  
Do you mean those methods from the Clipboard sample? Check if the items coordinates are within the Diagram.Bounds.
  
Back to top
 
IP Logged
 
SeppiK
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 15th, 2008
Re: Missing DiagramItems after succesful pasteSele
Reply #2 - Jan 14th, 2009 at 3:03pm
Print Post  
the coordinate are present.
Here is some code of my application:

CopySelection
Code
Select All
SelectionCopy test = new SelectionCopy(new DiagramItemCollection(), new DiagramItemCollection(), new GroupCollection());
test = this.diagram.CopySelection(this.diagram, false, false);
 



PasteSelection
Code
Select All
this.diagram.PasteSelection(this.diagram, test, null, this.x, this.y);
 





  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing DiagramItems after succesful pasteSele
Reply #3 - Jan 15th, 2009 at 9:09am
Print Post  
This works fine:

Code
Select All
private void button2_Click(object sender, EventArgs e)
{
	SelectionCopy test = diagram.CopySelection(diagram, false, false);
	diagram.PasteSelection(diagram, test, null, 10, 10);
}
 



If your x and y values are 0, the cloned items will overlap the original ones and you might not be able to see them.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
SeppiK
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 15th, 2008
Re: Missing DiagramItems after succesful pasteSele
Reply #4 - Jan 15th, 2009 at 10:15am
Print Post  
It works,
but now I've the problem that some DiagramLinks switch to other anchor after moving a node.

I use the TableNode element with anchor pattern like the ERM Diagram in your demo.

In my application Iīve one input anchor and multiple output anchor per TableNode. Itīs a tree structur.
When I move the parent node after copy and paste one link switch from output to input anchor.

Before moving the parent nodes IncomingLinks list are empty.

Thx for support
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing DiagramItems after succesful pasteSele
Reply #5 - Jan 15th, 2009 at 3:09pm
Print Post  
Quote:
When I move the parent node after copy and paste one link switch from output to input anchor


I can imagine the link doing that if its Dynamic property is enabled, and if your anchor points allow both incoming and outgoing links. If that's not the case, please save your diagram into an xml file and email it to support@mindfusion.eu.

Stoyan
  
Back to top
 
IP Logged
 
SeppiK
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 15th, 2008
Re: Missing DiagramItems after succesful pasteSele
Reply #6 - Jan 16th, 2009 at 9:54am
Print Post  
I `ve send you my diagram per XML.
Before and After Moving.

greetz SeppiK
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing DiagramItems after succesful pasteSele
Reply #7 - Jan 16th, 2009 at 1:52pm
Print Post  
What Flowchart.NET version are you using?
  
Back to top
 
IP Logged
 
SeppiK
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 15th, 2008
Re: Missing DiagramItems after succesful pasteSele
Reply #8 - Jan 16th, 2009 at 3:52pm
Print Post  
Hey,

I am sorry, but I canīt check it before monday.

Have a good weekend.
  
Back to top
 
IP Logged
 
SeppiK
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 15th, 2008
Re: Missing DiagramItems after succesful pasteSele
Reply #9 - Jan 21st, 2009 at 8:04am
Print Post  
Hello,

sorry for my late answer.
We use version 5.0.2
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Missing DiagramItems after succesful pasteSele
Reply #10 - Jan 21st, 2009 at 7:06pm
Print Post  
Try that with the updated 5.0.2 assemblies from the private messages page. Let me know if you still have any problems.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint