View Full Version : open certain drawing with tool
Peter Sedlacek
2008-04-10, 01:21 PM
Hi, i would like to open certain drawing stored on my disc with tool on tool palette. is it possible to use command tool with macro? haw to write this macro, if path is for example L:\Styles\drawing.dwg ? thanks
rkmcswain
2009-06-23, 01:20 PM
Yes, you can do thism using a bit of lisp code like this.
(vl-load-com)(vlax-invoke-method(vla-get-Documents(vlax-get-acad-object))"Open""C:/path/mydrawing.dwg")
Peter Sedlacek
2009-06-23, 01:29 PM
Yes, you can do thism using a bit of lisp code like this.
(vl-load-com)(vlax-invoke-method(vla-get-Documents(vlax-get-acad-object))"Open""C:/path/mydrawing.dwg")
it works. thanks a lot.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.