Joao Matias
Joao Matias
CC#
Created by Joao Matias on 6/3/2023 in #help
❔ ObservableCollection
17 replies
CC#
Created by Joao Matias on 6/3/2023 in #help
❔ ObservableCollection
I'm doing that, trying WPF + MVVM architecthure to develop some plugi
17 replies
CC#
Created by Joao Matias on 6/3/2023 in #help
❔ ObservableCollection
And yeah, mos of it are WinForms, and they even never show how to use things like EventHandlers to do modal forms
17 replies
CC#
Created by Joao Matias on 6/3/2023 in #help
❔ ObservableCollection
Understand... need to learn how to do that, new on WPF and MVVM things...
17 replies
CC#
Created by Joao Matias on 6/3/2023 in #help
❔ ObservableCollection
Ok, but my binding is point to WallEntries that is a public ObservableCollection
17 replies
CC#
Created by Joao Matias on 6/3/2023 in #help
❔ ObservableCollection
Do you program in Revit API ?
17 replies
CC#
Created by Joao Matias on 6/3/2023 in #help
❔ ObservableCollection
Yeah!!
17 replies
CC#
Created by Joao Matias on 8/27/2022 in #help
Equal values but if return false [Answered]
Thanks guys, i didn't know about that difference. I'll study about It.
25 replies
CC#
Created by Joao Matias on 8/27/2022 in #help
Equal values but if return false [Answered]
public static List<ElementId> checkPositionElements(Pipe p, List<Pipe> pipes) { LocationCurve pLocation = p.Location as LocationCurve; XYZ p1_Start = pLocation.Curve.Evaluate(0, true); XYZ p1_End = pLocation.Curve.Evaluate(1, true); List<ElementId> returnList = new List<ElementId>(); foreach (Pipe pipe in pipes) { if (pipe == null) continue; if (pipe.Id == p.Id) continue; LocationCurve p2_Location = pipe.Location as LocationCurve; XYZ p2_Start = p2_Location.Curve.Evaluate(0, true); XYZ p2_End = p2_Location.Curve.Evaluate(1, true); if (Equals(p1_Start.X,p2_Start) || Equals(p1_Start, p2_End)) { if (Equals(p1_End, p2_Start) || Equals(p1_End,p2_End)) { returnList.Add(pipe.Id); } } } return returnList; }
25 replies
CC#
Created by Joao Matias on 8/27/2022 in #help
Equal values but if return false [Answered]
Used if(Equals(p1_Start,p2_Start) || Equals(p1_Start,p2_End))
25 replies
CC#
Created by Joao Matias on 8/27/2022 in #help
Equal values but if return false [Answered]
Thanks guys
25 replies
CC#
Created by Joao Matias on 8/27/2022 in #help
Equal values but if return false [Answered]
Use that but didn't works, probably I use wrong. But check if any point is equal getting properties and it works!
25 replies
CC#
Created by Joao Matias on 8/27/2022 in #help
Equal values but if return false [Answered]
how to do that ?
25 replies
CC#
Created by Joao Matias on 8/27/2022 in #help
Equal values but if return false [Answered]
Or it will return false ? 🤨
25 replies
CC#
Created by Joao Matias on 8/27/2022 in #help
Equal values but if return false [Answered]
Sure, so the way that we can compare if it's true is getting X,Y and Z of each element and compare it ?
25 replies
CC#
Created by Joao Matias on 8/26/2022 in #help
Save values from dict [Answered]
Thanks guys
8 replies
CC#
Created by Joao Matias on 8/26/2022 in #help
Save values from dict [Answered]
Watching it exactly now, probably it will be the solution!
8 replies
CC#
Created by Joao Matias on 8/26/2022 in #help
Save values from dict [Answered]
Ok, thanks for information. I'll see about that
8 replies
CC#
Created by Joao Matias on 8/26/2022 in #help
Save values from dict [Answered]
Its possible, or something like .txt, .xlsx. I don't have any knowledge about JSON, so is it the best option ?
8 replies