Page Index Toggle Pages: 1 [2] 3  Send TopicPrint
Very Hot Topic (More than 25 Replies) SVG export (Read 23861 times)
Dexter
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 62
Joined: Jun 25th, 2009
Re: SVG export
Reply #15 - Oct 28th, 2009 at 10:08am
Print Post  
Sorry about the place of the forum, only now I see this. The testing is on win forms, no web application is involved. SORRY  Embarrassed

I have send an application to support that reproduces the problem I have, at least on my side. Is there a way of moving this forum thread on win form side?
Again sorry I didn't pay attention when I have started this thread.

Regards,
Dexter
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #16 - Oct 28th, 2009 at 11:58am
Print Post  
Ok, done. Thanks for the project, the export worked fine in my test again, but I found what's different in your svg file: the numbers there have a comma used as a delimiter before the fraction part, instead of a point. I suppose we have some ToString call that should use invariant culture instead the one local for the PC. Our developer will take a look ASAP.

Stoyan
  
Back to top
 
IP Logged
 
Dexter
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 62
Joined: Jun 25th, 2009
Re: SVG export
Reply #17 - Oct 28th, 2009 at 12:29pm
Print Post  
OK! I will wait for a response for this then. About the visio exporter. I have a similar situation there. Find at the following link  http://i.imagehost.org/download/0709/TEST_VISIO a visio result using the same application I have send to you and using the following code for export:
Code
Select All
VisioExporter visioExporter = new VisioExporter();
visioExporter.CreateVisioGroups = true;
visioExporter.ExportInvisibleItems = true;
visioExporter.TemplatePath = @System.IO.Path.GetDirectoryName(Application.ExecutablePath) + @"\VisioExport.vxt";
visioExporter.Export(diagram1, saveFileDialog.FileName);
 

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #18 - Oct 28th, 2009 at 3:48pm
Print Post  
You might try setting this before exporting, and restoring it to the previous value afterwards:
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #19 - Oct 29th, 2009 at 9:32am
Print Post  
Hi,

This version of SvgExporter shouldn't depend on the current thread's CultureInfo:
https://mindfusion.eu/_beta/fcnet533_svg.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Dexter
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 62
Joined: Jun 25th, 2009
Re: SVG export
Reply #20 - Oct 29th, 2009 at 10:13am
Print Post  
Thanks for the beta version of the dll's. I did not try them and I will wait for a stable version of the fcnet. Until then the solution provided by you with the Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture; is working just fine, the svg exporter is back in business.   Smiley
Did you have a look at the visio exporter. The template, the vxt file is the one from 5.3.2 but the alignment of the links circles are squares is this OK?

Regards,
Dexter
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #21 - Oct 30th, 2009 at 11:27am
Print Post  
VisioExporter cannot reflect custom drawing and custom shapes in the exported VDX documents. To allow that, we'll have to devise some way to let you associate your own Visio shape stencils to the custom node types.

Stoyan
  
Back to top
 
IP Logged
 
Dexter
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 62
Joined: Jun 25th, 2009
Re: SVG export
Reply #22 - Dec 8th, 2009 at 7:51am
Print Post  
Stoyo, I have another question regarding the svg exporter. Now it works OK, the quality is OK but now I see that the amount of white space in the svg file is to much. Is there a possibility to export only the diagram visible when the ZoomWholeDiagram is called. I want to set the size of the portion of the diagram that can be exported.

Is it possible?

Best regards,
Dexter
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #23 - Dec 8th, 2009 at 8:42am
Print Post  
Try setting diagram.Bounds = diagram.GetContentBounds() before exporting.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Dexter
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 62
Joined: Jun 25th, 2009
Re: SVG export
Reply #24 - Dec 8th, 2009 at 9:11am
Print Post  
It worked just fine. Thanks. Grin
  
Back to top
 
IP Logged
 
Dexter
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 62
Joined: Jun 25th, 2009
Re: SVG export
Reply #25 - Jan 4th, 2010 at 3:09pm
Print Post  
Hi Stoyan,

I have another question regarding SVG export. Is there any possibility to make the circles round. Now the circles in the svg are composed of lines under a certain angle.

Regards,
Dexter
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #26 - Jan 4th, 2010 at 4:17pm
Print Post  
We'll try to implement that with an <ellipse> tag for the next release.

Stoyan
  
Back to top
 
IP Logged
 
Dexter
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 62
Joined: Jun 25th, 2009
Re: SVG export
Reply #27 - May 4th, 2010 at 10:01am
Print Post  
Hi Stoyan

I am returning to this problem because I see that the ellipse tag for exporting to svg of circles is not implemented. Is this correct?
And I have another problem. I have some links that have the pen set
"Pen.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;"

In the svg file the links are filled, so no dash is applied. How can I do this? The same thing happens if for some nodes I have set the brush to the next value
"this.Brush = new MindFusion.Drawing.HatchBrush(HatchStyle.DarkUpwardDiagonal, Color.FromArgb(220, 220, 220), _fillColor);" and again in the svg the exported node is not correct. Is this a problem on your side or I am missing something?

Best regards,
Dexter
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #28 - May 4th, 2010 at 10:56am
Print Post  
It seems dashed pens are not supported indeed. We are releasing V5.3.5 now, we'll try to implement these things soon after the release.

Stoyan
  
Back to top
 
IP Logged
 
Dexter
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 62
Joined: Jun 25th, 2009
Re: SVG export
Reply #29 - May 4th, 2010 at 11:24am
Print Post  
Hi Stoyan,

Thanks for the response. What about the others problems in the message, the export of the circles that is made using lines under a certain angle and about the brush of the nodes. Is this a no in the component? I am using the v5.3.4

Octavian
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send TopicPrint