LDCad Simple LDCad script


RE: Simple LDCad script
#4
(2022-03-25, 22:33)N. W. Perry Wrote: Couldn't I also move the local variables col and ref up higher somewhere, so I don't have to repeat them?

Yes, just write them without the value assignment.


(2022-03-25, 22:33)N. W. Perry Wrote: My next attempt will be a macro to comment out BUFEXCHG lines. I think I know how to identify the affected ref lines, now to learn how to actually alter them. :-)

scripts can't actually modify lines on a string level (mostly because of the undo tracking), but you get the same effect by creating a new line and deleting the old one.

For an example of this see the global mlcad.lua script.
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Simple LDCad script - by N. W. Perry - 2022-03-25, 4:27
RE: Simple LDCad script - by Roland Melkert - 2022-03-25, 19:56
RE: Simple LDCad script - by N. W. Perry - 2022-03-25, 22:33
RE: Simple LDCad script - by Roland Melkert - 2022-03-25, 22:57
RE: Simple LDCad script - by N. W. Perry - 2022-03-26, 2:00

Forum Jump:


Users browsing this thread: 1 Guest(s)