OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: velasquez on June 04, 2009, 05:09:55 AM

Title: Insertion points Show
Post by: velasquez on June 04, 2009, 05:09:55 AM
I know a program that management the drawings of a directory he has the characteristic below. 

*Insertion points plows displayed it goes drawings with images.

See the image.
Would it be possible to create some thing similar to OpenDCL? 
Title: Re: Insertion points Show
Post by: Fred Tomke on June 04, 2009, 09:22:39 AM
Hi, velasquez, I've made something similar.

Fred
Title: Re: Insertion points Show
Post by: velasquez on June 04, 2009, 10:21:11 AM
Hi Fred, 
You didn't understand well. 
I am talking about the red points in the drawing. 
They show the basepoint of the drawing. 
The same gotten with (getvar " insbase ").
Title: Re: Insertion points Show
Post by: BazzaCAD on June 04, 2009, 10:41:15 AM
Yes I've been thinking the same thing.
I'd like the insertion point shown for the Dwg Preview control also.
Like this: http://www.cadfx.com/blockman/screenshot.gif (http://www.cadfx.com/blockman/screenshot.gif)
Title: Re: Insertion points Show
Post by: BazzaCAD on June 04, 2009, 10:49:02 AM
Fred, how do you get your DWG Previews looking so good (or are you using the BlockView)?
Mine always look like #$^&%$#, with random missing lines.
I'm wondering if it's an aspect ration thing.....
Title: Re: Insertion points Show
Post by: Fred Tomke on June 04, 2009, 11:23:13 AM
Hi, guys,

@velasquez, sorry for my misinterpretation. I've already had the feeling that you meant the red point. But I have no idea how to point it out, especially in a isometric or perspective view. There are flying two ideas through my mind - not nice but they should work:
1. Create slides for each symbol with a point for insbase. Show a slide instead of each drawing in the form.
2. When you want to show the dwg-files in the preview then you have to save the block with a point object at insbase which is created on a layer which is off in the drawing where the block shall be inserted to. In this case the block has a point in the preview but not in the drawing.
The third idea to overlay the dwgpreview with a transparent image with a drawn circle and cross at the computed position of insbase of the shown block behind is so heavy this kind as I will leave it out to mention. ;)

@Barry: try backcolor 7 of dwgpreview instead. As you can see in my screenshot the highlighted preview uses no backcolor 7 and looks much worse than the previews with backcolor 7.

Fred
Title: Re: Insertion points Show
Post by: BazzaCAD on June 04, 2009, 02:49:29 PM
Quote from: Fred Tomke on June 04, 2009, 11:23:13 AM
@Barry: try backcolor 7 of dwgpreview instead. As you can see in my screenshot the highlighted preview uses no backcolor 7 and looks much worse than the previews with backcolor 7.

Hmmm, you're right. 7 looks much better.
Owen why is this?
Should I report a bug?
Title: Re: Insertion points Show
Post by: owenwengerd on June 04, 2009, 07:10:45 PM
I have no idea why that is. Yes, report it as a bug, and attach a simple sample that demonstrates it. I'm not sure what can be done about it, but at least it will be logged.
Title: Re: Insertion points Show
Post by: Fred Tomke on June 04, 2009, 10:51:35 PM
Hi, Barry and Owen, I'm afraid that it has its reaon in the dwgthumbnail-control. We also use the ActiveX control DWGThumbnail in forms made in VisualObjects (a development platform like Delphi). There we have similar problems. I also tried to use the DWGThumbnail control as ActiveX control with ObjectDCL with similar problems. In the end I gave up and I use white backcolor throughout the product.

Fred
Title: Re: Insertion points Show
Post by: BazzaCAD on June 05, 2009, 10:58:28 AM
I've updated this bug report: https://sourceforge.net/tracker/index.php?func=detail&aid=1683994&group_id=187950&atid=923363 (https://sourceforge.net/tracker/index.php?func=detail&aid=1683994&group_id=187950&atid=923363)
I wonder what control CADfx & velasquez program is using...
Title: Re: Insertion points Show
Post by: BazzaCAD on June 05, 2009, 11:40:53 AM
Would (acdbGetPreviewBitmapFromDwg) work better then (acdbDisplayPreviewFromDwg) as our buddy Tony suggests here:
http://discussion.autodesk.com/forums/thread.jspa?messageID=4223282&#4223282 (http://discussion.autodesk.com/forums/thread.jspa?messageID=4223282&#4223282)

It's all Greek to me.... :)
Title: Re: Insertion points Show
Post by: owenwengerd on June 07, 2009, 06:30:43 PM
I tried to duplicate the functionality of acdbDisplayPreviewFromDwg by extracting the bitmap with acdbGetPreviewBitmapFromDwg, but I haven't been successful. The acdbDisplayPreviewFromDwg function inverts the blacks and whites in the preview bitmap when it detects a black background, but try as I might, I could not figure out how to reproduce that behavior with bitmap manipulations.
Title: Re: Insertion points Show
Post by: BazzaCAD on June 08, 2009, 09:32:48 AM
OK thx for trying.
Title: Re: Insertion points Show
Post by: velasquez on June 10, 2009, 02:06:10 PM
Hi Bazz 
Can you post the drawings that you show in your code?
Thanks
Title: Re: Insertion points Show
Post by: BazzaCAD on June 10, 2009, 03:29:37 PM
Quote from: velasquez on June 10, 2009, 02:06:10 PM
Hi Bazz 
Can you post the drawings that you show in your code?
Thanks

There are over 5000 of them & I don't think Simpson would like me taking created for them.
But you can download them here: http://www.strongtie.com/AutoCad/index.htm (http://www.strongtie.com/AutoCad/index.htm)