Cad2762 Posted October 22, 2013 Author Share Posted October 22, 2013 No luck as get the following Command: -image Enter image option [?/Detach/Path/Reload/Unload/Attach] : attach Enter image file name to attach: M:/DATA/AERIAL_PHOTOS/2012/84235/RGB_10cm_1km_Jpeg Image not found. Enter image file name to attach: _Tiles Image not found. Enter image file name to attach: *Cancel* The file path is 100% correct Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 22, 2013 Share Posted October 22, 2013 No, it isn't. Where is the name of the file you are trying to attach? Quote Link to comment Share on other sites More sharing options...
Tuns Posted October 22, 2013 Share Posted October 22, 2013 Well it isn't correct if it can't be found. What is the name of the image? The file path should be something like M:/DATA/AERIAL_PHOTOS/2012/84235/RGB_10cm_1km_Jpeg _Tiles/image.jpeg Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 22, 2013 Share Posted October 22, 2013 Maybe Cad2762 wants to be able to pick from a group of images and not specify one in particular? Quote Link to comment Share on other sites More sharing options...
Cad2762 Posted October 22, 2013 Author Share Posted October 22, 2013 If you type -image in the command line then A for attach you get a dialog box pop up which then requires you to browse through the various folders, with -image;attach;M:/DATA/AERIAL_PHOTOS/2012/84235/RGB_10cm_1km_Jpeg _Tiles;\1;0; at the attach point in your string this is where it must be falling over. Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 22, 2013 Share Posted October 22, 2013 No, it isn't. This: RGB_10cm_1km_Jpeg _Tiles is not the name of an image it is the name of a directory. This is an example of a name of an image: myimage.jpg Quote Link to comment Share on other sites More sharing options...
Cad2762 Posted October 22, 2013 Author Share Posted October 22, 2013 I'm not trying to specify an image I'm trying to get the folder displayed that has the images within it, RGB_10cm_1km_Jpeg is the folder name! Quote Link to comment Share on other sites More sharing options...
Tuns Posted October 22, 2013 Share Posted October 22, 2013 Jesus Christ... You could have said that 11 posts ago... I don't know of a macro to simply open a folder to display the images in it. That sounds like it would be a manual job. Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 22, 2013 Share Posted October 22, 2013 I think you'll have to resort to using a different method (not a macro) so you can browse a folder to select an individual file out of a bunch of files. Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 22, 2013 Share Posted October 22, 2013 Jesus Christ... You could have said that 11 posts ago... I don't know of a macro to simply open a folder to display the images in it. His name is Cad2762 not J.C. And he probably did say it 11 posts ago but not as clearly as he has now. Our bad. Quote Link to comment Share on other sites More sharing options...
dbroada Posted October 22, 2013 Share Posted October 22, 2013 if you have a space in your path (such as between Jpeg & _Tiles) you have to enclose the string in "quotes". The quotes aren't required if you don't have spaces. Quote Link to comment Share on other sites More sharing options...
Cad2762 Posted October 22, 2013 Author Share Posted October 22, 2013 If you look at my original post you can see its a folder and not a file Quote Link to comment Share on other sites More sharing options...
dbroada Posted October 22, 2013 Share Posted October 22, 2013 and further to my comment, you have added a space that is not in that image Quote Link to comment Share on other sites More sharing options...
Cad2762 Posted October 22, 2013 Author Share Posted October 22, 2013 Thanks REMARK If you look at my original post you can see its a folder and not a file Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 22, 2013 Share Posted October 22, 2013 He wants to browse a folder using a macro. I don't see that as being possible. Am I right or wrong? Quote Link to comment Share on other sites More sharing options...
Mike_Taylor Posted October 22, 2013 Share Posted October 22, 2013 Is there a way you could incorporate a .bat file within a macro? Quote Link to comment Share on other sites More sharing options...
Tuns Posted October 22, 2013 Share Posted October 22, 2013 He wants to browse a folder using a macro. I don't see that as being possible. Am I right or wrong? You aren't wrong there. I don't know if you can run a .bat from a macro but I don't think it would be impossible. What did you have in mind? Quote Link to comment Share on other sites More sharing options...
Mike_Taylor Posted October 22, 2013 Share Posted October 22, 2013 The SHELL command allow this to happen, I am no expert here, but would it be possible to incorporate a batch file that browses to a location. The tricky part would be to have it incorporate that within the AutoCAD dialogue windows. Quote Link to comment Share on other sites More sharing options...
Cad2762 Posted October 22, 2013 Author Share Posted October 22, 2013 15+ years ago I was creating custom menu pull downs for our team, using Autoexec.bat, creating script files etc but since being very unwell about 3 years ago I now find it harder to concentrate on this type of thing, I have no problem turing my drawings out day after day but do now struggle a bit with this type of thing. Quote Link to comment Share on other sites More sharing options...
ReMark Posted October 22, 2013 Share Posted October 22, 2013 How about a macro that calls a lisp routine that incorporates the "getfiled" function? Once the file is selected though then what? Is control returned to the macro or does it remain with the lisp routine? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.