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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |