Results 1 to 6 of 6

Thread: Electrical Network Design

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2004
    Posts
    50

    Electrical Network Design

    Hi.

    I must design an electrical network. The problem I have is about VB 6.

    Suppose we have 2 buttons:
    - V (vertical line)
    - H (horizontal line)

    We have also an initial point A.

    When I press the button H the program must draw a horizontal line starting from the initial point A to the point B.

    When I select the point B with a click, and I press another time the button H, I shall have another horizontal line from point B to point C.

    Now if I select again the point B and I press the button V, I shall have a vertical line starting from point B to point D.

    Based on this principle, I can extend my network.

    After designing my network, each portion can receve differents parametres, as length, ... I am thinking to do this with a right click on each line (AB, BC, BD, ...).

    I am not an expert in VB and that is why I am asking you to give me some ideea of how can I start this project. What can I use instead of Line() to be able to handle this elements with right clicks, changes of lenghts, color,...?

  2. #2
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: Electrical Network Design

    Hi,
    you should use line to draw the graphics (I'm not sure what else you could use for that.) As far as storing you parameters for each line, I would consider using a UDT as follows
    VB Code:
    1. Private Type Line_Parameter
    2.      .length
    3.      .color
    4.      .whatever
    5. end type
    then declare a dynamic array of this UDT and each time you add a new line use a ReDim Preserve to add it to the array. Since adding a line seems to be a manual process, the slowness of the ReDim shouldn't be a concern. There may be a better way: this is just how I would approach it.
    HTH
    kevin
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Electrical Network Design

    You know there are some programs already made that help you create electronic
    schematics. I think one I used to use was ORCAD. I cant remember, think I'm
    getting old It had a library of electronic devices that you could add to the
    drawing and connect to with lines, etc. It would also calculate the the
    output voltage/amphrage based on the specified input.

    HTH
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  4. #4
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: Electrical Network Design

    I'm not sure that's what he/she is looking for, but if so there is free PCB layout software here, and is pretty good for being free.
    kevin
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Electrical Network Design

    Looks good, but what are the freeware limitations from the paid version?
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: Electrical Network Design

    as far as I remember you are simply limited to a 3"x4" board
    kevin
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width