Class Inherits

  • Thread starter johan.svallbring
  • Start date
J

johan.svallbring

Hi,

Im new to VBA programming and I have a question.

My plan is to read information from a database(ADODB Connection). This
has been sorted allready.

I want to take this information and draw diffrent Symbols and populate
them with diffrent properties.

My question is then if I can make heritage with my classes, and if so
how do I define them

I want one base class that is a general figure, then 3 other that
inherits from this.
 
M

Mark Nelson [MS]

It's not clear what your intent is here. Do you want to drop the same shape
every time and have it dynamically take on the right look based on your
data? That is a multi-shape, which you can learn more about here:
http://blogs.msdn.com/visio/archive/2006/07/21/673305.aspx

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.
 
J

johan.svallbring

Thanks for your response.

The data I wanna draw is a number of probes that are connected to the
a set of routers that are connected to a set of servers. The
information regarding what I wanna draw is stored in a database, among
with other properties(i.e, IP, interface, etc)

To explain what I wanna do a bit further. I want make a sort of a list
with objects from a class, for the diffrent types of nodes. That is
one list with all the probes, one for the routers and one for the
servers. But since some of the properties of all theese nodes are
common for everyone I would like to make a base class that other
classes can Inherit. The usual OOP thinking.

So no, I don't want to drop the same shape, I want to drop the same
shape for every Probe, same for every router etc. But ofcourse add the
diffrent properties(IP, Interface etc) to each shape as text beside it

Hope this clears my thaughts a bit

Thanks



Mark Nelson [MS] skrev:
 
J

John Marshall, MVP

Inheritance would be a nice feature, but it is not available. When thinking
of Visio shapes you have to thing old school rather than OO.

You will have to think in terms of generic shapes that have optional
features that can be displayed or hidden based on the information provided.
If you generate the diagrams from scratch, you can determine the shape to be
dropped as you read the information. If you want to refresh the information
and that may change the type of shape, then you will have t consider using a
multi shape as Mark mentioned. (The multi shape is basically the same
generic shape with optional parts that I mentioned earlier.)

You do mention "different properties... as text beside it". This can be done
and if you want to expand to graphical indicators, the feature you should be
looking at is Data Graphics. Take a look at
http://msdn2.microsoft.com/en-us/library/aa468596.aspx

Hey Mark, how about considering changing the shape model to allow shapes to
inherit from other shapes?

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm

Thanks for your response.

The data I wanna draw is a number of probes that are connected to the
a set of routers that are connected to a set of servers. The
information regarding what I wanna draw is stored in a database, among
with other properties(i.e, IP, interface, etc)

To explain what I wanna do a bit further. I want make a sort of a list
with objects from a class, for the diffrent types of nodes. That is
one list with all the probes, one for the routers and one for the
servers. But since some of the properties of all theese nodes are
common for everyone I would like to make a base class that other
classes can Inherit. The usual OOP thinking.

So no, I don't want to drop the same shape, I want to drop the same
shape for every Probe, same for every router etc. But ofcourse add the
diffrent properties(IP, Interface etc) to each shape as text beside it

Hope this clears my thaughts a bit

Thanks



Mark Nelson [MS] skrev:
It's not clear what your intent is here. Do you want to drop the same
shape
every time and have it dynamically take on the right look based on your
data? That is a multi-shape, which you can learn more about here:
http://blogs.msdn.com/visio/archive/2006/07/21/673305.aspx

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.
 
A

Al Edlund

John,
Another scenario might include the use of property sets. For the work I do I
had to start with the construct of types/subtypes with property sets as
appropriate. When I drop the shape I add the properties appropriate for what
is being added to the drawing. Types can include network active, network
passive, media/connectivity, wintel, unix, other.
Al
John Marshall said:
Inheritance would be a nice feature, but it is not available. When
thinking of Visio shapes you have to thing old school rather than OO.

You will have to think in terms of generic shapes that have optional
features that can be displayed or hidden based on the information
provided. If you generate the diagrams from scratch, you can determine the
shape to be dropped as you read the information. If you want to refresh
the information and that may change the type of shape, then you will have
t consider using a multi shape as Mark mentioned. (The multi shape is
basically the same generic shape with optional parts that I mentioned
earlier.)

You do mention "different properties... as text beside it". This can be
done and if you want to expand to graphical indicators, the feature you
should be looking at is Data Graphics. Take a look at
http://msdn2.microsoft.com/en-us/library/aa468596.aspx

Hey Mark, how about considering changing the shape model to allow shapes
to inherit from other shapes?

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm

Thanks for your response.

The data I wanna draw is a number of probes that are connected to the
a set of routers that are connected to a set of servers. The
information regarding what I wanna draw is stored in a database, among
with other properties(i.e, IP, interface, etc)

To explain what I wanna do a bit further. I want make a sort of a list
with objects from a class, for the diffrent types of nodes. That is
one list with all the probes, one for the routers and one for the
servers. But since some of the properties of all theese nodes are
common for everyone I would like to make a base class that other
classes can Inherit. The usual OOP thinking.

So no, I don't want to drop the same shape, I want to drop the same
shape for every Probe, same for every router etc. But ofcourse add the
diffrent properties(IP, Interface etc) to each shape as text beside it

Hope this clears my thaughts a bit

Thanks



Mark Nelson [MS] skrev:
It's not clear what your intent is here. Do you want to drop the same
shape
every time and have it dynamically take on the right look based on your
data? That is a multi-shape, which you can learn more about here:
http://blogs.msdn.com/visio/archive/2006/07/21/673305.aspx

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.

Hi,

Im new to VBA programming and I have a question.

My plan is to read information from a database(ADODB Connection). This
has been sorted allready.

I want to take this information and draw diffrent Symbols and populate
them with diffrent properties.

My question is then if I can make heritage with my classes, and if so
how do I define them

I want one base class that is a general figure, then 3 other that
inherits from this.
 
J

johan.svallbring

Thanks all of you for the input. I have now a more detailed view of
what I need to do

Thanks

John,
Another scenario might include the use of property sets. For the work I doI
had to start with the construct of types/subtypes with property sets as
appropriate. When I drop the shape I add the properties appropriate for what
is being added to the drawing. Types can include network active, network
passive, media/connectivity, wintel, unix, other.
Al


Inheritance would be a nice feature, but it is not available. When
thinking of Visio shapes you have to thing old school rather than OO.
You will have to think in terms of generic shapes that have optional
features that can be displayed or hidden based on the information
provided. If you generate the diagrams from scratch, you can determine the
shape to be dropped as you read the information. If you want to refresh
the information and that may change the type of shape, then you will have
t consider using a multi shape as Mark mentioned. (The multi shape is
basically the same generic shape with optional parts that I mentioned
earlier.)
You do mention "different properties... as text beside it". This can be
done and if you want to expand to graphical indicators, the feature you
should be looking at is Data Graphics. Take a look at
http://msdn2.microsoft.com/en-us/library/aa468596.aspx
Hey Mark, how about considering changing the shape model to allow shapes
to inherit from other shapes?
John...    Visio MVP
Thanks for your response.
The data I wanna draw is a number of probes that are connected to the
a set of routers that are connected to a set of servers. The
information regarding what I wanna draw is stored in a database, among
with other properties(i.e, IP, interface, etc)
To explain what I wanna do a bit further. I want make a sort of a list
with objects from a class, for the diffrent types of nodes. That is
one list with all the probes, one for the routers and one for the
servers. But since some of the properties of all theese nodes are
common for everyone I would like to make a base class that other
classes can Inherit. The usual OOP thinking.
So no, I don't want to drop the same shape, I want to drop the same
shape for every Probe, same for every router etc. But ofcourse add the
diffrent properties(IP, Interface etc) to each shape as text beside it
Hope this clears my thaughts a bit
Thanks
Mark Nelson [MS] skrev:
It's not clear what your intent is here.  Do you want to drop the same
shape
every time and have it dynamically take on the right look based on your
data?  That is a multi-shape, which you can learn more about here:
http://blogs.msdn.com/visio/archive/2006/07/21/673305.aspx
--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation
This posting is provided "AS IS" with no warranties, and confers no
rights.
Hi,
Im new to VBA programming and I have a question.
My plan is to read information from a database(ADODB Connection). This
has been sorted allready.
I want to take this information and draw diffrent Symbols and populate
them with diffrent properties.
My question is then if I can make heritage with my classes, and if so
how do I define them
I want one base class that is a general figure, then 3 other that
inherits from this.- Dölj citerad text -

- Visa citerad text -
 
J

John Marshall, MVP

Thanks Al. We should get together for coffee. How about we get out of this
cold weather and head over to the west coast for the Visio Conference? ;-)

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm
Al Edlund said:
John,
Another scenario might include the use of property sets. For the work I do
I had to start with the construct of types/subtypes with property sets as
appropriate. When I drop the shape I add the properties appropriate for
what is being added to the drawing. Types can include network active,
network passive, media/connectivity, wintel, unix, other.
Al
John Marshall said:
Inheritance would be a nice feature, but it is not available. When
thinking of Visio shapes you have to thing old school rather than OO.

You will have to think in terms of generic shapes that have optional
features that can be displayed or hidden based on the information
provided. If you generate the diagrams from scratch, you can determine
the shape to be dropped as you read the information. If you want to
refresh the information and that may change the type of shape, then you
will have t consider using a multi shape as Mark mentioned. (The multi
shape is basically the same generic shape with optional parts that I
mentioned earlier.)

You do mention "different properties... as text beside it". This can be
done and if you want to expand to graphical indicators, the feature you
should be looking at is Data Graphics. Take a look at
http://msdn2.microsoft.com/en-us/library/aa468596.aspx

Hey Mark, how about considering changing the shape model to allow shapes
to inherit from other shapes?

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm

Thanks for your response.

The data I wanna draw is a number of probes that are connected to the
a set of routers that are connected to a set of servers. The
information regarding what I wanna draw is stored in a database, among
with other properties(i.e, IP, interface, etc)

To explain what I wanna do a bit further. I want make a sort of a list
with objects from a class, for the diffrent types of nodes. That is
one list with all the probes, one for the routers and one for the
servers. But since some of the properties of all theese nodes are
common for everyone I would like to make a base class that other
classes can Inherit. The usual OOP thinking.

So no, I don't want to drop the same shape, I want to drop the same
shape for every Probe, same for every router etc. But ofcourse add the
diffrent properties(IP, Interface etc) to each shape as text beside it

Hope this clears my thaughts a bit

Thanks



Mark Nelson [MS] skrev:
It's not clear what your intent is here. Do you want to drop the same
shape
every time and have it dynamically take on the right look based on your
data? That is a multi-shape, which you can learn more about here:
http://blogs.msdn.com/visio/archive/2006/07/21/673305.aspx

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.

Hi,

Im new to VBA programming and I have a question.

My plan is to read information from a database(ADODB Connection).
This
has been sorted allready.

I want to take this information and draw diffrent Symbols and
populate
them with diffrent properties.

My question is then if I can make heritage with my classes, and if so
how do I define them

I want one base class that is a general figure, then 3 other that
inherits from this.
 
A

Al Edlund

Sounds like a plan. Maybe play a little pool on monday evening.
al

John Marshall said:
Thanks Al. We should get together for coffee. How about we get out of this
cold weather and head over to the west coast for the Visio Conference?
;-)

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm
Al Edlund said:
John,
Another scenario might include the use of property sets. For the work I
do I had to start with the construct of types/subtypes with property sets
as appropriate. When I drop the shape I add the properties appropriate
for what is being added to the drawing. Types can include network active,
network passive, media/connectivity, wintel, unix, other.
Al
John Marshall said:
Inheritance would be a nice feature, but it is not available. When
thinking of Visio shapes you have to thing old school rather than OO.

You will have to think in terms of generic shapes that have optional
features that can be displayed or hidden based on the information
provided. If you generate the diagrams from scratch, you can determine
the shape to be dropped as you read the information. If you want to
refresh the information and that may change the type of shape, then you
will have t consider using a multi shape as Mark mentioned. (The multi
shape is basically the same generic shape with optional parts that I
mentioned earlier.)

You do mention "different properties... as text beside it". This can be
done and if you want to expand to graphical indicators, the feature you
should be looking at is Data Graphics. Take a look at
http://msdn2.microsoft.com/en-us/library/aa468596.aspx

Hey Mark, how about considering changing the shape model to allow shapes
to inherit from other shapes?

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm

Thanks for your response.

The data I wanna draw is a number of probes that are connected to the
a set of routers that are connected to a set of servers. The
information regarding what I wanna draw is stored in a database, among
with other properties(i.e, IP, interface, etc)

To explain what I wanna do a bit further. I want make a sort of a list
with objects from a class, for the diffrent types of nodes. That is
one list with all the probes, one for the routers and one for the
servers. But since some of the properties of all theese nodes are
common for everyone I would like to make a base class that other
classes can Inherit. The usual OOP thinking.

So no, I don't want to drop the same shape, I want to drop the same
shape for every Probe, same for every router etc. But ofcourse add the
diffrent properties(IP, Interface etc) to each shape as text beside it

Hope this clears my thaughts a bit

Thanks



Mark Nelson [MS] skrev:
It's not clear what your intent is here. Do you want to drop the same
shape
every time and have it dynamically take on the right look based on
your
data? That is a multi-shape, which you can learn more about here:
http://blogs.msdn.com/visio/archive/2006/07/21/673305.aspx

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.

Hi,

Im new to VBA programming and I have a question.

My plan is to read information from a database(ADODB Connection).
This
has been sorted allready.

I want to take this information and draw diffrent Symbols and
populate
them with diffrent properties.

My question is then if I can make heritage with my classes, and if
so
how do I define them

I want one base class that is a general figure, then 3 other that
inherits from this.
 
M

Mark Nelson [MS]

Perhaps you guys can stop by and tell me how you envision shape inheritance
while you are here.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.

Al Edlund said:
Sounds like a plan. Maybe play a little pool on monday evening.
al

John Marshall said:
Thanks Al. We should get together for coffee. How about we get out of
this cold weather and head over to the west coast for the Visio
Conference? ;-)

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm
Al Edlund said:
John,
Another scenario might include the use of property sets. For the work I
do I had to start with the construct of types/subtypes with property
sets as appropriate. When I drop the shape I add the properties
appropriate for what is being added to the drawing. Types can include
network active, network passive, media/connectivity, wintel, unix,
other.
Al
Inheritance would be a nice feature, but it is not available. When
thinking of Visio shapes you have to thing old school rather than OO.

You will have to think in terms of generic shapes that have optional
features that can be displayed or hidden based on the information
provided. If you generate the diagrams from scratch, you can determine
the shape to be dropped as you read the information. If you want to
refresh the information and that may change the type of shape, then you
will have t consider using a multi shape as Mark mentioned. (The multi
shape is basically the same generic shape with optional parts that I
mentioned earlier.)

You do mention "different properties... as text beside it". This can be
done and if you want to expand to graphical indicators, the feature you
should be looking at is Data Graphics. Take a look at
http://msdn2.microsoft.com/en-us/library/aa468596.aspx

Hey Mark, how about considering changing the shape model to allow
shapes to inherit from other shapes?

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm

Thanks for your response.

The data I wanna draw is a number of probes that are connected to the
a set of routers that are connected to a set of servers. The
information regarding what I wanna draw is stored in a database, among
with other properties(i.e, IP, interface, etc)

To explain what I wanna do a bit further. I want make a sort of a list
with objects from a class, for the diffrent types of nodes. That is
one list with all the probes, one for the routers and one for the
servers. But since some of the properties of all theese nodes are
common for everyone I would like to make a base class that other
classes can Inherit. The usual OOP thinking.

So no, I don't want to drop the same shape, I want to drop the same
shape for every Probe, same for every router etc. But ofcourse add the
diffrent properties(IP, Interface etc) to each shape as text beside it

Hope this clears my thaughts a bit

Thanks



Mark Nelson [MS] skrev:
It's not clear what your intent is here. Do you want to drop the
same shape
every time and have it dynamically take on the right look based on
your
data? That is a multi-shape, which you can learn more about here:
http://blogs.msdn.com/visio/archive/2006/07/21/673305.aspx

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.

Hi,

Im new to VBA programming and I have a question.

My plan is to read information from a database(ADODB Connection).
This
has been sorted allready.

I want to take this information and draw diffrent Symbols and
populate
them with diffrent properties.

My question is then if I can make heritage with my classes, and if
so
how do I define them

I want one base class that is a general figure, then 3 other that
inherits from this.
 
J

John Marshall, MVP

If we come over there in a few weeks, will you give us a presentation on
Visio as a development platform?

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm

Mark Nelson said:
Perhaps you guys can stop by and tell me how you envision shape
inheritance while you are here.

Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.

Al Edlund said:
Sounds like a plan. Maybe play a little pool on monday evening.
al

John Marshall said:
Thanks Al. We should get together for coffee. How about we get out of
this cold weather and head over to the west coast for the Visio
Conference? ;-)

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm
John,
Another scenario might include the use of property sets. For the work I
do I had to start with the construct of types/subtypes with property
sets as appropriate. When I drop the shape I add the properties
appropriate for what is being added to the drawing. Types can include
network active, network passive, media/connectivity, wintel, unix,
other.
Al
Inheritance would be a nice feature, but it is not available. When
thinking of Visio shapes you have to thing old school rather than OO.

You will have to think in terms of generic shapes that have optional
features that can be displayed or hidden based on the information
provided. If you generate the diagrams from scratch, you can determine
the shape to be dropped as you read the information. If you want to
refresh the information and that may change the type of shape, then
you will have t consider using a multi shape as Mark mentioned. (The
multi shape is basically the same generic shape with optional parts
that I mentioned earlier.)

You do mention "different properties... as text beside it". This can
be done and if you want to expand to graphical indicators, the feature
you should be looking at is Data Graphics. Take a look at
http://msdn2.microsoft.com/en-us/library/aa468596.aspx

Hey Mark, how about considering changing the shape model to allow
shapes to inherit from other shapes?

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm

Thanks for your response.

The data I wanna draw is a number of probes that are connected to the
a set of routers that are connected to a set of servers. The
information regarding what I wanna draw is stored in a database,
among
with other properties(i.e, IP, interface, etc)

To explain what I wanna do a bit further. I want make a sort of a
list
with objects from a class, for the diffrent types of nodes. That is
one list with all the probes, one for the routers and one for the
servers. But since some of the properties of all theese nodes are
common for everyone I would like to make a base class that other
classes can Inherit. The usual OOP thinking.

So no, I don't want to drop the same shape, I want to drop the same
shape for every Probe, same for every router etc. But ofcourse add
the
diffrent properties(IP, Interface etc) to each shape as text beside
it

Hope this clears my thaughts a bit

Thanks



Mark Nelson [MS] skrev:
It's not clear what your intent is here. Do you want to drop the
same shape
every time and have it dynamically take on the right look based on
your
data? That is a multi-shape, which you can learn more about here:
http://blogs.msdn.com/visio/archive/2006/07/21/673305.aspx

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.

Hi,

Im new to VBA programming and I have a question.

My plan is to read information from a database(ADODB Connection).
This
has been sorted allready.

I want to take this information and draw diffrent Symbols and
populate
them with diffrent properties.

My question is then if I can make heritage with my classes, and if
so
how do I define them

I want one base class that is a general figure, then 3 other that
inherits from this.
 
M

Mark Nelson [MS]

More like six I believe.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no rights.

John Marshall said:
If we come over there in a few weeks, will you give us a presentation on
Visio as a development platform?

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm

Mark Nelson said:
Perhaps you guys can stop by and tell me how you envision shape
inheritance while you are here.

Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.

Al Edlund said:
Sounds like a plan. Maybe play a little pool on monday evening.
al

Thanks Al. We should get together for coffee. How about we get out of
this cold weather and head over to the west coast for the Visio
Conference? ;-)

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm
John,
Another scenario might include the use of property sets. For the work
I do I had to start with the construct of types/subtypes with property
sets as appropriate. When I drop the shape I add the properties
appropriate for what is being added to the drawing. Types can include
network active, network passive, media/connectivity, wintel, unix,
other.
Al
Inheritance would be a nice feature, but it is not available. When
thinking of Visio shapes you have to thing old school rather than OO.

You will have to think in terms of generic shapes that have optional
features that can be displayed or hidden based on the information
provided. If you generate the diagrams from scratch, you can
determine the shape to be dropped as you read the information. If you
want to refresh the information and that may change the type of
shape, then you will have t consider using a multi shape as Mark
mentioned. (The multi shape is basically the same generic shape with
optional parts that I mentioned earlier.)

You do mention "different properties... as text beside it". This can
be done and if you want to expand to graphical indicators, the
feature you should be looking at is Data Graphics. Take a look at
http://msdn2.microsoft.com/en-us/library/aa468596.aspx

Hey Mark, how about considering changing the shape model to allow
shapes to inherit from other shapes?

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm

Thanks for your response.

The data I wanna draw is a number of probes that are connected to
the
a set of routers that are connected to a set of servers. The
information regarding what I wanna draw is stored in a database,
among
with other properties(i.e, IP, interface, etc)

To explain what I wanna do a bit further. I want make a sort of a
list
with objects from a class, for the diffrent types of nodes. That is
one list with all the probes, one for the routers and one for the
servers. But since some of the properties of all theese nodes are
common for everyone I would like to make a base class that other
classes can Inherit. The usual OOP thinking.

So no, I don't want to drop the same shape, I want to drop the same
shape for every Probe, same for every router etc. But ofcourse add
the
diffrent properties(IP, Interface etc) to each shape as text beside
it

Hope this clears my thaughts a bit

Thanks



Mark Nelson [MS] skrev:
It's not clear what your intent is here. Do you want to drop the
same shape
every time and have it dynamically take on the right look based on
your
data? That is a multi-shape, which you can learn more about here:
http://blogs.msdn.com/visio/archive/2006/07/21/673305.aspx

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.

Hi,

Im new to VBA programming and I have a question.

My plan is to read information from a database(ADODB Connection).
This
has been sorted allready.

I want to take this information and draw diffrent Symbols and
populate
them with diffrent properties.

My question is then if I can make heritage with my classes, and
if so
how do I define them

I want one base class that is a general figure, then 3 other that
inherits from this.
 
J

John Marshall, MVP

I'll be there in less than four weeks and the conference is only a few days
later.

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm
Mark Nelson said:
More like six I believe.

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.

John Marshall said:
If we come over there in a few weeks, will you give us a presentation on
Visio as a development platform?

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm

Mark Nelson said:
Perhaps you guys can stop by and tell me how you envision shape
inheritance while you are here.

Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers no
rights.

Sounds like a plan. Maybe play a little pool on monday evening.
al

Thanks Al. We should get together for coffee. How about we get out of
this cold weather and head over to the west coast for the Visio
Conference? ;-)

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm
John,
Another scenario might include the use of property sets. For the work
I do I had to start with the construct of types/subtypes with
property sets as appropriate. When I drop the shape I add the
properties appropriate for what is being added to the drawing. Types
can include network active, network passive, media/connectivity,
wintel, unix, other.
Al
Inheritance would be a nice feature, but it is not available. When
thinking of Visio shapes you have to thing old school rather than
OO.

You will have to think in terms of generic shapes that have optional
features that can be displayed or hidden based on the information
provided. If you generate the diagrams from scratch, you can
determine the shape to be dropped as you read the information. If
you want to refresh the information and that may change the type of
shape, then you will have t consider using a multi shape as Mark
mentioned. (The multi shape is basically the same generic shape with
optional parts that I mentioned earlier.)

You do mention "different properties... as text beside it". This can
be done and if you want to expand to graphical indicators, the
feature you should be looking at is Data Graphics. Take a look at
http://msdn2.microsoft.com/en-us/library/aa468596.aspx

Hey Mark, how about considering changing the shape model to allow
shapes to inherit from other shapes?

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm

Thanks for your response.

The data I wanna draw is a number of probes that are connected to
the
a set of routers that are connected to a set of servers. The
information regarding what I wanna draw is stored in a database,
among
with other properties(i.e, IP, interface, etc)

To explain what I wanna do a bit further. I want make a sort of a
list
with objects from a class, for the diffrent types of nodes. That is
one list with all the probes, one for the routers and one for the
servers. But since some of the properties of all theese nodes are
common for everyone I would like to make a base class that other
classes can Inherit. The usual OOP thinking.

So no, I don't want to drop the same shape, I want to drop the same
shape for every Probe, same for every router etc. But ofcourse add
the
diffrent properties(IP, Interface etc) to each shape as text beside
it

Hope this clears my thaughts a bit

Thanks



Mark Nelson [MS] skrev:
It's not clear what your intent is here. Do you want to drop the
same shape
every time and have it dynamically take on the right look based on
your
data? That is a multi-shape, which you can learn more about here:
http://blogs.msdn.com/visio/archive/2006/07/21/673305.aspx

--
Mark Nelson
Office Graphics - Visio
Microsoft Corporation

This posting is provided "AS IS" with no warranties, and confers
no rights.

Hi,

Im new to VBA programming and I have a question.

My plan is to read information from a database(ADODB
Connection). This
has been sorted allready.

I want to take this information and draw diffrent Symbols and
populate
them with diffrent properties.

My question is then if I can make heritage with my classes, and
if so
how do I define them

I want one base class that is a general figure, then 3 other
that
inherits from this.
 
A

Aussie Susan

Form the little playing I've done with the version of VBA in VISIO 2003, you
may be able to achieve the effect you want with the 'Implements' keyword.

Create a class (say clsBase) that has public sub's and functions that
provide the functionality you want. For example, create a public sub called
T1.

Create another class (say clsWork) that "Implements clsBase" and includes a
public sub called clsBase_T1.

Elsewhere you can create a variable of type clsBase, and assign it an
instance of clsWork:

dim X as clsBase
set X = new clsWork
X.T1

The last statement above will actually call the clsWork sub.

Is this something along the lines you were thinking?

Susan
 
J

johan.svallbring

Hi,

Yes Susan, this seems to be what I want to achive

gonna try to experiment with this

thanks!
 

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