Combine instead of replace when using COM


New member
I wrote an application in C# that uses the COM interface and everything works extremely well until I get adjoining segments that overlap each other. In the VRD app you can specify that you want to Combine segments instead of replacing them. It appears that in the COM interface that it defaults to Replace. Is there a way in the COM interface to specify that I would like it to combine overlapping segments?


Senior Developer
Staff member
No. The option to combine is only activated by that dialog. There is nothing in the COM interface to trigger that mode. It's a simple calculation though so you could easily do it on your end. Just loop through the list and see if the current cut overlaps any existing cuts. If it does use the start point from one and the end from the other and create a cut using those values.
Top Bottom