你说的访问路径是不是搜索路径- ;;____________________________________________________________________________________________________
- ;; ▓ (lt:acad-SupportPath-add path position)
- ;; [功能] 在支持路径的指定位置添加新路径
- ;; [参数] path-------新增路径
- ;; position---插入位置序号(大于等于 0 的整形数、T 或 nil)
- ;; [返回] 成功--->添加后的支持路径,反之--->nil
- (defun lt:acad-SupportPath-add (path pos / paths p)
- (setq paths (getenv "ACAD"))
- (cond ((or (= pos T) (= pos 0)) (setq paths (strcat path ";" paths)))
- (T (if pos
- (progn
- (setq p 0)
- (repeat pos (setq p (vl-string-search ";" paths (1+ p))))
- )
- )
- (if p
- (setq paths (strcat (substr paths 1 p) ";" path ";" (substr paths (+ p 2))))
- (setq paths (strcat paths ";" path ";"))
- )
- )
- )
- (setenv "ACAD" paths)
- )
|