customized properties



Dear Experts,

Dia works great for editing diagrams and I've enjoyed using it. I'd
like to go one step further and try to use it's scripting ability.
Basically, I would like to be able to use Dia to edit block diagrams
and then use the results to generate code to implement the block
diagrams. It looks like I can do code generation with the export
filter (like the codegen.py plugin). But I can't figure out how to
allow the user to set properties in the drawing which affect how code
is generated. For example, I was plyaing around with the circuit
layout tool that comes with Dia. I can draw a circuit, but I don't see
how to set properties such as resistance, capacitance, etc. for the
components. Roughly speaking, I'd like to be able to do something like
take a circuit diagram and generate code from it.

My specific questions are:

 1. Is it possible to specify custom properties for custom objects
(e.g., like the resistor in the circuit diagram)?
 2. Is it reasonable to expect to use Dia to create block diagrams
which are then used to generate code?

Thanks,
-Emin



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]