Draw a shape around selection

Started by kiler40, February 09, 2015, 09:58:22 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

kiler40

Thanks for the replays to all,
@ Nikolay - this looks awesome and simple, but i`m limited with visio 2010.
@  wapperdude - i have found this option through this forum i think. and i use it. i have also found that if you make one small line, then continue from the same place where stop, it is much much easier to close the line when finished "drawing".

Yacine,
I really appreciate ALL your help. The help of all people in this forum actually.
It is the bes place for visio Q&A for both prof. and beginners.

Because of this forum i have made lot of little helpers for me (and my colleagues - whoever wants to use them) for use at work.
Everything i ask here i try to remember and use in different cases. I also try to improvemyself. I have made some things without other help (and i`m pretty proud with myself  ::) ) I must say that one year ago i didn`t know how to open the visual basic editor...
Now i`m connecting excel, changing excel from visio, importing data, linking to shape and so one all with code. All with the help of you.
Learning coding for a person that have no idea what is this is a little bit tricky.  :)
I`ll take your constructive critics and see if i can finish the hint you gave me in the stencil.

The thing is that the more i go deep the more questions pops out :)

Yes i do complex "diagrams". But actually this is a work instruction for operators that produce a product. The more simple and yet detailed, the more better to understand.
But more complex and time consuming to prepare... So i`m looking for creating a helpers in my everyday job. :)

I`ll do my best to minimize the stupidity of the questions and the things i ask, but please don`t give up one me yet ! :)

Andrei.

wapperdude

Hi Andrei...

After Yacine's memory refresher, I see where automating the "outliner" would be very beneficial.  Must admit, that I'm surprised that you need to use that technique rather than just highlighting a desired or selected path.  It would seem that path highlighting would be preferable.  Mostly because it's less cluttered.  Pretty simple to make the selected path "pop out" and be readily visible without having to lasso it.

I guess what would be really cool would be to have the equivalent of a highlighter, just trace along the path with the cursor and highlight it as the cursor moves.  Not sure Visio can do that.

Don't know if this helps or not, but, say somehow you select the objects you want focus on.  A pseudo-glow approach that Nikolay showed, would be to:
  1.)  Duplicate the shapes
  2.)  Then operations>combine
  3.)  Change line width to something like 20 - 40 pt, and change color to yellow or whatever is desired.
  4.)  Send to back and reposition under the original shapes.

That gives you a "fake" highlighting.  Probably could automate with code.

Wapperdude
Visio 2019 Pro

kiler40

Hi Wapperdude,

I can do this yes. and i can do it automated with code also. The issue is that there is a standard that uses this kind of visual representation. Outlining.
If it was not that i would not bother any of you and create this topic :)

Andrei

Visio Guy

Really impressive thread and solutions, people! Thanks for making this an interesting place to be!
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

wapperdude

Ah!!! The missing element....a standard! 
Visio 2019 Pro

kiler40

Is this bad ? Thick red line represents one. Thick blue - another. Yellow outline - third :)

wapperdude

Was there supposed to be an attachment?
Visio 2019 Pro

kiler40


Yacine

Quote from: Visio Guy on February 09, 2015, 11:09:16 AM
Yes, you will get two shapes. You can find these using Visio.ActivePage.Shapes( Visio.ActivePage.Shapes.Count ), and Count - 1.

@Chris, Now that's an important hint. In the solution I worked out, you see that I create a new master, copy the selection in this master, make the offset, ... and so on, only to make sure, to know the result (the shapes) of the offset operation.
I was thinking that the order of the shapes was related some how to their IDs. But I checked it and indeed, the order in a for each loop corresponds to the order in which the shapes were created. Thank you.
I asked this very same question here (http://visguy.com/vgforum/index.php?topic=5984.0), but the solutions were not as easy as your's.
Yacine

wapperdude

A new picture? ... there was no picture attached.
Visio 2019 Pro

Yacine

#25
All this said and tweaked and tried out, ...  but still thoughts about the problem.
When you wrote "But actually this is a work instruction for operators that produce a product. The more simple and yet detailed, the more better to understand.
But more complex and time consuming to prepare... So i`m looking for creating a helpers in my everyday job
",
I didn't realize it immediately, but this actually applies to my job too.
I do P&IDs – a lot of them – and after having drawn all the stuff that describes the system, I need to add a description about the intention of adding the one or the other feature. I need to do this for the people in the shop assembling the machines, for the programmers (FDS Functional Design Specifications), the commissioners, and so on.
What I came up with, was a tool to highlight a portion of the whole circuit, combined with a snapshot tool to get an image of the so highlighted region. This tool links the drawing to an Access DB, where the textual instructions, as well as the images are stored. I made already a post about the snapshot tool, to be found here: http://visguy.com/vgforum/index.php?topic=4773.0
Having all the highlighting and snapshot instructions in digital form, later editing is not only easy, but "possible". (Think about all the highlightings when done manually on a BIG drawing).
Now, please don't ask me to upload the tool. It is not ready. (I need someone to kick me in the ass to finish it, as most of my colleagues don't understand the benefits of such a tool – and I'm a "praise" worker.
This is just to give you some ideas, may be you can achieve to kick me in the ass!
Cheers,
Yacine
Yacine

kiler40


BTW the idea is the same. But i`m using Excel not  Access DB. There is a big file with all operations per operator no matter what part number he is producing. And since the information become too much, we have (I have) created an excel file that transforms everything and puts it into correct form to be imported into Visio..

Put some guiding table with information, draw the part of the product where the operator is working, create color schemes for what exactly he is doing in the colored area and last one (the one this topic is :) ) is finishing details somewhere in the product.
So far everything is more or less automated. :) Almost everything is thanks to this forum ;)

" as most of my colleagues don't understand the benefits of such a tool"
Same here... But from some time (one month and something) someone found out that this can be very helpful and now i`m under pressure to finish it (and of course not a single "good job" or "continue the good work" was said  ;D )

So now i`m in a fight with "CenterViewOnShape" to finish Yacine proposal :)

Andrei

Yacine

#27
Yacine

kiler40

i have started from there. (no way to know about this function :) )
But maybe i`m wrong maybe i do something wrong but this CenterViewOnShape is working for only one shape ?



Andrei

Yacine

I haven't tried it, but since you center the view on the outline, there shouldn't be any difficulty.
Yacine