Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Making slides with the gray shade

3 REPLIES 3
Reply
Message 1 of 4
cadking2k5
731 Views, 3 Replies

Making slides with the gray shade

 I would like to make a slide that is shaded in gray something like this I was able to get the slide made but it will not come up in the dialog boxacme.jpg

3 REPLIES 3
Message 2 of 4
paullimapa
in reply to: cadking2k5

Unfortunately, AutoCAD's DCL does not support shaded slides only slides with line work.

 

Area Object Link | Attribute Modifier | Dwg Setup | Feet-Inch Calculator
Layer Apps | List on Steroids | VP Zoom Scales | Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 4
Scottu2
in reply to: cadking2k5

Hello cadking2k5,

Its been a long time since I used slides.

I believe Pli is correct, Mslide directly from the drawing are lines.  Mslide made in a visual style, other than 2d wireframe, like Concept, Realistic creates a blank image.

 

However, I faintly recall that you can display a non-drawing image, indirectly.

Print screen or export the drawing as JPG or BMP.

Open with Paint and Crop it to size and save*.

In Autocad, insert the image into model space, create a view port around the image.

Then create the slide (Mslide) of the active port.

 

*The file format may be restricted to 256 color uncompressed (full color 32bit might not work)

 

If possible, post the DCL code, it may require some changes.

 

Message 4 of 4
paullimapa
in reply to: Scottu2

@Scottu2 I know this is thread is over 2 years old but I just thought I reply to your solution of exporting a jpg file and then attaching the image back into AutoCAD to create a shaded slide file.  I'm surprised how well this works. 

The only issue I encountered had to do with creating a pspace vport and then going back into mspace to create the slide which I've done before with normal vector based drawing to slide creation.  But for some reason attempting to create a slide file inside a mspace vport when there's an image attached causes the resultant slide to be filled with gridded dark lines. But this problem does not occur when creating the slide in Model tab.

So I just thought I share a solution I received from a reader on an article I wrote recently where I mentioned the pspace vport mslide creation method on AUGI: https://issuu.com/augi/docs/aw202110hr/32?ff 

What this person has done in the pass is run a set of vlisp functions to set the acad app & drawing document window size (Model tab) to match with the resolution proportions of the slide to be created.  This bypasses the need to create pspace vports. But of course you do have to find & then set the correct width & height measured in pixels.  Below is the code:

; swsfc sets app & dwg doc window to proportions for making top & bottom portions of chroma.dwg slides
(defun c:swsfc (/ acadObject acdoc)
 (setq acdoc (vla-get-activedocument(setq acadObject(vlax-get-acad-object))))
 (vla-put-windowState acadObject 1) ; don't maximize but cascade acad app window
 (vla-put-width acadObject 1920) ; set window width 1920 is for my monitor resolution
 (vla-put-height acadObject 1133) ; height 1133 is for my monitor resolution
 (vla-put-windowState acdoc 1) ; don't maximize but cascade dwg doc window
 (vla-put-width acdoc 1920) ; set dwg doc width 1920 is pixels I needed for my slide
 (vla-put-height acdoc 570) ; height 570 is pixels I needed for my slide
) ; defun

 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report