Author Topic: Schematic capture schema: connectivity, reports, diagnostics  (Read 13366 times)

0 Members and 1 Guest are viewing this topic.

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3825
  • Ideas Visio-lized into solutions
Schematic capture schema: connectivity, reports, diagnostics
« on: February 17, 2015, 06:27:28 PM »
Shown here is a possible schematic capture system.  It is reasonably comprehensive and has many features of dedicated schematic capture applications.

As presented, it uses features not typically found with most Visio schematic symbols...that way, I didn't feel like I was intruding on other individual's efforts.  Many, like Paul Herber, have invested substantial efforts to create extensive libraries of electronic part symbols.  The goal here was to have a component symbol that contained all of the necessary connectivity information.  That way, any netlisting errors ought to be traceable to the symbol, or to schematic drawing errors...assuming the underlying code is correct, of course.  The code tries to catch the drawing errors.  All component shapes must have unique names other than "sheet.xyz".  The names dynamic connector and sheet.xyz are reserved, used only as 1-D shapes for interconnecting parts.  The example NPN shows how a single symbol can have either a schematic view or a layout view and maintain connectivity.  The connector is a smartshape with a variety of features.

Interconnections may use either dynamic connectors or line shapes.  I have not tried curved, freeform, etc...after all, this is a schematic.  The code is "hard coded" for these names.  Errors will occur if conformance is ignored.

There are two macros associated with this scheme.  The first runs thru every page and initializes/generates all of the connectivity associated features.  The 2nd allows the user to switch thru various netname display options.  The macros are accessed in the normal, V2007 way:  menu bar>tools>macro>This Document.

When you open the file, the first page may be overwhelming.  It contains a lot of non-essential, explanatory callouts to highlight the many features.  There is a show/hide button which may be double clicked to hide these.  Or, just delete them altogether.  A 2nd button is a shortcut.  Double click it to invoke the reporting mechanism.  Excel is the preferred output format.  An example for the existing circuit is shown on the reports page...yeah, with more notes.

An apology for the code...I'm not a programmer.  The code is not split into separate modules.  It has been recently re-worked, and there are a lot of comments to help understand what's going on.  I'm sure that it could be written more efficiently, but, my main objective was to show a feasible, comprehensive approach.

Hope this proves to be interesting, and hopefully, inspire a more robust approach.  It is not intended to be a simple, documentation scheme.

Enjoy.
Wapperdude

Edit:  Oops.  On the report page, need to expand the excel worksheet, accidentally left off the "status" column.   :-[
« Last Edit: February 18, 2015, 01:26:58 AM by wapperdude »
Visio 2019 Pro

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3825
  • Ideas Visio-lized into solutions
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #1 on: February 18, 2015, 04:08:30 PM »
Updated the code:
  1.  When connectivity macro runs, it sets connectors to no reroute. 
  2.  Custom netnames initially set to normal netnames. 
  3.  Connector endpoint knows if termination is on another connector or line shape and gets / stores netname as custom text.

But, the Custom netname behavior is still buggy.  Sorry!  Double click the connector and shapedata pops up asking for custom name.  The show macro must be re-run for viewing.  Entering the text directly, has some unpredictable results.

Methodology note:  page property sets line routes to no jumping.  Since connections automatically get dots and netnames are generated, the use of route jumps is unnecessary and clutters the schematic.  A four-way connection, (used to be avoided by rule) will have dots.  Any connection that looks like it terminates upon an orthogonal connection but has no dots is NOT connected. 

Wapperdude
Visio 2019 Pro

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3825
  • Ideas Visio-lized into solutions
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #2 on: February 18, 2015, 08:07:49 PM »
Ah!  I believe the custom text bugs have been exterminated.  Connector names may be manually entered by
  1. Selecting the connector and typing or
  2. Double clicking the connector and using the pop-up shapedata window.

If either field is blank, I mean NOTHING, then the custom text will return to default. 

The prompts to discard or keep the custom text are less confusing.

Wapperdude
« Last Edit: February 18, 2015, 10:20:18 PM by wapperdude »
Visio 2019 Pro

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3825
  • Ideas Visio-lized into solutions
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #3 on: February 18, 2015, 10:43:31 PM »
One more, minor update. 

Right click anywhere in the page brings up context menu that allows you to choose which macro to run.  Quick and easy!

OK.  That's it for tonight.

Wapperdude
Visio 2019 Pro

cliff50

  • Full Member
  • ***
  • Posts: 214
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #4 on: February 19, 2015, 12:48:59 AM »
Hey Wappadude.

This application is great !  :D  I see many useful features.

cheers
Cliff

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3825
  • Ideas Visio-lized into solutions
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #5 on: February 19, 2015, 01:18:48 AM »
Thanks.  It is a work in progress.  Reasonably solid considering there's not been much testing.  Hopefully, there're "features" that could be used in other applications.

Even the call-outs are smart shapes:  0 - 3 arrows, 0 - 2 elbows, variety of baseline shapes, text can match line color. -- Just a right click away!
Wapperdude
« Last Edit: February 19, 2015, 01:27:31 AM by wapperdude »
Visio 2019 Pro

Noisy Cricket

  • Jr. Member
  • **
  • Posts: 63
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #6 on: September 18, 2015, 02:41:27 AM »
On first glance,  would you reckon it's possible to mimic a ship's ballast line diagram, including pumps, valves and overflows?

Yacine

  • Hero Member
  • *****
  • Posts: 2708
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #7 on: September 18, 2015, 05:54:16 AM »
a ship balast line diagram is a P&ID? Isn't it?
Yacine

Noisy Cricket

  • Jr. Member
  • **
  • Posts: 63
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #8 on: September 18, 2015, 09:23:07 AM »
Uhm.... P&ID?
Yes, pretty much. As long as the components have some kind of way of showing the flow of water based on a given combination of open/closed valves.
« Last Edit: September 18, 2015, 09:25:03 AM by Noisy Cricket »

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3825
  • Ideas Visio-lized into solutions
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #9 on: September 18, 2015, 09:36:04 AM »
Yes, this ought to bee possible. Take a look at the shortest path post:  http://visguy.com/vgforum/index.php?topic=6373.0.

It keeps track of flow directionality.  Between that post, and this one, I suspect with some work, like checking an open/closed property in the valve shape, could do what you want.

Wapperdude
Visio 2019 Pro

Yacine

  • Hero Member
  • *****
  • Posts: 2708
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #10 on: September 18, 2015, 09:54:35 AM »
I do actually have a solution to show active pipe and aggregates paths in a line depending on the use mode.
It generates bitmaps of the given mode.
Not sure however if I can publish it, as I use it for my job.
Yacine

Noisy Cricket

  • Jr. Member
  • **
  • Posts: 63
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #11 on: September 19, 2015, 02:49:51 AM »
Well... first things first.... I need to understand how it works, from there I should be ok.

I'll try and get an actual ballast line diagram to work with.

Primary components:
1) Pumps
2) Valves (several types but that shouldn't matter for the purpose)
3) Vent lines (flooding point)
4) Tanks

Would be really interesting to see if we can "simulate" an actual ballast operation in Visio....

Yacine

  • Hero Member
  • *****
  • Posts: 2708
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #12 on: September 19, 2015, 03:53:32 AM »
The dialogues are in German, but you should understand what it is about:
https://youtu.be/WpKFGgEjGPg
« Last Edit: September 19, 2015, 04:28:52 AM by Yacine »
Yacine

Noisy Cricket

  • Jr. Member
  • **
  • Posts: 63
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #13 on: September 19, 2015, 03:37:09 PM »
Look promising... Didn't get any sound with it though.

It's halfway there.


The idea is to start out (for instance) with all valves closed and pumps off.
Switching on the pump would pressurize all lines  (ideally changing color or thicknesS) until it connects to a closed valve.
Upon opening this valve, the line behind the valve would then also pressurize and change color and so forth.

Suppose this would require one or multiple loops cycling through the actors and lines as well as some master shapes (tank, pumps, air vents, valves (throttle, butterfly, sluice etc.), manifolds, T- and Y joints, crossings.....

The solution has to lie in the "connected/connect"-functionality but as a master of none, i've not mastered this either. :)

My goal would be to use no more code/forms than necessary. Personally prefer the actions at page level above user forms.

I've conjured up a simple schematic with 2 pumps, 2 seachests, 2 tanks and an overflow.
The goal is to have Visio realize which parts of the system are pressurized, under suction and which are not.


Any thoughts?










« Last Edit: February 11, 2016, 03:15:58 PM by Noisy Cricket »

Noisy Cricket

  • Jr. Member
  • **
  • Posts: 63
Re: Schematic capture schema: connectivity, reports, diagnostics
« Reply #14 on: February 16, 2016, 12:45:12 PM »
Really?!?! nobody wants to have a crack at my ballast schematic?!