|
-
Dec 21st, 2004, 12:54 PM
#1
Thread Starter
Member
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,...?
-
Dec 21st, 2004, 01:43 PM
#2
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:
Private Type Line_Parameter
.length
.color
.whatever
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
-
Dec 21st, 2004, 01:50 PM
#3
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Dec 21st, 2004, 02:00 PM
#4
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
-
Dec 21st, 2004, 02:27 PM
#5
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Dec 21st, 2004, 02:30 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|