OrgC11 changes in Visio 2010

Started by pavane, October 11, 2012, 10:16:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pavane

In Visio 2003, I could use commands such as

Application.Addons("OrgC11").Run("/toolbar_horiz1") for horizontal layout
Application.Addons("OrgC11").Run("/toolbar_sidebyside2") for side-by-side layout

to arrange subordinates of selected shapes

Although .run("/cmd=layoutdlg") still works in Visio 2010, the others do not.
Does anyone know what, if anything, has replaced them.
It may be linked to the move to ribbon rather than command bar - but this should laso have affected the layout dialog?

This means that my code to build org charts, which worked fine in visio 2003, needs inefficient workarounds and user intervention in 2010

cesclex

I'm looking for something like that, but In my case is for 2016, did you got any workaround/solution for this?

I would like to help but I'm in the same boat right now. I'm afraid no one have replied this for years

Nikolay

#2
I believe it's

Application.Addons("OrgC11").Run ("/gallery_horiz1")
Application.Addons("OrgC11").Run ("/gallery_sidebyside2")

You can find that out by simply looking at the OrgChart DLL as text. Full list:


layoutdlg
shapedropped

fittopage
linkcopybranch

gallery_horiz1

relayout

gallery_horiz3

gallery_horiz2

gallery_horiz5

gallery_horiz4

gallery_vert1
gallery_horiz6

gallery_vert3
gallery_vert2
gallery_vert5
gallery_vert4
gallery_vert7
gallery_vert6
gallery_sidebyside1
gallery_vert8
gallery_sidebyside3
gallery_sidebyside2
changepicture
gallery_sidebyside4
insertpicture
insertpictures

showdivider
deletepicture
showpicture
hidedivider
togglepicture
hidepicture
shiftright

shiftleft
disableredraw
scalechanged

enableevents

enableredraw

wizardchanges_doc
disableevents
forcedocprocessing

setupforinteraction
addpage
waitforidle
addsyncshape

addnewshape
showdivider_doc
display5

layoutpage

hidedivider_doc
hidesubordinates

showsubordinates

convertshapes
togglesubordinates

options
editoverallprops

reduceheight

increaseheight

reducewidth
increasewidth
style01
style00
style03
style02
style05
style04
style07
style06
style09
style08
togglelayoutstyle
style10
movecloser

editalprops
exportorgdata
movefurther
diffcompare
expandsubordinates

addpicturetoposition

convertdoc

importsetstyle

picturepath


I have no idea what each of these mean, probably some are useless, most are not supposed to be used by users;
but should give you an idea.

cesclex

Quote from: Nikolay on September 04, 2017, 11:06:45 PM
I believe it's

Application.Addons("OrgC11").Run ("/gallery_horiz1")
Application.Addons("OrgC11").Run ("/gallery_sidebyside2")

You can find that out by simply looking at the OrgChart DLL as text. Full list:


layoutdlg
shapedropped

fittopage
linkcopybranch

gallery_horiz1

relayout

gallery_horiz3

gallery_horiz2

gallery_horiz5

gallery_horiz4

gallery_vert1
gallery_horiz6

gallery_vert3
gallery_vert2
gallery_vert5
gallery_vert4
gallery_vert7
gallery_vert6
gallery_sidebyside1
gallery_vert8
gallery_sidebyside3
gallery_sidebyside2
changepicture
gallery_sidebyside4
insertpicture
insertpictures

showdivider
deletepicture
showpicture
hidedivider
togglepicture
hidepicture
shiftright

shiftleft
disableredraw
scalechanged

enableevents

enableredraw

wizardchanges_doc
disableevents
forcedocprocessing

setupforinteraction
addpage
waitforidle
addsyncshape

addnewshape
showdivider_doc
display5

layoutpage

hidedivider_doc
hidesubordinates

showsubordinates

convertshapes
togglesubordinates

options
editoverallprops

reduceheight

increaseheight

reducewidth
increasewidth
style01
style00
style03
style02
style05
style04
style07
style06
style09
style08
togglelayoutstyle
style10
movecloser

editalprops
exportorgdata
movefurther
diffcompare
expandsubordinates

addpicturetoposition

convertdoc

importsetstyle

picturepath


I have no idea what each of these mean, probably some are useless, most are not supposed to be used by users;
but should give you an idea.

Thanks a lot that worked out.

Yeah not used by the users, but that's a generated orgc charts what I needed to implement based on user preferences in my web application, tried to use ASPOSE, but so far didn't work so well as I expected to so I went to Macro side and your solution worked as wonders.