Author Topic: Ads_name Question  (Read 4177 times)

0 Members and 1 Guest are viewing this topic.

It's Alive!

  • BricsCAD
  • Needs a day job
  • Posts: 7041
  • AKA Daniel
Ads_name Question
« on: May 06, 2008, 10:36:09 AM »
I know the first item of an ads_name is the objectId, anyone know what the second item is?
ads_name ( 134681152 , 134509208 )

T.Willey

  • Needs a day job
  • Posts: 5241
Re: Ads_name Question
« Reply #1 on: May 06, 2008, 11:17:15 AM »
Could it be the owner's objectId?

/quess
Tim

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

Please think about donating if this post helped you.

Chuck Gabriel

  • Guest
Re: Ads_name Question
« Reply #2 on: May 06, 2008, 11:18:48 AM »
I know I've seen that information somewhere, but I can't remember where.  I'll keep looking.

It's Alive!

  • BricsCAD
  • Needs a day job
  • Posts: 7041
  • AKA Daniel
Re: Ads_name Question
« Reply #3 on: May 06, 2008, 11:37:13 AM »
Cool thanks guys, I thought it would be the space id but itís not.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Ads_name Question
« Reply #4 on: May 09, 2008, 09:46:59 PM »

This Help ?
Quote from: Tony T Thursday, 20 May 2004 05:59

"Tony Tanzillo" <tony.tanzillo@bogus.com> wrote in message news:3850555@discussion.autodesk.com...
This function will get the underlying ads_name of the
selection set for a given IAcadSelectionSet:

void AxGetAdsName(IAcadSelectionSet* pSelSet, ads_name ss)
{
   ss[0] = (long) (*((long *)pSelSet + 4));
   ss[1] = (long) (*((long *)pSelSet + 5));
}
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

It's Alive!

  • BricsCAD
  • Needs a day job
  • Posts: 7041
  • AKA Daniel
Re: Ads_name Question
« Reply #5 on: May 10, 2008, 12:13:25 AM »

This Help ?
Quote from: Tony T Thursday, 20 May 2004 05:59

"Tony Tanzillo" <tony.tanzillo@bogus.com> wrote in message news:3850555@discussion.autodesk.com...
This function will get the underlying ads_name of the
selection set for a given IAcadSelectionSet:

void AxGetAdsName(IAcadSelectionSet* pSelSet, ads_name ss)
{
   ss[0] = (long) (*((long *)pSelSet + 4));
   ss[1] = (long) (*((long *)pSelSet + 5));
}


Hmm, interesting, Iíll give it a try. I was also curious as to what that points to, itís probably  the owner as Tim suggested.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Ads_name Question
« Reply #6 on: May 12, 2008, 10:32:22 PM »
Dan,
I'm flipping through my 'ObjectARX Developers Guide' book (it's lunch time) ...
On page 353 General Types and Definitions ;

"In AutoLisp, the names of entities and selectionsets are pairs of long integers. ObjectARX preserves this standard by defining such names as an array type, as follows :
typedef long ads_name[2]; "


so it looks like there is some lisp history there .... but I couldn't find what the second value represents in ARX.  :|


added: seems like it's time for some 'SPYing' (or some debugging at least) ... :-)
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

It's Alive!

  • BricsCAD
  • Needs a day job
  • Posts: 7041
  • AKA Daniel
Re: Ads_name Question
« Reply #7 on: May 13, 2008, 11:05:16 PM »
...I'm flipping through my 'ObjectARX Developers Guide' book (it's lunch time) ...

Kewl, reading  an ObjectARX manual on your lunch break.   ;-)

added: seems like it's time for some 'SPYing' (or some debugging at least) ... :-)

This is probably the best way to figure it out, since itís not documented anywhere.
Thanks for looking, I owe you lunch :)