A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Customize Svg Output



 
 
Thread Tools Display Modes
  #1  
Old October 19th, 2004, 05:11 PM
CharlesS
external usenet poster
 
Posts: n/a
Default Customize Svg Output

Dear Sirs,
I am new to Visio and I would like to know if it is possible to customize
the SVG output when saving the visio file.
For example: When I save a text item it is saved in its' own group with a
rect node that is transparent.
What I am doing is simple: drawing a rectangle and a text and grouping them.
What I get in SVG is a group containing two groups:
g
g
title
path
/g
g
title
Rect
Text
/g
/g
Specifically, I would like the grouping to be more like what is shown in
Visio.
What I want is this:
g
text
path
/g

Please Advise.
-C
  #2  
Old October 20th, 2004, 05:41 AM
Mark Nelson [MS]
external usenet poster
 
Posts: n/a
Default

Separate shapes in Visio will result in separate entities in SVG. Why not
select the rectangle and type your text in there rather than create a
separate text shape?

--
Mark Nelson
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.

"CharlesS" wrote in message
...
Dear Sirs,
I am new to Visio and I would like to know if it is possible to customize
the SVG output when saving the visio file.
For example: When I save a text item it is saved in its' own group with a
rect node that is transparent.
What I am doing is simple: drawing a rectangle and a text and grouping
them.
What I get in SVG is a group containing two groups:
g
g
title
path
/g
g
title
Rect
Text
/g
/g
Specifically, I would like the grouping to be more like what is shown in
Visio.
What I want is this:
g
text
path
/g

Please Advise.
-C



  #3  
Old October 20th, 2004, 04:41 PM
CharlesS
external usenet poster
 
Posts: n/a
Default

Dear Mark,
Thank you very much for your reply.
I just tried what you are describing and it works to some degree.
The transparent Rect is now gone but the Real Path and Text are not part of
the same group.
See Psuedo SVG below:
g v:groupContext="group"
title
g v:groupContext="shape"
title
path
/g
g v:groupContext="groupContent"
text
/g
/g

What I am trying to do is Associate a particular Text node with a Path.
I parse the SVG, by hand, and later on based on the Text Node Value I color
the path associated with that text.
So if the Text Value is "Object 1" I color my rectangle Blue.....
I attach here an SVG that is the model that I currently support
(default2.svg) and the best SVG I could generate with visio (test3.svg).
I do see that in your Attribute v:groupContext it has values "Group",
"shape", or "groupContent" which might be my only out.

Any help is greatly appreciated.
-CharlesS

"Mark Nelson [MS]" wrote in message
...
Separate shapes in Visio will result in separate entities in SVG. Why not
select the rectangle and type your text in there rather than create a
separate text shape?

--
Mark Nelson
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.

"CharlesS" wrote in message
...
Dear Sirs,
I am new to Visio and I would like to know if it is possible to customize
the SVG output when saving the visio file.
For example: When I save a text item it is saved in its' own group with a
rect node that is transparent.
What I am doing is simple: drawing a rectangle and a text and grouping
them.
What I get in SVG is a group containing two groups:
g
g
title
path
/g
g
title
Rect
Text
/g
/g
Specifically, I would like the grouping to be more like what is shown in
Visio.
What I want is this:
g
text
path
/g

Please Advise.
-C









 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Export MS-Access report output Jorge Cecílio Setting Up & Running Reports 2 November 16th, 2004 03:13 AM
Export MS-Access report output Jorge Cecílio General Discussion 3 November 15th, 2004 06:04 PM
Access query is renaming output fields - dreadfully inconvenient JonR Running & Setting Up Queries 3 May 26th, 2004 03:31 PM
customizing "documentor" output W Garrard Database Design 12 May 24th, 2004 03:07 AM


All times are GMT +1. The time now is 09:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.