Error loading a plugin

Error loading a plugin

Anonymous
Not applicable
1,784 Views
2 Replies
Message 1 of 3

Error loading a plugin

Anonymous
Not applicable

Hai,

 

we are using revit 2016 trail version and we try to create a external tool to create a line when we click the plugin. find the c#.Net code attached. we are getting the error "Revit could not complete the external command" please help us.

 

 

 

regards

suresh p

 
 
 
 
0 Likes
1,785 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Yo need to create and start a database transaction before you attempt to modify the model in any way.
0 Likes
Message 3 of 3

Revitalizer
Advisor
Advisor

Hi,

 

same reason as here:

http://forums.autodesk.com/t5/revit-api/how-to-paint-a-wall/td-p/5927663

 

"Do you use a Transaction ?

[...] as far as I can see, changes to the Revit DB must be encapsulated in a Transaction, excepting when using the TransactionMode.Automatic attribute for an ExternalCommand."

 

In your small example, just change the TransactionMode flag to Automatic.

 

 

Revitalizer




Rudolf Honke
Software Developer
Mensch und Maschine





0 Likes