To create an Area element overlayed on a Room in an Area Plan view, I proceeded as follows:
1. Retrieve the room's boundary information
2. Create a new AreaBoundaryLine for each BoundarySegment of the room boundary
3. I got stuck here: Join two adjancent area boundary lines together so that all of the boundary lines will form an enclosed region (the next step is to place an Area element inside this region by calling the NewAreas(List of AreaCreationData) function).
When I called set_ElementsAtJoin on the LocationCurve of a ModelCurve (object returned from a NewAreaBoundaryLine call), an exception "{color:#ff0000}Operation is not valid due to the current state of the object{color}." was raised at runtime.
Please help me to solve this issue! Any suggestions will be greatly appreciated!
--- Sebastian