Error in drawing statechart with VBA

J

John

Hi,

I am working on a statechart using VBA. I got the
following error when I was trying to assign text property
to transition, like...
1.)Set mastObj = stnObj.Masters(6)
2.)Set shpObj = pagObj.Drop(mastObj, 4, 8)
3.)shpObj.Text = "first transition"

The problem is with line 3 and I get the following

runtime error '-2032465766 (86db089a)'
Requested operation is presently disabled

Please let me know where I am going wrong. I am new to
Visio VBA. Any help will be very greatly appreciated.

Thanks
 
J

John

Thanks for the reply. yes I can change the text manually.
Actually I wanted to assign all the properties from VBA
code. I posted another question on that which runs like
this...
--------------------
Subject: setting properties in Visio statechart using VBA

I am trying to draw UML statechart in Visio using VBA. I
am dropping masters(state, transition, constraint...) on
to the page.I want to set the properties of the state,
transition (like name, action, guard, ...)from VBA. I'll
appreciate if you can tell me how I can access state and
transition and set their properties ( not manually, but
from VBA code). Also please direct me to any material
which explains this.
-----------------------------

So since I was unable to assign the properties I tried
with "text", which worked for a state, I could assign the
name of the state, but couldn't change the name of the
transition. Please help me in my other question also if
you can.
Thanks again

regards
 

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