5.0.0.5

Started by jb, February 19, 2008, 06:22:36 PM

Previous topic - Next topic

jb

That error is being thrown here: 

(defun c:jb001_01_ViewList_OnDblClicked  (nRow nCol / vname)
  (setq vname (car (dcl_ListView_GetSelectedItems jb001_01_ViewList)))
  (if vname
    (progn (dcl_Control_SetText jb001_01_NewView vname)
           (command ".view" "_restore" vname))))


I'm not getting that error on either 2006 or 2008, winXP pro, Dell XPS.  If you run just (dcl_ListView_GetSelectedItems jb001_01_ViewList) from vlide what is returned? 
James Buzbee
Managing Memeber
Black Horse Development, LLC

Marco Jacinto

I can't load the jbViewtools, it says

"; error: ADS request error"

I'm using 5.0.0.6.

Also when I type some text in the object browser, can't see any content until I hit enter.

Pressing F1, doesn't show help

Saludos
Marco Jacinto

jb

Hmm.  AutoCAD version, Operating system?

The ADS Request error means a variable is being passed to an OpenDCL control that's nil or invalid (a string instead of a real, for example).  I can't recreate that here: the On_initialize event has a call to populate the listbox with the following:

(dcl_ListBox_AddList jb010_00_ViewList (jb:ListViews))

Now if there are no views, (jb:listview) returns nil.  I don't get any error here.  You might want to try changing the on_initialize event to the following and see if that helps:

(defun c:jb010_00_OnInitialize ( /)
  (dcl_Control_SetCaption jb010_00_DWG
"No Import Drawing Selected!")
  (dcl_ListBox_Clear jb010_00_LB)
     (dcl_ListBox_Clear jb010_00_ViewList)
(if (setq vlist(jb:ListViews))
  (dcl_ListBox_AddList jb010_00_ViewList vlist))
 
)
James Buzbee
Managing Memeber
Black Horse Development, LLC

Marco Jacinto

The problem I think comes from the dcl_import function, cause it throw me an erros an the jb010_00_DWG is set to nil.

I'm using 2008 on XP

Saludos
Marco Jacinto