Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set a new floortype from the API

3 REPLIES 3
Reply
Message 1 of 4
GeomGym
1449 Views, 3 Replies

Set a new floortype from the API

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.

3 REPLIES 3
Message 2 of 4
jeremytammik
in reply to: GeomGym

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

Message 3 of 4
jeremytammik
in reply to: GeomGym

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

Message 4 of 4
jeremytammik
in reply to: jeremytammik

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report