Text position problem
-
And a other problem:
The array $areaObjects, is not saved inside the file - so next time it is loaded - one have to manuel delete all the textobjects and add newones -Is there a smart workaround here ?
Thanks
Jorgensen -
It seems that I can use
model = Sketchup.active_model
data = model.get_attribute "TM_area", "textObjects", "default"
and
value = model.set_attribute "TM_area", "textObjects", objects -
J:
You are deleting entities from the active entities list while you are iterating over the same list. In other words, you are scrambling the list whilst travesing it. Don't do that. Collect all your enities into a seperate list. Then interate through that list and delete them. CB.
Advertisement