Online Shapes Library

Started by Thomas Winkel, April 14, 2024, 11:56:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Thomas Winkel

#15
Hmm... Maybe you're missing the used Framework (4.8).   <- The new forum SW is really cool... ( 4 . 8 )
Try to switch to the latest version you have installed:
* In Solution Explorer right click an VisioAddin
* -> Properties
* See screenshot

Your generic rack shape is cool. Should be useful for many people.

Surrogate

#16
Quote from: Thomas Winkel on April 18, 2024, 11:26:36 AMMaybe you're missing the used Framework
You are right! After adding the new Framework version, error list became 2 lines! These lines related with signing code certificates...
Quote from: Thomas Winkel on April 18, 2024, 11:26:36 AMYour generic rack shape is cool. Should be useful for many people.
Thank you  :)

Thomas Winkel

Code signing... No idea. Can you provide a screenshot?

Thomas Winkel

#18
Update:

TODO:
* Provide an installer
* Shapes can exist without stencil
* Contribute stencils (button in Visio Ribbon)
* User administration
* Delete / Rename / Edit properties
* Public / Private
* Improve search / filter functions
* ... your ideas here

Notes:
Tested to save and restore the complete DataObject.
Hoped that this will enable preview on drag.
Did not work, but at least the bounding-box is more precise.
But it differs from the original, so snap to grid does not work as expected.

Surrogate


Nikolay

#20
As a best practice, it is better not to put a PFX in the repository.
And to ensure that everything that is in public access actually compiles out of the box ;D
Sharing is Caring, as the M$ guys put it...

From a practical point of view, the fix is easy:
Open project settings, and click "Create Test Certificate" button on the signature tab:


You will be asked something, just click OK.

Surrogate

#21
Quote from: Nikolay on April 19, 2024, 11:15:47 AMclick "Create Test Certificate" button
No luck again!
QuoteFailed to get MD5 checksum for the key file "VisioAddin_TemporaryKey.pfx".
My bad, I didn't delete previous pfx key! 
Next problem with Proxy...

Nikolay

IMHO, it has nothing to do with the proxy.
You need to run the server obviously (locally on your machine, i.e. 127.0.0.1 aka localhost)

Thomas Winkel

@Surrogate:
Follow the instructions in the video (1st post) to start the server.
You also have to upload at least one stencil (using watchUploads.py) before you can add shapes from Visio.
I will change that in the next commit.
Also I will provide a dockerized server in the cloud for collaborative testing.

@Nikolay:
Many thanks for sharing your Extended Visio AddIn and for your help here!
Your publications are almost the only resources for advanced Visio coding in the internet.

Surrogate

#24
Quote from: Thomas Winkel on April 19, 2024, 02:17:48 PMFollow the instructions in the video (1st post) to start the server.
I make all these steps, but not sure that I have local server...
Quote from: Thomas Winkel on April 19, 2024, 02:17:48 PMAlso I will provide a dockerized server in the cloud for collaborative testing
Oh my God! 

Paul Herber

Quote from: Thomas Winkel on April 19, 2024, 02:17:48 PMa dockerized server

I'm so far outside the loop these days that I don't even know what this means.
Electronic and Electrical engineering, business and software stencils for Visio -

https://www.paulherber.co.uk/

Nikolay

I guess to make the whole thing functional, one would need:

- a domain name ($15 annually)
- a hosting that supports python, i.e. that "dockerized server in the cloud" ($60 annually)
- a certificate to sign the add-in ($250 annually)

wapperdude

There's a loop???  I can't even do hula hoop any more.  🤕
Visio 2019 Pro

Thomas Winkel

#28
Quote from: Paul Herber on April 19, 2024, 04:55:36 PMI'm so far outside the loop these days that I don't even know what this means.
Not sure if I use the terms correct, but Docker is a virtualization technique that allows to encapsulate server processes. Sounds complicated, but makes things much easier.

Quote from: Nikolay on April 19, 2024, 07:01:26 PM- a domain name ($15 annually)
- a hosting that supports python, i.e. that "dockerized server in the cloud" ($60 annually)
- a certificate to sign the add-in ($250 annually)
Here we go :P:
https://www.visio-shapes.com/
Server: 4€ / Month (4GB ARM64)
SSL certificate: Gratis (Let's Encrypt)
Domain: I don't know (part of my hosting package)

I added the first shape.
Lets see if the server is still running next week, and how many shapes were added... :D

Requires the current AddIn from Github.
For drag & drop the connection is too slow. Sometimes it works, sometimes not.
I think we have to provide an alternative way to paste shapes from the server.

Edit:
Ah, to sign the _add-in_
Damn, that is expensive!
Is there no other option for open source projects?

Nikolay

#29
I have read that CERTUM provides that, but never tried myself:
https://www.certum.eu/en/code-signing-certificates/
Looks like not for free, but still times cheaper than $250. Looks like they ask for just $25 (if you are developing open source and already have a compatible devices to save the certificate)

BTW, usually hosting prices like $4 per month are promotional prices; I would watch out for the renewal ;)  (i.e. for the next year)