Block Preview Control

Started by jb, March 04, 2010, 06:57:34 AM

Previous topic - Next topic

jb

When using the Block Preview control to display a drawing it creates two lock files that don't get removed until the current session of AutoCAD is closed.  If multiple drawings are selected multiple lock files are created.  Is this by design and can it be changed?

I'll upload my Block Manager stuff to test.  Load all the lisps that start with BM_*.lsp

command is "BlockManager"
James Buzbee
Managing Memeber
Black Horse Development, LLC

owenwengerd

I loaded the files, but when I click on a filename all I get is a nil echoed at the command line and no block is displayed.

TimSpangler

Not sure if this helps.  This discussion came up over at theswamp.  I noticed that when the blockview creates the preview it locks the drawings and does not release it.  Maybe you can load this one.
theswamp
Get below the surface......

jb

Owen,  it takes a looooooong time to dispaly a drawing in the BlockPreview control.  Don't know why.  For testing I made really simple drawings with circles, squares, etc. and there was still a lag .. . . . .
James Buzbee
Managing Memeber
Black Horse Development, LLC

TimSpangler

Another thing that I notice is that if a block was created using a vertical when you select a block from the list you get "Checking for object enablers on the Autodesk website"

Is there anyway of preventing this echo?
theswamp
Get below the surface......

owenwengerd

Tim, I am able to load your version, but I couldn't figure out how to get it to display my blocks. I will build a small sample project to test with and have another look.

TimSpangler

Thanks Owen,

It takes a little set up, sorry!  If you need some vertical blocks let me know.
theswamp
Get below the surface......

owenwengerd

jb, I think them's the breaks when rendering a .dwg file. You might be able to control object enabler behavior via AutoCAD system variables, but parsing .dwg files is never going to be fast. Autodesk added the bitmap preview for dwg files and block icon for block definitions to eliminate the need to parse the .dwg file, so if speed is an issue, using the preview bitmap is one alternative.

TimSpangler

I tried using the demandload variable but I cant seem to get it to set and reset when needed.  I tried ausing the mouseon / mouseoff events but then it prints and empty line

6 = 1/2 dozen

thanks
theswamp
Get below the surface......

owenwengerd

I've now fixed the problem with lock files sticking around longer than needed. I didn't test it, but the PROXYWEBSEARCH system variable may prevent automatic object enabler checking.

TimSpangler

Is this going to be updated in the next release?

Thanks for the heads up on the variable,  the only thing that I could find was the demand load.  With that not enable my system didn't load the arx files it needed.

theswamp
Get below the surface......

owenwengerd

Quote from: TimSpangler on March 04, 2010, 11:47:23 AM
Is this going to be updated in the next release?

Yes, it will be in Alpha 24.

jb

James Buzbee
Managing Memeber
Black Horse Development, LLC

Kerry

Quote< .. > so if speed is an issue, using the preview bitmap is one alternative.

That's what I did in the version I posted.
It's a little jaggy, but very fast even over a network, and quite adequate to get a feel for the drawing content.
Perfection is not optional.
My other home is TheSwamp

TimSpangler

theswamp
Get below the surface......