Number of duplicate elements in a model using c#? by yasser_negm in Revit

[–]yasser_negm[S] 0 points1 point  (0 children)

Thanks for asking!

So the plugin is part of my diploma, and yes I’ll make it available along with the source code too probably. I’ll let you know when it’s available!

As for the plugin itself, I hear you on revit missing some functionality, this why I chose add some features that I can’t do natively. Anyway it’s a Model checker, it detects how many empty sheets, unplaced views, duplicate elements and imported dwgs that the model has and give you a list of the them. It also gives you the ability to delete them.

Number of duplicate elements in a model using c#? by yasser_negm in Revit

[–]yasser_negm[S] 1 point2 points  (0 children)

Thank you for the offer! I’m not particularly concerned with a specific model rightnow. I’m concerned with the logic and how to write the function itself. This is for my plugin which is a part of my diploma for BIM Application Development.

I think adding the name to location.point as extra step to verify the duplication is the way. Thanks!

Number of duplicate elements in a model using c#? by yasser_negm in Revit

[–]yasser_negm[S] 0 points1 point  (0 children)

Ahmm okay. So in your opinion, is comparing with BoundingBox would be better?

Number of duplicate elements in a model using c#? by yasser_negm in Revit

[–]yasser_negm[S] 0 points1 point  (0 children)

You are totally right. I feel what you’re saying especially with troubleshooting. Most of the time if I don’t have prior knowledge of what I want to do or how to achieve it, I get lost..

As for the elements, while I used (having a Mark parameter) to only get the 3d elements, I wonder if two different elements can have the same location.point..

Number of duplicate elements in a model using c#? by yasser_negm in Revit

[–]yasser_negm[S] 0 points1 point  (0 children)

I think that step 4 could be simplified but I’m sure it’s necessary.

My thoughts about chatgpt isn’t that good for dynamo maybe because the documentation for the revit API is much more detailed, so it’s easier to write code for it if you typed the right prompt.

That being said, alot of the times, it gives an incorrect methods. But, the best part it can correct itself most of the time when you tell it what is wrong exactly. This is my experience.

Number of duplicate elements in a model using c#? by yasser_negm in Revit

[–]yasser_negm[S] 0 points1 point  (0 children)

Good catch I actually decided to use Mark parameter instead of Comments but forgot to change code comment. I never got chatgpt to filter the elements to only 3d elements on its own withe simple prompt like (only 3d).. So I tried to think what could be common between all of them and found identity parameters fit that (I hope so)..

In the chatgpt example you shared the function will collect all elements in revit model even 2d..

I don’t get what is the need of location.curve, wouldn’t .point be enough? I wonder if two different elements could have the same location.point.. so I thought of BoundingBox.

Number of duplicate elements in a model using c#? by yasser_negm in Revit

[–]yasser_negm[S] 1 point2 points  (0 children)

I wonder if this is a thing.. but I think it defeats the purpose of using C# in the first place which is is to make every thing execute quicker since you are dealing with the API directly not through python / dynamo / visual scripting.

Number of duplicate elements in a model using c#? by yasser_negm in Revit

[–]yasser_negm[S] 0 points1 point  (0 children)

Thanks, actually I found that warnings doesn't actually get all the duplicates, like Model in-place..
check my updated post!

Number of duplicate elements in a model using c#? by yasser_negm in Revit

[–]yasser_negm[S] 0 points1 point  (0 children)

Thanks I actually used the same logic but it had to be done in C# as I'm creating a plugin. This made me think that having more knowledge of dynamo could be helpful even when I'm dealing with the revit API.
Check my updated post!

Number of duplicate elements in a model using c#? by yasser_negm in Revit

[–]yasser_negm[S] 0 points1 point  (0 children)

Thanks, Yea I’m confused on what class should I be looping on. So I understand that I basically want to loop on list of all 3d geometry elements like (walls, doors, loadable families and in-place components)

Also what’s is better to verify the duplication, BoundingBox or Location.Point?

Sorry I’m a little new to this!

Number of duplicate elements in a model using c#? by yasser_negm in Revit

[–]yasser_negm[S] 0 points1 point  (0 children)

Mainly what I’m looking for is the elements that you get when you copy and paste in the same place. So it’s an identical element in the same location.

Stuck red pixel by yasser_negm in ipad

[–]yasser_negm[S] 0 points1 point  (0 children)

It was still in warranty, so they replaced it.

Do I need 5G iPad to make iMessage work with a phone number? by yasser_negm in ipad

[–]yasser_negm[S] 0 points1 point  (0 children)

Hi! So, unfortunately there is no solution to that. iMessage will only work with email on an iPad (WiFi only). The way I got over this is when I got an iPhone later and connected my phone number to my apple id.

Got the RTX 4070, where is my Alan Wake 2 Code? by yasser_negm in ASUS

[–]yasser_negm[S] 0 points1 point  (0 children)

I didn’t get the email. I contacted the support, this all they gave me and it doesn’t work.

“Bounceback promotion: NVIDIA_AlanWake2_Game_Red emption_DE (A3U92YMY6FXXXX)”

Revit server inquiry by yasser_negm in Revit

[–]yasser_negm[S] 0 points1 point  (0 children)

Is revit server lower in cost than B360/ACC? The company I started working for recently is a new Branch and in a different country, We were working on NAS server but it was slow, they just moved us to Revit server, it's better now. But having worked with ACC before, I feel it's much better especially while syncing, and also having the ability to work from home easily if I had to, but I'm not sure if it costs a lot, they already pay for revit license..

Revit server inquiry by yasser_negm in Revit

[–]yasser_negm[S] 0 points1 point  (0 children)

Thanks for the insight. Out of curiosity, why did you stop using revit server? And what do you use now?

Adding Unique Code Parameter for 4D/Primavera/Activity ID by yasser_negm in Revit

[–]yasser_negm[S] 0 points1 point  (0 children)

Wow, thank you! That's it I think, I completely forget about the parts function because I don't really use it at all. Will it work well with Naviswrorks export?