Fail to open DXF/DWG in .NET control application

By Xiaodong Liang

Issue
I have an application of .NET control which tries to open DXF/DWG, but it failed. Is there any known issue?

Solution
ApplicationControl has a ApplicationType property that allows developers to specify how many DocumentControls will be used in a given application. If this property is set to ApplicationType.SingleDocument, non-native file loaders and the Presenter materials will also be available. However using  MultipleDocument, the relevant loaders are not available. So you will receive the error ‘No plugin exists that will open test.dwg’. This is the current design.


Comments

2 responses to “Fail to open DXF/DWG in .NET control application”

  1. Mallikarjuna Avatar
    Mallikarjuna

    Dear Xiaodong Liang,
    I want to add image or icon in Revit 3D view through programmatically in C#.net
    Please help me.
    Thankyou,
    Mallikarjuna

  2. Dear Mallikarjuna,
    I see that you asked the same question in five different places, to me, Saikat, Mikako, and Xiaodong.
    That is a bit much, really. Please avoid that in the future.
    Anyway, as Saikat said:
    It does not seem possible to add an image in a 3D view in Revit using the Revit User Interface itself. The image button appears disabled when the active view is a 3D view. Therefore, it is probably not possible to insert an image in a 3D view using the API either. If the UI does not support it, in most cases, the API does not either.
    Cheers, Jeremy.

Leave a Reply to Jeremy TammikCancel reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading