le help d 'autocad dit ca
The following example demonstrates how to change the first vertex of the Vertices collection. (command "._pline" "0,0" "3,3" "5,2" "") nil (setq e3 (entlast)) <Entity name: 10e2e4da0> (setpropertyvalue e3 "Vertices" 0 "EndWidth" 1.0) nil
donc j'ai ecrit ca :
(setq thelast1 (cdr (assoc -1 (entget (entlast))))) ;;; (setpropertyvalue thelast1 ;;; ;;; "AcDbDynBlockPropertyLARGEUR COTE" ;;; largeurprofil1 ;;; ) ;;; (setpropertyvalue thelast1 ;;; ;;; "AcDbDynBlockPropertyEPAISSEUR" ;;; epaisseurprofil1 ;;; ) ;;; (setpropertyvalue thelast1 ;;; ;;; "AcDbDynBlockPropertyHAUTEUR" ;;; hauteurprofil1 ;;; ) (setpropertyvalue thelast1 "AcDbDynBlockPropertyLARGEUR COTE" largeurprofil1 "AcDbDynBlockPropertyEPAISSEUR" epaisseurprofil1 "AcDbDynBlockPropertyHAUTEUR" hauteurprofil1)
les 3 premiers "setpropertyvalue" marchaient
pensant que ca allait plus vite j'ai testé :
(setpropertyvalue thelast1 "AcDbDynBlockPropertyLARGEUR COTE" largeurprofil1 "AcDbDynBlockPropertyEPAISSEUR" epaisseurprofil1 "AcDbDynBlockPropertyHAUTEUR" hauteurprofil1)
qui ne fonctionne pas
savez vous pourquoi ?
merci
Phil