Author Topic: BMP to Cad  (Read 14155 times)

0 Members and 1 Guest are viewing this topic.

alanjt

  • Needs a day job
  • Posts: 5352
  • Standby for witty remark...
Re: BMP to Cad
« Reply #15 on: April 03, 2008, 04:24:58 PM »
i know i'm asking a rather stupid question, but how do you use that coding. it's actually quite useful, i just don't understand what to do with the coding to get it to work.
Civil 3D 2019 ~ Windohz 7 64bit
Dropbox

Antisthenes

  • Guest
Re: BMP to Cad
« Reply #16 on: April 03, 2008, 04:25:16 PM »
yes bmp jpg pcx png and tiff are supported

FengK

  • Guest
Re: BMP to Cad
« Reply #17 on: April 03, 2008, 06:12:59 PM »
:-D
Code: [Select]
[CommandMethod("bmptocad")]

Very cool Daniel! Did you notice the image is flipped upside down?
« Last Edit: April 03, 2008, 07:22:31 PM by Kelie »

FengK

  • Guest
Re: BMP to Cad
« Reply #18 on: April 04, 2008, 04:57:19 AM »
changing this line
DBPoint point = new DBPoint(new Point3d(i,j,0));
to
DBPoint point = new DBPoint(new Point3d(i,0-j,0));

seems to be a fix.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: BMP to Cad
« Reply #19 on: April 04, 2008, 07:19:30 AM »
hehehehe
http://www.objectarx.net/bbs/viewthread.php?tid=1766&extra=page%3D1

added
Quote from: translation
Reads in a BMP document to see to AutoCAD in at a foreigner's forum,
may read a BMP document in AutoCAD.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8696
  • AKA Daniel
Re: BMP to Cad
« Reply #20 on: April 04, 2008, 10:11:30 AM »
hehehehe
http://www.objectarx.net/bbs/viewthread.php?tid=1766&extra=page%3D1

added
Quote from: translation
Reads in a BMP document to see to AutoCAD in at a foreigner's forum,
may read a BMP document in AutoCAD.

Well, hot dang, I have finally written code that’s good enough to be …

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8696
  • AKA Daniel
Re: BMP to Cad
« Reply #21 on: April 04, 2008, 10:14:22 AM »
changing this line
DBPoint point = new DBPoint(new Point3d(i,j,0));
to
DBPoint point = new DBPoint(new Point3d(i,0-j,0));

seems to be a fix.

Awesome, Thank you! :-)

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: BMP to Cad
« Reply #22 on: April 04, 2008, 10:29:33 AM »
Daniel, cool stuff for sure.


管理员



帖子794 精华1 积分4451 来自中国 个人空间 发
Be your Best


Michael Farrell
http://primeservicesglobal.com/

nlund1972

  • Guest
Re: BMP to Cad
« Reply #23 on: April 04, 2008, 05:17:14 PM »
I want to try this, but how do create the command in CAD?

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8696
  • AKA Daniel
Re: BMP to Cad
« Reply #24 on: April 05, 2008, 10:46:55 AM »
i know i'm asking a rather stupid question, but how do you use that coding. it's actually quite useful, i just don't understand what to do with the coding to get it to work.

I have attached a DLL that you can netload into AutoCAD and execute through lisp I.E
Code: [Select]
(BMPToCad "c:\\hal9000.bmp"  0)
« Last Edit: April 05, 2008, 11:49:13 AM by Daniel »