TheSwamp

Code Red => VB(A) => Topic started by: surveyor_randy on November 15, 2007, 04:21:13 PM

Title: Point Groups (C3D VBA)
Post by: surveyor_randy on November 15, 2007, 04:21:13 PM
Does anyone know if it is programatically possible to add points to a point group in VBA?  I haven't found any exposed method but maybe I am missing it.  Thanks in advance.
Title: Re: Point Groups (C3D VBA)
Post by: David Hall on November 15, 2007, 04:23:54 PM
I dont have the software to play along, but what is your point group?  Is it an array that you can redim to larger array or is it a custom object you cant touch (duh, thats why you asked) or do we not know what it is?
Title: Re: Point Groups (C3D VBA)
Post by: surveyor_randy on November 15, 2007, 05:42:03 PM
What I am doing is creating points one at a time with a loop.  I was wanting to add each one of them individually to the point group specified in my form combobox.  I probably need to keep a running list of point numbers that were added and then append them to the array of existing points in the specified group.  I didn't think that I could redim that array.  Then I guess you would issue an .update??
Title: Re: Point Groups (C3D VBA)
Post by: Jeff_M on November 15, 2007, 05:43:24 PM
Yes, it's possible. To do so you must use the PointGroupQueryBuilder object of the PG.
Title: Re: Point Groups (C3D VBA)
Post by: surveyor_randy on November 15, 2007, 06:57:20 PM
Yes, it's possible. To do so you must use the PointGroupQueryBuilder object of the PG.

Sweet!  Thanks, I'm looking at it now with the object browser.