本帖最后由 llsheng_73 于 2024-1-4 19:33 编辑
没查到怎么修改当前坐标系,调用UCS命令来收拾吧
- (defun deleteucsname(uscname)
- (command"ucs""W")
- (while(=(getvar'cmdactive)1)(command))
- (or(VL-CATCH-ALL-ERROR-P(setq ucsob(VL-CATCH-ALL-APPLY'vlax-invoke-method(list(vlax-get-property(vlax-get-property(vlax-get-acad-object)'activedocument)'UserCoordinateSystems)'item uscname))))
- (vlax-invoke-method ucsob(function delete)))
- )
|