j_r_auden
7th Feb 2005, 04:44 pm
1. Once you have a selection set, how can you manipulate the data in the selection set. Example ->
I create a selection set that includes all AcadLines on screen.
Then I want to go through a loop that passes the line to another function.
How do I access the objects in my selection set, are they indexed ??
I have written my function to accept a "Line", but when I pass it
mysset(0) it gives me an error. Does this selection set store the actual object and I need to pass the entire object, or is it a pointer, or what ??
2. Also, I noticed that a line has the properties of startpoint and endpoint, but no midpoint. Is there an easy way to get the coordinates of the midpoint of a line or must you write you own function ??
3. How are coordinates stored in VBA. If I want to print coordinates to a MsgBox, how do I do this. Also, if I wanted to pass some coordinates to a function, what type of argument do i pass. Variant ??
Thanks for the help !!!!!!!
I create a selection set that includes all AcadLines on screen.
Then I want to go through a loop that passes the line to another function.
How do I access the objects in my selection set, are they indexed ??
I have written my function to accept a "Line", but when I pass it
mysset(0) it gives me an error. Does this selection set store the actual object and I need to pass the entire object, or is it a pointer, or what ??
2. Also, I noticed that a line has the properties of startpoint and endpoint, but no midpoint. Is there an easy way to get the coordinates of the midpoint of a line or must you write you own function ??
3. How are coordinates stored in VBA. If I want to print coordinates to a MsgBox, how do I do this. Also, if I wanted to pass some coordinates to a function, what type of argument do i pass. Variant ??
Thanks for the help !!!!!!!