Visio 2013: How to reduce width of built-in UML class shape? - visio

I drew a class diagram of the type 'UML static structure' with Visio 2013. Now I would like to reduce the width of the class shapes in the diagram. I removed the size protection in the developer tools section and also tried to set the width in the corresponding shape sheet but nothing worked.
Does someone know how to do this?

In Visio 2013, you can change class width using a control point (yellow dot), just drag it:

The class shape is composed of a group of objects. You should drag your mouse over it to select not only the external shape, but also all the elements inside it such as the ClassName text and any possibly existing members, etc.
Now, if you remove the size protection as you mentioned, this will apply to all the elements, and then you can change the size using "Size & Position" task pane. (Ribbon --> View --> Show --> Task Panes)

Related

How do I resize a group object once I have resized objects inside the group?

When I create a group, for example attaching two shapes together, I want to later optimize the spacing and size of individual components inside the group. This leaves extra space that can be removed from the group boundary.
I was wondering if there is a way to resize the group bounds without ungrouping and regrouping. I'm picturing a similar method like cropping an image.
In code you can use the UpdateAlignmentBox method on Shape or, via the UI, the same command is available in the Shape Design group of the Developer tab:

Enterprise Architect: Control Position or Margin of Element Title

Is there a way to configure the margin or position of an element's title in Enterprise Architect?
For example, can I move the word "Foobar" closer to the top of this packaging component to save some space?
I also noticed that some elements seem to have a minimum size even when they are empty. For example, here Component1 cannot be smaller than whats shown in the picture, while the packaging component can made much smaller.
No, you cannot configure that for the standard EA elements.
The only way to influence something like that would be to write your own shapescript, link that to a stereotype and apply the stereotype to the element.
But that would probably be a bit too much if you only want to change the position of the name field.

Visio shape drop size

I have custom stencils, and the shapes are all sized relative to each other. I want to know if there is a way to change the size that they drop onto the page? So if I set the multiplier to 1.5 then every shape will drop onto the page 1.5x larger than the master shape specifies. I don't want to have to resize later.
you could use the ondrop cell of the shapesheet.
setf(getref(width), width.thepage!prop.scale)+setf(getref(height), height.thepage!prop.scale)
I wonder however if you wouldn't go better by modifiying the scale of your page directly?

Setting text alignment with visio stencil

I'm in the proccess of creating an automated visio diagram script in powershell, adding elements with text like so.
$GROUP = $CPage.Drop($Stencil_AgentList, $x, $Y)
$GROUP.Text = $MatchedGroup.Name
$GROUP.AutoConnect($QUEUE, 0, $Stencil_Connector)
most of the functionality in terms of layout works at the moment, but i'm having serious troubles with the aspects that actually make diagrams look good.
I think this image explains it best: when you 'Edit Text' on an object, it appears to be aligned to the object in some way, either below or on top of it.
what I would like is to be able to align text, from the object itself, to the right side like below, where 'Example user name' is the ideal output.
I'm assuming this involves shapesheets etc. which I have almost no experience with.
Any help or resources on modifying these stencils so the 'text' area is where I want it to be would be much appreciated.
You should check out this page : https://msdn.microsoft.com/en-us/library/aa200988(v=office.10).aspx
The Text Block of a shape is by default, the same size as the enclosing rectangle of the shape. However, you can modify its size, position, rotation and the horizontal and vertical text alignment

Visio 2010: can one change predefined shapes into others?

I am drawing a visio diagram and would like to change (i.e. reduce) the radius of the corners of some of my rounded boxes.
I searched the program's help and googled for >1/2 hour but can't find any hint on how to achieve this - at least none that works.
The context dialog shows a Rounded corner section (Right-click => Format => Line), but any change done there has no effect whatsoever. Does one maybe have to "unprotect" these settings? If so: how?
Any expert who knows how to change the corners' radius?
Later Edit: I just realized: I had used a flow chart symbol "Rounded Process" instead of a plain vanilla rounded box to draw this diagram. That's why I can't change these corners!
Is there an elegant way to globally change a shape into another type, i.e. these flowchart shapes into plain vanilla boxes? Ideally while keeping the associated text?
M.
not without coding.
However, I'm pretty sure that Sandrilla has a ready to use tool.
It's available for reasonable money. http://www.sandrila.co.uk/
You can create your own shape in such situation, you can can create your own Stencil and then add the your predefined shapes into it. To add the predefined shapes into the stencil just follow the procedure
Select the shape from an existing Stencil and Right click on it
From the Menu select 'Add to My Shapes'
Create New stencil or add it to an existing Stencil.
Now you can edit the master shape but before that you have to put the Stencil in the Edit mode.
Right click on the newly added shape in the Stencil and click 'Edit Master' -> 'Edit Master Shape'
You can now modify the Shape as per your need , for ex. If you want to edit the Corner of the Shape then you right click on the Shape in the Master and then Select 'Format' - > 'Line' and then select type of corner from the 'Round corner' section.