2017-03-23 15:29 UTC
Bonjour
Je suis français au mauvais anglais.
J'ai un problème de runtime avec opendcl et autocad 2017.
Voici mon code :
(defun charge_opendcl (/ nomodcl)
;; modification 2010 pour choix arx 32 ou 64 bit
(if (wcmatch (getvar "PLATFORM") "*64*")
(progn ;; le cas 64 bit
(setq nomodcl
(strcat "Opendcl.x64." (substr (getvar "ACADVER") 1 2))
)
(if (not (member nomodcl (arx)))
(arxload (findfile (strcat nomodcl ".arx"))
"OpenDCL Introuvable"
)
)
)
(progn ;; le cas 32 bit
(setq nomodcl (strcat "Opendcl." (substr (getvar "ACADVER") 1 2)))
(if (not (member nomodcl (arx)))
(arxload (findfile (strcat nomodcl ".arx"))
"OpenDCL Introuvable"
)
)
)
)
)
;;lance la boite de dialogue
(defun c:aep (/)
(charge_opendcl)
(dcl-loadproject (findfile "choix_res_aep.odcl"))
(dcl-form-show choix_res_aep/traceaep)
)
(defun c:choix_res_aep/traceaep#OnInitialize (/)
(princ)
)
(defun c:choix_res_aep/traceaep/aepf60#OnClicked (/)
(aep_fonte60)
(dcl-form-close choix_res_aep/traceaep)
)
(defun aep_fonte60 (/)
(command "-calque" "e" "AE_1_AEP_FONTE" "co" "bleu" "" "")
(command "polylign")
)
Mon problème : je n'arrive pas à fermer la fenêtre, voici le message d'erreur que j'obtiens :
https://www.dropbox.com/s/muun7tmppfbvluy/2017-03-23%2016_19_26-Autodesk%20AutoCAD%20Map%203D%202017%20-%20%5BDessin1.dwg%5D.png?dl=0
Pouvez vous m'aider ?
En pièce jointe le fichier odcl
Je suis français au mauvais anglais.
J'ai un problème de runtime avec opendcl et autocad 2017.
Voici mon code :
(defun charge_opendcl (/ nomodcl)
;; modification 2010 pour choix arx 32 ou 64 bit
(if (wcmatch (getvar "PLATFORM") "*64*")
(progn ;; le cas 64 bit
(setq nomodcl
(strcat "Opendcl.x64." (substr (getvar "ACADVER") 1 2))
)
(if (not (member nomodcl (arx)))
(arxload (findfile (strcat nomodcl ".arx"))
"OpenDCL Introuvable"
)
)
)
(progn ;; le cas 32 bit
(setq nomodcl (strcat "Opendcl." (substr (getvar "ACADVER") 1 2)))
(if (not (member nomodcl (arx)))
(arxload (findfile (strcat nomodcl ".arx"))
"OpenDCL Introuvable"
)
)
)
)
)
;;lance la boite de dialogue
(defun c:aep (/)
(charge_opendcl)
(dcl-loadproject (findfile "choix_res_aep.odcl"))
(dcl-form-show choix_res_aep/traceaep)
)
(defun c:choix_res_aep/traceaep#OnInitialize (/)
(princ)
)
(defun c:choix_res_aep/traceaep/aepf60#OnClicked (/)
(aep_fonte60)
(dcl-form-close choix_res_aep/traceaep)
)
(defun aep_fonte60 (/)
(command "-calque" "e" "AE_1_AEP_FONTE" "co" "bleu" "" "")
(command "polylign")
)
Mon problème : je n'arrive pas à fermer la fenêtre, voici le message d'erreur que j'obtiens :
https://www.dropbox.com/s/muun7tmppfbvluy/2017-03-23%2016_19_26-Autodesk%20AutoCAD%20Map%203D%202017%20-%20%5BDessin1.dwg%5D.png?dl=0
Pouvez vous m'aider ?
En pièce jointe le fichier odcl
![2017-03-23 16_19_26-Autodesk AutoCAD Map 3D 2017 - [Dessin1.dwg].png](../attachments/2323/2017-03-23 16_19_26-Autodesk AutoCAD Map 3D 2017 - _Dessin1.dwg_.png)