TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: pingoo666 on July 26, 2022, 03:26:50 AM

Title: Add Xdata to the drawing
Post by: pingoo666 on July 26, 2022, 03:26:50 AM
Hello,

I need a way to attach xdata to the drawing, without attaching it to an entity.

I try to download this example

https://cadtips.cadalyst.com/node/tiplisting?q=node/tiplisting&keywords=1756 (https://cadtips.cadalyst.com/node/tiplisting?q=node/tiplisting&keywords=1756)

but the link is broken.

Do you have an example ?

Thanks by advance
Title: Re: Add Xdata to the drawing
Post by: mhupp on July 26, 2022, 10:13:56 AM
Here it is on Autodesk forums.
https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/message-lsp/m-p/1743119/highlight/true#M219941

---edit
oops
"It doesn't work with 2007. It loads, but it doesn't run. "

"You can use "dwgprops" to save message"
Title: Re: Add Xdata to the drawing
Post by: ronjonp on July 26, 2022, 11:45:53 AM
Hello,

I need a way to attach xdata to the drawing, without attaching it to an entity.

I try to download this example

https://cadtips.cadalyst.com/node/tiplisting?q=node/tiplisting&keywords=1756 (https://cadtips.cadalyst.com/node/tiplisting?q=node/tiplisting&keywords=1756)

but the link is broken.

Do you have an example ?

Thanks by advance
You can write xdata to layer 0 too. What are you trying to accomplish ?