visio

Create DB in SQL Server based on Visio Data Model

烂漫一生 提交于 2019-12-30 07:43:08
问题 I have created a database model in Visio Professional (2003). I know that the Enterprise version has the ability to create a DB in SQL Server based on the data in Visio. I do not have the option to install Enterprise. Aside from going through the entire thing one table and relationship at a time and creating the whole database from scratch, by hand, can anyone recommend any tool/utility/method for converting the visio database model into a SQL Script that can be used to create a new DB in SQL

Representing a C# Generic Method in a UML Class Diagram

二次信任 提交于 2019-12-28 17:42:52
问题 I have the following interface: public interface IRegisterable { T Register<T>(string username, string passw) where T : User, ICanLogin, new(); } User is an abstract class, and ICanLogin is another interface. Now, I want to represent the above interface with its method in a UML Class Diagram, in Visio. How can I represent the above generic method with its constraints in a Class Diagram ? 回答1: UML does not support type parametric methods directly. About the closest you'll get is to define a

How do I programmatically/automatically change the text formatting for the text of a Visio shape after I am done with the editing?

心已入冬 提交于 2019-12-25 16:41:40
问题 Here is what I want to achive: I want to use Visio to document a project. I have some Visio text boxes that contain code examples. The code examples have comments in them. The comments are line comments (either the line begins with # or they are places at the end of the line beginning with # What I need is to have Visio change the comments to another color automatically after I am done with the editing of that shape (a text square). From what I read this can be achieved with the following:

How do I programmatically/automatically change the text formatting for the text of a Visio shape after I am done with the editing?

六月ゝ 毕业季﹏ 提交于 2019-12-25 16:41:07
问题 Here is what I want to achive: I want to use Visio to document a project. I have some Visio text boxes that contain code examples. The code examples have comments in them. The comments are line comments (either the line begins with # or they are places at the end of the line beginning with # What I need is to have Visio change the comments to another color automatically after I am done with the editing of that shape (a text square). From what I read this can be achieved with the following:

How can I improve this database model?

可紊 提交于 2019-12-25 06:37:36
问题 I'm trying to model the relationship of dvd sales and dvd rentals to a customer. Although I dont think my transction table is correct. If anyone can let me know if I'm goin in the right direction with the design that would be great. 回答1: Here is one way you can design this. I am not a database expert. I have designed databases for small sized applications with few tables. I try (emphasis on try, sometimes I fail to) to be more generic as possible so I am not confined to a corner when there is

Visio add-in getting the font size of shape's text

落花浮王杯 提交于 2019-12-25 03:03:19
问题 I'm trying to determine the size of the font of a shape's text. When I use Visio as a user, I can see this value in the Shape sheet (under Character->size ) However I'm not able to understand how to access it programatically, for reading. Which section, Row and Cell indexes should I use? Or maybe use the Characters object of the shape? 回答1: I was successful in obtaining the formula by: string fontSize = shape.CellsSRC[(short) Visio.VisSectionIndices.visSectionCharacter, (short) Visio

How to Change color of a selected Visio shape in c#?

坚强是说给别人听的谎言 提交于 2019-12-25 01:35:28
问题 I want to programatically change the color of a selected shape in visio. I can identify the shape but can't find out which property to use for changing the color/style of this shape. I am using shapes from this package: Microsoft.Office.Interop.Visio.IV.Shape.Shapes Has anybody experience with changing the color? 回答1: I have an application where I change the line color by manipulating the cell in the shape sheet, like this: visioShape.get_Cells("LineColor").Formula = "RGB(255,0,0)"; 来源: https

Viso VSTO - ShapeAdded event not firing (sometimes)

人走茶凉 提交于 2019-12-24 20:18:05
问题 In my Add-in for Visio, I have set a handler for 'ShapeAdded'. This fired for the first 2 or 3 shapes that are added, but then just stop firing altogether. Here's the basic outline of how my add-in functions: User adds shape to page On ShapeAdded, a form is displayed. User enters text in form, presses search button Call to stored Procedure (parameter = user text) Form's datagridview is populated with results. User double-clicks result row required. Form closes, selected value becomes shape

How can I call a VBA macro that is defined in a different file?

霸气de小男生 提交于 2019-12-24 19:23:50
问题 The situation is the following: Macro Foo is defined in File foo.vss Macro Bar is defined in File bar.vsd. Bar() is at some point supposed to call Foo(). Is that possible? If it helps: foo.vss is a stencil file that is opened in bar.vsd. FYI: They are forcing me to use Visio/vba. Its a strange old System that generates SQL from the diagrams, really ugly. 回答1: This is possible, using the ExecuteLine method on the document containing the code. So in your example it would be something like:

Visio 2010 C# Entity Automation

ぃ、小莉子 提交于 2019-12-24 07:16:02
问题 I apologize if this was asked before, but after searching for some time, I could not find any specific answer on this. I have an ERD diagram in Visio 2010. It has around 15 tables or so. In order to have our DBAs create the database, I have to output each column to excel sheet with the data type, primary key, description. My first attempt was to simply copy and paste the column definitions table from the shape properties, but this does not work (thanks Microsoft!). After trying a few other