J
John B
I created a new stencil and added a few masters by copying from standard
visio masters. I renamed these and changed the shapes slightly. For one of
these, I defined a function in the stencil and the added
CALLTHIS("ThisDocument.MyFunc1","MyProg") to the shape sheet for this shape.
I saved the stencil, created a template based on the stencil and then created
a drawing based on the template. When I drag the shape to the new drawing
and double click, it calls the function in the stencil document which is the
desired behavior. Everything works. This is great.
Now I opened the stencil, added another function for another shape, edited
the shape sheet to add CALLTHIS etc for Func2, etc. If I double click the
master I am editing, the code works. Now I create a new template, and then a
new drawing. If I drag the first object to the new drawing, it works as
before when double clicked. But when I drag the 2nd object to the drawing(or
drag it first without the first object) double clicking does not work. When
I open the shape sheet, the cell for the formula is empty. Why does this
work when I drag one of the shapes and not for the other? Any ideas?
If anyone from Microsoft is listening, I have been developing for Windows
since version 2.1, c, c++, office vba, vb, atl and I am now looking at .net.
Visio is without any doubt, the worst develpment environment I have ever
worked with. The help system is practically useless and the visio interface
is anything but intuitive. I am stuck with it for the time being but working
with visio been a totally frustrating experience.
visio masters. I renamed these and changed the shapes slightly. For one of
these, I defined a function in the stencil and the added
CALLTHIS("ThisDocument.MyFunc1","MyProg") to the shape sheet for this shape.
I saved the stencil, created a template based on the stencil and then created
a drawing based on the template. When I drag the shape to the new drawing
and double click, it calls the function in the stencil document which is the
desired behavior. Everything works. This is great.
Now I opened the stencil, added another function for another shape, edited
the shape sheet to add CALLTHIS etc for Func2, etc. If I double click the
master I am editing, the code works. Now I create a new template, and then a
new drawing. If I drag the first object to the new drawing, it works as
before when double clicked. But when I drag the 2nd object to the drawing(or
drag it first without the first object) double clicking does not work. When
I open the shape sheet, the cell for the formula is empty. Why does this
work when I drag one of the shapes and not for the other? Any ideas?
If anyone from Microsoft is listening, I have been developing for Windows
since version 2.1, c, c++, office vba, vb, atl and I am now looking at .net.
Visio is without any doubt, the worst develpment environment I have ever
worked with. The help system is practically useless and the visio interface
is anything but intuitive. I am stuck with it for the time being but working
with visio been a totally frustrating experience.