Svenn,
> I'm pleased to see that I now can select a bunch of lines and move
> the bends all together without moving the end-points. Very nice when
> the routing space between components is limited and bends need to be
> rearranged or moved to make space for another connection.
>
> I do not know if this is an intended way of work, but it is fantastic:
> I select several edges on different timing lines by repeatedly using
> the selection box around the specified edges. When I press 'e' I will
> move only those edges while keeping the rest of the timing wave
> intact.
Yes, that is the way it was intended to work.
> Only thing to note is that when selecting an edge, the whole waveform
> change color. But this is such a minor thing it is maybe not worth
> bother.
I intend to have xcircuit draw partial selections, but I have not
got around to it yet.
> Is it possible to extract coordinates of lines with tcl? I now play
> with the possibility to extract the timing diagrams made in xcircuit
> to a file and use as stimuli for testbenches. Would save major time
> writing pwl for spice in xcircuit. The final timing diagram as svg can
> easily be imported into Visio and included in Word. Oh brave new
> world: A self-documenting testbench!!!
Yes, you can. I have used it in the past for similar things, although
I forget now what my application was.
To get points on a single polygon:
1) select a polygon in xcircuit
2) from the console or a Tcl script, do:
polygon points
To search through all polygons on an xcircuit page, you need a more
extensive script:
foreach h [object [page 1 handle] parts] {
if {[element $h type] == "Polygon"} {
set plist [polygon $h points]
puts stdout $plist
}
}
That should get you started. Unfortunately, I don't have a way in
xcircuit (maybe I should) to "tag" individual elements, such that you
could mark only the lines you want to extract. One suggestion for a
simple tag, though: You can change the color of such lines from
"inherit" to "black". For a selected element, the difference is:
color [element handle] get
returns "inherit" or "0", depending on whether the color is set to
"inherit" or black.
---Tim
+--------------------------------+-------------------------------------+
| Dr. R. Timothy Edwards (Tim) | email: [email protected] |
| Open Circuit Design, Inc. | web: http://opencircuitdesign.com |
| 22815 Timber Creek Lane | phone: (301) 528-5030 |
| Clarksburg, MD 20871-4001 | cell: (240) 401-0616 |
+--------------------------------+-------------------------------------+
_______________________________________________
Xcircuit-dev mailing list
[email protected]
http://www.opencircuitdesign.com/mailman/listinfo/xcircuit-dev