Author Topic: Dwg Preview / Thumbnail  (Read 9112 times)

0 Members and 1 Guest are viewing this topic.

PrinceLISPalot

  • Newt
  • Posts: 36
  • perfectionist trapped inside the mind of an idiot.
Re: Dwg Preview / Thumbnail
« Reply #15 on: April 07, 2014, 10:56:31 PM »
BricsCAD V14 includes additional tools for LISP, including the ability to read and write binary files
http://www.bricsys.com/common/applications/application.jsp?app=720&apploc=1176
See included help on VLE binary read and write functions. Perhaps this would be a way to do this, specifically for BricsCAD?
This of course assumes knowledge of the .dwg file.

BricsCAD Classic does support COM and visual lisp

Upgrade to BricsCAD Pro may be easier than having to overly stress the grey matter ^-^

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Dwg Preview / Thumbnail
« Reply #16 on: April 08, 2014, 02:14:31 AM »
This of course assumes knowledge of the .dwg file.
To extract V14 previews using code similar to maicy's you would also need to know about .png files. Since .png files have compression they are not as easy to understand as 256 color .bmp files.

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18
Re: Dwg Preview / Thumbnail
« Reply #17 on: April 08, 2014, 02:17:24 AM »
Using the 'ObjectDBX' approach there will probably also be a problem with hatch patterns.

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
Re: Dwg Preview / Thumbnail
« Reply #18 on: April 08, 2014, 09:20:16 AM »
Upgrade to BricsCAD Pro may be easier than having to overly stress the grey matter ^-^

Should have gone BrisCAD Pro.

Quote from: David Gregory
I see a pattern emerging.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

snownut2

  • Swamp Rat
  • Posts: 971
  • Bricscad 22 Ultimate
Re: Dwg Preview / Thumbnail
« Reply #19 on: April 08, 2014, 08:16:55 PM »
Thanks MP, unfortunately Bricscad Classic will not run DOSLIB, I am looking for another option.

Should have gone BrisCAD Pro.

You need to be careful with that stick, you could poke someones eye out.... :ugly:

exmachina

  • Guest
Re: Dwg Preview / Thumbnail
« Reply #20 on: April 15, 2014, 04:54:15 PM »
The way I understand it, Doslib will extract from the currently opened drawing
and creates a bmp file.
But it seems that BricsCad Classic does not support Doslib...

jar,
More interesting would be a command where you specify a drawing extract the preview
and returns it in the proper format for DCL display.
.. Autolisp Command?
I do not have the BRX|bricsys TX SDK's , do you have the BRX or the bricsys TX SDK's?

This problem (PNG images/Bricscad_Classic_will_not_support_DOSLIB) can be solved easily with a COM library (aka ActiveX) totally independent of bricscad.
If anyone knows another way , please send the code

ymg

  • Guest
Re: Dwg Preview / Thumbnail
« Reply #21 on: April 16, 2014, 09:35:25 AM »
jar,

Quote
.. Autolisp Command?
I do not have the BRX|bricsys TX SDK's , do you have the BRX or the bricsys TX SDK's?

I don't have it, but could probably find it on the web.
I am a complete newbie when it comes to Bricsys but they seem
to recommend going with the BRX SDK's as it is supposed to be completely
compatible with ARX.

You need to register as a developper here http://www.bricsys.com/bricscad/help/en_US/V14/DevRef/index.html?page=source%2FBRX_01.htm in order to download the SDK.

However a little reading on their site states that the SDK is not compatible with "Classic" you need "Pro"
or "Platinum" .

Furthermore some of the required dll are part of the Bricscad installation.  Seems like you need Bricscad
installed on your system in order to develop for it.

I believe you are right, there is no other way than having an interface to a library  (For example "libpng").
You also need "zlib" as libpng is dependent on it.

ymg
« Last Edit: April 16, 2014, 10:37:26 AM by ymg »