Question on adding shapes
Hi there, I have recently discovered Dia as a tool to create recipe diagrams as per the design by Sascha Wahlbrink ( www.saschawahlbrink.de/index.php/ein_kochbuch.html ) In order to make the creation of these recipes easier, I wanted to create a number of custom shapes and add them to a new Dia sheet. I have been able to create a shape and export it. I have also created a new sheet. However, I am stuck now in trying to add the shape to the sheet so that it shows up in the object selector. There seem to be two problems: - I am not able to add the shape using the built-in dialog, because the .dia directory is hidden on the Mac and is not showing up in the selection dialog. - Adding the shape manually by editing the sheet XML doesn't seem to work, because there is not pointer to the shape file ( I have posted my sheet XML below). Any ideas what I might be doing wrong? Thanks a lot. Cheers, Martin http://www.lysator.liu.se/~alla/dia/dia-sheet-ns";> Recipes Allows creation of recipe diagrams as per the design by Sascha Wahlbrink A cooking utensil, such as a pot or cutting board. ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
dia - database sheet
Hi, are the FOREIGN KEY constraints supported? thanks and regards ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
Re: Question on adding shapes
Hi Martin, if it's ok for you to publish your shapes (ideally under the terms of the GPL), I could add them to the dia-additional-shapes package, fix the sheet for you and you could install them using diashapes. If this like a good idea to you, please enter a "Dia bug" into Bugzilla and attach your files there: https://bugzilla.gnome.org/enter_bug.cgi Note that you can choose your *.shape file from a different place, the Sheet and Objects Dialog will copy it to the right place for you. Does your Sheet show at all in Dia? (You'll have to restart Dia) If not, the location of your sheet file is wrong. If the sheet shows up, but empty, either the shapes are placed in the wrong directory or the names in sheets/shapes do not match. Regards, Steffen On 10.09.2012 10:47, Martin Wunderlich wrote: I have recently discovered Dia as a tool to create recipe diagrams as per the design by Sascha Wahlbrink ( www.saschawahlbrink.de/index.php/ein_kochbuch.html ) In order to make the creation of these recipes easier, I wanted to create a number of custom shapes and add them to a new Dia sheet. I have been able to create a shape and export it. I have also created a new sheet. However, I am stuck now in trying to add the shape to the sheet so that it shows up in the object selector. There seem to be two problems: - I am not able to add the shape using the built-in dialog, because the .dia directory is hidden on the Mac and is not showing up in the selection dialog. - Adding the shape manually by editing the sheet XML doesn't seem to work, because there is not pointer to the shape file ( I have posted my sheet XML below). ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia -- Steffen Macke Betrieb von Webseiten Veersser Str. 14 29525 Uelzen Deutschland +49 322 234 782 36 d...@diagramr.biz http://dia-installer.de ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
Re: dia - database sheet
On Mon, Sep 10, 2012 at 7:51 AM, yanf50 wrote: > Hi, are the FOREIGN KEY constraints supported? > Yes, but dia2code is a separate closely related project. Primary key: properties that are class scope. Just set it to class scope and it will generate a foreign key. It supports multiple-col PK. FK: Make an association from the owner of the data to the class that uses the FK. In that direction only. Example: Person --> Role (Role class references Person class person.id and FK is named person_id). 1) Select the UML association tool. Click on center of Person (the owner of the referenced key) and drag it to the center of the Role class. Name the association person_id. The surrogate key model is assumed so the Person table has a serial id and the Role table has person_id. 2) The id on Person should be class scope 3) Run dia2code -t sql -sqlx fkidx mydiagram.dia This will generate the DEFINITION.SQL DDL for all tables. Then you should see the alter for the primary key and and alter for the FK something like: ALTER TABLE role ADD CONSTRAINT FK_role_person FOREIGN KEY(person_id) REFERENCES person (id); Associations are processed last as ALTERS to avoid dependencies on tables. So the basic DDL is done first and associations are done last. The -sqlx fkidx will also create the indexes for the FKs. You will need late dia2code 0.8.4 or 0.8.5 Best, -- Alejandro Imass > thanks and regards > > ___ > dia-list mailing list > dia-list@gnome.org > https://mail.gnome.org/mailman/listinfo/dia-list > FAQ at http://live.gnome.org/Dia/Faq > Main page at http://live.gnome.org/Dia > > ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia
Problem with Python scripts
Hi, sorry to interrupt, I am experiencing one problem and I couldn't get it to work. I've installed on Ubuntu the newest dia version, but I haven't been able to run scripts, because as the error says: File "codegen.py", line 18, in import sys, dia ImportError: No module named dia As I know from all the libraries of python are under /usr/lib/python2.6/ (I have 2.6). In case though the python support is enabled if you are in the dia directory you normally can import the dia module. But I can't. Can you please tell me if I've done something wrong or what should I try? I've also tried with the binary version of dia after executing ./configure --with-python and it compiled and built the code normally with python support. Though I could not see any files dia.py or generally a support of python. Thanks a lot, Alexis Lekidis ___ dia-list mailing list dia-list@gnome.org https://mail.gnome.org/mailman/listinfo/dia-list FAQ at http://live.gnome.org/Dia/Faq Main page at http://live.gnome.org/Dia