Jump to content

extract of length of polyline connected to block


guigol

Recommended Posts

  • 4 weeks later...
  • Replies 27
  • Created
  • Last Reply

Top Posters In This Topic

  • guigol

    14

  • pBe

    13

  • BIGAL

    1

Top Posters In This Topic

Posted Images

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 by guigol
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by pBe
Link to comment
Share on other sites

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 polylines

Again 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?

chambre.jpg

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...