Trouble loading DCL Image Slides

Trouble loading DCL Image Slides

tcoley95E9Z
Enthusiast Enthusiast
614 Views
6 Replies
Message 1 of 7

Trouble loading DCL Image Slides

tcoley95E9Z
Enthusiast
Enthusiast

I have a lisp routine on a shared drive with all associated files (.dcl & .sld) within said drive. I made a routine to check if a user has the required support file search paths and if not adds them inside a acaddoc.lsp routine.

 

My issue, however, is when my coworker loads the routine, the dcl runs as normal but the image slides wont load despite having the correct support path!

 

My best guess is the pathing.. our files are located within " Z:\5. Documents\Programs\.. " in which I assume the 5. is causing issues.

 

Any ideas? Is there a way to force load these slides or potentially use VL to write them into their pesonal documents folder?

 

Thanks!

 

0 Likes
Accepted solutions (1)
615 Views
6 Replies
Replies (6)
Message 2 of 7

paullimapa
Mentor
Mentor

I know if folders named with parentheses then that’s definitely an issue. Not sure why the period would cause a problem only on your coworkers computer. But you can always test by removing the period.


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
Message 3 of 7

Sea-Haven
Mentor
Mentor

Try making the slide name as a full name in the code. "Z:\\5. Documents\\Programs\\slide1.sld" etc

Make a temp directory like Z:\acadtemp and put some slides in there add support path, push it to top, see if that works.

 

Why do you have the 5 anyway, just me all the stuff like this would be in a directory a lot higher up say Z:\cadprograms\lisp, Z:\cadprograms\blocks, Z:\cadprograms\slides these in turn have sub directories. Yes ran off a server S: and no problems. 

Message 4 of 7

scot-65
Advisor
Advisor
Accepted solution
@tcoley95E9Z
Sea-Haven is on the right tract: Hard Path to the files.

However, if directory geometry changes, the routine fails and a new routine must be issued.

One solution:
To solve this, incorporate a "Browse for Directory" option and enter the resulting path to your MyMenu section of the registry. Once set, there is no further calls to the browse.

Not only check if the directory exists, but if the directory is populated with the desired file extension. If not, trigger the Browse for Directory.

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

Message 5 of 7

Sea-Haven
Mentor
Mentor

"Hard path to files" providing the slides are in a support path they can be name only. But as you suggest if you move must redo support path.

0 Likes
Message 6 of 7

tcoley95E9Z
Enthusiast
Enthusiast

Sea-Haven,

 

The Slides are located deep in sub folders due to our companies standard folder structure.

 

If I could I would have them under 1-2 folders within the directory but unfortunately that is not the case.

0 Likes
Message 7 of 7

Sea-Haven
Mentor
Mentor

You can still do a foreach slide (strcat path sldname) that way you have path once and the slides are just a simple "Bolt12.sld"

 

I just did a multi slide using foreach. The lst is the slides the imglst is the key names.

 

 

 

(foreach img imglst
     (setq sldname (nth (setq x (1+ x)) lst))
     (start_image img)
     (slide_image 0 0 (- (dimx_tile img) 1) (- (dimy_tile img) 1) sldname)
     (end_image)
)

 

 

SeaHaven_0-1714103929240.png

 

0 Likes