Jump to content

Recommended Posts

Posted

...

Oh yeah, and thanks for the defense, RenderMan.

 

 

You're welcome. It came instinctively, my friend.

  • Replies 31
  • Created
  • Last Reply

Top Posters In This Topic

  • BlackBox

    9

  • Sweety

    8

  • Se7en

    7

  • alanjt

    7

Top Posters In This Topic

Posted

RenderMan, I think you may just be taking this far more seriously then need be.

 

No one is angry at anyone (I'm not even angry at Sweety I just thing that (s)he needs to work on their question asking abilities--not a big deal-).

Posted
No one is angry at anyone (I'm not even angry at Sweety I just thing that (s)he needs to work on their question asking abilities--not a big deal-).

x2..........

Posted
You've no reason to apologize to me. ...

 

 

That is kind of you to say.

 

...To put it plainly: we cool, don't leave.

 

 

 

... Awww, you'd miss me! :P

 

I'm not taking my ball and going home, or anything! lol

Posted
RenderMan, I think you may just be taking this far more seriously then need be.

 

No one is angry at anyone (I'm not even angry at Sweety I just thing that (s)he needs to work on their question asking abilities--not a big deal-).

 

 

Agreed. I appreciate your candor.

Posted

I declare my apology to all members that misunderstood me.

 

I haven't been rude at all, in all of my life. All my friends girls and boys are adore me deeply.

 

But with my previous words to alan were due to his short hint about the thread . that made me

 

thought that he is laughting somehow at me or at my knowledge with Lisp.

 

Hope you understand me, and my intermediate level with Lisp as well.

 

Thanks for all

 

The sweetest SWEETY as known in public.

Posted

Sweety, no one will laugh at your programming abilities because we all started off the same way.

Posted
Sweety, no one will laugh at your programming abilities because we all started off the same way.

 

 

Well said.

Posted

Thanks guys,

 

You made me feel really mistaken with your kind replies .

 

Thanks a lot.

Posted

(vla-delete ss)))

 

Thank you Renderman.

 

That's a very great work. And I do appreciat it a lot.

 

What's the porpose of deleting vla-object (ss) at the end of routine ?

 

Regards,

Posted
What's the porpose[sic] of deleting vla-object (ss) at the end of routine ?

 

Basically because it is good practice when working with VLA Collections. When you create a SelectionSet using ssget it is named as the 'CURRENT' SelectionSet and does not explicitly appear in the SelectionSets collection. (i.e. the count property of the SelectionSets collection is zero).

 

This 'CURRENT' SelectionSet is managed by AutoCAD purged when the variable pointing to it is localised. However, when we retrieve the ActiveSelectionSet property of the Document Object, we reference this CURRENT SelectionSet in the SelectionSets collection, and the SelectionSets count now becomes 1.

 

Subsequent SelectionSets retrieved in this way will not increase this count, as they will only become the ActiveSelectionSet in themselves, and there is no way to point to SelectionSets created through ssget in the VL SelectionSets collection other than the Active one, CURRENT.

 

Hence, since the SelectionSets collection is now registering a count, it is best we delete the SelectionSet from the collection when finished, just as we might purge a layer or block from their respective collections.

 

On another note, we can create SelectionSets by adding them to the SelectionSets collection, and hence manage our SelectionSets manually, rather than letting AutoCAD deal with this management when using ssget.

 

An example of such may be found here.

 

If I've missed anything, feel free to chime in people, I will most happily be corrected.

 

Lee

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...