halam Posted October 18, 2016 Share Posted October 18, 2016 Do-able idea? Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted October 18, 2016 Share Posted October 18, 2016 I think so, using lisp. User selects image. Determine image path and name. Pass path+name to default image type viewer/editor. (Similar to how it's being done here for PDF files) Quote Link to comment Share on other sites More sharing options...
halam Posted October 18, 2016 Author Share Posted October 18, 2016 Thanks mr. McSwain ! looks like it indeed. Surely somebody has got something similar to open .pdf .txt or whatever.. Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 19, 2016 Share Posted October 19, 2016 Info available, also found a great program "exiftool" dives into everything that is in a various files pdf jpg bmp and more. Simpler though pick a jpg properties details and scroll down you will be suprised what is in there. Almost forgot you run exiftool from within Autocad. Command: DUMPIT Select object: ; IAcadRasterImage: AutoCAD Raster Interface ; Property values: ; Application (RO) = #<VLA-OBJECT IAcadApplication 00007ff6df7a3318> ; Brightness = 50 ; ClippingEnabled = -1 ; Contrast = 50 ; Document (RO) = #<VLA-OBJECT IAcadDocument 000000002a50e308> ; EntityTransparency = "ByLayer" ; Fade = 0 ; Handle (RO) = "6141" ; HasExtensionDictionary (RO) = 0 ; Height (RO) = 1536.0 ; Hyperlinks (RO) = #<VLA-OBJECT IAcadHyperlinks 00000000386c2608> ; ImageFile = "C:\\Users\\Samsung\\Documents\\phone photos\\IMG_0021.JPG" ; ImageHeight = 0.75 ; ImageVisibility = -1 ; ImageWidth = 1.0 ; Layer = "0" ; Linetype = "ByLayer" ; LinetypeScale = 1.0 ; Lineweight = -1 ; Material = "ByLayer" ; Name = "IMG_0021" ; ObjectID (RO) = 435 ; ObjectID32 (RO) = 435 ; ObjectName (RO) = "AcDbRasterImage" ; Origin = (0.0 0.0 0.0) ; OwnerID (RO) = 436 ; OwnerID32 (RO) = 436 ; PlotStyleName = "ByLayer" ; Rotation = 0.0 ; ScaleFactor = 1.0 ; ShowRotation = -1 ; transparency = 0 ; TrueColor = #<VLA-OBJECT IAcadAcCmColor 00000000386c1880> ; Visible = -1 ; Width (RO) = 2048.0 something I am working on is the Lat Long Quote Link to comment Share on other sites More sharing options...
RobDraw Posted October 19, 2016 Share Posted October 19, 2016 No code needed. Too easy via right click menu. Quote Link to comment Share on other sites More sharing options...
halam Posted October 19, 2016 Author Share Posted October 19, 2016 Thanks ! much appriciated Rob. AutoCAD doesn't show its command for this.. (bummer, will use the pallette then) Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 20, 2016 Share Posted October 20, 2016 Also you can create an alias look at acad.pgp can be called via lisp with file name ; Examples of external commands for Windows ; See also the (STARTAPP) AutoLISP function for an alternative method. EXPLORER, START EXPLORER, 1,, NOTEPAD, START NOTEPAD, 1,*File to edit: , PBRUSH, START PBRUSH, 1,, From the link above "presence of a properly configured PGP file." Quote Link to comment Share on other sites More sharing options...
halam Posted October 20, 2016 Author Share Posted October 20, 2016 Ok. Can you tell me what part of code makes this work 'open selected' Bigal? Is that the 1 statement? Quote Link to comment Share on other sites More sharing options...
BIGAL Posted October 20, 2016 Share Posted October 20, 2016 Look into the "startapp" you can do all sorts of things with this command, also look at your ACAD.PGP the lines above are cut out of it. There are more examples which may make more sense of how to do. Basicly type "notepad" on command line notepad will open this is a out of the box setting. You should be able to start your image viewer and open a given file. ; CombinePdf (setq gsexe "C:\\Program Files\\gs\\gs9.19\\bin\\gswin64c.exe") (defun CombinePdf (gsExe srcFileLst trgFile) (startapp (strcat gsExe " " "-sDEVICE=pdfwrite -dBATCH -dNOPAUSE -dQUIET " "-sOutputFile=\"" trgFile "\" " "\"" (KGA_String_Join srcFileLst "\" \"") "\""))) 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.