Convert to walls

  • Thread starter Convert to walls & connecting walls
  • Start date
C

Convert to walls & connecting walls

Hello everyone. A question from Mauritius Island.
How do you execute the command located in the "Plan->Convert to walls" from
..NET?
I want to, programmatically' convert lines to walls. In visio 2003, when you
draw some lines on a page, and then drop the "wall" shape on the same page, a
new menu called plan appears. Then you can click on the "Convert to walls"
command, a pop up appears and you can convert all the lines to walls. How can
you call this function within .NET?
I tried to program this functin myself, but the result is not the same,
walls doesn't connect to each other like when you do the stuff with the
"Convert to walls" command.

Can somebody help me?
Thanks a lot.

Anben.

P.s: please excuse my english, I speak french :)
 
A

Al Edlund

if you check the shapesheet for the objects you will see that it calls an
addin written by MS. A little bit of investigation and you can call the
addin from your code.
Al

"Convert to walls & connecting walls" <Convert to walls & connecting
(e-mail address removed)> wrote in message
news:[email protected]...
 
A

Anben

I found that the addin called was:
=IF(ThePage!User.visAecPage=0,RUNADDONWARGS("AEC","/INITIALIZE="),0)
in the shapeSheet, I tried this:
axVisio.Document.Application.Addons.Item("aec").Run("initialize")

but nothing happened... any ideas?
good surf on th web!
Anben
 
A

Anben

The solution:
axVisio.Document.Application.AlertResponse =
System.Windows.Forms.DialogResult.OK
axVisio.Document.Application.Addons("AEC").Run("/CONVERT=")
axVisio.Document.Application.AlertResponse = 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top