Method SuggestName
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SuggestName(DxfDBDictionary, string)
Gets a name for a definition of a picture in a dictionary of images, as AutoCAD 2021's SuggestName gives it:
the file's name without its folder or extension, px43 for C:\pictures\px43.png and Photo 1 for
pictures\Photo 1.JPG; and where the dictionary has that name, letters of either case the same, the name and
_1, or _2 and on, the first it has not.
public static string SuggestName(DxfDBDictionary imageDictionary, string newImagePathName)
Parameters
imageDictionaryDxfDBDictionaryThe dictionary of images.
newImagePathNamestringThe path of the picture.
Returns
- string
The name.
Exceptions
- ArgumentNullException
Thrown when the dictionary or the path is null.