Author Topic: retreive ename from string  (Read 295 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2307
Re: retreive ename from string
« Reply #15 on: July 11, 2017, 01:14:00 pm »
Thank you Mickael,.

but I cannot use dbx here..for many restriction.

there is my goal,
1) capture block inside an XREF
2) get the attribute value
3) get the objectID
4) create Field

it work...until the XREF is changed,..then the ObjectID also changed.,..and Field show ####
so the only thing who stay constant is handle...then I think that I can do something with this.

however,...I've 2 problematic..

1) some items contain xdata value of ename or vl-object as string that I cannot reuse...
Code: [Select]
(read "(<Entity name: c5481b5d30>)")) who is the object name of block attribute.

2) get object information inside an XREF via handle name. it work only if the handle is part of the current drawing.

I can filter items in XREF and then get the correct one,...but this method is tooo slow !..

so I don't really know how to think on this concept..
Keep smile...

Lee Mac

  • Seagull
  • Posts: 11779
  • AutoCAD 2015 Windows 7 London, England
Re: retreive ename from string
« Reply #16 on: July 11, 2017, 01:45:55 pm »
A bit late to the party, but you may want to refer to my LM:ename->objectid function as used in this program - this function will also handle 64-bit Object IDs.

Andrea

  • Water Moccasin
  • Posts: 2307
Re: retreive ename from string
« Reply #17 on: July 11, 2017, 02:16:02 pm »
Thank you Lee, the problem is to retreive attribute value in specific bloc inside an XREF.
Keep smile...

Andrea

  • Water Moccasin
  • Posts: 2307
Re: retreive ename from string
« Reply #18 on: July 11, 2017, 04:47:03 pm »
Finally,..I've copmpletly remake the tool..
to bad for the existing drawings..

Thank you for your Help.
Keep smile...