Call IExternalCommand from dll in project code

Call IExternalCommand from dll in project code

vankhoi9966
Contributor Contributor
820 Views
4 Replies
Message 1 of 5

Call IExternalCommand from dll in project code

vankhoi9966
Contributor
Contributor

In my dll file is Namespace.class1
How can I execute Namespace.class1 into my new code project?

sorry, I'm from VietNam.....I have to use google translate

thanks all

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

jeremytammik
Autodesk
Autodesk

If your intention is to execute an external command, and you are searching for the full class name, I suggest you follow the 'Hello World' samples provided by the Revit API developer guide:

 

http://help.autodesk.com/view/RVT/2018/ENU/?guid=GUID-93BC4416-FA94-44B3-AA66-931839DA44B4

 

I hope this helps.

 

Best regards,

 

jeremy



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

Message 3 of 5

vankhoi9966
Contributor
Contributor

Dear jeremy...

 

thanks for the reply .... but that's not what i need ...

 

I need a function that can replace the click on the button ....

 

I heard using reflection in C # but I do not know how to do it ...

 

Again thank you ...

0 Likes
Message 4 of 5

jeremytammik
Autodesk
Autodesk

You can use the Automation AP|I to simulate a click:

 

http://thebuildingcoder.typepad.com/blog/2017/12/magic-number-magic-automation-and-magic-season.html...

 

Cheers,

 

Jeremy



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

Message 5 of 5

vankhoi9966
Contributor
Contributor

Thanks Jeremy.... (y)

0 Likes