PDA

View Full Version : MS Visio VBA question to profesional



rawas
03-02-2009, 09:02 AM
MS Visio It is given: the Wizard shapes (1.vss, 2.vss, 3.vss, 4.vss, 5.vss, 6.vss) It is necessary:
1. To enter certain properties on everyone the wizard shape (type, the price, force, power and etc) to which it is possible to access program in a consequence that at addition in the project shape already had these properties.
2. By pressing of the right button of a mouse on shape make output a standart context menu and add to it a combo box
3. In this combo box to do sampling under the name, of the data which change in process of upgrade.
4. At a choice in combo box names to assign this name to shape, and other data of this name to assign to it which it is possible to access program in a consequence.
5. To count up how many and what shape, to shape with certain type, it is connected with given shape.
It is given:
There is shape with type "amplifier", it is connected by a cable for which type "cable", to the junction box for which type "box" and four directions, further it is connected by a cable for which type "cable" to the junction box for which type "box" and two directions and again shape with type "amplifier" .
Type "amplifier" has two connection points of "AmpliferIN" and "AmpliferOut".
Type "box" with 4 directions has 5 connection points of "BoxIN", "BoxOut1", "BoxOut2", "BoxOut3", "BoxOut4".

We get the circuit from types the such:" AmpliferOut "->"cable"->"BoxIn"->"BoxOut1"->"cable"->"AmpliferIN" .
Each connection point has value which need at count of.
"AmpliferOut" has value 20.
"cable" has value of 10.
"BoxOut1" has value 4 .

It is necessary:
Sum all values (there can be some values) connection points between shapes from type "Amplifier" to type "Amplifier", on a point of "AmpliferIN" it should turn out 44

6. At prompting of a mouse on shapе to show the certain data given shape.