OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: velasquez on February 15, 2008, 09:33:46 AM

Title: dcl_BlockView_DisplayBlock
Post by: velasquez on February 15, 2008, 09:33:46 AM
In Alpha 4 dcl_BlockView_DisplayBlock not this working inside of OnInitialize 
The call below worked without problems in OpenDCL 4...

(defun c:JoyLoop-5_JoyMainLoop_OnInitialize (/)
;;;Centraliza o quadro
    (Dcl_Form_Center JoyLoop-5_JoyMainLoop)
;;;ESTA FUNCIONANDO BEM
    (Dcl_BlockView_DisplayBlock JoyLoop-5_JoyMainLoop_JoyBlockIso "JoyIso")
  ) ;_ fim de defun

Should I tell this how a BUG or was it already seen?
Title: Re: dcl_BlockView_DisplayBlock
Post by: BazzaCAD on February 15, 2008, 12:00:56 PM
Owen this is giving an OpenDCL runtime error: "Expected more arguments"

According to the Int. Help there are 2 flavors of this funtion:
(dcl_BlockView_DisplayBlock Misc_DemoModal_BlockView
   BlockName  [as String]
   Optional PresetView  [as Integer]
   Optional ZoomFactor [as Real])

(dcl_BlockView_DisplayBlock Misc_DemoModal_BlockView
   BlockName  [as String]
   CameraXOffset  [as Real]
   CameraYOffset  [as Real]
   Optional CameraZOffset  [as Real]
   Optional ZoomFactor [as Real])

Which I think are causing the confusion.
The same issue maybe occurring with (dcl_BlockView_DisplayBlockToScale ...)

Bug report:
https://sourceforge.net/tracker/index.php?func=detail&aid=1894709&group_id=187950&atid=923363 (https://sourceforge.net/tracker/index.php?func=detail&aid=1894709&group_id=187950&atid=923363)
Title: Re: dcl_BlockView_DisplayBlock
Post by: velasquez on February 18, 2008, 12:19:31 PM
This this working well now. 
I might have missed some before thing
Title: Re: dcl_BlockView_DisplayBlock
Post by: velasquez on February 19, 2008, 03:54:22 AM
Excuse me. 
My last postage was on dcl_BlockView_DisplayBlock in OnInitialize.