Not signed in (Sign In)

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

Welcome Guest!
Want to take part in these discussions? If you have an account, sign in now.
If you don't have an account, apply for one now.
    • CommentTime5 days ago
    I've just posted my second article in my XP development series.

    I know this is a bit too technical for some of you, but I still hope it is useful.

    You can check out the series.
    • CommentAuthorLoopysue
    • CommentTime5 days ago
    It probably is for me, but I think it's wonderful that you are catering for all our many and varied interests :)
    Aside from a purely style issue (I'd embed the "code explanations" in the source as //comments// myself so the reader wouldn't have to flip back and forth) this blog was very useful for understanding entities and how they work. Of particular interest to me was how easily the third and fifth examples could be adapted to import/export map notes from/to text files. If the next blog could cover file input and output operations for XPs that would be great. Also is there a more efficient way of locating particular entities than "walking the drawing list" and testing the contents of each? (This would include any SELBY1 picking from the XP.)
    • CommentTime2 days ago edited
    For reading/writing text files, I would just rely on standard C++ ways of handling files, no special handling required just because this is an XP. I'll probably not be handling that in the blog, since I want to focus on what is particular for XP's, and not end up being a generic C++ tutorial.

    If you are looking for a particular entity, you'll have to walk the drawing list (as long as you can stick to testing for type, like I do in the examples, the operation is reasonably cheap), but when you are dealing with selections, you can always just use the DLS_Sel flag in DLScan to have it returned selected entities only.