New OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Christian12 on May 14, 2019, 10:14:40 PM

Title: CONFLICT WITH AUTOCAD WHEN CREATING NEW TEXT STYLE
Post by: Christian12 on May 14, 2019, 10:14:40 PM
GREETINGS, I HAVE A PROBLEM WHEN I TRY TO EXECUTE MY LISP PROGRAM WITH A DIALOG BOX TYPE "MODELESS DIALOG" WITH
THE OPENDCL HELP, THE PROBLEM BEGINS WHEN I RUN THE LISP ROUTINE WITH THE CREATED DIALOGRAPH PICTURE, IT PRESENTS AN ERROR
WHAT AUTOCAD AUTOMATICALLY CLOSES CANCELING THE PROGRAM EXECUTION, TRY TO EXECUTE THE LISP REMOVING THE CODE THAT CREATES A NEW
STYLE OF TEXT AND ITS INSERTED IN THE CAD, IN THIS CASE IT DOES NOT GENERATE ANY ERROR AND THE PROGRAM WORKS OF THE BEST, WHICH MAKES ME THINK
THAT THE PROBLEM CAN BE THE TEXT STYLE THAT I TRY TO CREATE, I ASK TO HELP ME AS I NEED TO CREATE AND INSERT A TEXT IN THE
EXECUTION OF MY ROUTINE LISP WITH THE DIALOGUE WINDOW THAT CREATES THIS INTERESTING PROGRAM THAT IS THE OPENDCL, THANKS, I LEAVE THE COMPLETE CODE.
Title: Re: CONFLICT WITH AUTOCAD WHEN CREATING NEW TEXT STYLE
Post by: Fred Tomke on May 14, 2019, 10:30:13 PM
Hi, I just cannot have a look at the project but I assume you should change the event invoke property of the control (button) that invokes creating the style to "AllowCommand". Have a forum search for event invoke.
Hope that helps.
Fred
Title: Re: CONFLICT WITH AUTOCAD WHEN CREATING NEW TEXT STYLE
Post by: Christian12 on May 15, 2019, 08:03:54 AM
Thanks Fred, change the property of invoke event to 1, and apparently the error was corrected, I'm starting with the use of Opendcl and your help is very useful, I thank you.