Set a new floortype from the API

GeomGym
Advocate
Advocate

Set a new floortype from the API

GeomGym
Advocate
Advocate

Can someone please confirm it's still only possible to duplicate existing floor types (walls and other system families) rather than set a new one?

Why is this limitation in place?  Not all of my users have a generic floor type included in their project template.

0 Likes
Reply
1,451 Views
3 Replies
Replies (3)

jeremytammik
Autodesk
Autodesk

Dear Jon,

 

I do not quite understand why you mention 'walls and other system families' whan talking about floor types.

 

Can you please explain exactly what you are trying to achieve, what the situation is now, as you see it, and what you would prefer it to be?

 

Best of all would be a reproducible case illustrating the issue, with the situation before and after the operation, possibly generated manually, and a sample add-in solution illustrating how far you can get and where it goes wrong:

 

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

 

Thank you!

 

Cheers,

 

Jeremy



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

0 Likes

jeremytammik
Autodesk
Autodesk

Dear Jon,

 

I asked the development team, and they suggest:

 

  • Duplicate() is an option if one exists.
  • CopyElements() from another document is an option if none exist in the target document.

 

I hope this helps.

 

Cheers,



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

0 Likes

jeremytammik
Autodesk
Autodesk

For the continuation of this, please refer to the thread

 

http://forums.autodesk.com/t5/revit-api/walltype-assigning-new-compoundstructure-vs-modify-existing/...

 

and the ADN cases 

 

  • 09702495 [Set a new floortype from the API]
  • 09977583 [WallType assigning new CompoundStructure vs modify existing]

 

and the development issue

 

  • REVIT-47356 [CreateSimpleCompoundStructure materials display wrong]

 

Cheers, 

 

Jeremy



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

0 Likes