Actually, this is better - lets you pick one or a bunch:
(setq DIMSS (SSGET '((0 . "DIMENSION"))))
(setq c -1)
(repeat (sslength DIMSS)
(setq DTX (ENTGET (SSNAME DIMSS (setq c (1+ c)))))
(setq DTX (SUBST (CONS 1 "<> TYP") (ASSOC 1 DTX) DTX)
)
(ENTMOD DTX)
)
(PRINC)
"pkirill"
wrote in message
news:6810D81702B06C51E66CA8DF79A25293@in.WebX.maYIadrTaRb...
> So how'd I do?
>
> (setq DIM1 (SSGET '((0 . "DIMENSION"))) ;promts user to pick dim
> DIM1 (ENTGET (SSNAME DIM1 0));gets the entity name from selection
set
> DIM1(SUBST (CONS 1 "<>\\PVIF") (ASSOC 1 DIM1) DIM1) ;substitutes the
> dim value
> )
> (ENTMOD DIM1);makes the change
> (PRINC); exits quietly
>
> "johnal" wrote in message
> news:517C5EA48B264DACA128DF1577015CB2@in.WebX.maYIadrTaRb...
> > Hi All,
> >
> > In R14 I had tool buttons and lisp routines to change a dimension.
> > Example routine: ^C^CDIM;N;%%P;<>;VIF;
> >
> > When I use the same routine in R2000 I get a dialog box.
> > How would I write the routines to avoid the dialog box?
> >
> > Thank you in advance,
> > Al
> >
> >
> >
>
>