CONFLICT WITH AUTOCAD WHEN CREATING NEW TEXT STYLE

Started by Christian12, May 14, 2019, 10:14:40 PM

Previous topic - Next topic

Christian12

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.

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Christian12

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.