<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: OpenDCL Picturebox in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12319712#M22886</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14461688"&gt;@DGCSCAD&lt;/a&gt;&amp;nbsp;wrote:&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:ODCT ()
(command "_OPENDCL")
(dcl_Project_Load "ODCT.ODCL" T)
(dcl-Form-Show ODCT/Form1)
(dcl-PictureBox-LoadPictureFile ODCT/Form1/PictureBox1 "TestLogo" T)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;I think you're REAL close, but looking at your code, it appears that your image file has no extension. This may be your hang up this time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend always checking for files that we assume are being loaded:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:ODCT ( / fileName imgName)
  (command "_OPENDCL")
  (setq fileName "ODCT.ODCL")
  (setq imgName "TestLogo.png")
  (cond
    ((not (findfile fileName)) (alert (princ "\nProject File not found.")))
    ((not (findfile imgName)) (alert (princ "\nImage File not found.")))
    (t
      (dcl_Project_Load fileName T)
      (dcl-Form-Show ODCT/Form1)
      (dcl-PictureBox-LoadPictureFile ODCT/Form1/PictureBox1 imgName T)
    )
  )
  (prompt "\nODCT Complete.")
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2023 14:12:14 GMT</pubDate>
    <dc:creator>CodeDing</dc:creator>
    <dc:date>2023-10-20T14:12:14Z</dc:date>
    <item>
      <title>OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12315566#M22878</link>
      <description>&lt;P&gt;I'm just getting into ODCL and trying a simple picture dialog. Not sure why this code won't show the pic. It's in my support path, and even if I hard code the path it won't load.&lt;/P&gt;&lt;P&gt;The Error is:&lt;/P&gt;&lt;P&gt;Error: NIL value not allowed.&lt;/P&gt;&lt;P&gt;Function:&amp;nbsp;dcl-PictureBox-LoadPictureFile&lt;/P&gt;&lt;P&gt;Argument 0&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:ODCT ()
(command "_OPENDCL")
(dcl_project_load "ODCL-Test-001" T)
(dcl_form_show ODCL-Test-001_Form1)
(dcl-PictureBox-LoadPictureFile ODCL-Test-001/Form1/PictureBox1 "ge_logo3.png" T)
(princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 21:54:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12315566#M22878</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2023-10-18T21:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12315658#M22879</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14461688"&gt;@DGCSCAD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just tested your exact setup on my end.&lt;/P&gt;&lt;P&gt;Update these lines:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(dcl_form_show ODCL-Test-001_Form1)
(dcl-PictureBox-LoadPictureFile ODCL-Test-001/Form1/PictureBox1 "ge_logo3.png" T)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...To These:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(dcl-Form-Show ODCL-Test-001_Form1/Form1)
(dcl-PictureBox-LoadPictureFile ODCL-Test-001_Form1/Form1/PictureBox1 "ge_logo3.png" T)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;Also, please Double-Check the exact name of your .odcl file. Mine originally had " ... _Form1" in the name.&lt;/P&gt;&lt;P&gt;Be sure to use your &lt;STRONG&gt;Control Browser&lt;/STRONG&gt; to double-check these naming conventions (just right-click on the entity to open Control Browser for it).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 18 Oct 2023 23:19:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12315658#M22879</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2023-10-18T23:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12315743#M22880</link>
      <description>&lt;P&gt;I appreciate the reply and help, but it's still not showing the pic. With my original code the box pops up but it's blank and the error comes after closing it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a sample dcl-PictureBox-LoadPictureFile (that works) somewhere I could take a look at? I can't seem to find anything on that.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 00:16:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12315743#M22880</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2023-10-19T00:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12317584#M22881</link>
      <description>&lt;P&gt;I'm sure a simple mistake is happening somewhere. You just need to double-check everything in your code.&lt;/P&gt;&lt;P&gt;Did you try the Control Browser?&lt;/P&gt;&lt;P&gt;Let's do this, fill in this code by only copying/pasting values. No typing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:ODCT ( / imageName fileName formName pictureBoxName)
  (command "_OPENDCL")

  ;; Here's your image file name:
  (setq imageName "ge_logo3.png")

  ;; Paste your odcl File name below. Be sure to leave the quotes around it!
  (setq fileName "[paste your odcl file name here]")

  ;; Paste your Form name below.
  ;; Right-click your form in the editor window -&amp;gt; Control Browser -&amp;gt; "Show" method -&amp;gt; copy your form name from inside "syntax" area
  ;; Do NOT place it in quotes.
  ;; Should look something like: ODCL-Test-001_Form1
  (setq formName [paste your form name here])

  ;; Paste your PictureBox name below.
  ;; Right-click your picture box in the editor window -&amp;gt; Control Browser -&amp;gt; "LoadPictureFile" method -&amp;gt; copy your form name from inside "syntax" area
  ;; Do NOT place it in quotes.
  ;; Should look something like: ODCL-Test-001_Form1/Form1/PictureBox1 or ODCL-Test-001/Form1/PictureBox1
  (setq pictureBoxName [paste your picturebox name here])

  (cond
    ((not (findfile imageName)) (alert (princ "\nThe Image for your project could not be found.")))
    ((not (findfile fileName)) (alert (princ "\nYour ODCL project file could not be found.")))
    (t
      (dcl_Project_Load fileName T)
      (dcl-Form-Show formName)
      (dcl-PictureBox-LoadPictureFile pictureBoxName imageName T)
    )
  )
  (prompt "\nCommand Complete.")
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 17:43:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12317584#M22881</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2023-10-19T17:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12318107#M22882</link>
      <description>&lt;P&gt;With copy/pasting the syntax variables to your code, I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Your ODCL project file could not be found."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With copy/pasting the same variables to my original code I get the same previous error after closing the empty dialog.&lt;/P&gt;&lt;P&gt;Still no show piccy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What gives, ODCL? lol&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed my system slowing considerably after installing it, then today it was sludge, so I uninstalled it and everything is fine again. *shrug* Not sure whats going on with that. I'll check everything on a different system tomorrow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate the help CodeDing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For science purposes, here's my specs:&lt;/P&gt;&lt;P&gt;Windows 10 Home 64-bit&lt;/P&gt;&lt;P&gt;.NET v4.8 Full&lt;/P&gt;&lt;P&gt;AMD Ryzen Threadripper 2950X 16-Core&lt;/P&gt;&lt;P&gt;NVIDIA GeForce RTX 2080 Ti&lt;/P&gt;&lt;P&gt;32MB RAM&lt;/P&gt;&lt;P&gt;AutoCAD 2022 (vanilla)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 22:06:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12318107#M22882</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2023-10-19T22:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12318151#M22883</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14461688"&gt;@DGCSCAD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;With copy/pasting the syntax variables to your code, I get:&lt;/P&gt;&lt;P&gt;"Your ODCL project file could not be found."&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Wooo! That's progress! this means AutoCAD isn't finding your project file, so if you ever get it installed again, use my code and approach again and instead of only using your file name, "myODCLfile.odcl", you should use the full path to that file instead:&lt;/P&gt;&lt;P&gt;"c:\\users\\me\\desktop\\myODCLfile.odcl"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That should work!&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 22:29:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12318151#M22883</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2023-10-19T22:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12319652#M22884</link>
      <description>&lt;P&gt;Ok, from a different system I created a simple test. Still getting the original empty pic box and error after closing. This should work but it doesn't.&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:ODCT ()
(command "_OPENDCL")
(dcl_Project_Load "ODCT.ODCL" T)
(dcl-Form-Show ODCT/Form1)
(dcl-PictureBox-LoadPictureFile ODCT/Form1/PictureBox1 "TestLogo" T)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error4.PNG" style="width: 513px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281710i2F59431AE8E146BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error4.PNG" alt="Error4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error after closing:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error1.PNG" style="width: 399px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281711i9A726D8FE0328CED/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error1.PNG" alt="Error1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Syntax:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error2.PNG" style="width: 813px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281712iBA7D14872FFEE8D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error2.PNG" alt="Error2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error3.PNG" style="width: 820px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281713iFD2C33629305151F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error3.PNG" alt="Error3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 13:49:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12319652#M22884</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2023-10-20T13:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12319669#M22885</link>
      <description>&lt;P&gt;Did you see my previous message? You should be using the full path to your odcl project file. It seems you are focused on the error message and believe something is wrong with the picture box itself, but I am under the impression that the picture box is failing because there is no project loaded for the picture box to populated into. We cannot focus on fixing one part of our codee because we THINK that's where the problem is, we need to step back and look at the ENTIRE code because something may be wrong elsewhere. That's why I wrote a code which checked the other aspects of your project, and it helped us identify that we should be providing the full path to the project file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 13:56:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12319669#M22885</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2023-10-20T13:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12319712#M22886</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14461688"&gt;@DGCSCAD&lt;/a&gt;&amp;nbsp;wrote:&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:ODCT ()
(command "_OPENDCL")
(dcl_Project_Load "ODCT.ODCL" T)
(dcl-Form-Show ODCT/Form1)
(dcl-PictureBox-LoadPictureFile ODCT/Form1/PictureBox1 "TestLogo" T)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;I think you're REAL close, but looking at your code, it appears that your image file has no extension. This may be your hang up this time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would recommend always checking for files that we assume are being loaded:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:ODCT ( / fileName imgName)
  (command "_OPENDCL")
  (setq fileName "ODCT.ODCL")
  (setq imgName "TestLogo.png")
  (cond
    ((not (findfile fileName)) (alert (princ "\nProject File not found.")))
    ((not (findfile imgName)) (alert (princ "\nImage File not found.")))
    (t
      (dcl_Project_Load fileName T)
      (dcl-Form-Show ODCT/Form1)
      (dcl-PictureBox-LoadPictureFile ODCT/Form1/PictureBox1 imgName T)
    )
  )
  (prompt "\nODCT Complete.")
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 14:12:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12319712#M22886</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2023-10-20T14:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12320168#M22887</link>
      <description>&lt;P&gt;D'oh! In my haste I forgot to add the the extension back after trying every possibility to find where it's going wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I ran your code above and got the same result as in my previous post, an empty picture box and an error after closing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried using the full path for the project ODCL file and got the same result.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 17:14:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12320168#M22887</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2023-10-20T17:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12320196#M22888</link>
      <description>&lt;P&gt;This gets the same results:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:ODCT ( / fileName imgName)
  (command "_OPENDCL")
  (setq fileName "C:\\PRD\\Apps\\LISP\\ODCT.ODCL")
  (setq imgName "C:\\PRD\\Apps\\LISP\\TestLogo.png")
  (cond
    ((not (findfile fileName)) (alert (princ "\nProject File not found.")))
    ((not (findfile imgName)) (alert (princ "\nImage File not found.")))
    (t
      (dcl_Project_Load fileName T)
      (dcl-Form-Show ODCT/Form1)
      (dcl-PictureBox-LoadPictureFile ODCT/Form1/PictureBox1 imgName T)
    )
  )
  (prompt "\nODCT Complete.")
  (princ)
)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Oct 2023 17:21:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12320196#M22888</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2023-10-20T17:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12320350#M22889</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14461688"&gt;@DGCSCAD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;This gets the same results:&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":bomb:"&gt;💣&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":collision:"&gt;💥&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":dizzy:"&gt;💫&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":dizzy_face:"&gt;😵&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Idk what else to try then. I'm doing everything you're doing and do not get the error when everything is setup properly.&lt;/P&gt;&lt;P&gt;I have tried in Civil 3D 2021 &amp;amp; 2023 (merely AutoCAD + add-ons).&lt;/P&gt;&lt;P&gt;I use this code:&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:ODCT ( / fileName imgName)
  (command "_OPENDCL")
  (setq fileName "[.....]\\LISP\\odcl\\Test-Project.odcl")
  (setq imgName "[.....]\\Pictures\\Clip Art\\manhole_san_sewer.png")
  (cond
    ((not (findfile fileName)) (alert (princ "\nProject File not found.")))
    ((not (findfile imgName)) (alert (princ "\nImage File not found.")))
    (t
      (dcl_Project_Load fileName T)
      (dcl-Form-Show Test-Project/Form1)
      (dcl-PictureBox-LoadPictureFile Test-Project/Form1/PictureBox1 imgName T)
    )
  )
  (prompt "\nODCT Complete.")
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And get this form:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 322px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1281851i0C1F57BDA856A695/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only hurdle I ran into was when I tried running oDCL on 2023. I had to research how to load the ARX file(s), but it wouldn't let me even show the form or get an error message until I resolved that, so your AutoCAD is obviously loading the oDCL files correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since you're running 2022, I don't believe this is a versioning issue because I ran on both '21 and '23 and got the same good result. I'm out of ideas, sorry I can't help more. Hopefully someone else can chime in soon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;My Specs:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Windows 10 Pro&lt;/P&gt;&lt;P&gt;64 bit OS, x64-processor&lt;/P&gt;&lt;P&gt;12th Gen Intel(R) Core(TM) i9-12950HX 2.30 GHz&lt;/P&gt;&lt;P&gt;NVIDIA RTX A1000 Laptop GPU&lt;/P&gt;&lt;P&gt;32GB RAM&lt;/P&gt;&lt;P&gt;Civil 3D 2021 &amp;amp; Civil 3D 2023&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;~DD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 18:28:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12320350#M22889</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2023-10-20T18:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12320458#M22890</link>
      <description>&lt;P&gt;I appreciate your taking the time to help DD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried uninstalling/reinstalling and same result. I tried using a brand new png. I tried just about everything I can think of and it's got me stumped.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The main purpose of this was snazzy dialogs for my functions. I used to use VBA for images in my dialogs but I don't want to have to run a 3rd party installer so everyone can use VBA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll keep at it until I figure something out.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 19:26:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12320458#M22890</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2023-10-20T19:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12320499#M22891</link>
      <description>&lt;P&gt;Have you tried running the "OPENDCLDEMO" palette, then opening the various samples to test those? The "Methods" sample will let you load an image into a picture box (but not a .png for some reason).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Might be helpful to see if that produces an error or not.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 19:49:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12320499#M22891</guid>
      <dc:creator>CodeDing</dc:creator>
      <dc:date>2023-10-20T19:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: OpenDCL Picturebox</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12328195#M22892</link>
      <description>&lt;P&gt;I'll have a look when I get back to this, DD. I'm on a different project right now. Thanks again for all the help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 19:08:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/opendcl-picturebox/m-p/12328195#M22892</guid>
      <dc:creator>DGCSCAD</dc:creator>
      <dc:date>2023-10-24T19:08:20Z</dc:date>
    </item>
  </channel>
</rss>

