Author Topic: Associative Array - Obtain the Row and Column Count  (Read 2031 times)

0 Members and 1 Guest are viewing this topic.

Xander

  • Guest
Associative Array - Obtain the Row and Column Count
« on: April 14, 2011, 01:44:51 AM »
As the topic says, I'm attempting to pull the row and column count of the new fantastic associative arrays (perfect for carpark line marking!).

The problem I have, is.. ENTGET on the array returns a nice DXF list, but nothing with the row/column count.

Code: [Select]
Command: (ENTGET (CAR(ENTSEL)))

Select object: ((-1 . <Entity name: 7ffff1d5020>) (0 . "INSERT") (5 . "BAA")
(102 . "{ACAD_REACTORS") (330 . <Entity name: 7ffff1d52b0>) (102 . "}") (330 .
<Entity name: 7ffff3169f0>) (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 .
"C-G-Line-Mark") (100 . "AcDbBlockReference") (2 . "*U31") (10 5286.93 3656.61
0.0) (41 . 1.0) (42 . 1.0) (43 . 1.0) (50 . 0.0) (70 . 0) (71 . 0) (44 . 0.0)
(45 . 0.0) (210 0.0 0.0 1.0))

Any ideas?

Xander

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Associative Array - Obtain the Row and Column Count
« Reply #1 on: April 14, 2011, 02:33:15 AM »
I recall reading somewhere that there was no lisp API for this feature.

I haven't tried yet with either lisp or .net

kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Crank

  • Water Moccasin
  • Posts: 1503
Re: Associative Array - Obtain the Row and Column Count
« Reply #2 on: April 14, 2011, 03:04:08 PM »
[...]

Any ideas?

Xander
Have you investigated the soft-pointer handles (DXF-code 330) ?
Vault Professional 2023     +     AEC Collection

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Associative Array - Obtain the Row and Column Count
« Reply #3 on: April 14, 2011, 03:34:32 PM »
The extension dictionary?
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Xander

  • Guest
Re: Associative Array - Obtain the Row and Column Count
« Reply #4 on: April 14, 2011, 06:26:12 PM »
Thanks Guys. I'll look into it when I get another chance.