OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: hgcad on July 24, 2008, 07:48:29 AM

Title: Command line error with dcl_Grid_SetItemStyle in version 5.0.0.15
Post by: hgcad on July 24, 2008, 07:48:29 AM
Command line error when dcl_Grid_SetItemStyle in 5.0.0.15 is set to 30 or 20

eg. below

Command:
Document "C:\Program Files\Program 2004\qcTs01.dwg" has a command in
progress.
Hit enter to cancel or [Retry]: R
*Cancel*

Can someone help please.
Thank you in advance.

hgcad
Title: Re: Command line error with dcl_Grid_SetItemStyle in version 5.0.0.15
Post by: BazzaCAD on July 24, 2008, 08:26:48 AM
Is this on a modal or modeless form?
When are you trying to change the ItemStyle, OnInitialization or later?
Maybe it's a version 5.0.0.15 bug & you should try it in version 5.0.0.19.
Title: Re: Command line error with dcl_Grid_SetItemStyle in version 5.0.0.15
Post by: Fred Tomke on July 25, 2008, 01:50:23 AM
Hi,

at first try with Alpha 19 like Barry said. It should work. I use this, too. If it doesn't work, just try a trick:

Try to create a new drawing before calling your command. Change back to the drawing before and retry. Can you reproduce the problem?
Sometimes AutoCAD does not finish/cancel a command completely. Then this message also occur even if you have no other application running. After starting the opening command or new command everyting works fine. It's not seldom in Civil 3D.

If you can reproduce this after new command then have a look into your application if any command was started before. Please note, that some events won't work very well if a command is active and the control or even the form uses EventInvoke=AllowCommand. The events cannot be called transparently. But I'm not sure it this will help in this case. Maybe you should debug this. Watch the systemvariables cmdnames and cmdactive while debugging.

Fred

Fred