vla-SaveAs with dialog box prompt

vla-SaveAs with dialog box prompt

msarqui
Collaborator Collaborator
794 Views
2 Replies
Message 1 of 3

vla-SaveAs with dialog box prompt

msarqui
Collaborator
Collaborator

Hi guys,

 

I am wondering if would be possible to use (vla-SaveAs object FileName FileType) to save a file, but without the FileName FileType part. I mean, I would like to have the dialog box that prompt for a name and a location.

I am asking for vla-SaveAs because this will be inside a reactor and I think I can't use command.

Or maybe another approach?

 

Thanks,

Marcelo

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

dbroad
Mentor
Mentor

Dialogs are only good for interactive operations.  Interactive operations are not possible in a reactor.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 3 of 3

msarqui
Collaborator
Collaborator

I think I found a solution, if someone is looking at the same subject.
I did a search here and there and I put the pieces together:

 

(setq doc (vla-get-ActiveDocument (vlax-get-acad-object)))
(setq path (getfiled "Save as" "" "dwg" 1)) (vla-SaveAs doc path)

And it is working for me.

Marcelo

0 Likes