Message 1 of 5
Setq path Xref
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a lsp code that is show below. Can it be modified that the path is set into an variable?
What I want to achieve is that the path of the existing Xrefs in the drawing wil be changed (there must be an extra folder in the adress eg "..\folder1" must be "..\folder1\folder2").
(defun c:xrefpath nil
(vl-load-com)
(vlax-for layout (vla-get-layouts
(vla-get-activedocument (vlax-get-acad-object))
)
(vlax-for i (vla-get-block layout)
(if (and
(eq (vla-get-ObjectName i) "AcDbBlockReference")
(vlax-property-available-p i 'Path)
)
(princ (vla-get-Path i)
)
)
)
)
(princ)
)