Open dwg file from lisp script on mac

Open dwg file from lisp script on mac

Anonymous
Not applicable
843 Views
2 Replies
Message 1 of 3

Open dwg file from lisp script on mac

Anonymous
Not applicable

I have tried (vla-open (vla-get-documents (vlax-get-acad-object)) "filename") as many suggested but it does not work on my computer (mac with HighSierra). ERROR: no function definition: VLAX-GET-ACAD-OBJECT

 

Any ideas how i can get this done?

0 Likes
844 Views
2 Replies
Replies (2)
Message 2 of 3

Satish_Rajdev
Advocate
Advocate

You are getting this error because MAC doesn't support any VL functions. 

 

Alternate option

(command "fileopen" opennewpathfile)

Best Regards,
Satish Rajdev


REY Technologies | Linked IN | YouTube Channel


 

Message 3 of 3

Anonymous
Not applicable

Thank you for your answer but it is not wroking. This way i am getting the error:

 

"Cannot run FILEOPEN if SDI mode cannot be established."

0 Likes