Author Topic: extended DATA  (Read 2511 times)

0 Members and 1 Guest are viewing this topic.

Andrea

  • Water Moccasin
  • Posts: 2372
extended DATA
« on: March 23, 2005, 01:52:08 PM »
Hi all,

I'm trying to get specific extended data of an entity.
and redefine it...

But i'm not specialiste in XDATA.

can anyone give me some hint ?
or sample ?

thanks
Keep smile...

Andrea

  • Water Moccasin
  • Posts: 2372
extended DATA
« Reply #1 on: March 24, 2005, 09:56:21 AM »
no answer ?

       :cry:
Keep smile...

daron

  • Guest
extended DATA
« Reply #2 on: March 24, 2005, 02:18:49 PM »
You most likely won't get a lisp answer in the CAD General forum.

Jimmy D

  • Guest
extended DATA
« Reply #3 on: March 25, 2005, 07:04:09 AM »
Hi Andrea,

I have just done some programming using xdata. I had a hard time as well trying to figure it out. This is what I could make of it.

To make xdata you have first make a 'regapp' call. In my case it was something like this:

Code: [Select]
(regapp "JIDH-XDATA")

When the xdata is made (as in your case) and you want to retrieve it, you need to make a call to that name that was passed to regapp:

Code: [Select]
(ssget "X" '((-3 ("JIDH-XDATA"))))

-or

(entget (car (entsel))'("JIDH-XDATA"))




So I think that you first of all need to know the regapp-name that was given to the xdata by the application.[/quote][/code]

Mark

  • Custom Title
  • Seagull
  • Posts: 28762
extended DATA
« Reply #4 on: March 25, 2005, 07:51:09 AM »
TheSwamp.org  (serving the CAD community since 2003)

Jimmy D

  • Guest
extended DATA
« Reply #5 on: March 25, 2005, 08:12:01 AM »
I'm not sure Mark, but I thought XRecords were not attached to entities?
I use Xdata to attach additional data to an object that I can retrieve later when this object is selected.
Is that also possible with Xrecords?

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
extended DATA
« Reply #6 on: March 25, 2005, 09:26:38 AM »
You can "attach" xrecords to an entity by adding an extension dictionary to the entity (read about GetExtensionDictionary method), then adding the xrecords to the extension dictionary.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst