Get First Path Support

Get First Path Support

gustavobernardi
Advocate Advocate
748 Views
2 Replies
Message 1 of 3

Get First Path Support

gustavobernardi
Advocate
Advocate

How do I get the first path support via lisp? I want to get it in a String...

 

support.jpg

 

TIA

0 Likes
Accepted solutions (2)
749 Views
2 Replies
Replies (2)
Message 2 of 3

Ranjit_Singh
Advisor
Advisor
Accepted solution

I am sure there is more than one way to do that

(substr (getenv "ACAD") 1 (vl-string-search ";" (getenv "ACAD")))
Message 3 of 3

SeeMSixty7
Advisor
Advisor
Accepted solution

 

Good Luck

 

(setq AcadPath (vla-get-SupportPath (vla-get-files (vla-get-preferences (vlax-get-acad-object))))
      FirstAcadPath (substr AcadPath 1 (vl-string-position 59 acadpath))
)

Doh! Or just use @Ranjit_Singh's suggestion.