TheSwamp

Code Red => VB(A) => Topic started by: Bryco on February 22, 2006, 11:36:44 PM

Title: Null extents
Post by: Bryco on February 22, 2006, 11:36:44 PM
The getboundingbox method gives this error every now and then.
So far it seems to be caused by an empty blockref, perhaps there are other causes I don't know.
On googling I found one post mentioning that it seems to happen on the ashade layer.
On I checking out solprof I found that it still makes the hidden line block on item with no hidden edges ,
a block with a zero count (A bit bugsy there cad).
On making a new getboundary function that deleted the offending empty blockrefs and its parent block,
 I found  the whole idea a bit useless as getboundingbox is used in so many for each loops and on deleting the blockref
 it'll error out with an automation error, or catastrophic or something.
The only thing I can think of is running an empty block purge before making the loop.
Any ideas?
Title: Re: Null extents
Post by: MickD on February 23, 2006, 05:12:39 PM
Your solution sounds about the easiest way (purge the empty blocks).
This doesn't solve your problem but if you're using acad 2004+ you don't need to use solprof, just set your viewports to display hidden and set the HLSETTINGS to not show hidden lines.
I'm using this system nowadays and it works ok, for layouts and sections (that are taken straight from the model into different layouts) that don't require hidden lines I set the modelling template to not show hidden lines in a hide operation, for detailing I have a template set up with the correct layer and colour for hidden lines and I copy/paste each item into this template for detailing and I don't need view setup/draw. View setup is handy to create ortho views but creates too many layers which I'm working on at the moment.
Title: Re: Null extents
Post by: Bryco on February 23, 2006, 10:09:50 PM
Sounds like some good tricks. We do our dims in modelspace which doesn't exactly make use of the new dims but since we do so few 3d dwgs it works out well. I would love to see an example of one of  your template dwgs.
Title: Re: Null extents
Post by: MickD on February 23, 2006, 10:31:49 PM
No prob's, when I get 5 I'll attach a couple with examples of the settings. To check them out just type in HLSETTINGS or have a look at in options under the user pref's settings for the hidden line settings button to open the same dialog.

I have seperate layers set up for mspace and pspace and very few for modelspace so they're easy to turn off, alternatively use the express layer manager for this.
It's good to have some dim's etc while you're modelling for reference but I do most of my dim's and notation in pspace for plotting.
I might even set up an event handler for when switching tilemodes that toggles model linework ( that you don't want) on/off.