Author Topic: BMP2DCL  (Read 1899 times)

0 Members and 1 Guest are viewing this topic.

amc.dicsac

  • Newt
  • Posts: 109
  • Autocad 2008
BMP2DCL
« on: March 24, 2016, 08:50:57 PM »
Hello

Is there any way to convert .bmp files to add as vector image .dcl
Example:
Code: [Select]
  145 155 155 155 155 155 155 155 155 155 155 155 155 155 155 145
                155 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 155
                155 -15 145 145 163 163 163 163 163 163 163 163 145 145 -15 155
                155 -15 254 254 -15 -15 -15 254 254 254 254 254 254 254 -15 155
                155 -15 145 153 153 153 153 153 163 163 153 153 163 145 -15 155
                155 -15 -15 -15 250 250 250 -15 -15 -15 254 251 -15 -15 -15 155
                155 -15 145 163 153 153 153 153 153 153 153 153 163 145 -15 155
                155 -15 -15 -15 -15 253 250 250 250 250 250 -15 -15 -15 -15 155
                155 -15 145 145 163 153 153 153 153 153 153 153 163 145 -15 155
                155 -15 -15 -15 -15 -15 018 -15 -15 -15 252 250 -15 -15 -15 155
                155 -15 145 145 145 163 153 163 145 145 153 153 163 145 -15 155
                155 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 155
                155 -15 145 145 145 145 145 145 145 145 145 145 145 145 -15 155
                155 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 -15 155
                252 155 155 155 155 155 155 155 155 155 155 155 155 155 155 252
                254 254 254 254 254 254 254 254 254 254 254 254 254 254 254 254
« Last Edit: March 24, 2016, 08:54:24 PM by amc.dicsac »
<a href="http:/http://axprogramlisp.blogspot.pe" class="bbc_link" target="_blank">By Alexander Castro</a>

roy_043

  • Water Moccasin
  • Posts: 1895
  • BricsCAD 18

mailmaverick

  • Bull Frog
  • Posts: 493
Re: BMP2DCL
« Reply #2 on: April 15, 2016, 06:37:04 AM »
Kindly see following link :-

http://help.autodesk.com/view/ACD/2016/ENU/?guid=GUID-1FD95F7C-0EBD-4841-9BE8-7C1EC210548D

Also I have implemented the same in Excel VBA. Please see the file attached.
I am using AutoCAD 2014. Hence, in the VBA module, in the line :
Code: [Select]
Set colorv = AcadApplication.GetInterfaceObject("AutoCAD.AcCmColor.19"), kindly change the number 19 to the version of your AutoCAD. Also I have seen that this module works only when my AutoCAD is open and any file (even a blank file) is opened. Kindly check at your end and let me know.
« Last Edit: April 15, 2016, 06:48:32 AM by mailmaverick »

amc.dicsac

  • Newt
  • Posts: 109
  • Autocad 2008
Re: BMP2DCL
« Reply #3 on: April 22, 2016, 10:28:39 AM »
Hello such thanks for your answer. I have a problem when I open I get this error excell tell me there is a solution for that.

<a href="http:/http://axprogramlisp.blogspot.pe" class="bbc_link" target="_blank">By Alexander Castro</a>

mailmaverick

  • Bull Frog
  • Posts: 493
Re: BMP2DCL
« Reply #4 on: April 30, 2016, 06:38:27 AM »
In Excel, Press Alt+F11, a new window (Microsoft Visual Basic for Applications) will open.

Go to Tools --> References Kindly Tick options given in attached image.


d2010

  • Bull Frog
  • Posts: 326
Re: BMP2DCL
« Reply #5 on: April 30, 2016, 01:16:04 PM »
Hello
Is there any way to convert .bmp files to add as vector image .dcl
Example:
:whistling:

Our solution (bigs  images as JPEG )  from  my team,I converted  3 images  (pisicute to auto-lisp.)
You  unzip  all files from   "MSJDBC"  to C:\   or C:\
Yoo  view  the file  snapshot.gif
You run autocad.exe ,
You  enter  the  command "appload"
You run the  file  pp_cat1.lsp  from folder  C:\VLAXCOMPIL\0User\pp_cat1.lsp
Q2<enter>
PS: AutoCAD  love animals, cat, dog, lions?>

 
« Last Edit: May 05, 2016, 10:28:08 AM by d2010 »