LDCad Simple LDCad script


RE: Simple LDCad script
#3
(2022-03-25, 19:56)Roland Melkert Wrote: Minor potential bug:
Code:
local cnt=sel:getRefCount()
will cause a runtime error when no model is open, easily fixed by moving the line (and the one above it) below the ses:isLinked() test.

Fixed. Couldn't I also move the local variables col and ref up higher somewhere, so I don't have to repeat them?

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. :-)
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)