Floor analytical model modify, split curve

Floor analytical model modify, split curve

jaroslav.kopecky
Contributor Contributor
859 Views
9 Replies
Message 1 of 10

Floor analytical model modify, split curve

jaroslav.kopecky
Contributor
Contributor

Hello, I have a question.

I want to create floor and I want that floor finally have more than 4 analytical lines.

Even when I pass more lines (these curves makes simple rectangle) revit automatically modifies it to  just 4 curves.

 

While I'll use GUI I can achieve the desired state (see  picture)splitted line in floor modelsplitted line in floor model

There, one line is split, so I can attach two different types of support for that edge.

 

So what I can do in API to achieve the same?

I thought that if I will somehow modify analytical model I could achieve this.

But is seems that I cannot add curve into analytical model.

 

Have someone the solution for this?

Let me know, greetings,

Jaroslav.

 

0 Likes
860 Views
9 Replies
Replies (9)
Message 2 of 10

jeremytammik
Autodesk
Autodesk

Dear Jaroslav,

 

I am checking with the development team for you.

 

Maybe it would help if you could explain what you are trying to achieve, and what reason you have for this requirement.

 

Thank you!

 

Cheers,

 

Jeremy

 



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

0 Likes
Message 3 of 10

jeremytammik
Autodesk
Autodesk

The development team replied:

 

This is probably because the NewFloor routine uses "floor by face" instead of "floor by sketch". 

 

Cheers, 

 

Jeremy 

 



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

0 Likes
Message 4 of 10

jaroslav.kopecky
Contributor
Contributor

Hello Jeremy,

OK, I don't understand what should mean "it uses floor by face"..

I appreciate your willingness to answer, but that answer (that only says it is different in sketch mode vs via API) doesn't solve my problem.

(By the way that method Document.Create.NewFloor() accept just CurveArray)

 

I need to know if I can achieve the same with API and eventually how.

(And if there is not a strightforward way then if exists some workaround, e.g. if I can modify analytical model instance of elements)

(Or because I am interested in "Boundary conditions", if I could e.g. set two different types for just one analytical curve)

 

Greetings Jaroslav.

 

 

0 Likes
Message 5 of 10

jeremytammik
Autodesk
Autodesk

 

Dear Jaroslav,

 

Thank you for your update and clarification. I passed that on to the development team as well.

 

Greetings,

 

Jeremy

 



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

0 Likes
Message 6 of 10

jeremytammik
Autodesk
Autodesk

The development team replies further:

 

So the key difference is that the API doesn't create Floors in the same way as the Floor tool in the UI.  Instead, it's more like the Massing tools ("Mass Floors").  I suspect that for mass floors, it is not possible to have two collinear edges treated as separate entities.  This wish list item would help provide the required functionality for that:

 

https://forums.autodesk.com/t5/revit-ideas/api-access-to-edit-sketch-add-delete-modify-curves-of-exi...

 

What were the exact steps that you applied to succeed with what you need manually in the user interface?

 

Research them in detail, e.g., using RevitLookup.

 

Maybe you can reproduce the functionality programmatically as well:

 

https://thebuildingcoder.typepad.com/blog/2017/01/virtues-of-reproduction-research-mep-settings-onto...

 

Cheers,

 

Jeremy

 



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

0 Likes
Message 7 of 10

jeremytammik
Autodesk
Autodesk

The development team suspects that because the floor is created via sketch, editing the sketch to split lines works.  But the API cannot create a floor like this, nor edit it to split lines afterwards.

 



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

0 Likes
Message 8 of 10

jaroslav.kopecky
Contributor
Contributor

Hello Jeremy,

thanks for reply. I vote for API update too.

Greetings Jaroslav.

0 Likes
Message 9 of 10

jeremytammik
Autodesk
Autodesk

Have you submitted a wish list item for it in the Revit Idea Station? If not, please do so, or vote for an existing one, if found. Thank you!

 



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

0 Likes
Message 10 of 10

jaroslav.kopecky
Contributor
Contributor

Finally, I already voted for suggested one,

Thanks.

0 Likes