PDA

View Full Version : Remove suffix from a dimension


clrbedwards
2006-03-14, 03:27 PM
Could someone pleeeeeease tell my why this is not working.

; REMOVE SUFFIX
(defun c:rs ()
(command "-dov" "dimpost" "" "" PAUSE "")
(PRINC)
)

Any help would be greatly appreciated.

rajat_bapi_mallick
2006-03-14, 04:05 PM
You can use this:

(command "DIMOVERRIDE" "dimpost" "" "" PAUSE "")


Thanks

-Rajat

clrbedwards
2006-03-14, 04:14 PM
Thanks. That got me there. This actually changes the suffix to xx, but "" worked for what I needed. Now, since I am trying to learn this lisp stuff and not ask to have it done for me everytime, I have a question. Why did the dov work for me in a tool button macro, but not in a lisp? This is what held me up. I had tried the lisp just as you posted but with dov instead. I don't get it. dov is the shortcut to dimoveride, right?

rajat_bapi_mallick
2006-03-14, 04:38 PM
I dont know why its not working. but I always prefer to use original commands instead of "Alias".


Thanks

- Rajat

clrbedwards
2006-03-14, 05:26 PM
Leason learned.
Thanks again.