DWG export hangs at the export method

DWG export hangs at the export method

Anonymous
Not applicable
668 Views
4 Replies
Message 1 of 5

DWG export hangs at the export method

Anonymous
Not applicable

Hi,

We have an addin that exports DWGs from files and for some reason the export method stops.

This is the method we use:
Document..::..Export Method (String, String, ICollection<(Of <(<'ElementId>)>)>, DWGExportOptions)

 

and this is a copy of the line where it stops (just to really indicate that its beyond my control, its a problem somewhere inside the API):

 

 _doc.Export(path, v.ViewName,viewToExport,options);

 

I can understand that we there could be something wrong with the code, but the addin is the most used at our company and there are people using it without problems, some experience problems sometimes and some never get it to work. The problem exist for both 2014 and 2015, we run the latest UR.

 

It allways works for me: but I've used the remote debugger to hook on to users to be able to find out where it actually stops.

So just to clarify: the exact same file with the exact same settings will freeze at the export method for a user and then work for me when I try 1 minute later (on the same machine, using remote desktop).

 

What ends up in the export folder is 3 .pat-files.


Any ideas? What could be the problem or suggestions on how to investigate further?

 

Thanks

 

/Erik

 

To Autodesk: I've filed a support request case for this so there is no need to escalate.

0 Likes
669 Views
4 Replies
Replies (4)
Message 2 of 5

Revitalizer
Advisor
Advisor

Dear Eric,

 

I faced the same problem some years ago.

 

Revit freezed when exporting DWGs, and it didn't matter if export was triggered by GUI or by API.

I learned that the issue appeared if there was a (bigger) DWG xref in the view that I wanted to export.

 

Once the DWG xref has been removed, DWG export functioned as expected.

 

 

Best regards,

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 3 of 5

Anonymous
Not applicable

Hi Revitalizer,

 

thank you for your reply.
In what way do you mean bigger? The actual area of the xref is bigger than the area of the view to be exported?
This happens in all projects. So Im guessing Im not understanding correctly.

 

I can give an update to where we are at the moment: we've managed to identify what sets it off and that is that the user has gone into the location settings in manage. Just by opening it (even though they press cancel) it will hang, but not for all users.

 

Has anyone come across this?
I can not yet confirm that this happens in the UI as well...

 

/Erik

0 Likes
Message 4 of 5

Revitalizer
Advisor
Advisor

Dear /Erik,

 

'bigger' means 'more complex'.

 

As I said, I faced this propblem some years ago.

It happened if I tried to export some Revit supermarket drawings which contained DWGs.

 

In this case, DWG xrefs were used to migrate drawings from AutoCAD to Revit.

After creating Revit Elements, underlying DWGs could be deleted.

 

Long story short:

Once DWGs had been removed, exporting views as DWGs functioned as expected.

 

This was not a solution but just a workaround for a problem that already exists, apparently.

 

Since you write that the problem ist user depending and does not happen in the GUI, we are talking about different issues.

As mentioned above, using GUI or API export didn't make a difference: both ways failed, in my case.

 

After all, it would be a good idea to send your files to Autodesk for deeper evaluation.

 

 

Best regards,

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes
Message 5 of 5

jeremytammik
Autodesk
Autodesk

Dear Erik,

 

Thank you for your query.

 

There is no need to submit an ADN case and a forum thread at the same time.

 

The forum thread will be automatically escalated if it remains unanswered, and you can also simply send us a mail with a link to point it out if it is urgent.

 

Did Revitalizer's suggestion help?

 

In any case, just as he suggests, you are welcome to provide a reproducible sample case that we can pass on to the development team for further analysis to ensure that this problem does not persist for eternity:

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

 

Thank you!

 

Oh dear, I just had another look at the forum case and see that it was automatically escalated, just as I said, because no answer was marked as a working solution within the time limit.

 

You therefore now have two ADN cases for this topic, the one you raised manually, 10563288 [Addin stops at Export of DWG], and the automatically escalated one 10572356 [DWG export hangs at the export method].

 

I will now close the one you created manually as a duplicate of the automatically escalated one.

 

Can you please submit the reproducible sample material either as attachments to this discussion forum thread or to the automatically escalated ADN case 10572356 [DWG export hangs at the export method]?

 

Thank you!

 

I hope this helps.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes