Trying to start a new drawing from a template using tool palette. The code below works beautifully but, the new file is not the active document. Please help me add the code that will set the newly created file to the active document. Thanks!
GOT IT!! Here is the simple addition: vla-activateCode:(vl-load-com);(setq x "X:/Imperial.dwt");(vla-Add (vla-get-Documents (vlax-get-acad-object)) x);(princ)
Code:^C^C(vl-load-com);(setq x "X:/CAD Library/01-GP Content/GP-Imperial.dwt");(vla-activate (vla-Add (vla-get-Documents (vlax-get-acad-object)) x));(princ)


Reply With Quote