Wow, its been a while since I’ve written a post here. The holidays are always a busy family blur. Well, here is the latest installment …
The path/poly element is the most used element in CC3. You really cannot get much done with it. Try building anything in CC3 without it (Sure you can just use more primitive elements and use multipoly & group for joining and filling, but really you are just re-creating the path/poly element). So if you want to get something done in an XP, odds are you are going to be working with paths/polys.
If you have been following this blog or the cc2-dev-list on groups.yahoo.com, you have seen code that creates path. The code always creates a empty drawing list element then works on this record entity to “change” it into a path/poly. I’ve always had a bit of a bad feeling about that. It seems that it would be more “correct” to only add completed elements to the drawing list. So, after quite a bit of frustration, I’ve successfully worked out the code to create a path/poly element independent of the drawing list.
The code below creates a closed path (poly) with with four points: