DOSLib for AutoCAD 2019 Available

DOSLib for AutoCAD 2019 Available

dale_fugier
Contributor Contributor
7,520 Views
19 Replies
Message 1 of 20

DOSLib for AutoCAD 2019 Available

dale_fugier
Contributor
Contributor

If anyone is interested...or cares... Smiley Wink

 

http://wiki.mcneel.com/doslib/home

 

26 years and counting...

 

-- Dale

7,521 Views
19 Replies
Replies (19)
Message 2 of 20

paullimapa
Mentor
Mentor
0 Likes
Message 3 of 20

phanaem
Collaborator
Collaborator

Thanks!!!

0 Likes
Message 4 of 20

CAD-Heinz
Advocate
Advocate

Danke

DH
0 Likes
Message 5 of 20

Anonymous
Not applicable
Thank you very much!
0 Likes
Message 6 of 20

Steve_Johnson
Collaborator
Collaborator

Dale and McNeel continue to be awesome!

Steve Johnson - blog nauseam - ClassicArray
0 Likes
Message 7 of 20

Anonymous
Not applicable

 

Thanks Dale.

 

doslib is one utility that we cannot live without.

 

Awesome going for the last so many years.

 

Best Regards

Rakesh Rao

0 Likes
Message 8 of 20

JBerns
Advisor
Advisor

Dale,

Thanks for the great work and keeping this updated.

 

Regards,

Jerry

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
0 Likes
Message 9 of 20

JBerns
Advisor
Advisor

Is anyone else unable to display info in the DOSLib help file?

The right side is blank when selecting topics.

2018-05-03_14-19-39.jpg

 

Regards,

Jerry

 

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
0 Likes
Message 10 of 20

dale_fugier
Contributor
Contributor

In Explorer, right-click on the .chm file and pick Properties. In the Properties dialog, poke the Unlock button.

Message 11 of 20

JBerns
Advisor
Advisor

Dale,

Thanks for the answer and the quick reply.

I don't recall ever having to use Unblock on a CHM file. Good to know.

 

Regards,

Jerry

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
0 Likes
Message 12 of 20

kjbusacker
Enthusiast
Enthusiast

Dale_fugier, I have noticed this issue before also.  You mentioned an 'unlock' button.  I have never seen an unlock button in Properties.  Are you referring to the read-only attribute checkbox?

 

I have the same issue with .chm files on our network drive.  The CHM file is not read-only, but I do notice if i copy the same file to my hard drive (Documents folder), then I am able to see the help contents on the right window pane.   Can anyone explain why that is and if there is a way to get our .chm files to work from our network drives?

0 Likes
Message 13 of 20

dale_fugier
Contributor
Contributor

Windows blocks CHM files opened from network drives because of a security issue.

 

 

If you 'google' this topic, you can find workarounds that involved editing your Registry.

 

-- Dale

 

 

Message 14 of 20

kjbusacker
Enthusiast
Enthusiast

Dale, thanks for your prompt and informative reply!

0 Likes
Message 15 of 20

JBerns
Advisor
Advisor

Dale,

 

The function, dos_getfilem, returns a list of the path and drawings selected. The drawings are returned in alphabetical order. Your function is superior to getfiled which does not allow window resizing or multiple file selection.

 

I reviewed the Help file, but could not find an option to return the drawing list in the order the user selected them.

A benefit of a user-selected file list, in the case of drawings, would be that you could open all the drawings in the list and then activate the first drawing in the list.

 

Do you think others would benefit from an option to return the list either alphabetized or user-order selected?

 

Thanks for all your great work.

 

Regards,

Jerry

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
0 Likes
Message 16 of 20

JBerns
Advisor
Advisor

@dale_fugier,

 

I have incorporated dos_getfiled into several functions and it works great!

 

Would it be possible to add a Read-Only option to the function's interface? This could be similar to AutoCAD's OPEN command, which uses a drop down box, or use a check-box, which may be preferable to others.

 

I noticed that DOSLIB is on GitHub, but I do not have experience with that programming language. I hope others would benefit from this read-only option enhancement.

 

Thanks for your time. I welcome your feedback.

 

 

Regards,

Jerry

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
0 Likes
Message 17 of 20

dale_fugier
Contributor
Contributor

Hi @JBerns,

 

You might see if the dos_getfilenav function works any better. Check the help file for details.

 

-- Dale

Message 18 of 20

JBerns
Advisor
Advisor

@dale_fugier,

 

Although dos_getfilenav offers more options, it does not offer a read-only option like the AutoCAD OPEN command.

2019-01-24_12-52-10.png

This would be a nice option to offer users who may want to open a drawing in a protected state.

Thanks, Dale.

 

Regards,

Jerry

 

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
0 Likes
Message 19 of 20

Anonymous
Not applicable

Oh my word! 

I’ve just discovered DOSLib! 

I’ve written my own LISP routines in the passed and had heard of it while researching commands. 

Can either of you guys recommend any resources / websites to further my knowledge and expand my usage of DOSLib into my LISP routines? 

Kindest Regards 

0 Likes
Message 20 of 20

JBerns
Advisor
Advisor

@Anonymous ,

 

I think the best resource is the DOSLib Help File (contained in the Zip file).

Take several minutes to read through the Introduction section. Scan the function names listed in the Index tab. Most functions are self-explanatory, with detailed info when you select the function name.

For a specific task, such as a file operation, return to the Contents tab to see the functions organized by category.

Beyond that, many users on the AutoCAD Customization forum likely use DOSLib, so you could post your questions there.

Good luck and glad you discovered DOSLib. And a grateful thanks again to @dale_fugier for making this powerful tool available.

 

Regards,

Jerry

 

-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional
0 Likes