You are a genius, Kerry. Thanks a million.
But I am a little confused with the following statement
1) (vlax-invoke ssobj 'additems (list baseobj))
2) (vla-Additems ssobj baseobj)
3) (vl-catch-all-apply 'vla-Additems (list ssobj baseobj))
After looking thru your sample codes, I use method 1 in my program, and it works. I tried method 2 and 3 but got errors in order to learn the different methods as described in the Help section. Don't the 3 of of the codes mean the same thing? If not how do you write using method 2 and 3 to mean exactly the same thing as 1.
As for method 1, how do we check whether baseobj exists in the ssobj selection set? Do we need to iterate and check its object id or will method 1 just add baseobj into the ssobj selection set if it does not exist or not add when it exists?
Thanks again.