i’ve search for hours to find an answer but didn’t get it, hope to find it here.
Im using VISIO 2016 and C# as a consol.
So want to make a single page with shapes on it from an extern CSV in right order. Thats working fine but i can’t scale the page on the diagram, couse its have to be dynamically i cant use a fix page size.
I’ve tryied out:
That doesnt work for me, maybe its a problem on my side, becouse i don’t used scale for pages befor. Would be nice if somebody could help me with tips or link, thx.
@dvvde,
Kindly send us the complete details of the use case, including source files, code and let us know which Aspose.Diagram API version you are using. We will investigate and share our findings with you.
Thank you for your answer. Of course i can do, that modul became informations about some references, now the modul have to draw this with VISIO 2016. The Informations came over a CSV-File.
This happens in here:
@dvvde,
Your code is not in fully compilable form because the Felder class is unknown. Kindly share details of the Felder class or simplify the code. Your response is awaited.
@dvvde,
We require your source documents Vorlage.vsdx and Testdaten.csv to replicate the problem in our environment. We recommend our clients to share the complete details of the use case.
Thanks for your anwser, now i have solved the problem, but im not lucky with that. My “Vorlage.vsdx” is at size A0, so the programm count the Elements at y and x axis and calculate the max height and max width, so it can set the propertys. It works with other formats fine, but if there any other way to resolve this problem? I guess my solution is not the proper way.
My project is at attachement, hope its complette now.
@dvvde,
We could not find the icons in the generated output VSDX drawing as shown in the screenshot. Kindly let us know the shapes which you have added and page scale factor value. We will investigate and share our findings with you.
No problem, its a standart shape from VISIO, so i supposed that you know it.
I have the issues at every 2D and 3D model. The icons inside the shape doesnt fit in automaticly. After the *.vsdx is created, if you now open the data and resize a shape from hand, it skales itself. So i guess i do not “nudge” it.
The problem is with the shapes called, Gruppe, Benutzer and Computer (thats on the picture), they are just to small, the kind of shapes from typ: Rechenzentrum and Stadt are to large to fit.
@dvvde,
We have created a Visio drawing with Microsoft Visio application and placed a Computer shape as shown in your screenshot. We have set DrawingScale value at 1.5, and then saved as a VSDX drawing. We changed DrawingScale value with the latest version 17.8 of Aspose.Diagram API and this works fine in our environment.
[C#]
Diagram diagram = new Diagram(@"C:\Diagram\test2188\Input.vsdx");
diagram.Pages[0].PageSheet.PageProps.DrawingScale.Value = 0.5;
diagram.Save(@"C:\Diagram\test2188\Output101.vsdx", SaveFileFormat.VSDX);
These are the input and output drawings: InputVSDX.zip (108.2 KB) and Output17.8_VSDX.zip (97.2 KB). Your project application does not place Gruppe, Benutzer and Computer shapes. If this does not help, then kindly remove additional code steps and simply the use case. We will investigate and share our findings with you.
Thanks for your example, but my problem seems to be antoher one, it is the size, or dimension from the, i guess thats are the 2D and 3D shapemodels. So the “Computer” icon, in the upload, dosent fill the complete pixels of that shape, as you can see in “This is”, but it should fill the entire pinX and pinY size (thats 0.5 and 0.5 for me), as seen in the “This should”. The only way to make this come true is, when you resize the shape in the saved visio file.
Hope this is helpful and makes my problem visible.
@dvvde,
We have changed the size of shape ID 1 and managed to replicate the said behavior in our environment. It has been logged under the ticket ID DIAGRAMNET-51343 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.
Thank you very much for your help. I am Unfortunately in an advanced training next week. So when i find the time i am working on the project, but after that training on 18.09 i will be back.