-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Having trouble placing swim-lane containers on page and around all shapes #76
Comments
Note: When I move the "MyFarm" function shape, all 5 servers move with it, so it seems to still be a parent even though it may not encompass all servers visually. Ideally, I'd like to be able to lay down Functions and Phases first, then tell Visio where everything goes with phase/function designation as well as specific coordinates within. |
What happens if you comment out the Set-NextShapePosition command?
…On Tue, Jan 7, 2020 at 1:13 PM bfay65 ***@***.***> wrote:
Note: When I move the "MyFarm" function shape, all 5 servers move with it,
so it seems to still be a parent even though it may not encompass all
servers visually. Ideally, I'd like to be able to lay down Functions and
Phases first, then tell Visio where everything goes with phase/function
designation as well as specific coordinates within.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#76?email_source=notifications&email_token=ABKI2IQ5H4GWWCV5GOACIF3Q4TH63A5CNFSM4KD5QYL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIJ6IQY#issuecomment-571728963>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKI2IW3XPRC63IFEO2HFHTQ4TH63ANCNFSM4KD5QYLQ>
.
|
Exact same thing, just the whole set of objects appear down further in the middle of the pager (with regard to Y coord.) |
After you've done that, can you call .ContainerProperties.Disband() on the
"extra" container?
…On Tue, Jan 7, 2020 at 2:22 PM bfay65 ***@***.***> wrote:
Figured part of it out...If I surround everything in the Swimlane into
another object, then it works. I just would prefer not to have that extra
layer:
[image: image]
<https://user-images.githubusercontent.com/19259186/71926490-1311b780-3159-11ea-9bb0-68c3fa2178c6.png>
New-VisioContainer -shape (Get-VisioShape Swimlane) -label MyFarm -contents {
New-VisioContainer -shape (Get-VisioShape Logical) -label MyFarm -contents {
New-VisioContainer -shape (get-visioshape Domain) -label MyDomain_1 -contents {
#Set-NextShapePosition -x 1.5 -y 8
New-VisioShape -master WebServer -label PrimaryServer
New-VisioShape -master WebServer -label PrimaryServer_2
New-VisioShape -master DBServer -label SQL01
}
New-VisioContainer -shape (Get-VisioShape Location) -label DRSite -contents {
New-VisioContainer -shape (Get-VisioShape Domain) -label MyDomain_2 -contents {
New-VisioShape -master WebServer -label BackupServer
New-VisioShape -master WebServer -label BackupServer_2
}
}
New-VisioConnector -From MyDomain_1 -To MyDomain_2 -Label SQL -Color Red -Arrow
}
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#76?email_source=notifications&email_token=ABKI2ITIQWX5AGMYJDX2WA3Q4TP65A5CNFSM4KD5QYL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIKETTA#issuecomment-571754956>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKI2IUQOSNN74O5UZSQUYDQ4TP65ANCNFSM4KD5QYLQ>
.
|
Sure, so can I "set New-VisioContainer -shape (Get-VisioShape Logical)" equal to a variable when I first introduce it to get the object back again? |
If you give it a unique name, a variable will be created for it.
If you set it to a variable like that, you'll need to output the variable
$Log=...
$Log
…On Tue, Jan 7, 2020 at 2:34 PM bfay65 ***@***.***> wrote:
Sure, so can I "set New-VisioContainer -shape (Get-VisioShape Logical)"
equal to a variable when I first introduce it to get the object back again?
I.E.
$Log = New-VisioContainer -shape (Get-VisioShape Logical)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#76?email_source=notifications&email_token=ABKI2IXL6MIEROYGTAKDMELQ4TRNJA5CNFSM4KD5QYL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIKFXAQ#issuecomment-571759490>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKI2IQNNJITEQ5JF3KBNDDQ4TRNJANCNFSM4KD5QYLQ>
.
|
Hmmm...Same result with: |
Oh...well, it was worth a try. I don't have bandwidth to play around with
this right now, but maybe this weekend.
…On Tue, Jan 7, 2020 at 2:54 PM bfay65 ***@***.***> wrote:
Did that wrong...When I do it "right", am losing the swimlane as well...
[image: image]
<https://user-images.githubusercontent.com/19259186/71928693-a1883800-315d-11ea-9669-86118ba136d8.png>
New-VisioContainer -shape (Get-VisioShape Swimlane) -label Swim_1 -contents {
New-VisioContainer -shape (Get-VisioShape Logical) -label MyFarm -name Wrapper -contents {
New-VisioContainer -shape (get-visioshape Domain) -label MyDomain_1 -contents {
Set-NextShapePosition -x 3 -y 8
New-VisioShape -master WebServer -label PrimaryServer
New-VisioShape -master WebServer -label PrimaryServer_2
New-VisioShape -master DBServer -label SQL01
}
New-VisioContainer -shape (Get-VisioShape Location) -label DRSite -contents {
New-VisioContainer -shape (Get-VisioShape Domain) -label MyDomain_2 -contents {
New-VisioShape -master WebServer -label BackupServer
New-VisioShape -master WebServer -label BackupServer_2
}
}
New-VisioConnector -From MyDomain_1 -To MyDomain_2 -Label SQL -Color Red -Arrow
}
$Wrapper.ContainerProperties.Disband()
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#76?email_source=notifications&email_token=ABKI2ITTA33ISLV5PO5Y77TQ4TTZHA5CNFSM4KD5QYL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIKHTCA#issuecomment-571767176>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKI2ITYCKPZU3WTL4OHGWDQ4TTZHANCNFSM4KD5QYLQ>
.
|
Hey Mike, Thanks! |
I haven't ever worked with swimlanes before.
…On Tue, Jan 14, 2020 at 4:53 PM bfay65 ***@***.***> wrote:
Hey Mike,
Since I'm working with Cross-functional flowcharts, do you know of a way
to add functions (Swim Lanes) to a drawing where they snap/stack directly
on top of one-another (like in the UI) and the title box only shows on the
TOP lane?
Please see image/code above to see this issue.
Thanks!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#76?email_source=notifications&email_token=ABKI2ISZEFUKDONKIKIGTR3Q5Y66PA5CNFSM4KD5QYL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI6NJ7Y#issuecomment-574412031>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABKI2IRUGCZ6TQTWTY7U5DLQ5Y66PANCNFSM4KD5QYLQ>
.
|
The code below places the logical container correctly:
but when I change that to a swimlane it seems to only center on the last shape and ignore all the others:
I'm assuming swimlanes and phases are different animals since they seem to respond differently to this code compared to the other containers. Is there a way to place the swimlanes first...then add the remaining containers? I can't figure out how to do that with the Bot, since:
1. I don't see an example of laying out swimlanes and phases by themselves
2. I don't see an example of laying content out into an existing container
Here's the code that works with the logical, but when I switch to SwimLane, it get's off-kilter:
New-VisioApplication
Thanks Mike!
The text was updated successfully, but these errors were encountered: