Dear colleagues!
I have a following challenge:
I have six points (ap7,ap8,ap9,ap10,ap11,ap12). In my subassembly these six points can have different locations with anyone of them becoming the lowest. Using math.min formula I successfully find the lowest of them in my P25 point.
Now, the question is, how can I find the X of this lowest point? I want my P25 to be in X and Y coordinates of the lowest point.
I'm pretty sure I could use Decision with multipple checks using OR, but that would cause me to make 6 decisions with 5 OR condition checks, which makes me sad 😞
I was wandering if there is some magic formula something like "find the X of the lowest point in list".
Will appreciate and advice.
With kind regards,
Oleg
Solved! Go to Solution.
Dear colleagues!
I have a following challenge:
I have six points (ap7,ap8,ap9,ap10,ap11,ap12). In my subassembly these six points can have different locations with anyone of them becoming the lowest. Using math.min formula I successfully find the lowest of them in my P25 point.
Now, the question is, how can I find the X of this lowest point? I want my P25 to be in X and Y coordinates of the lowest point.
I'm pretty sure I could use Decision with multipple checks using OR, but that would cause me to make 6 decisions with 5 OR condition checks, which makes me sad 😞
I was wandering if there is some magic formula something like "find the X of the lowest point in list".
Will appreciate and advice.
With kind regards,
Oleg
Solved! Go to Solution.
Solved by ecfernandez. Go to Solution.
Solved by KMercier_C3D. Go to Solution.
There may be a different way to do it but I was able to get it to work by using two Auxiliary Points.
My first auxiliary point used your math.min formula to find the y coordinate.
Then my second auxiliary point referenced the first auxiliary point and compared each of the points y values to the test auxiliary point to find the correct x value.
Kati Mercier, P.E. | LinkedIn | AutoCAD Civil 3D Certified Professional
Pronouns: She/Her
Co-author of "Mastering AutoCAD Civil 3D 2013"
AU2019 Speaker::: CES321590: Analyze and Revise Existing Subassembly Composer PKT Files for AutoCAD Civil 3D
AU2017 Speaker::: CI125544: Analyze and Devise in Subassembly Composer
AU2012 Speaker::: CI3001: Reverse Engineering with Subassembly Composer for AutoCAD Civil 3D
AU2011 Speaker::: CI4252: Create Subassemblies That Think Outside the Box With Subassembly Composer for AutoCAD® Civil 3D®
There may be a different way to do it but I was able to get it to work by using two Auxiliary Points.
My first auxiliary point used your math.min formula to find the y coordinate.
Then my second auxiliary point referenced the first auxiliary point and compared each of the points y values to the test auxiliary point to find the correct x value.
Kati Mercier, P.E. | LinkedIn | AutoCAD Civil 3D Certified Professional
Pronouns: She/Her
Co-author of "Mastering AutoCAD Civil 3D 2013"
AU2019 Speaker::: CES321590: Analyze and Revise Existing Subassembly Composer PKT Files for AutoCAD Civil 3D
AU2017 Speaker::: CI125544: Analyze and Devise in Subassembly Composer
AU2012 Speaker::: CI3001: Reverse Engineering with Subassembly Composer for AutoCAD Civil 3D
AU2011 Speaker::: CI4252: Create Subassemblies That Think Outside the Box With Subassembly Composer for AutoCAD® Civil 3D®
Hi @Oleg.Konovalov.SIT, I hope you're doing fine. The only thing that occurred to me so far is this:
1. Create a variable to find the Ymin, as you did it but within a formula (my example)
2. Create another formula to compare the Y coordinate of your known points with the result of your previous formula. In that way, when the Y value coincides, you'll have found out which point was the one with the lowest elevation, and therefore you'll be able to get its X value. (my example)
3. Create your new point (P25 in your case) and assign the two formula values to the X and Y coordinates. (my example)
Finally, you will have the point where you need it to be. As you can see in the following image, they are overlapped.
I hope this helps. Best regards!
Hi @Oleg.Konovalov.SIT, I hope you're doing fine. The only thing that occurred to me so far is this:
1. Create a variable to find the Ymin, as you did it but within a formula (my example)
2. Create another formula to compare the Y coordinate of your known points with the result of your previous formula. In that way, when the Y value coincides, you'll have found out which point was the one with the lowest elevation, and therefore you'll be able to get its X value. (my example)
3. Create your new point (P25 in your case) and assign the two formula values to the X and Y coordinates. (my example)
Finally, you will have the point where you need it to be. As you can see in the following image, they are overlapped.
I hope this helps. Best regards!
You should mark this as Solved with Katie’s solution. She quickly finds the x value with one line of code for the X value without lining up multiple Decision graphics like you were worried about..
You should mark this as Solved with Katie’s solution. She quickly finds the x value with one line of code for the X value without lining up multiple Decision graphics like you were worried about..
Hi guys!
@fcernst is right. Sometimes we post replies almost at the same time. Therefore, I hadn't even noticed that @KMercier_C3D had also posted a very good answer to @Oleg.Konovalov.SIT question. Let's wait for him to see the answer and accept the solution. My respect for @KMercier_C3D; she's the best (in my opinion) at working with SAC.
Best regards!
Hi guys!
@fcernst is right. Sometimes we post replies almost at the same time. Therefore, I hadn't even noticed that @KMercier_C3D had also posted a very good answer to @Oleg.Konovalov.SIT question. Let's wait for him to see the answer and accept the solution. My respect for @KMercier_C3D; she's the best (in my opinion) at working with SAC.
Best regards!
Hi @Oleg.Konovalov.SIT. Yes, I agree 🙂
Happy to help anyway. Best regards!
Hi @Oleg.Konovalov.SIT. Yes, I agree 🙂
Happy to help anyway. Best regards!
Can't find what you're looking for? Ask the community or share your knowledge.