problems BlockView

Started by garcigj, January 10, 2014, 03:46:12 AM

Previous topic - Next topic

garcigj

I have encountered problems with BlockView control when a preload of a drawing is made and this blocks are displayed. (dcl_BlockView_PreLoadDwg)
Problems arise when the BlockView resizes in height or width and its dimension is less than or equal to 0.
In dockable forms when pallets or controls accumulate bars and BlockView stops working, this is because when these forms are anchored and BlockView is lost, out of view of the application, for example to resize the application window.
The problem can not be resolved, and I tested with dcl_Control_Redraw dcl_BlockView_RefreshBlock, but do not solve the problem. You have to close and reopen the form again. (this is inevitable)

José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

Fred Tomke

Hm, quite interesting, haven't seen this yet. I'd bet (dcl_BlockView_RefreshBlock) would did the trick, but you say, it doesn't.
Try a clear in Form_OnSize event and reload the block anew.
This test could fence the problem's source.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

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

garcigj

Fred,
This happens only with dcl_BlockView_PreLoadDwg
Not solved with dcl_BlockView_DisplayBlock, we must re-load the drawing dcl_BlockView_PreLoadDwg
this is very problematic.

I will add more examples where the error occurs.
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

garcigj

(dcl_BlockView_PreLoadDwg)
BlockView problem when docked palettes:

José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

garcigj

(dcl_BlockView_PreLoadDwg)
BlockView force error manually

José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

garcigj

I need to publish my application and I can not do with these failures.
Any advice?


sorry for my bad English
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

owenwengerd

I was able to reproduce the problem in AutoCAD 2010. It looks like AutoCAD's GsView gets confused if one of the control dimensions reaches zero. Bricscad does not have the problem. I added some code to block zero dimensions from being passed along to the underlying GsView, and this seems to solve the problem. In the meantime, I think the only solution is to prevent the blockview control size from reaching zero in either dimension.

garcigj

I'm working with OnSize event without good results.
I noticed this:

I've been setting well actually no fault BlockView that minimize to 0, but because it disappears from the screen of the document.
Can this be so?
be set in steps of image:
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

owenwengerd

Is your form set as resizable? Is the OnSize event for the form or the control?

garcigj

Is the OnSize event for the form

Allow Resizing = true

Owen, I send the form?

José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

owenwengerd

I did a quick test and could not reproduce the problem. Please create a new project with only the minimum required controls and code, and attach it with exact steps needed to reproduce the problem.

garcigj

José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

garcigj

Owen,
I hope with this you can reproduce the problem

you have to change this path for your path
Code (autolisp) Select

;;Change this path for why you need
;;Path for proyect:
(defun 2DA-GetPathSupport ()
"E:\\Users\\joseluis\\Pictures\\borrar\\"
)
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

owenwengerd

Sorry, that project is way too complicated for debugging. I have attached my test project that uses the sample file AllControls.dwg. Please give me the exact steps needed to reproduce the problem, or explain what must be changed for the problem too occur.

garcigj

Sorry the delay, I have gone a moment

Do not touch anything, just try it
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)