Author Topic: Intermittent Error - Ideas on Resolution Appreciated  (Read 289 times)

0 Members and 1 Guest are viewing this topic.

CEHill

  • Mosquito
  • Posts: 15
Intermittent Error - Ideas on Resolution Appreciated
« 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. 

BIGAL

  • Swamp Rat
  • Posts: 1418
  • 40 + years of using Autocad
Re: Intermittent Error - Ideas on Resolution Appreciated
« Reply #1 on: April 17, 2024, 01:34:58 AM »
need alignit.lsp also.
A man who never made a mistake never made anything

CEHill

  • Mosquito
  • Posts: 15
Re: Intermittent Error - Ideas on Resolution Appreciated
« Reply #2 on: April 17, 2024, 07:16:05 AM »
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

ribarm

  • Gator
  • Posts: 3279
  • Marko Ribar, architect
Re: Intermittent Error - Ideas on Resolution Appreciated
« Reply #3 on: April 17, 2024, 09:03:08 AM »
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.
« Last Edit: April 17, 2024, 09:22:02 AM by ribarm »
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

CEHill

  • Mosquito
  • Posts: 15
Re: Intermittent Error - Ideas on Resolution Appreciated
« Reply #4 on: April 17, 2024, 09:24:20 AM »
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.