Recent

Author Topic: Vector graphics component - search  (Read 3076 times)

nighthunter85

  • Newbie
  • Posts: 4
Vector graphics component - search
« on: June 13, 2024, 10:00:07 pm »
Hi friends. I need to make a PCB library conversion tool, but i want to check/edit graphically the converted library symbols. My qestion is, is there any component that handles zoomable vector graphics and grouping of basic vector shapes with the ability to edit them?

jamie

  • Hero Member
  • *****
  • Posts: 6364
Re: Vector graphics component - search
« Reply #1 on: June 14, 2024, 12:19:23 am »
Thats a big request.
The only true wisdom is knowing you know nothing

circular

  • Hero Member
  • *****
  • Posts: 4295
    • Personal webpage
Re: Vector graphics component - search
« Reply #2 on: June 14, 2024, 05:16:28 pm »
Hello @nighthunter85 and welcome to the forum.

Maybe you can build on LazPaint vector shapes. The Vector Edit program is a simple editor of vector shapes. Even though they cannot be grouped within a layer, it is possible in theory to have multiple layers and so to group them like this.
Conscience is the debugger of the mind

gidesa

  • Jr. Member
  • **
  • Posts: 91
Re: Vector graphics component - search
« Reply #3 on: June 14, 2024, 06:02:41 pm »
Hello,
there is the Simple Graph component for Delphi, ported to Lazarus with EvsSimpleGraph name:
https://github.com/taazz/EvsSimpleGraph

MarkMLl

  • Hero Member
  • *****
  • Posts: 7055
Re: Vector graphics component - search
« Reply #4 on: June 14, 2024, 06:54:37 pm »
Quite frankly, IMO the way to tackle this is to research existing work ("prior art"), dig out any existing projects, and build on those using their language of choice.

One will find it far easier to learn a new programming language, particularly with the fairly strong type checking etc. that most languages have by now inherited from Pascal, than to try to disentangle the algorithms and replicate the code that several people have worked on for months or years.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

zamtmn

  • Hero Member
  • *****
  • Posts: 612
Re: Vector graphics component - search
« Reply #5 on: June 15, 2024, 08:00:18 am »
https://github.com/zamtmn/zcad
his is not a separate component, but you can use the engine separately. in addition, this program has similar functionality as the goal of its development

nighthunter85

  • Newbie
  • Posts: 4
Re: Vector graphics component - search
« Reply #6 on: June 16, 2024, 12:16:40 pm »
Quite frankly, IMO the way to tackle this is to research existing work ("prior art"), dig out any existing projects, and build on those using their language of choice.

One will find it far easier to learn a new programming language, particularly with the fairly strong type checking etc. that most languages have by now inherited from Pascal, than to try to disentangle the algorithms and replicate the code that several people have worked on for months or years.

MarkMLl

Can you please direct me to a easier language for this type? As an older embedded programmer i did not programmed graphical/editing UIs. I try to use what i know and i tought that in so many years the that also older languages are used and extended, there should be some codebase/library for my purpose, so i must not reinvent the wheel.

MarkMLl

  • Hero Member
  • *****
  • Posts: 7055
Re: Vector graphics component - search
« Reply #7 on: June 16, 2024, 07:19:01 pm »
Can you please direct me to a easier language for this type? As an older embedded programmer i did not programmed graphical/editing UIs. I try to use what i know and i tought that in so many years the that also older languages are used and extended, there should be some codebase/library for my purpose, so i must not reinvent the wheel.

No, because you've given us no information whatsoever about what you're trying to do.

What are you working with- KiCad? Eagle? Something open? Something closed? What research have you done already?

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11639
  • FPC developer.
Re: Vector graphics component - search
« Reply #8 on: June 16, 2024, 07:30:37 pm »
I have a simple kicad 5 loader.

zamtmn

  • Hero Member
  • *****
  • Posts: 612
Re: Vector graphics component - search
« Reply #9 on: June 16, 2024, 09:03:42 pm »
I can add that writing such a program is quite a difficult task. And the existing open source ones have (at the time when I was interested in this) various disadvantages. But now I would not start such a project from scratch, but would join the existing one

MarkMLl

  • Hero Member
  • *****
  • Posts: 7055
Re: Vector graphics component - search
« Reply #10 on: June 16, 2024, 09:57:06 pm »
I agree, and regrettably I have to say that that's even if the other- possibly incomplete- work done on it is in C++ or Python.

By and large, if one person has "an itch" for a particular filter or feature there will be more people who will agree that it's a good idea, and one will get absolutely no credit- or cooperation- if one suggests using a language with which they are unfamiliar (or which they deride as obsolete).

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

nighthunter85

  • Newbie
  • Posts: 4
Re: Vector graphics component - search
« Reply #11 on: June 16, 2024, 10:22:48 pm »
Hi friends, the ZCAD project looks great.
But to my problem: it is an old DOS based EDA software in wich ive drawn many projects. Now as im getting older and older i would like to convert my very old libraries and designs to new EDA packages just for demonstrational purposes and to still hold my brain cells busy (Kidad and eagle are well documented, and also converters are available so dont worry im not reinventing kicad<->eagle conversion, but the target platform will be kicad library format).
A little idea to convert old libs developed to a hobby longterm project. (The goal here is to make a working graphical viewer/converter for the libraries by myself (to learn some UI progamming).

Btw. im also (yes it was my era of computing) DOS fan, and im collecting every piece of EDA/engineering software for DOS (even the smaller not well knows ones) to show the younger generation. How this industry segment progressed.

MarkMLl

  • Hero Member
  • *****
  • Posts: 7055
Re: Vector graphics component - search
« Reply #12 on: June 16, 2024, 11:42:05 pm »
For a one-off like that I can definitely sympathise with the idea of selecting whatever language you feel comfortable with.

When I worked at Lowbrow there was a not-quite-PC set up with (IIRC) a 68K coprocessor board to run circuit design design software. as far as CAD in general was concerned, that was back in the days of PAFEC, BOXER, DOGS and so on.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

avra

  • Hero Member
  • *****
  • Posts: 2520
    • Additional info
Re: Vector graphics component - search
« Reply #13 on: June 17, 2024, 01:59:32 pm »
You didn't identify your DOS PCB design software. If I had to guess it would be P-CAD. Maybe you're lucky and your problem is already solved?

https://kicad-info.s3.dualstack.us-west-2.amazonaws.com/original/3X/e/f/efc38db9efcd317febdc6ad5f74e73e26f22754e.png
« Last Edit: June 17, 2024, 02:01:06 pm by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

zamtmn

  • Hero Member
  • *****
  • Posts: 612
Re: Vector graphics component - search
« Reply #14 on: June 17, 2024, 02:35:33 pm »
Hi friends, the ZCAD project looks great.
you can try zcad for your own purposes, both inside (preferably) and both using the engine
https://forum.lazarus.freepascal.org/index.php/topic,16665.0.html
« Last Edit: June 17, 2024, 02:38:07 pm by zamtmn »

 

TinyPortal © 2005-2018