{"id":23082,"date":"2025-11-18T08:51:16","date_gmt":"2025-11-17T23:51:16","guid":{"rendered":"https:\/\/happy-man.jp\/engineer\/?p=23082"},"modified":"2025-11-18T09:45:08","modified_gmt":"2025-11-18T00:45:08","slug":"%e4%b8%8b%e6%96%b9%e5%90%91%e3%81%8d%e3%81%ae%e6%8a%98%e3%82%8c%e7%b7%9a%e3%82%b0%e3%83%a9%e3%83%95%ef%bc%88n%e5%80%a4%ef%bc%89%e3%81%aelisp%e3%82%92gemini%ef%bc%88ai%ef%bc%89%e3%81%ab%e4%bd%9c","status":"publish","type":"post","link":"https:\/\/happy-man.jp\/engineer\/?p=23082","title":{"rendered":"\u4e0b\u65b9\u5411\u304d\u306e\u6298\u308c\u7dda\u30b0\u30e9\u30d5\uff08N\u5024\uff09\u306eLISP\u3092Gemini\uff08AI\uff09\u306b\u4f5c\u3063\u3066\u3082\u3089\u3063\u305f"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_91 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/happy-man.jp\/engineer\/?p=23082\/#%E4%BB%8A%E6%9B%B4%E3%81%A0%E3%81%91%E3%81%A9\" >\u4eca\u66f4\u3060\u3051\u3069<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/happy-man.jp\/engineer\/?p=23082\/#%E3%83%9E%E3%82%AF%E3%83%AD%E8%81%B7%E4%BA%BA%E3%82%92%E4%BA%BA%E5%B7%A5%E7%9F%A5%E8%83%BD%EF%BC%88AI%EF%BC%89%E3%81%AB%E3%82%84%E3%81%A3%E3%81%A6%E3%82%82%E3%82%89%E3%81%88%E3%81%B0%E3%81%84%E3%81%84\" >\u30de\u30af\u30ed\u8077\u4eba\u3092\u4eba\u5de5\u77e5\u80fd\uff08AI\uff09\u306b\u3084\u3063\u3066\u3082\u3089\u3048\u3070\u3044\u3044<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/happy-man.jp\/engineer\/?p=23082\/#%E6%96%B9%E5%90%91%E3%81%8D%E3%81%AE%E6%8A%98%E3%82%8C%E7%B7%9A%E3%82%B0%E3%83%A9%E3%83%95%EF%BC%88N%E5%80%A4%EF%BC%89%E3%81%AELISP%E3%82%92Gemini%EF%BC%88AI%EF%BC%89%E3%81%AB%E7%99%BA%E6%B3%A8\" >\u65b9\u5411\u304d\u306e\u6298\u308c\u7dda\u30b0\u30e9\u30d5\uff08N\u5024\uff09\u306eLISP\u3092Gemini\uff08AI\uff09\u306b\u767a\u6ce8<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/happy-man.jp\/engineer\/?p=23082\/#AutoCAD%E3%81%A7Gemini%E3%81%AB%E4%BD%9C%E3%82%89%E3%81%9B%E3%81%9FLISP%E3%82%92%E8%B5%B0%E3%82%89%E3%81%9B%E3%82%8B\" >AutoCAD\u3067Gemini\u306b\u4f5c\u3089\u305b\u305fLISP\u3092\u8d70\u3089\u305b\u308b<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E4%BB%8A%E6%9B%B4%E3%81%A0%E3%81%91%E3%81%A9\"><\/span>\u4eca\u66f4\u3060\u3051\u3069<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u79c1\u304c\u3053\u306e\u4ed5\u4e8b\u3092\u59cb\u3081\u306630\u5e74\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u5927\u304d\u304f\u4ed5\u4e8b\u306e\u3084\u308a\u65b9\u304c\u5909\u308f\u3063\u305f\u306e\u304c\u56f3\u9762\u306eCAD\u5316\u3067\u3057\u305f\u3002<br>\u592a\u7530\u30b8\u30aa\u30ea\u30b5\u30fc\u30c1\u3055\u3093\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3092\u898b\u3066\u3001\u3053\u308c\u304b\u3089\u306f\u56f3\u9762\u306fCAD\u3067\u63cf\u304f\u3093\u3060\u3088\u3063\u3066\u6d17\u8133\u3055\u308c\u3066\u3001\u96fb\u5b50\u7d0d\u54c1\u304c\u5f53\u305f\u308a\u524d\u306b\u306a\u308b5\u5e74\u304f\u3089\u3044\u524d\u304b\u3089CAD\u3067\u6210\u679c\u54c1\u4f5c\u3063\u3066\u307e\u3057\u305f\u3002<br>\u305d\u306e\u4e2d\u3067\u67f1\u72b6\u56f3\u306e\u30c7\u30fc\u30bf\u304c\u3067\u304d\u306a\u3044\u306a\u3089\u300cCAD\u4e0a\u3067\u66f8\u3051\u3070\u826f\u3044\u300d\u306a\u3093\u3066\u305d\u3093\u306a\u3053\u3068\u3092\u66f8\u3044\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u77ed\u518a\u72b6\u306e\u7c21\u6613\u67f1\u72b6\u56f3\u3082DXF\u306b\u3057\u3066\u304f\u308c\u308b\u30a2\u30d7\u30ea\u304c\u3042\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u305d\u308c\u306f\u3057\u3066\u3044\u307e\u305b\u3093\u3002<br><a href=\"https:\/\/ohta-geo.co.jp\/\">\u659c\u9762\u30fb\u5730\u76e4\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\uff1a\u6709\u9650\u4f1a\u793e\u592a\u7530\u30b8\u30aa\u30ea\u30b5\u30fc\u30c1 \u2013 \u659c\u9762\u30fb\u5730\u76e4\u306e\u30a8\u30f3\u30b8\u30cb\u30a2<\/a><br><a href=\"http:\/\/blog.livedoor.jp\/ohta_geo\/\">\u307c\u3061\u307c\u3061\u3068\uff12<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5e78\u3044\u306a\u3053\u3068\u306b\u5165\u793e3\u5e74\u76ee\u304f\u3089\u3044\u306b\u53d6\u308a\u7d44\u3081\u305f\u306e\u3067\u3001\u306a\u3093\u306e\u30b9\u30c8\u30ec\u30b9\u3082\u306a\u304f\uff12\u6b21\u5143\u306e\u65ad\u9762\u56f3\u306f\u63cf\u3051\u3066\u3044\u307e\u3059\u3002<br>\u3057\u304b\u3057\u3001\u79c1\u306b\u306f\u30de\u30af\u30ed\u3068\u304b\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u304b\u4f5c\u308b\u30bb\u30f3\u30b9\u304c\u306a\u3044\u306e\u3067\u3001\u30dc\u30fc\u30ea\u30f3\u30b0\u67f1\u72b6\u56f3\u4ee5\u5916\u306e\u3001\u30b5\u30a6\u30f3\u30c7\u30a3\u30f3\u30b0\u306e\u6df1\u5ea6-\u63db\u7b97N\u5024\u30b0\u30e9\u30d5\u306f\u3001\u67f1\u72b6\u56f3\u30a2\u30d7\u30ea\u306b\u30c0\u30df\u30fc\u30c7\u30fc\u30bf\u3092\u5165\u308c\u3066\u305d\u308c\u3092\u3001DXF\u306b\u3057\u3066\u4f7f\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u3001\u3042\u307e\u308a\u8ce2\u304f\u306a\u3044\u3084\u308a\u65b9\u309225\u5e74\u4ee5\u4e0a\u3084\u308a\u7d9a\u3051\u3066\u3044\u305f\u308f\u3051\u3067\u3059\u3002<br>\u305d\u306e\u4ed6\u3001\u6b8b\u5ff5\u306a\u3089\u304c25\u5e74\u4ee5\u4e0a\u3053\u306e\u30b9\u30bf\u30a4\u30eb\u304c\u7d9a\u3044\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E3%83%9E%E3%82%AF%E3%83%AD%E8%81%B7%E4%BA%BA%E3%82%92%E4%BA%BA%E5%B7%A5%E7%9F%A5%E8%83%BD%EF%BC%88AI%EF%BC%89%E3%81%AB%E3%82%84%E3%81%A3%E3%81%A6%E3%82%82%E3%82%89%E3%81%88%E3%81%B0%E3%81%84%E3%81%84\"><\/span>\u30de\u30af\u30ed\u8077\u4eba\u3092\u4eba\u5de5\u77e5\u80fd\uff08AI\uff09\u306b\u3084\u3063\u3066\u3082\u3089\u3048\u3070\u3044\u3044<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7d50\u5c40\u306e\u3068\u3053\u308d\u3001\u82e5\u3044\u9803\u304b\u3089\u4ed6\u4eba\u306b\u306f\u30d1\u30bd\u30b3\u30f3\u304c\u5f97\u610f\u3060\u3068\u601d\u308f\u308c\u3066\u3044\u307e\u3057\u305f\u3002<br>\u3057\u304b\u3057\u60c5\u5831\u30a4\u30f3\u30d5\u30e9\u306e\u5bfe\u5fdc\u529b\u3060\u3051\u304c\u9577\u3051\u3066\u3044\u305f\u3060\u3051\u3001\u305d\u308c\u3082\u6700\u8fd1\u3067\u306fWeb\u4f1a\u8b70\u3068\u304b\u305d\u306e\u8fba\u308a\u304b\u3089\u3082\u3046\u4ed8\u3044\u3066\u3044\u3051\u306a\u304f\u306a\u308a\u3064\u3064\u3042\u308a\u307e\u3059\u3002<br>\u6700\u8fd1\u3067\u306f\u4eba\u5de5\u77e5\u80fd\uff08AI\uff09\u306a\u3093\u304b\u304c\u51fa\u3066\u304d\u3066\u3001\u3042\u3089\u3042\u3089\u3069\u3046\u3057\u307e\u3057\u3087\u3046\uff1f\u72b6\u614b\u306b\u3042\u308a\u307e\u3059\u304c\u3001\u767a\u60f3\u306e\u8ee2\u63db\u3067\u300c\u79c1\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u7d44\u3081\u306a\u3044\u306e\u3060\u304b\u3089\u3001\u30de\u30af\u30ed\u8077\u4eba\u3092\u4eba\u5de5\u77e5\u80fd\uff08AI\uff09\u306b\u3084\u3089\u305b\u305f\u3089\u826f\u3044\u3093\u3058\u3083\u306a\u3044\uff1f\u300d\u3068\u8003\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br>\u307e\u3042\u6b32\u3057\u3044\u3082\u306e\u3092\u601d\u3044\u6d6e\u304b\u3076\u30bb\u30f3\u30b9\u304c\u306a\u3044\u306e\u3067\u3042\u307e\u308a\u9032\u884c\u3057\u3066\u304a\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%E6%96%B9%E5%90%91%E3%81%8D%E3%81%AE%E6%8A%98%E3%82%8C%E7%B7%9A%E3%82%B0%E3%83%A9%E3%83%95%EF%BC%88N%E5%80%A4%EF%BC%89%E3%81%AELISP%E3%82%92Gemini%EF%BC%88AI%EF%BC%89%E3%81%AB%E7%99%BA%E6%B3%A8\"><\/span>\u65b9\u5411\u304d\u306e\u6298\u308c\u7dda\u30b0\u30e9\u30d5\uff08N\u5024\uff09\u306eLISP\u3092Gemini\uff08AI\uff09\u306b\u767a\u6ce8<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b5\u30a6\u30f3\u30c7\u30a3\u30f3\u30b0\u7d50\u679c\u306e\u30b0\u30e9\u30d5\u3092\u65ad\u9762\u56f3\u306b\u5165\u308c\u308b\u5fc5\u8981\u304c\u3042\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u307e\u3067\u306e\u3084\u308a\u65b9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<br>Gemini\u3092\u9078\u629e\u3057\u305f\u306e\u306f\u6c17\u5206\u3067\u3059\u3002\u5225\u306bChatGPT\u3067\u3082\u554f\u984c\u7121\u304f\u4f5c\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u306a\u7c21\u5358\u306a\u3082\u306e\u3067\u3059\u3002<br>Gemini\u306b\u9069\u5f53\u306b\u30c1\u30e3\u30c3\u30c8\u3057\u306a\u304c\u3089\u767a\u6ce8\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>AUTOCAD\u3067\u6298\u308c\u7dda\u30b0\u30e9\u30d5\u3092\u66f8\u304d\u305f\u3044<\/li>\n\n\n\n<li>\u5ea7\u6a19\u6709\u308a\u3001LISP\u306b\u3057\u305f\u3044<\/li>\n\n\n\n<li>\u30d5\u30a1\u30a4\u30eb\u8aad\u307f\u8fbc\u307f\u578b\u306b\u3057\u305f\u3044<\/li>\n\n\n\n<li>\uff08\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\uff09\u5f15\u6570\u304c\u307e\u3061\u304c\u3063\u3066\u3044\u308b<\/li>\n\n\n\n<li>\uff08\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\uff09\u5f15\u6570\u306e\u30bf\u30a4\u30d7\u304c\u9593\u9055\u3063\u3066\u3044\u307e\u3059<\/li>\n\n\n\n<li>\uff08\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\uff09no function definition: VL-STRING-TOKENIZE<\/li>\n\n\n\n<li>\uff08\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\uff09\u30a8\u30e9\u30fc: \u5f15\u6570\u306e\u30bf\u30a4\u30d7\u304c\u9593\u9055\u3063\u3066\u3044\u307e\u3059: listp &#8220;<\/li>\n\n\n\n<li>Y\u8ef8\u3092\u53cd\u8ee2<\/li>\n\n\n\n<li>X\u8ef8\u309240\u500d\u306b\u30b9\u30b1\u30fc\u30eb\u3059\u308b<\/li>\n\n\n\n<li>\u30d7\u30ed\u30c3\u30c8\u70b9\u3092\u9593\u5f15\u304b\u306a\u3044\uff08\u3053\u3044\u3064\u306e\u5bfe\u5fdc\u306f\u5931\u6557\u3057\u3066\u308b\uff09<\/li>\n\n\n\n<li>\u30d7\u30ed\u30c3\u30c8\u70b9\u306b\u25cb\u3092\u5165\u308c\u308b\uff08\u30d7\u30ed\u30c3\u30c8\u70b9\u3092\u9593\u5f15\u304b\u306a\u304f\u306a\u3063\u305f\uff09<\/li>\n\n\n\n<li>X\u65b9\u5411\u306b0\u304b\u308950\u307e\u306710\u304a\u304d\u306b\u7e26\u8ef8\u3092Y\u306e\u6700\u5927\u5024\uff0b500\u307e\u3067\u4f5c\u6210<\/li>\n\n\n\n<li>\uff080,\uff10)\u70b9\u3068(50,Y\u306e\u6700\u5927\u5024\uff0b500\u307e\u3067\uff09\u70b9\u307e\u3067\u56db\u89d2\u3067\u56f2\u3080<\/li>\n\n\n\n<li>\u30d7\u30ed\u30c3\u30c8\u70b9\u306e\u25cb\u306e\u30b5\u30a4\u30ba\u309220\u306b\u3059\u308b<br>\u3053\u3093\u306a\u3084\u308a\u3068\u308a\u3092\u3057\u3066\u5410\u304d\u51fa\u3057\u305fAutoCAD\u306eLISP\u30b3\u30fc\u30c9\u304c\u3053\u3093\u306a\u98a8\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/li>\n<\/ul>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\n(defun c:GraphFromFile_GridFinal ( \/ filename file-handle line-data point-list final-point-list p-data x y circle-radius max-y-original grid-y-limit grid-x-values x-orig x-plotted)\n  (princ &quot;\\n--- \u5ea7\u6a19\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u6298\u308c\u7dda\u30b0\u30e9\u30d5\u3092\u4f5c\u6210 (\u6700\u7d42\u30b0\u30ea\u30c3\u30c9\u7248) ---&quot;)\n  \n  ;; --- \u8a2d\u5b9a ---\n  (setq circle-radius 20.0) ; \u2605\u2605\u2605 \u3053\u306e\u5024\u3092 20.0 \u306b\u5909\u66f4\u3057\u307e\u3057\u305f \u2605\u2605\u2605\n  ;; X\u8ef8\u306e\u30b0\u30ea\u30c3\u30c9\u9593\u9694 (\u5143\u306e\u30c7\u30fc\u30bf\u5024: 0, 10, 20, 30, 40, 50)\n  (setq grid-x-values &#39;(0 10 20 30 40 50)) \n  ;; -------------------\n  \n  ;; \u521d\u671f\u5316\n  (setq point-list &#39;())\n  (setq max-y-original -1e20) \n  \n  ;; 1. \u30d5\u30a1\u30a4\u30eb\u306e\u9078\u629e\u3068\u8aad\u307f\u8fbc\u307f (Y\u306e\u6700\u5927\u5024\u306e\u53d6\u5f97\u3092\u542b\u3080)\n  (setq filename (getfiled &quot;\u5ea7\u6a19\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e&quot; &quot;&quot; &quot;txt;csv&quot; 4))\n  \n  (if (not filename)\n    (progn (princ &quot;\\n\u30d5\u30a1\u30a4\u30eb\u9078\u629e\u304c\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u307e\u3057\u305f\u3002&quot;) (princ))\n    (progn\n      (setq file-handle (open filename &quot;r&quot;))\n      \n      (if (not file-handle)\n        (princ &quot;\\n\u30a8\u30e9\u30fc: \u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3051\u307e\u305b\u3093\u3067\u3057\u305f\u3002&quot;)\n        (progn\n          (while (setq line-data (read-line file-handle))\n            (setq line-data (vl-string-subst &quot; &quot; &quot;,&quot; line-data))\n            (setq line-data (strcat &quot;(&quot; (vl-string-trim &quot; &quot; line-data) &quot;)&quot;))\n            \n            (setq p-data (vl-catch-all-apply &#39;read (list line-data)))\n            \n            ;; \u8aad\u307f\u8fbc\u307f\u3068\u30c7\u30fc\u30bf\u30c1\u30a7\u30c3\u30af\n            (if (and (not (vl-catch-all-error-p p-data))\n                     (listp p-data)\n                     (= (length p-data) 2)\n                     (numberp (car p-data))\n                     (numberp (cadr p-data))\n                )\n              (progn\n                ;; \u6709\u52b9\u306a\u5ea7\u6a19\u3092\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0\n                (setq point-list (append point-list (list p-data)))\n                ;; Y\u306e\u6700\u5927\u5024\u3092\u66f4\u65b0\n                (if (&gt; (cadr p-data) max-y-original)\n                    (setq max-y-original (cadr p-data))\n                )\n              )\n            )\n          )\n          \n          (close file-handle)\n          \n          ;; 2. \u5ea7\u6a19\u306e\u5909\u63db\u51e6\u7406 (X\u8ef840\u500d\u30b9\u30b1\u30fc\u30eb\u3068Y\u8ef8\u53cd\u8ee2)\n          (if (&gt;= (length point-list) 2)\n            (progn\n              (setq final-point-list &#39;())\n              (foreach pt point-list\n                (setq x (car pt))\n                (setq y (cadr pt))\n                \n                ;; X\u5ea7\u6a19\u309240\u500d\u306b\u30b9\u30b1\u30fc\u30eb\n                (setq x (* x 40.0)) \n                \n                ;; Y\u5ea7\u6a19\u3092\u53cd\u8ee2\n                (setq y (* y -1.0)) \n                \n                ;; \u5909\u63db\u5f8c\u306e\u5ea7\u6a19\u30ea\u30b9\u30c8\u3092\u4f5c\u6210\n                (setq final-point-list (append final-point-list (list (list x y))))\n              )\n              \n              (princ (strcat &quot;\\n&quot; (itoa (length final-point-list)) &quot;\u70b9\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3057\u305f\u3002&quot;))\n              \n              ;; 3. \u30dd\u30ea\u30e9\u30a4\u30f3\u306e\u4f5c\u6210\n              (command &quot;_PLINE&quot;)\n              (foreach pt final-point-list (command pt))\n              (command &quot;&quot;)\n              \n              ;; 4. \u5404\u70b9\u306b\u5186\u3092\u4f5c\u6210\u3059\u308b\u51e6\u7406\n              (princ (strcat &quot;\\n\u5404\u70b9\u306b\u534a\u5f84 &quot; (rtos circle-radius 2 2) &quot; \u306e\u5186\u3092\u4f5c\u6210\u4e2d...&quot;))\n              (foreach center-point final-point-list\n                (command &quot;_CIRCLE&quot; center-point circle-radius)\n              )\n              \n              ;; 5. \u7e26\u30b0\u30ea\u30c3\u30c9\u7dda\u3092\u4f5c\u6210\u3059\u308b\u51e6\u7406\n              (if (\/= max-y-original -1e20) ; \u6709\u52b9\u306aY\u5ea7\u6a19\u304c\u898b\u3064\u304b\u3063\u305f\u304b\u78ba\u8a8d\n                (progn\n                  ;; Y\u8ef8\u306e\u7d42\u70b9: (MaxY + 500) -&gt; \u53cd\u8ee2\u5f8c\u306e\u30d7\u30ed\u30c3\u30c8\u5ea7\u6a19: -(MaxY + 500)\n                  (setq grid-y-limit (* (+ max-y-original 500.0) -1.0))\n                  \n                  (princ &quot;\\n\u7e26\u8ef8\u30b0\u30ea\u30c3\u30c9\u7dda\u3092\u4f5c\u6210\u4e2d...&quot;)\n                  (foreach x-orig grid-x-values\n                    ;; X\u5ea7\u6a19\u309240\u500d\u306b\u30b9\u30b1\u30fc\u30eb\n                    (setq x-plotted (* x-orig 40.0))\n                    \n                    (command &quot;_LINE&quot;)\n                    ;; \u59cb\u70b9: X\u8ef8\u4e0a (Y=0)\n                    (command (list x-plotted 0.0)) \n                    ;; \u7d42\u70b9: \u8a08\u7b97\u3057\u305f\u30b0\u30ea\u30c3\u30c9\u306e\u7d42\u7aef\n                    (command (list x-plotted grid-y-limit)) \n                    (command &quot;&quot;)\n                  )\n                  (princ &quot;\\n\u30b0\u30ea\u30c3\u30c9\u7dda\u306e\u4f5c\u6210\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002&quot;)\n                )\n                (princ &quot;\\n\u6ce8\u610f: \u6709\u52b9\u306aY\u5ea7\u6a19\u304c\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u305f\u3081\u3001\u30b0\u30ea\u30c3\u30c9\u7dda\u306f\u4f5c\u6210\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002&quot;)\n              )\n              \n              (princ &quot;\\n\u30b0\u30e9\u30d5\u4f5c\u6210\u51e6\u7406\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002&quot;)\n            )\n            (princ &quot;\\n\u30a8\u30e9\u30fc: \u30b0\u30e9\u30d5\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u6709\u52b9\u306a\u5ea7\u6a19\u70b9\u304c2\u70b9\u672a\u6e80\u3067\u3059\u3002&quot;)\n          )\n        )\n      )\n    )\n  )\n  (princ)\n)\n<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"AutoCAD%E3%81%A7Gemini%E3%81%AB%E4%BD%9C%E3%82%89%E3%81%9B%E3%81%9FLISP%E3%82%92%E8%B5%B0%E3%82%89%E3%81%9B%E3%82%8B\"><\/span>AutoCAD\u3067Gemini\u306b\u4f5c\u3089\u305b\u305fLISP\u3092\u8d70\u3089\u305b\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u305b\u3063\u304b\u304f\u4f5c\u3063\u305f\u306e\u3067\u3001\u8d70\u3089\u305b\u3066\u307f\u307e\u3059\u3002<br><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/happy-man.jp\/engineer\/wp-content\/uploads\/2025\/11\/SnapCrab_NoName_2025-11-12_13-12-23_No-00.png?w=1140&#038;ssl=1\" alt=\"SnapCrab_NoName_2025-11-12_13-12-23_No-00.png\"><br>\u3042\u3041\u3053\u3093\u306a\u3093\u3067\u3044\u3044\u3093\u3067\u3059\u3088\u3002\u65d7\u3082\u8ef8\u3082\u30b3\u30d4\u30da\u3067\u63cf\u3051\u307e\u3059\u306e\u3067\u3001\u4e00\u756a\u3081\u3093\u3069\u304f\u3055\u3044\u30b3\u30a2\u306e\u3068\u3053\u308d\u3092LISP\u5316\u3067\u304d\u3066\u3044\u307e\u3059\u3002<br>\u3053\u3093\u306a\u306b\u7c21\u5358\u306b\u3067\u304d\u308b\u306a\u3089\u3001\u4ed6\u306b\u3082\u4f55\u304b\u3067\u304d\u305d\u3046\u3067\u3059\u3002<br>\u300c\u4ffa\u500b\u4eba\u306e\u30de\u30af\u30ed\u3092\u4f5c\u3063\u3066\u6b8b\u696d\u4ee3\u3092\u7a3c\u3050\u30de\u30af\u30ed\u8077\u4eba\u300d\u3092\u64b2\u6ec5\u3057\u3066\u3084\u308d\u3046\u304b\u3068\u601d\u3063\u305f\u6b21\u7b2c\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u66f4\u3060\u3051\u3069 \u79c1\u304c\u3053\u306e\u4ed5\u4e8b\u3092\u59cb\u3081\u306630\u5e74\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u5927\u304d\u304f\u4ed5\u4e8b\u306e\u3084\u308a\u65b9\u304c\u5909\u308f\u3063\u305f\u306e\u304c\u56f3\u9762\u306eCAD\u5316\u3067\u3057\u305f\u3002\u592a\u7530\u30b8\u30aa\u30ea\u30b5\u30fc\u30c1\u3055\u3093\u306e\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3092\u898b\u3066\u3001\u3053\u308c\u304b\u3089\u306f\u56f3\u9762\u306fCAD\u3067\u63cf\u304f\u3093\u3060\u3088\u3063\u3066\u6d17\u8133\u3055\u308c\u3066\u3001\u96fb\u5b50\u7d0d\u54c1\u304c\u5f53\u305f\u308a\u524d\u306b\u306a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":23084,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"common","vkexunit_cta_each_option":"","_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"_lightning_design_setting":{"layout":"default"},"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[50,48,21],"tags":[],"class_list":["post-23082","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-gemini","category-21"],"nelio_content":{"autoShareEndMode":"never","automationSources":{"useCustomSentences":false,"customSentences":[]},"efiAlt":"","efiUrl":"","followers":[1],"highlights":[],"isAutoShareEnabled":true,"networkImageIds":[],"permalinkQueryArgs":[],"series":[],"suggestedReferences":[]},"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack-related-posts":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/happy-man.jp\/engineer\/wp-content\/uploads\/2025\/11\/SnapCrab_NoName_2025-11-12_13-12-23_No-00.png?fit=977%2C797&ssl=1","_links":{"self":[{"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/posts\/23082","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=23082"}],"version-history":[{"count":5,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/posts\/23082\/revisions"}],"predecessor-version":[{"id":23088,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/posts\/23082\/revisions\/23088"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=\/wp\/v2\/media\/23084"}],"wp:attachment":[{"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=23082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=23082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/happy-man.jp\/engineer\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=23082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}