Jump to content
Mr. Tonci Pirovic

Modeling points within the loop

Recommended Posts

Hi,

 

  I'd like to model several points with the feature; every point with it's unique name...I'm trying with the attached code, and it seems that list is filling ok, but only the last loop iteration seems to be reflected in the model ( point p9 ). I sense some detachment is needed but can't figure it out :huh: ...appreciate your advice!

Thanks,

Tonci

post-132-0-30910800-1398068246_thumb.jpg

Share this post


Link to post
Share on other sites

Hi,

 

What you need is a "persistent section".

Adding the line "beginPersistentSection" before the while loop and a "endPersistentSection" after the while loop should do the trick.

 

Note that the "temp" variable will still only contain the last created point, however, the objectlist "points" will contain all 9 individual points. Also, if the feature is drawable, all 9 points will be drawn.

 

Hope this helps,

Arne

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...