IndependTag.Create API is too slow

IndependTag.Create API is too slow

Anonymous
Not applicable
985 Views
3 Replies
Message 1 of 4

IndependTag.Create API is too slow

Anonymous
Not applicable

I want to create tag by familySymbol.so i use IndependTag.Create()

But When I use this api,a tag take two seconds.

0 Likes
986 Views
3 Replies
Replies (3)
Message 2 of 4

jeremytammik
Autodesk
Autodesk

Does it work well for you manually in the end user interface?

 

The API should be comparable in speed.

 

Unless you are doing something strange with it yourself.

 



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

0 Likes
Message 3 of 4

Anonymous
Not applicable

I only use  “foreach” for indenpendTag.Create in  transaction.

after this foreach,I commit this transaction.

But when I excute indenpendTag.Create. this api  refreshed my revit ,but i am not commit this tran.

I use VS check my code spend time.vs tell me this api use my 2second.

 

PS: my tag use the familySymbol's parameter of this tag's referenced element.

and I dont do other things in this transaction

 

 

0 Likes
Message 4 of 4

jeremytammik
Autodesk
Autodesk

Please submit a minimal reproducible case for this and I can ask the development team to analyse it for you:

 

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

  



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

0 Likes