TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Coder on January 10, 2020, 01:02:17 PM

Title: Change the background color of Slides
Post by: Coder on January 10, 2020, 01:02:17 PM
Hello,

I have created a few Slides with Black background color and I am trying to change the color of the Slide from the image attribute to the same color of the dialog background color ( -15 ) but it does not change.
Code: [Select]
: image { key = "mg"; width = 12; fixed_width = true; height = 8; color = -15;}
Is there a way to work around this problem?

Thank you.
Title: Re: Change the background color of Slides
Post by: snownut2 on January 10, 2020, 07:11:42 PM
You need to recreate slides.
Title: Re: Change the background color of Slides
Post by: Coder on January 11, 2020, 12:45:31 AM
Thank you.

What is the equivalent color number of ( -15 ) in AutoCAD to change the color of Model space before recreating the slides?
Title: Re: Change the background color of Slides
Post by: rayakmal on January 11, 2020, 07:28:04 AM
Thank you.

What is the equivalent color number of ( -15 ) in AutoCAD to change the color of Model space before recreating the slides?

I don't know, but I usually change the Autocad display color before creating slides (Right click on your display and open Options)
Title: Re: Change the background color of Slides
Post by: Coder on January 11, 2020, 11:11:11 AM
Thank you.

What is the equivalent color number of ( -15 ) in AutoCAD to change the color of Model space before recreating the slides?

I don't know, but I usually change the Autocad display color before creating slides (Right click on your display and open Options)
It seems that you repeated what I said in another way.
Title: Re: Change the background color of Slides
Post by: BIGAL on January 12, 2020, 03:07:12 AM
You can change the background colour via lisp google for it.

Scripting the making of the slides can help to make them if say lots of individual dwg's. Open Z E 0.9xp Mslide name.

Do you have slide manager its over at Autodesk apps well worth getting.
Title: Re: Change the background color of Slides
Post by: Coder on January 12, 2020, 06:08:48 AM
You can change the background colour via lisp google for it.
Would change the background colour of AutoCAD Model or a Slide ?

Scripting the making of the slides can help to make them if say lots of individual dwg's. Open Z E 0.9xp Mslide name.
What does that mean?
Do you have slide manager its over at Autodesk apps well worth getting.
I could not find it on Autodesk apps store.

Thanks for your reply.
Title: Re: Change the background color of Slides
Post by: BIGAL on January 12, 2020, 07:14:43 PM
I thought I got it from the appstore, any way https://en.freedownloadmanager.org/Windows-PC/Autocad-Slide-Library-Manager-FREE.html

I had like 200+ block dwg's so just wrote a script to open the dwg and make the slide did the 200+ in minutes just watched it flash the screen.

Open dwg22 Z E 0.9xp Mslide name.

Lastly just changes the background colour of your Autocad.
Title: Re: Change the background color of Slides
Post by: Coder on January 13, 2020, 01:03:31 AM
Are you sure is that program for creating and not for extracting ?
If yes, how to create easy slides with that application?
Title: Re: Change the background color of Slides
Post by: BIGAL on January 13, 2020, 08:27:32 PM
There are various ways of making a script in this case to make slides, the 1st step is to make a txt file with all the dwgnames.
You may need path as well, for me I use the support paths so they can be found.

Ok so a quicky using windows CMD dir *.dwg <dirlst.txt /b will make a text file with dwg names.

Then I use WORD as it lets you replace end of line with text. Then save as a script .scr



Title: Re: Change the background color of Slides
Post by: Coder on January 14, 2020, 07:02:37 AM
@BIGAL

I am not asking about how to make slides but I am asking .....
How to change the background colour of Slides
ELSE
What is the equivalent colour number of ( -15 ) in AutoCAD to change the colour of Model space before recreating the slides?


Hope this clear to you.
Thanks
Title: Re: Change the background color of Slides
Post by: snownut2 on January 14, 2020, 07:54:32 AM
Personally I produce slides through a view-port, with the actual object located in model space.  This allows (by performing a zoom extents) for all slides to be the same size.  So following that, you can change the background color of model space then whatever color you want the slide background color to be.
Title: Re: Change the background color of Slides
Post by: Coder on January 14, 2020, 08:33:38 AM
Personally I produce slides through a view-port, with the actual object located in model space.  This allows (by performing a zoom extents) for all slides to be the same size.  So following that, you can change the background color of model space then whatever color you want the slide background color to be.
Correct, that's what I do as well but the question still remains:

What is the equivalent colour number of ( -15 ) in AutoCAD to change the colour of Model space before recreating the slides?
Title: Re: Change the background color of Slides
Post by: ronjonp on January 14, 2020, 09:03:58 AM
How are you coming up with -15 for a color?
Title: Re: Change the background color of Slides
Post by: roy_043 on January 14, 2020, 09:22:34 AM
-15 is a DCL color.

But I am surprised by this discussion. AFAIK SLD files do not store a background color.
Title: Re: Change the background color of Slides
Post by: Coder on January 14, 2020, 09:33:29 AM
How are you coming up with -15 for a color?

You can have a look at this link:
http://help.autodesk.com/view/OARX/2020/ENU/?guid=GUID-1C95F5E1-C063-4334-A296-40E7E123F66C (http://help.autodesk.com/view/OARX/2020/ENU/?guid=GUID-1C95F5E1-C063-4334-A296-40E7E123F66C)
Title: Re: Change the background color of Slides
Post by: ronjonp on January 14, 2020, 09:57:46 AM
How are you coming up with -15 for a color?

You can have a look at this link:
http://help.autodesk.com/view/OARX/2020/ENU/?guid=GUID-1C95F5E1-C063-4334-A296-40E7E123F66C (http://help.autodesk.com/view/OARX/2020/ENU/?guid=GUID-1C95F5E1-C063-4334-A296-40E7E123F66C)
Cool .. thanks for the link. Can't say DCL is one of my strengths in lisp.  :oops:
Title: Re: Change the background color of Slides
Post by: Lee Mac on January 14, 2020, 12:13:35 PM
-15 is a DCL color.

But I am surprised by this discussion. AFAIK SLD files do not store a background color.

Agreed - perhaps the OP simply needs to fill_image with colour -15 prior to issuing slide_image.
Title: Re: Change the background color of Slides
Post by: Coder on January 14, 2020, 12:14:43 PM
I noticed is that the background of Slide changes according to the background colour of Model Space hence recreating slides with gray colour won't work as long as it follows Model's colour. miserable conclusion.
Title: Re: Change the background color of Slides
Post by: Coder on January 14, 2020, 12:17:36 PM
-15 is a DCL color.

But I am surprised by this discussion. AFAIK SLD files do not store a background color.

Agreed - perhaps the OP simply needs to fill_image with colour -15 prior to issuing slide_image.

Wow, that's it.  :yay!:

Thank you Lee.
Title: Re: Change the background color of Slides
Post by: Lee Mac on January 14, 2020, 02:35:29 PM
 :-)