Jump to content

Help needed with a Macro please


Cad2762

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 48
  • Created
  • Last Reply

Top Posters In This Topic

  • Cad2762

    19

  • ReMark

    17

  • Tuns

    6

  • dbroada

    2

Top Posters In This Topic

Posted Images

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...