Add an image to DCL file.

Add an image to DCL file.

Anonymous
Not applicable
5,134 Views
6 Replies
Message 1 of 7

Add an image to DCL file.

Anonymous
Not applicable

Hi,

I would like to add an image to my DCL UI from Autolisp program. Image is there in my website.

How can I do that? Is that Possible?

 

And also I need to assign a hyperlink to that image. When I click on that it should direct me to another website address.

 

Can someone help me?


        (setq w (dimx_tile "help")
              h (dimy_tile "help")
        )
        (start_image "help")
       ???????
        (end_image)

 

Thanks in advance,

Arun Nath

0 Likes
5,135 Views
6 Replies
Replies (6)
Message 2 of 7

scot-65
Advisor
Advisor
To add an image to a dialog using the image_tile you first
have to create a slide (.SLD) of the current AutoCAD window.
It's easy to bring the image into the editor however
the trick is to size the window to the image before taking
a slide (capture). The resulting file will require referencing
into your program either thru a support path or "hard-pathed".

I currently do not know of any software that can save an
image in SLD/SLB format or any software that can edit such
file extension names.

See command MSLIDE for further help.

An action_tile "Img01" will take care of the web link.
Make sure to add a key="Img01"; in your DCL file.
First close the dialog, then command BROWSER as commands
cannot be invoked while the dialog is open.

I have not added images to any of my DCL files but looked into
this once upon a time and realized that dependent external
files are not acceptable to my mythology. I have added colored
buttons, but not images or vector development.

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 3 of 7

scot-65
Advisor
Advisor

I have created a simple exercise to browse to a website by clicking on an image inside the DCL.

 

ImageTileSS.jpg

 

Please see the attached file.

Note: All 3 files must be in the same folder or in a folder that is declared in the SFSP.

Hint: Place a blank Drawing1.dwg in this same folder and double-click this file to open.

 

Scot-65

 


Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 4 of 7

patrick_35
Collaborator
Collaborator

Hi

It's possible to use images in jpg format.
Go see this topic.

 

@+

0 Likes
Message 5 of 7

RichardWillis2266
Explorer
Explorer

This lisp file will create fancy DCL images from AutoCAD objects but unfortunately not from raster images.

 

https://www.theswamp.org/index.php?topic=20878.msg255063#msg255063

 

VECTORIZE.JPG

Message 6 of 7

scot-65
Advisor
Advisor
The link you supplied is to a forum I am not a member of.
Therefore I cannot view the material.

If you wish to use a recognized image format, it is my understanding
that it is possible to us a third-party plugin such as OpenDCL or create
a dialog via .NET, etc. Simple DCL will not do.

???

Scot-65
A gift of extraordinary Common Sense does not require an Acronym Suffix to be added to my given name.

0 Likes
Message 7 of 7

Satish_Rajdev
Advocate
Advocate

This is really useful... Thank you for sharing

Best Regards,
Satish Rajdev


REY Technologies | Linked IN | YouTube Channel


 

0 Likes