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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #30 - May 4th, 2010 at 1:49pm
Print Post  
Yes, our developer will implement all of them in a few weeks.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #31 - May 19th, 2010 at 6:00am
Print Post  
Hi Octavian,

This version adds support for dashed lines to the SVG exporter:
https://mindfusion.eu/_beta/fcnet536.zip

We can see nothing wrong with how hatch styles are exported though. What problem exactly do you have with them?

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 #32 - May 19th, 2010 at 6:16am
Print Post  
Hi Stoyan,

Here is link to a png file describing what it done and the svg looks in different svg viewers.

http://j.imagehost.org/0875/SVG_export_situations.png

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #33 - May 19th, 2010 at 7:01am
Print Post  
Below is what I am getting. Could you email to support@mindfusion.eu your exported svg?

Thanks,
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 #34 - May 19th, 2010 at 7:43am
Print Post  
Hi Stoyan,

I don't know what had happened when I tested this. Apparently now with 5.3.4 in my project the export is ok for this problem. Probably i had in my project an older version (5.3.2 or 5.3.3 or older) where this problem occurred, I don't know. You can drop this hatch style problem.

Sorry for the inconvenience I have caused.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #35 - May 19th, 2010 at 8:37am
Print Post  
The problem with not using the <ellipse> tag is that our low-level svg library never receives an actual ellipse. Shape objects you assign to ShapeNodes generate GDI+ GraphicsPaths, and these GraphicsPaths contain only line and Bezier segments that approximate the path. E.g. if you call path.AddEllipse(0, 0, 100, 100), you get a path that contains twelve Bezier curves.

Now for easier implementation the exporter flattens the path to line segments. If you don't like that and only want the shape to look better, we can easily add support for path Bezier segments too. Using an <ellipse> instead will be a problem though - we'll have to either redesign how ShapeNodes are drawn, or otherwise implement some hack specifically for shapes whose outline is an ellipse.

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 #36 - May 19th, 2010 at 11:51am
Print Post  
Hi Stoyan

I just did another test for the hatch style problem and reproduced it on windows xp sp2 bot not on windows xp sp3 (I just upgraded to sp3). So this was actually the problem (I don't know if this is a problem of the exporter dll or the svg viewer).
Apparently the same problem is on windows 7 with the application using mindfusion dll versions 5.3.4

Sorry for the lack of information.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #37 - May 19th, 2010 at 3:36pm
Print Post  
Could you send us the svg file from sp2?
  
Back to top
 
IP Logged
 
Dexter
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 62
Joined: Jun 25th, 2009
Re: SVG export
Reply #38 - May 20th, 2010 at 5:46am
Print Post  
Hi Stoyan

Here is a link to the file
http://i.imagehost.org/download/0940/State_Space_Diagram01.svg
but I must say that the same file looks OK on win xp sp3 but does not look OK on win xp sp2. (I use mozilla firefox as viewer)

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #39 - May 20th, 2010 at 8:55am
Print Post  
Hi,

Are you using the same Firefox version on the SP2 system?

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 #40 - May 21st, 2010 at 9:46am
Print Post  
Hi,

I did more testing and found out that there are inconsistencies in svg export. On my machine (win xp sp3), a virtual machine with win xp sp2 and a virtual machine windows 7 enterprise edition 32-bit but on a machine with windows 7 64-bit the svg export goes wrong.

Here are some files (one picture describing the diagram,  the other one the svg file.

http://h.imagehost.org/0230/State_Space_Diagram.png

http://a.imagehost.org/download/0750/State_Space_Diagram

The same application is used on all machines, and the application is build on platform target x86.

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #41 - May 21st, 2010 at 10:11am
Print Post  
It seems the image file created from the hatch brush was not embedded successfully in that svg. It's first encoded as a png file on disk, so I suppose it could be a security problem. Could you check what happens if you give write access to the application working directory for the logon account you are using for testing?

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: SVG export
Reply #42 - May 23rd, 2010 at 4:22pm
Print Post  
Indeed we have reproduced this with read-only access to the assembly folder. Now this version encodes the hatch images using a memory stream instead of files and should work fine:
https://mindfusion.eu/_beta/fcnet536_svghatch.zip

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 [3] 
Send TopicPrint