TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: CEHill on April 16, 2024, 06:32:39 PM
-
An old chestnut of a program, alignit.lsp, was copied from Cadalyst many years ago. Two files, alignit.lsp and alignit.dcl, are attached.
This program allows the user to choose from several reference positions i.e., top, bottom, left, right of source text and aligns selected destination text.
NOTE: A shortened command, ALI, is the only modification that was made to the program.
ISSUE: The program will run for a few iterations and then will fail.
From program start to code error:
Command: ALI
Select the fixed entity
Select entity:
Select the entities to be aligned
ALIGNIT - Error: Automation Error E_FAIL; [IAcadSelectionSets] function [ADD] unspecified error
SYSTEM VARIABLES have been reset
Can someone provide clues on why it is failing?
FYI: I now use BricsCAD.
-
need alignit.lsp also.
-
Hi BIGAL,
I have attached the requested LSP file (and reattached the DCL as well).
I appreciate your interest and look forward to what is now a puzzle to me!
P.S.: In the file attach field, I just noticed the link "more attachments" below it. :idea:
Thanks,
Clint
-
Here... It took me some time to cobble this all to one single *.lsp that'll have built in *.dcl... It should work, but alignments are to only straight orthogonal lines, weather they are left, right, top or bottom... This is what is provided and in *.dcl...
HTH.
M.R.
-
Wow! This is an unexpected treat. Thanks ribarm!
QUESTION
What factors / complexities will a fledgling programmer face when using text entities to base other text's alignment?
Yours,
C.