mline comment

mline comment

Anonymous
Not applicable
920 Views
4 Replies
Message 1 of 5

mline comment

Anonymous
Not applicable

i need mline comment  lisp,

i like to include trace width in mline comment,

my aim to draw differential pair (double trace) in polyline with equal space.it is directly not possible for me ..so i like to route using mline comment. it is routing (parallel line),it is not a problem,after i can change mline to polyline ..

air cap between two trace should be reduced after change mline to polyline,i like to change(air cap + trace width)include in mline or ml2pl comment. 

i include  ML2PL lisp file.

 

 

it is any possible  for routing multiple polylines(parallel).

0 Likes
921 Views
4 Replies
Replies (4)
Message 2 of 5

Kent1Cooper
Consultant
Consultant

["Cap" should be "gap," and I think what you mean by "comment" would be more appropriately "prompt."]

 

A quickie, to draw them without going through the middle-man of MLINE [so you can, for instance, include arc segments to round corners].  It asks you to draw the center-line route, and then Offsets that to both sides and removes the initial one.  Without the usual controls, etc.:

 

(vl-load-com)
(defun C:DTP (/ wid gap offs obj pl); = Double Trace Polyline
  (setq
    wid (getdist "\nTrace width: ")
    gap (getdist "\nAir gap between traces: ")
    offs (/ (+ wid gap) 2)
  ); setq
  (setvar 'plinewid wid)
  (prompt "\nDraw route along center of air gap.")
  (command "_.pline")
  (while (> (getvar 'cmdactive) 0) (command pause))
  (vla-offset (setq obj (vlax-ename->vla-object (setq pl (entlast)))) offs)
  (vla-offset obj (- offs))
  (entdel pl)
  (princ)
); defun

 

If that does what you want, it could have *error* handling added, prevent invalid inputs, restore the PLINEWID value to what it was before, remember the trace width and gap size and offer them as default values the next time, etc., etc.

Kent Cooper, AIA
0 Likes
Message 3 of 5

Anonymous
Not applicable

This lisp is working well for single time differential pair ,additional something needed in this code.

 

width-(it is already present in this lisp)

air gap between trace-(this also present in this lisp)

 

no of times (differential pair needed).

gap between pair to pair (it is for multiple purpose).

 

0 Likes
Message 4 of 5

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

.... 

no of times (differential pair needed).

gap between pair to pair (it is for multiple purpose).


That doesn't sound difficult, but post an example image or drawing, showing the "path" you would want the User to draw as a start, and the desired end result.  For example, would the path you draw always be the center-line of the overall group of pairs, no matter how many pairs there are?  If not, what would be the relationship?

Kent Cooper, AIA
0 Likes
Message 5 of 5

Anonymous
Not applicable
Yes.. I want always be centre, for example I give 5,the 5 differential
pair is draw...
0 Likes