Posted by
sidewayz on
URL: https://forum.librecad.org/Cross-reference-and-Symbol-properties-tp5713046p5713066.html
Hello there!
I dont know if there is an easy way to implement the functions really. In short terms what is needed
and how this could be structured below.
I have been doing some programming some time ago and i used Qdevelop and i think it could work in a similar way.
These drawings are generally built up like this
p.00-Frontpage(Optional)
p.01-Index
p.02-Layout(cabinette, panel layout)
p.03-Symbol declaration, parts list
p.04-Main circuit
p.05-Internal schematics
p.06-External connections going in or out of the panel
Depending on how large the panels are there could be hundreds of pages :)
First we want to create a "Project" that holds everything together in a folder
We choose a template for the drawings
We fill in all the information needed like Creator, Project name, object, description etc
and let the project handler know where these texts will be placed on the drawing template.
Drawing number will be generated automatically for each new drawing
Inside that project we want to create drawing1.
To create a new drawing later on an easy button "create new page" would generate the next drawing.
The new drawing would cointain the information of the project and a new page number automatically.
When we then add a symbol in one of theese drawings we assign a drawing name(for a relaycoil -R1, means realy 1), function name(Relay for external signallamp) etc to it and it will be placed in a refrence list like a block list the refrence to the symbol will also hold page number where it was created and coordinates from the template where on that page its located. In the block list it would be easy to find it and switch to the page where it was created.
For electrical drawings when connecting internal symbols. Lets say to connect a contact to the powerbus you draw a line. That line if you want to is unique and will be assigned a number like 01
on the other side of the contact you draw a line to a coil that line would be assigned 02.
Another way to do this is the line from the powerbus has the same name as the powerbus and the line after
the switch gets the 01 number.
A function for switching between pages/drawings inside the project would be a good thing too.
When the project is finished you could generate a drawing page or the whole project as PDF or print it.
Make a symbol declaration/parts list page from the symbol block list and complete it with manufacturer numbers etc.
So thats the basic of the project idea thing :)
Next object is to have a symbol manager where you can create symbols.
You could use regular symbols from import. But if you want to automate the creation process it would be a good thing to create a symbol in a creator and assign number of connections and where.
If you know the manufacturer layout you could even assign the numbers on the design in the creator.
I guess this could work for other things than electrical drawings aswell?
Kind regards
Of course its possible :)