Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Visio export accuracy issues (Read 4151 times)
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Visio export accuracy issues
Jun 29th, 2012 at 5:08pm
Print Post  
Hi,

I have attached 2 screenshots.
One is of a pdf that was exported, the other a Visio export.
As you can see, the Visio export has some challenges, such as:

  • The title is not complete
  • What is the large rectangle at the top with the partial title?  Shouldn't the title appear in the smaller rectangle just above the diagram?
  • The text on the connectors is not centered like the pdf
  • There is a shadow on the swim lane header text (not desired) and there are no shadows on the nodes (desired)
  • Connectors should enter the left of shape 5.1, not the top
  • The shapes appear similar to the original, except 3.3 (bottom lane) which is just a rectangle.  Is there any way to have the shapes the same as the ones in NetDiagram?


Any suggestions? 
I was using Visio 2010 to render the exported vdx file.

Jim

  

Sample_Export_-_PDF.png (Attachment deleted)
Sample_Export_-_Visio.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Visio export accuracy issues
Reply #1 - Jul 3rd, 2012 at 7:00am
Print Post  
Hi,

PdfExporter creates a PDF markup element corresponding to each low-level GDI+ primitive used when drawing nodes. E.g. there are PDF line for GDI+ line, arc for arc, text for text, etc objects created, so visual fidelity is pretty close.

On the other hand, VisioExporter creates high-level objects from the Visio's standard stencils that look close enough to the nodes and links in the diagram, but there's no guarantee for exact correspondence.

Quote:
The title is not complete.
What is the large rectangle at the top with the partial title? Shouldn't the title appear in the smaller rectangle just above the diagram?


The lane grid is exported as Visio's Functional Band object. The title of the Functional Band actually comes from the VisioExporter.LaneGridTitle property rather than from the grid's column header. The rectangles are title and subtitle bars of the Functional Band object. There's no way of displaying column headers there while row headers are shown too (otherwise you can change header positions along with lane directions by toggling the ExportLanes property between Horizontal and Vertical). If you need to get exactly the same appearance of the LaneGrid when exported to Visio, I suppose you could replace it in a temporary diagram with a bunch of rectangular ShapeNodes corresponding to the grid cells, and then export that temporary diagram.

Quote:
The text on the connectors is not centered like the pdf.
Connectors should enter the left of shape 5.1, not the top


VisioExporter exports in Visio2003 XML format, and it seems Visio2010 does not import the link points correctly from it. Below is a screenshot of my exported test diagram shown in 2003 and 2010 versions side by side. I suppose our developers will have to create a new VisioExporter version that exports in 2010 format to improve that; until then you'd better use Visio 2003 to see the proper link shapes.

Quote:
There is a shadow on the swim lane header text (not desired) and there are no shadows on the nodes (desired)


VisioExporter doesn't do anything with shadows at this time. If you see any shadows, they probably come from the default appearance of the Visio shapes used.

Quote:
The shapes appear similar to the original, except 3.3 (bottom lane) which is just a rectangle. Is there any way to have the shapes the same as the ones in NetDiagram?


What is its Id if it's from built-in shapes, or is it a custom one?

Stoyan
  

visio.png (Attachment deleted)
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Visio export accuracy issues
Reply #2 - Sep 25th, 2012 at 5:49pm
Print Post  
Regarding connector shapes in Visio 2010, our developer found that new Visio versions re-route connectors when opening a file, while Visio 2003 re-routes them only when shapes are moved. For next release we'll add some option to disable Visio routing to let you preserve original links coordinates. For the time being you could insert the following XML element for each page in the VDX file to disable it yourself:

/vdx:Pages/vdx:Page[@ID='{0}']/vdx:PageSheet/vdx:PageLayout/vdx:DynamicsOff

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