Hi All! I just got started with the C API yesterday and made some good progress. I was able to create the necessary wrappers so I could call some of the API functions from C#. (I know there are wrappers out there, but I like doing this sort of thing from scratch when learning a new API, as it helps make it stick in my memory.) By the end of the day, I was able to create a simple SKP file with a couple of triangles in it, with the vertices welded where they should be (via SUEntitiesFill).
When I open the file in SketchUp Make, the geometry appears correct, but the style settings are not what I usually use. For example, a selected edge appears in yellow (not my usual blue).
I am guessing I need to set something else in my model, but I haven’t been able to find anything that directly addresses setting a style. Searching for info, I found some references to SURenderingOptionsRef, but nothing much on styles. Is there a way set the style my model uses, or edit it, using the C API? Perhaps with an options provider?
I note that people are sometimes encouraged to describe their skill levels, to help others assist with answers posters can use. I’m a pretty good programmer in general, with a lot of C and C# experience. Been using SketchUp for a year or two, but only began with the C API yesterday. Obtaining references (such has to models, entities, loops, typed values, and so on) and adding vertices and faces seems straightforward enough. I’m getting an early idea of SketchUp’s document structure (but would be very grateful for pointers to more online info about that). I have used the Options Manager and units Options Provider to set my model to use meters and decimals (which was also when I learned that SketchUp stores everything in inches, no matter what you set the ModelUnits to).
Hope that’s a good way to ask my question. Looking forward to getting to know folks here and, maybe, helping answer a few questions myself, when I can.