Jump to content

Add xdata to drawing


Double J

Recommended Posts

I'm creating a script, which automatically adjusts the extended data of line objects. Using information from different blocks in the drawing. 

I have already finished the first steps. I have already created a temporary layer to which the additional xdata is linked. 

 

However, I get stuck on 2 points, Where I need help; 

  • Identifies overlapping lines (same geometry) on layer boundary”. Delete all other objects, So that only the locations where the xdata may have to be adjusted remains (drawing 3) 

  • Check if the xdata on bounday layer is present in the underlying objects, and add this information if necessary to the existing xdata. (drawing 4) 

 

Please note, it is possible that the underlying objects are 2 objects. It is also possible that these underlying objects, don’t have the same length. 

Example.dwg test.lsp

Link to comment
Share on other sites

Speaking for myself , I have no experience with xdata other than maybe once tried an example from a site like AfraLisp. Never found the need to do something with this , probably not enough vision or brain cells whatever. Can imagine its powerful stuff but can't imagine using it for my own purposes , not yet anyway. Maybe playing with it more would wake up some of my brain cells. Maybe there are some users who have put it to practical use and maybe they want to share (or not).

 

Could a command like overkill help you to get rid of double / overlapping lines? That would al least solve half of your problem.

 

🐉

Link to comment
Share on other sites

On 10/3/2019 at 11:15 AM, rlx said:

Speaking for myself , I have no experience with xdata other than maybe once tried an example from a site like AfraLisp. Never found the need to do something with this , probably not enough vision or brain cells whatever. Can imagine its powerful stuff but can't imagine using it for my own purposes , not yet anyway. Maybe playing with it more would wake up some of my brain cells. Maybe there are some users who have put it to practical use and maybe they want to share (or not).

 

Could a command like overkill help you to get rid of double / overlapping lines? That would al least solve half of your problem.

 

🐉

The command overkill ignores the xdata linked to the objects. So that is unfortunately not an option.

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...