Jump to content


How to add / access XData

XData LISP

1 reply to this topic

#1 Auum

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 01 February 2018 - 09:12 PM

I'm using nanCAD en 5.0

I'm trying to add XData to an object, with the following LISP commands

(regapp "TEST")
(entmod (append (entget (car (entsel))) '((-3 ("TEST" (1000 . "TESTING"))))))

which returns an entity list like so:

((-1 . #<Entity name: 05A98928>) (0 . "LWPOLYLINE") (5 . "13CD") (330 . #<Entity name: 05AA67F8>) (100 . "AcDbEntity")
(67 . 0) (410 . "Model") (8 . "Outline") (100 . "AcDbPolyline") (90 . 4) (70 . 0) (43 . 0.0) (38 . 0.0) (39 . 0.0) (10 345.839 -125.792 0.0)
(40 . 0.0) (41 . 0.0) (42 . 0.0) (10 393.839 -125.792 0.0) (40 . 0.0) (41 . 0.0) (42 . 0.0) (10 393.839 -113.792 0.0) (40 . 0.0) (41 . 0.0)
(42 . 0.0) (10 445.839 -96.2863 0.0) (40 . 0.0) (41 . 0.0) (42 . 0.0) (210 0.0 0.0 1.0) (-3 ("TEST" (1000 . "TESTING"))))

However, when I try to use

(ENTGET (CAR (ENTSEL)) '("*"))

or

(ENTGET (CAR (ENTSEL)) '("TEST"))

all I get is the standard entity info:
((-1 . #<Entity name: 05A98928>) (0 . "LWPOLYLINE") (5 . "13CD") (330 . #<Entity name: 05AA67F8>) (100 . "AcDbEntity") (67 . 0)
(410 . "Model") (8 . "Outline") (100 . "AcDbPolyline") (90 . 4) (70 . 0) (43 . 0.0) (38 . 0.0) (39 . 0.0) (10 345.839 -125.792 0.0) (40 .
0.0) (41 . 0.0) (42 . 0.0) (10 393.839 -125.792 0.0) (40 . 0.0) (41 . 0.0) (42 . 0.0) (10 393.839 -113.792 0.0) (40 . 0.0) (41 . 0.0) (42 .
0.0) (10 445.839 -96.2863 0.0) (40 . 0.0) (41 . 0.0) (42 . 0.0) (210 0.0 0.0 1.0)

even

(ssget "X" '((-3 ("TEST"))))

returns nil

Please help!

#2 Auum

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 05 February 2018 - 08:50 PM

So I've been doing some playing around; can someone please confirm that while I can input xData and xRecords in nanoCAD 5.0, I can't actually store them or retrieve them? Is this by design?

Clearly both of these things exist and are used by nanoCAD, as viewports and the default ACAD dictionaries work, but nothing I can do (vla- or entmod) seems to store the data.

Many thanks!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users