Trouble applying data set to other shapes

VISIO

    Sponsored Links

    Next

  • 1. importing schema
    Hello, If I have a nice schema, created with xml spy. Can I import to visio. creating a nice visio diagram? thanks
  • 2. script to extract shapes out of vsd
    I downloaded the Nortel Visio icons which contained several individual documents with one shape per document. I want to convert this to one or more organized stencils. I'm pretty sure this could be scripted, but I'm not sure exactly where to start and I don't want to spend a week trying to get it figured out. Are there any script wizards out there that can help me flesh out following logic? Create a new stencil For each vsd file specified get the device name from the filename open the document create a new master shape on the stencil from the document.icon close the document Close the stencil It seems simple enough, but any help would be greatly appreciated. dMn
  • 3. Chris Roth ?
    Chris, Thanks for your programming of a Table Of Contents. One thing I can't seem to get is how you got the text in the combo box to be so big? What is the secret? Thanks for your help!
  • 4. How do I draw a box around entity
    I have a diagram based on a database and I want to draw a simple box around a coujple of entity and views. I am unable to activate the drawing toolbar. I select the drawing under view toolbars - shows it active but I do not see the toolbar - there is a button on my standard toolbar that states it is for drawing - again nothing happens when I click it . What am I doing wrong -- Karen

Trouble applying data set to other shapes

Postby Stanley » Tue, 20 Apr 2010 22:42:30 GMT

Hello,

I have put together a data set for one of the objects in my Visio 2007 
Professional drawing.  For simplicity, let's say that the shape is a circle.

I then want to apply the same data fields to another shape that's 
already on my drawing.  Let's say that this other shape, that does not 
yet have a data set attached to it, is a square.

So here is what I am doing, but apparently I am making a mistake somewhere:

I click on the circle and look in the Shape Data Sets window, and I see 
the name of my shape data set.  (Let's pretend that I named this data 
set 'xyz'.)  I click on 'xyz'; I click on the radio button that says 
'Apply checked shape data sets to: "Shapes selected in drawing"'; I 
uncheck 'Remove existing data sets'.

Then I go to the square, to which I want to apply data set 'xyz', and I 
click on 'Apply'.

So I go to the Shape Data window, expecting to see 'xyz' and all of its 
data fields.  Instead, however, the window is empty.  Data set 'xyz' has 
not been applied.  I have the opportunity to establish a new data set, 
but I don't want to do that.  I already have a data set called 'xyz', 
but I can't seem to get 'xyz' attached to additional shapes.

I would appreciate any help.

Thank you.

Stanley

Trouble applying data set to other shapes

Postby Stanley » Wed, 21 Apr 2010 10:21:34 GMT

Hello,

I posted this earlier, but it may not have been sent.  So I am sending 
it again.

I have put together a data set for one of the objects in my Visio 2007 
Professional drawing.  For simplicity, let's say that the shape is a circle.

I then want to apply the same data fields to another shape that's 
already on my drawing.  Let's say that this other shape, that does not 
yet have a data set attached to it, is a square.

So here is what I am doing, but apparently I am making a mistake somewhere:

I click on the circle and look in the Shape Data Sets window, and I see 
the name of my shape data set.  (Let's pretend that I named this data 
set 'xyz'.)  I click on 'xyz'; I click on the radio button that says 
'Apply checked shape data sets to: "Shapes selected in drawing"'; I 
uncheck 'Remove existing data sets'.

Then I go to the square, to which I want to apply data set 'xyz', and I 
click on 'Apply'.

So I go to the Shape Data window, expecting to see 'xyz' and all of its 
data fields.  Instead, however, the window is empty.  Data set 'xyz' has 
not been applied.  I have the opportunity to establish a new data set, 
but I don't want to do that.  I already have a data set called 'xyz', 
but I can't seem to get 'xyz' attached to additional shapes.

I would appreciate any help.

Thank you.

Stanley

Re: Trouble applying data set to other shapes

Postby Paul Herber » Wed, 21 Apr 2010 17:48:13 GMT




Works for me.
1. drop circle on page
2. drop square on page
3. add shape data to circle
4. In shape data window right-click select Shape Data Sets
5. ensure Shapes selected in drawing is selected
6. click Add, enter name "xyz", select Create a new set from the shape selected
7. select Square
8. In shape data sets window select xyz and Apply.


-- 
Regards, Paul Herber, Sandrila Ltd.
Electronics for Visio           http://www.**--****.com/ 
Electrical for Visio            http://www.**--****.com/ 
Electronics Packages for Visio  http://www.**--****.com/ 

Re: Trouble applying data set to other shapes

Postby Stanley » Fri, 23 Apr 2010 06:33:42 GMT





Hi Paul,

Thank you for your reply.

Here is what happens for me.

1. Drop circle on page -- OK
2. Drop square on page -- OK
3. Add shape data to circle.  Now, I already have created the name "xyz" 
as the name of my data set.  Is that a problem?
4. In the window called "Shape Data", when I right-click I get the 
option for "Shape Data Sets ...", but when I choose it there is nothing. 
  I can only get something to show in the window entitled "Data Sets". 
In that window I have two options to click -- "xyz" and "Sample" 
(although I never created something called "Sample").
5. So I check "xyz" and then I go to the "Shape Data" window, but I 
still don't have any data.

Sorry to be dense.  I am doing something wrong obviously, but I don't 
see it yet.

Stanley

Re: Trouble applying data set to other shapes

Postby Stanley » Fri, 23 Apr 2010 08:23:14 GMT





Hi Paul,

Let me modify my response that I sent to you a short while ago.

Here is what happens:

I click Add, and then my options are to give it the same name that I had 
already used (that is, 'xyz') or to give it an entirely different name.

Now if I use 'xyz', then I get the message that "The name you have 
entered already exists in the current document.  Please enter a 
different name".

So if I give it a different name, then I just have to start all over 
again and reenter the shape data labels right from the start.

The problem is that in the "Add Shape Data Set" dialog box, the first 
item is "Name:", where I could enter a "xyz" (but that doesn't work) or 
some new name (which also doesn't do me any good); then I have three 
radio buttons: "Create a new set", "Create a new set from the shape 
selected in Visio" (but that is always grayed out); "Create a new set 
from an existing set", which is followed by "Shape Data Set" and a drop 
down box, which indeed contains the name "xyz".

I am really confused.

Stanley



Re: Trouble applying data set to other shapes

Postby Paul Herber » Wed, 28 Apr 2010 01:30:02 GMT

n Wed, 21 Apr 2010 19:23:14 -0400, Stanley < XXXX@XXXXX.COM > wrote:


Just try the simple instructions above, do it with a new diagram. Does that work?


--
Regards, Paul Herber, Sandrila Ltd.
Electronics for Visio http://www.sandrila.co.uk/visio-electronics/
Electrical for Visio http://www.sandrila.co.uk/visio-electrical/
Electronics Packages for Visio http://www.sandrila.co.uk/visio-electronics-packages/

Re: Trouble applying data set to other shapes

Postby Stanley » Wed, 28 Apr 2010 09:03:24 GMT

n 26-Apr-10 12:30, Paul Herber wrote:

Hi Paul,

Thank you for your reply.

I tried it again with a new diagram. But I am getting the same problem
as I described above. I have tried it every which way. If I leave the
name blank then it says that I have to enter a name. If I enter the old
name (for example, "xyz"), then it says that this name already exists,
so that I have to give it a different name. And if I do give it a
different name, then I have to create an entirely new different data set.

This is really frustrating. This should be easy, but something is going
wrong.

What should I do?

Stanley

Re: Trouble applying data set to other shapes

Postby Stanley » Wed, 28 Apr 2010 12:02:48 GMT

n 26-Apr-10 12:30, Paul Herber wrote:
Hi Paul,

I am noticing the following:

The option "Create a new set from the shape selected" is greyed out.

Stanley

Re: Trouble applying data set to other shapes

Postby Stanley » Wed, 28 Apr 2010 19:04:25 GMT

n 26-Apr-10 12:30, Paul Herber wrote:
Hi Paul,

This is interesting.

Somehow by default, I have a data set entitled "Sample". I never set
this up. Its only two data fields are entitled "Description" and "ID".
In the Shape Data Sets dialog box, under "Properties", these two data
fields are listed. In the shape data set that I set up (that is,
"XYZ"), the data fields are not listed under "Description" int he Shape
Data Sets dialog box.

Well, everything works fine with this data set entitled "Sample". I can
create a new shape, for example a star, and simply apply the "Sample" to
the star, and it is done.

The problem exists only with the shape data sets that I have created.

Given this information, what do you think is going on?

Thank you, Paul, as always.

Stanley

Re: Trouble applying data set to other shapes

Postby Stanley » Wed, 28 Apr 2010 19:12:41 GMT

n 26-Apr-10 12:30, Paul Herber wrote:
Paul,

I have determined that I have some setting that prevents my shape data
from being shared. I need to turn off that setting.

Any ideas?

Stanley

Similar Threads:

1.How can I set the "shape data" for a shape in a stencil from X

I am using Vision 2007 Trial version to learn.
Is there a sample or documentation that shows how this can be done ?
Thanks in advance.

"Al Edlund" wrote:

> what version of visio are you using? In v2007 you can read xml directly into 
> recordsets and access it via programming.
> VBA within a stencil is also an option for some. Graham Wideman discusses 
> some of the issues in his book "Visio 2003 Developers Survival Pack".
> 
> al
> 
> "Raja Cherukuri" < XXXX@XXXXX.COM > wrote in message 
> news: XXXX@XXXXX.COM ...
> >I want to build a stencil with shapes that have default "custom properties"
> > or "shape data" come off an external XML file.
> > How can I do this ?
> > Any help is greatly appreciated. 
> 
> 
> 

2.Move one shape independent of others

How can I move one shape without having all the shapes connected to it
to also move? For example, in an org chart I may want to move a
supervisor shape up so I can put a note under the box. Every
subordinate also moves up so I have to seletc them all and move them
down.

3.Custom Property Set / Applying

Hello
I have created an organisational chart and have sucessfully applied an 
extensive Custom Property Set to all the shapes.  However: I now find that if 
I add a new field to the set, or modify it in any way, I get two problems:
1. Applying wipe out values I have entered e.g. the number of hours worked
2. The new property doesn't appear in the properties box for the shares.

Any help would be appreicated.
Cheers and thanks
Chris
-- 
Thanks again

4.Shape Data Sets

Hello!

1) Is there an easy way, to share shape data sets (between different 
documents) ?
Currently, I have put all my VBA-Code into one stencil, so I can share this 
code... that's great.
Lets say, I am changing the shape data sets in document1.vsd.
When someone is working on document2.vsd, I would want him also to have the 
changed data sets. And if he make changes to the data sets, I would also want 
to be able to have them in the other documents.

If there is no easy way, is there a way?

2) Sometimes I lose some Shape Data. I know when it happen, but not really 
why, and it seems not to happen always... (depending on I don't know what)

For example:

I am working in a docuement. There I have Shape Data Sets. I assign to a 
shape two different shape data sets. Then I make a master out of this shape 
by putting it in a stencil.
Then I create a new blank document and open the previsouly created stencil. 
Now I drag the shape on to the drawing. But instead of having all of the 
shapeData, the shape has only half of the shapeData! If I look at the 
shape-data-sets, I see that only one of them are appearing.

I don't know why the other shape-data-set is not there.

Thanks!!

5.Applying custom property sets to base masters, and some funky beha

I posted this over in Visio.Developer.shapesheet, but this board seems to get 
more eyeballs and traffic so I thought I'd post it here, too. Apologies if it 
seems spammy. 

So I'm creating a bunch of masters under a base master to which I'd like to 
apply some custom properties. Following the "Step by step creating custom 
shapes" tutorial, I am mostly able to get stuff working, but there are a few 
frustrating instances of erratic behavior that I can't seem to make sense out 
of. I'm using Visio 2007.

I'm creating a new Custom Property set in the project explorer window of 
Shape Studio. Then, when I edit the shape sheet for that custom property set, 
then close it and click yes when asked if I want to update the custom 
property set. The problem begins when I try to apply the custom property set 
to a base master. It doesn't show up in the dialog box listing. My guess is 
that the shapesheet changes aren't getting committed, but I don't know why 
now and I don't know how to force them to do so.
   Any ideas?

The other weird thing is that sometimes I will open an existing custom 
properties set, and the Shape Data section in the shape sheet (which I added 
previously) will not be visible, and not editable. It is greyed out as an 
option in "Show sections". I can select it again from the "Add section" menu, 
which adds a completely new Shape Data section. Adding anything to this 
section will not be reflected when applying the behavior to base master. 
   What's going on here?

I've done a quick web search but can't find anything relevant. Any 
enlightenment is highly appreciated. 
Cheers.

6. Shape Data Sets not working as expected

7. Problems with Shape Data Sets

8. How to programmatically close shape data sets window



Return to VISIO

 

Who is online

Users browsing this forum: No registered users and 97 guest