Automate the save as proccess

Automate the save as proccess

Anonymous
Not applicable
470 Views
2 Replies
Message 1 of 3

Automate the save as proccess

Anonymous
Not applicable

Hi all

 

I am doing my first AutoCad project and have a couple of questions.

 

First a discription of what I am trying to acomplish...

 

I am extracting data from a drawing file, to do this I am converting the drawing to xml and then have a xml reader that extracts the data.

I am at the point where I run netload and extractall this then creates the xml but pops up a "Save as dialog/file browser" where I then have the option to give the xml file a name and to choose the directory.

 

I want to find a way to hard code the directory where the file saves and also give it a name, so no user input. It takes the name of the drawing file and name the xml the same (except of course for the file extention) then save it to a default directory.

Is there a way to access the API and accomplish this?

 

Also is there a way to close autocad automaticallly after the XML has been created?

 

I am very new to this so go easy on me please

 

Thanks in advance

Johan

 

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

michael_robertson
Collaborator
Collaborator

Can you show the code for how you are trying to save the xml file?

Mike Robertson
FL. Dept. of Transportation
CADD Applications Developer
0 Likes
Message 3 of 3

Anonymous
Not applicable

I made a huge mistake in my code and now solved this problem thank you very much though

0 Likes