Main Menu

Recent posts

#1
Shapes & Templates / Re: Grouped Shapes WILL NOT GL...
Last post by Nikolay - Today at 08:36:23 AM
@Scott10284
Yes I confirm. For me, it is 49 shapes though (i.e. works up to 49 shapes inclusive, from 50 it does not)

One idea could be to simplify your shape (i.e. do not build your shape using groups, but instead just use multiple geometry sections of a single shape)
That is, use "combine" not "group" to build your shapes. That is also much more efficient from the performance point of view.
A shape made of 50 independent shapes is insane (there is a big difference between "geometry fragment" and "shape" in Visio)

Just to clarify the issue for anyone interested:


#2
Programming & Code / Re: Testing row type, before t...
Last post by Surrogate - Today at 07:42:06 AM
In the paper book Visio 2003 Developer's Survival Pack by Graham Wideman, I found table 36-8. There I found that visTagCnnctPt and other rows were added in the Visio 06 version.

The Visio History table indicates that version 06 was released in August 1999, before MS acquired Visio!
#3
Shapes & Templates / Re: Grouped Shapes WILL NOT GL...
Last post by wapperdude - Today at 02:53:56 AM
Ah. Could also glue using walking glue, and glue a 2D shape to the grouped shape.  What did not work was gluing the group shape to a 2D shape.
#4
Shapes & Templates / Re: Grouped Shapes WILL NOT GL...
Last post by wapperdude - May 22, 2024, 10:35:45 PM
I don't recall what the limit is, but I did a grouping that had 50+ shapes.  I was able to add a connection point, and glue a connector to it and glue a 2nd connector without a connection point with Glue to shape enabled.

Need more info.
1) are you gluing connector to this shape?
2) are trying to glue it and another 2D shape.
3) are there 1D shapes (lines / connectors) between the children shapes that aren't part of your 48 count value?
4) how is the group formed?  That is, how is the top level shape defined?  There must be a tangible shape for the connection point.
#5
Shapes & Templates / Grouped Shapes WILL NOT GLUE!!...
Last post by Scott10284 - May 22, 2024, 08:11:46 PM
I recently created a rather large smart shape, which is an assembly of grouped shaped with many features.

The overall shape has 1 connection point that I intended to glue to other connection points, but it is not working.

Further investigation suggests that visio stops gluing shapes together via connection points if your shape is over a certain number of grouped objects. My tests shows that when more than 48 objects are grouped together. visio will no longer allow you to glue that shape via connection points.

Can anyone confirm this and is there a way around it?
#6
Programming & Code / Re: Testing row type, before t...
Last post by wapperdude - May 22, 2024, 02:24:12 PM
Quote from: Surrogate on May 22, 2024, 09:52:35 AMI am sure for 119%! Because 99% of all Visio users dont use Named connection points.
The rarest users add/remove rows line by line in that section

...And even more rare are users that use shape.RowType to change the "kind" of row.

What I found is using visTagCnnctPt rarely works, but rather, it almost always produces an error.  Fortunately, substituting "0" for that seems to always work. 

Most incredibly, why did Visio even bother to differentiate between named and unnamed row types in the Connection Points section?  Merely to make the D-cell accessible?!?  Seems unnecessary.  Make them always nameable.  Just allow D-cell to be 100% accessible.  Especially, considering that once any one row is named, then that ability is always available for all existing and newly added rows...whether or not the User chooses to do so.  (After all, that's how other sections work.).

Finally,  the only real point to this named row stuff is to traumatize. The User!   To that end, I say... Name them!   Name them all!!!

Yeah. How UN-likely that M$ will ever change this???  ..."to infinity and beyond!"
#7
Suggestion Box / Panduit / Wire Duct
Last post by IamSpartacuz - May 22, 2024, 01:56:57 PM
Has anyone created a wire duct shape that can expand? Kind of like the din rail shape?
#8
Programming & Code / Re: Testing row type, before t...
Last post by Surrogate - May 22, 2024, 09:52:35 AM
Quote from: Nikolay on May 21, 2024, 11:15:11 PMI mean, you could use this logic:
- if there is at least one row, use it to find out the section "kind"
- if there are no rows at all, just re-create the section (the re-created section will allow any row "kind")

+1

Quote from: Nikolay on May 21, 2024, 11:15:11 PMBut I'm 99.999% sure nobody will ever bother to fix that
I am sure for 119%! Because 99% of all Visio users dont use Named connection points. 
The rarest users add/remove rows line by line in that section
#9
Programming & Code / Re: Testing row type, before t...
Last post by Nikolay - May 21, 2024, 11:15:11 PM
@dbramblett
I mean, you could use this logic:
- if there is at least one row, use it to find out the section "kind"
- if there are no rows at all, just re-create the section (the re-created section will allow any row "kind")

Overall, the issue looks like a Visio bug:
the section "kind" is not cleared when the last row is deleted from it.

But I'm 99.999% sure nobody will ever bother to fix that.
#10
Programming & Code / Re: Testing row type, before t...
Last post by wapperdude - May 20, 2024, 08:58:36 PM
Actually, my point is that there's no need to test!  Just don't use visTagCnnctPt.  Period. Use 0 instead.  Then, if you want a named row, see syntax given above, in reply #20.  You do not need to test.  Just define the rows as you like.   Add all unnamed, or all named, or any mixture.

Functionally, the only differences between named and unnamed are, well, being able to reference a row by name.  Yeah, I know, Duh!  and having access to the D-cell.  If you don't use either of these features, just use default unnamed.  Visio does not require you to maintain rowtype.  In fact, that was demonstrated in my reply #11 code. 

I guess, one question is,  using multiple copies of this shape?  Again, if you don't use the features of named row, then it's who cares.  Use the "0" and add to your hearts content.

The other question would be, type of connection point:  inward, outward, both.  That has nothing to do with rowtype.