Main Menu

Recent posts

#1
Visio Bugs (er...Issues) / Re: Visio 365 - Cannot link to...
Last post by wapperdude - May 02, 2024, 07:20:16 PM
If the problem persists, please upload file that has the issue.
#2
Programming & Code / Re: Python ... again
Last post by wapperdude - May 01, 2024, 11:25:24 PM
Take your location with you.  👀😲🙄😆
#3
Programming & Code / Re: Python ... again
Last post by Paul Herber - May 01, 2024, 08:38:02 PM
Quote from: Yacine on May 01, 2024, 07:06:55 PMP.P.S.: Welcome back, moving completed?

Haven't been away, just hovering. Not moved yet, maybe a couple of weeks.
P.S. When we move my Location will change.
#4
Programming & Code / Re: Python ... again
Last post by Yacine - May 01, 2024, 07:06:55 PM
So I would probably need to edit my old posts?

P.S.: Yes, I tried it and it actually works better than the previous one. Now you can place the images where you want them to be.

P.P.S.: Welcome back, moving completed?
#5
Programming & Code / Re: Python ... again
Last post by Paul Herber - May 01, 2024, 06:57:44 PM
Quote from: Yacine on May 01, 2024, 06:55:35 PMthe forum doesn't show uploaded images anymore.

Click the Reply button and you can drag-and-drop images.
#6
Programming & Code / Re: Python ... again
Last post by Yacine - May 01, 2024, 06:55:35 PM
I've written several posts on the subject.
https://visguy.com/vgforum/index.php?topic=9883.0
https://visguy.com/vgforum/index.php?topic=10259.0
https://visguy.com/vgforum/index.php?topic=9774.0
https://visguy.com/vgforum/index.php?topic=9810.0 - specially this one lacks from the fact that the forum doesn't show uploaded images anymore.
https://visguy.com/vgforum/index.php?topic=9216.0
https://visguy.com/vgforum/index.php?topic=8584.0
http://visguy.com/vgforum/index.php?topic=9884.0

In short:
- win32com gives you access to visio's object model, as VBA and C# do.
- Python is way faster in prototyping code than its competitors
- Jupyter Lab with its capability to run small chunks of code makes it an ideal REPL tool for Visio.

I use it mainly for manipulating data of P&IDs and PFDs, but also for fun stuff, like the Piet post, or this one
https://visguy.com/vgforum/index.php?topic=9859.0
where I generate randomly flowers.
#7
Programming & Code / Re: Python ... again
Last post by Robert K S - May 01, 2024, 03:02:52 PM
Can you explain how Python/Jupyter could be used to manipulate Visio drawings?
#8
Programming & Code / Python ... again
Last post by Yacine - May 01, 2024, 11:25:25 AM
Hi everyone,

I'm back with a topic that might seem a bit off-center for Visio, but hear me out!
Many of us here are engineers or tech enthusiasts, so I wanted to share an experience that might be relevant.

I was recently tasked with mass balance calculations for a large project.  After a decade away from this area, I needed to refresh my skills. Looking for alternatives to Excel, I explored using Python with Jupyter Notebooks.

During my library search, I discovered "handcalcs" and "forallpeople." These fantastic libraries generate human-readable calculation notebooks with unit checking!
https://github.com/connorferster/handcalcs
https://github.com/connorferster/forallpeople

For those interested, there's an excellent YouTube video by the creator of handcalcs that showcases intelligent engineering in the new millenium.
https://www.youtube.com/watch?v=FtzVN3s4yRI&ab_channel=ConnorFerster

One key takeaway from the video is the availability of Jupyter Lab as a desktop application. Here's where the connection to Visio comes in. While Jupyter Lab might be too complicated to install, the desktop version could be a game-changer for "Visioneers" wanting to manipulate Drawings the Python way!
https://github.com/jupyterlab/jupyterlab-desktop

(and the generic source for jupyterlab: https://github.com/jupyterlab/jupyterlab)

Perhaps Jupyter Lab for desktop can bridge the gap and encourage more visioneers to leverage Python's power alongside Visio.

Happy May 1st!

Yacine
#9
Visio Bugs (er...Issues) / Re: Visio 365 - Cannot link to...
Last post by Nikolay - May 01, 2024, 09:58:34 AM
The behavior does not seem to be reproducible (see the attached sample - VSDM - updates properly)

Could it be that some macro in the VSDM file prevents the formula from working?
#10
Visio Bugs (er...Issues) / Re: Visio 365 - Cannot link to...
Last post by wapperdude - April 30, 2024, 11:56:42 PM
By any chance did you rename the 1st page more than once?  If you did, with the 2nd and subsequent renamings, the page name reference in the formula becomes broken because the correspondence of the local and universal names is no longer linked.  An easily cure issue.