![]() ![]() ![]() To make this work I ended up adjusting the processing function to return a Boolean. The thing is, with long text this might not be inside the container, so if we find the centre is outside the container we then try each of the four corners until we find one that works. We need a “pick point”, which we generate by taking the centre of the extents. We know we’re going to have to iterate the selection set, of course, and then process the top-level text entities, as before. The approach we took before to perform nested selection of an individual object does quite a lot of heavy lifting for us. Looping through all the text – some of which may be nested inside blocks – in a selection set, adjusting its size, is actually trickier than it looks. It seems a very valid question for this topic, so that’s fine. It turns out that the question was related to a completely different post, but by the time I realised I’d already completed most of the work. ![]() Instead of selecting the nested entities one by one, is it possible to make a "selectall" selection ? This is a follow-up to the post where we modified the size of selected text in a drawing, to make it fit its container. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |