Re: RES: How to merge pure layer nodes
Ole Myren Rohne <[email protected]> Mon, 2 Jul 2012 09:24:46 +0200
| Newsgroups | gmane.comp.cad.electric.general |
|---|---|
| Message-ID | <[email protected]> |
--===============6252376859971531650== Content-Type: multipart/alternative; boundary=Apple-Mail-10--18049622 --Apple-Mail-10--18049622 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Diego, Sorry for my rather armchair-ish answer yesterday; I'm not a developer = of Electric, and my ideas might not be aligned with how such problems = were meant to be solved. With that caveat here are a few thoughts: Higher level solution: It is easy to get distracted by a too low-level idea (merging = geometries), perhaps by focusing on the primary problem (generate = metal-layer passives) a solution already exists? Here are some = suggestions, ordered by what I consider low-to-high level: 1) Is perhaps Tools -> Network -> Extract Current Cell exactly what you = should be looking for? 2) Is it possible to have ASITIC export in a format that supports = connectivity and wires? 3) Would it be even better to take the basic parameters (pitch, width, = turns) from ASITIC and generate the geometry directly in Electric (again = with a script)? Scripting/extensions: The low-level merge operation is apparently not available in the = Electric GUI, but an Electric developer could easily implement it in = Java, probably on top of the PolyMerge class (imagine Tools -> Geometry = -> Merge Nodes). It might also be possible script it in Java/Bsh (or = Python/Jython), to be run through Tools -> Languages. Myself I'm not = much of a Java (or Python) developer, so for my own convenience I've = added ABCL as another scripting/extension language. It also so happened = that I had previously solved exactly your low-level problem, and I = yielded to the temptation of showing off this solution. Unfortunately I = don't know how to distribute my hack, eg as an Electric-plugin, and it = might be too low level for general consumption anyway. So while my = solution is not directly accessible to you, someone might be able to = achieve the same with Bsh (or Jython). Best wishes, Ole --Apple-Mail-10--18049622 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi = Diego,<div><br></div><div>Sorry for my rather armchair-ish answer = yesterday; I'm not a developer of Electric, and my ideas might not = be aligned with how such problems were meant to be solved. With that = caveat here are a few thoughts:</div><div><br></div><div>Higher level = solution:</div><div>It is easy to get distracted by a too low-level idea = (merging geometries), perhaps by focusing on the primary problem = (generate metal-layer passives) a solution already exists? Here are some = suggestions, ordered by what I consider low-to-high = level:</div><div><br></div><blockquote class=3D"webkit-indent-blockquote" = style=3D"margin: 0 0 0 40px; border: none; padding: 0px;"><div>1) Is = perhaps Tools -> Network -> Extract Current Cell exactly what = you should be looking for?</div><div>2) Is it possible to have ASITIC = export in a format that supports connectivity and wires?</div><div>3) = Would it be even better to take the basic parameters (pitch, width, = turns) from ASITIC and generate the geometry directly in Electric (again = with a = script)?</div></blockquote><div><br></div><div>Scripting/extensions:</div>= <div>The low-level merge operation is apparently not available in the = Electric GUI, but an Electric developer could easily implement it in = Java, probably on top of the PolyMerge class (imagine Tools -> = Geometry -> Merge Nodes). It might also be possible script it in = Java/Bsh (or Python/Jython), to be run through Tools -> Languages. = Myself I'm not much of a Java (or Python) developer, so for my own = convenience I've added ABCL as another scripting/extension language. It = also so happened that I had previously solved exactly your low-level = problem, and I yielded to the temptation of showing off this = solution. Unfortunately I don't know how to distribute my hack, eg = as an Electric-plugin, and it might be too low level for general = consumption anyway. So while my solution is not directly accessible = to you, someone might be able to achieve the same with Bsh (or = Jython).</div><div><br></div><div>Best wishes, = Ole</div><div><br></div></body></html>= --Apple-Mail-10--18049622-- --===============6252376859971531650== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Discuss-gnu-electric mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnu-electric --===============6252376859971531650==--