Recent Posts

Pages: [1] 2 3 ... 10
1
General Visio / Re: stretching shape symmetrically in vertical direction
« Last post by Thomas Winkel on March 18, 2024, 02:05:54 PM »
Agree with wapperdude.
But see attached document.
This is just a gimmick to waste time with Visio coding, not a serious suggestion.
I think a ShapeSheet only variant should also be possible... :P

Best way is to use the Size & Position window which I always have docked to the left side.
2
Shapes & Templates / Re: Shape rotates after splitting connector
« Last post by zhuravsky on March 17, 2024, 11:55:59 PM »
Curious, why are you saving file to vsd and not vsdx?
- I prefer VSD because thre is no difference if it has macro inside or not

In V2019, to split a connector, you don't need to add any connection points to the shape
- I NEED connection point with specially assigned name and located in exact place. I do not like how Visio defines connections automatically.

In Control Point section, two controls are hard locked to connection points.  That eliminates the usefulness of the control point.  Is there a reason for this?
- Functionality of connection point stays the same, control was used only for getting help when mouse pointer stops over control. Here I found only one issue - control sometime covers handles and changing of size will be difficult. By the way, when you create shape, control does not cover the handle, problem comes only after I drop shape form stencil.

Those same two control points have named rows that end with .X or .Y.  This is a problem.  X and Y are cell names.  This is causing some confusion for the dynamic cells.  Rename those rows
-No

Not serious, but the Action section isn't used, delete it.
-No, let it be for "following expansion"

3
Programming & Code / Re: Shape within a shape
« Last post by Thomas Winkel on March 17, 2024, 04:03:37 PM »
Glad that I could help. But please call me Thomas 8)
4
General Visio / Re: stretching shape symmetrically in vertical direction
« Last post by wapperdude on March 17, 2024, 10:18:35 AM »
No.
5
General Visio / stretching shape symmetrically in vertical direction
« Last post by alk on March 17, 2024, 09:43:15 AM »
Hi, is there an option to stretch a shape in 2 directions vertically symultaniously while keeping the center in place, I know if I change the value of the vertical size it will usually do it symetrically, but I want to do it via dragging? Useful when adding lots of graph limits?
Thanks,
AL
6
Programming & Code / Re: Shape within a shape
« Last post by Nlevesque on March 16, 2024, 01:03:13 PM »
See attached document. Is it that what you want?

This is only possible with code.
I used SpatialNeighbors as wapperdude suggested.
See the EventXFMod in ShapeSheet of the small shape.
This triggers the code on move.
I set formulas to the room-shape. So changes are applied immediately.

In your project you should store the code in the stencil, not in the documents.
That's easier to maintain.

Thanks Mr. Winkel. I see that it works. Which means you saved me twice in a row. Thanks a whole lot!!!!!!
7
User-submitted Stuff / Re: Flexible DIN Rail Shape
« Last post by Thomas Winkel on March 16, 2024, 03:10:35 AM »
Quote
There you can find link for this project: Visio-Resources
Nice knowledge base, I didn't know that.
Learned that most of the little functions that I implemented to run from ShapeSheet (SendToBack, Ungroup, ...) are unnecessary as this can be done with DOCMD() :D
With "shape database" I had a modern web app in mind:
Responsive, great usability, as webpage and also seamless integrated into Visio via AddIn.
Unfortunately I have no idea about web development.

Quote
Didn't know a DIN rail could be bent.  Much demand for such?  😆😆😆
Yes, for carousels, particle accelerators, ...  ;D
8
Programming & Code / Re: Shape within a shape
« Last post by Thomas Winkel on March 15, 2024, 10:06:32 AM »
See attached document. Is it that what you want?

This is only possible with code.
I used SpatialNeighbors as wapperdude suggested.
See the EventXFMod in ShapeSheet of the small shape.
This triggers the code on move.
I set formulas to the room-shape. So changes are applied immediately.

In your project you should store the code in the stencil, not in the documents.
That's easier to maintain.
9
General Visio / Re: Set data in multiple selections
« Last post by Surrogate on March 15, 2024, 08:02:21 AM »
Visio seems to have a problem with your dynamic Label.

Usually i use trick, add new row in User-defined cell and use formula like:
Code
IF(Prop.T1.Invisible,SETF(GetRef(Prop.A1),"Source "&Prop.T1),SETF(GetRef(Prop.A1),""))
Just as result

10
Programming & Code / Re: Shape within a shape
« Last post by Nlevesque on March 15, 2024, 08:01:32 AM »
Do you have the various pieces of data for each prewiring shape stored somewhere?  A database or an Excel file for instance? 

In your example there's CAT6 indicated.  Had to be specified someplace. Cable ID???  Where it routes to???  Surely you're not making this info up on the fly?

Basically I have a different shape for every type of cables I use on a project. 23 shapes overall. I put 5 of them in the screen shot below. So the CAT6 you're referring to is not dynamic. It's part of the shape. The COMPID, which I'm actually making up on the fly is the part I want to automate. Right now that COMPID is a shape data in which I write the info I want each time I import a shape on the plan. The info is formatted like this     FLOOR-ROOM-USE-SEQUENTIAL NUMBER. So for exemple a CAT6 cable connected to a TV in the master bedroom on the 1st floor would look like this FL2-MBED-TV-01.

The first data will be in the shape sheet of the page. Something like User.Floor|FL2 that the prewiring shape will be able to get once on the page with the formula User.Floor|ThePage(User.Floor). the 3rd and 4th data will come from drop down menu's. I want the 2nd data to come from the shape below the prewiring shape. So it could be something like User.Room|MBED in the room shapesheet but I need a way for the prewiring shape to be able to get that information just from being dragged above it.
   
Pages: [1] 2 3 ... 10