Community
Vault Forum
Welcome to Autodesk’s Vault Forums. Share your knowledge, ask questions, and explore popular Vault topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

C# - Macro when the drawing is open

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
217 Views, 3 Replies

C# - Macro when the drawing is open

Good Afterno!

Well, When open the draw with a program developed for me , before opening the drawing the prompt it waits for the writing of someone MAcro, but the same drawing, opened for Vault File don't have this problem.

I follow the Vault API:


docSvc.CheckoutFile(folder_id, arquivo.MasterId, machineName, workingFolder, "Checkout", true, false, out bytes);

System.IO.File.WriteAllBytes(workingFolder +"\\" + arquivo.Name, bytes);

MessageBox.Show("CheckOut Ok, agora iremos carregar o desenho.", "Desenho", MessageBoxButtons.OK, MessageBoxIcon.Information);

// |THIS LINE HAS THE MACRO PROBLEM|
Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.Open(workingFolder + "\\" + arquivo.Name, false);

Close();

Help me please;

Darcy Buss Neto
Programmer Edited by: trafo2009 on Mar 4, 2009 2:40 PM
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

Let me re-state your problem so that I'm sure I understand:
You are trying to checkout and download an AutoCAD file from Vault. Next
you want to open the file, but the open command fails.

Unfortunately my expertise is limited to the Vault API. I don't know much
about the AutoCAD API.
Here are my suggestions:
- Check to make sure the CheckoutFile command checked out the correct file.
- Check that the file was downloaded correctly.
- Open the file up through the CAD program to make sure it looks right.
- Post this issue to the appropriate AutoCAD customization group.


Doug Redmond
Software Engineer, Autodesk Inc.
Message 3 of 4
Anonymous
in reply to: Anonymous

ok. thanks

Darcy Buss Neto
Message 4 of 4
Anonymous
in reply to: Anonymous

ok. thanks

Darcy Buss Neto

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report