Author Topic: OrgC11 changes in Visio 2010  (Read 2372 times)

0 Members and 1 Guest are viewing this topic.

pavane

  • Newbie
  • *
  • Posts: 6
OrgC11 changes in Visio 2010
« on: October 11, 2012, 05:16:45 PM »
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

  • Newbie
  • *
  • Posts: 3
Re: OrgC11 changes in Visio 2010
« Reply #1 on: September 04, 2017, 05:28:50 PM »
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

  • Hero Member
  • *****
  • Posts: 670
    • UnmanagedVisio
Re: OrgC11 changes in Visio 2010
« Reply #2 on: September 04, 2017, 06: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:

Code: [Select]
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.
« Last Edit: September 04, 2017, 06:17:45 PM by Nikolay »

cesclex

  • Newbie
  • *
  • Posts: 3
Re: OrgC11 changes in Visio 2010
« Reply #3 on: September 11, 2017, 12:51:10 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:

Code: [Select]
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.