pBe Posted June 9, 2012 Posted June 9, 2012 Thank you. It works perfectly You are welcome and good for you. Cheers Quote
guigol Posted July 4, 2012 Author Posted July 4, 2012 (edited) Hi. I knew that it was too easy. We received some new plan from our client. and this time, polylines are not "connected" to block, but to point with CODE_CH1 attribute. 03-PIT2.dwg could you modify your routine to obtain the length for each polyline. there are several layer and it's important to keep the length separated (for example: caniveau = gutter ; enterre = buried; ...) it's not the same team who will make the construction thank you Edited July 4, 2012 by guigol Quote
pBe Posted July 5, 2012 Posted July 5, 2012 Hi. I knew that it was too easy. We received some new plan from our client. and this time, polylines are not "connected" to block, but to point with CODE_CH1 attribute. [ATTACH]35728[/ATTACH] could you modify your routine to obtain the length for each polyline. there are several layer and it's important to keep the length separated (for example: caniveau = gutter ; enterre = buried; ...) it's not the same team who will make the construction thank you All you need is the length and no indication as what is connected to what block? that will loads easier. what will be the final table will look this time? Quote
guigol Posted July 5, 2012 Author Posted July 5, 2012 the aim is to complete the same final table. so I need CODE_CH1 of start point / CODE_CH1 of end point / length between start point and end point. And if there is no start or end point, juste an indication like NULL Quote
pBe Posted July 5, 2012 Posted July 5, 2012 (edited) Since theres no attribute to identify the block as you had before then you'll have a problem there. Since this time you are using points the only way to identiy what goes whre is the coordinates (as per your original request. (i think i trashed that code for that sometime ago) Besides, Hlalf of them are not even polylines Again there are overlapping lines It is still doable that much i can tell you BTW what is CODE_CH1 again? EDIT: Here's what we can do. we would write a supplemental routine to give the POINT entiteis an "identifier" might it be a attribute or Xdata. but the problem there would be what values go to what point entity and where? Think about it for now. and let me know if you have an idea how to go about assinging the values or identify the points besides the coordiantes. Edited July 5, 2012 by pBe Quote
guigol Posted July 5, 2012 Author Posted July 5, 2012 Since theres no attribute to identify the block as you had before then you'll have a problem there. Since this time you are using points the only way to identiy what goes whre is the coordinates (as per your original request. (i think i trashed that code for that sometime ago) Using Coordinates is a great idea Besides, Hlalf of them are not even polylinesAgain there are overlapping lines So could you give the choice, in the start of routine, to choose if the user want the length of line or polyline and after that the choice of layer (by selecting an object of this layer for example) It is still doable that much i can tell you BTW what is CODE_CH1 again? I think there is an attribute CODE_CH1 for each point, no? EDIT: Here's what we can do. we would write a supplemental routine to give the POINT entiteis an "identifier" might it be a attribute or Xdata. but the problem there would be what values go to what point entity and where? Think about it for now. and let me know if you have an idea how to go about assinging the values or identify the points besides the coordiantes. sorry, i didn't understood this part. Quote
pBe Posted July 6, 2012 Posted July 6, 2012 I think there is an attribute CODE_CH1 for each point, no? Strange. it doesnt show here in ACAD 2009 sorry, i didn't understood this part. Well of course it wont make sense to you guigol, You're seeing the attributes and i dont. Maybe i can help you if i'm a using a newer version of cad or MAP. I'm running blind on this one. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.