OpenFileDialog?

OpenFileDialog?

mucip
Collaborator Collaborator
1,023 Views
3 Replies
Message 1 of 4

OpenFileDialog?

mucip
Collaborator
Collaborator

Hi,

I want to select a txt file and use it in Autocad points. I am searching for fileDialog?

Is there easier way to use in 64 bit AutoCAD 2018?

I found some codes but some are very old and some for 32 bit.

 

Regards

Mucip:)

0 Likes
Accepted solutions (1)
1,024 Views
3 Replies
Replies (3)
Message 2 of 4

chriscowgill7373
Advisor
Advisor

Can you provide some more detail? 

You can specify the file type within the file dialog using the GETFILED function

http://docs.autodesk.com/ACD/2013/ENU/index.html?url=files/GUID-AD65DF88-5218-4655-B877-B4D33B9FB6D1...

(sorry for the age of the help link, it was the first thing that came up with google, but the syntax is still the same)


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2024 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

0 Likes
Message 3 of 4

mucip
Collaborator
Collaborator
0 Likes
Message 4 of 4

chriscowgill7373
Advisor
Advisor
Accepted solution

Yeah, that would work, sorry, I dont know how I missed that this was in the VBA forum, I thought for sure it said LISP at the top.  You should be able to replace the dwg with txt to limit your search to text files.  It basically is calling the same GETFILED function as defined in the help file I provided previously, so the syntax should still assist you.

image.png


Christopher T. Cowgill, P.E.

AutoCAD Certified Professional
Civil 3D Certified Professional
Civil 3D 2024 on Windows 10

Please select the Accept as Solution button if my post solves your issue or answers your question.

0 Likes