How to delete/remove ParcelSegmentElement

How to delete/remove ParcelSegmentElement

Anonymous
Not applicable
1,168 Views
6 Replies
Message 1 of 7

How to delete/remove ParcelSegmentElement

Anonymous
Not applicable

Hi,

How can I remove ParcelSegmentElement?

 

I have oPar as AeccParcel and oSeg as AeccParcelSegment

 

Here is my idea.. but not success yet..

 

AeccParcelLoop loop = oPar.ParcelLoops[0];           

List<AeccParcelSegmentElement> SegElem = new List<AeccParcelSegmentElement>();           

foreach (AeccParcelSegmentElement segE in loop)           

{               

  SegElem.Add(segE); // Seem not good idea here.. because all segE in this list look the same           

}
           

foreach (AeccParcelSegmentElement oSE in oSeg)           

{               

if (!SegElem.Contains(oSE))               

***delete/remove oSE here //can't find info, how to delete/remove this segment element           

} 

 

Pls help.. Thanks.

-Wanlop-

0 Likes
1,169 Views
6 Replies
Replies (6)
Message 2 of 7

Civil3DReminders
Collaborator
Collaborator

I'm pretty sure you'd have to get the entity that's creating the ParcelSegmentElement and modify it. The ParcelSegment should be a reflection of the objects that make up the parcel.

 

Christopher

0 Likes
Message 3 of 7

Anonymous
Not applicable

Thanks for your replied.

How can I get entity of ParcelSegmentElement ?

From the attached picture, I could get both Parcel (use as base to verify) and the ParcelSegment (iterate all element to check if it apart of base Parcel or not)..

 

Pls suggest more..

 

0 Likes
Message 4 of 7

Anonymous
Not applicable

Just delete/remove one of ParcelSegmentElement  (not ParcelSegment).. still can't find the way to do..

Guide me please..

0 Likes
Message 5 of 7

augusto.goncalves
Alumni
Alumni

Hi,

 

Have you tried AeccParcelSegment.Delete() method?

 

Hope this help.

 

Augusto Goncalves

Autodesk Developer Network

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 6 of 7

Anonymous
Not applicable

Hi,

 

Thanks for the reply, but sorry it doesn't help.

 

What I need to delete is AeccParcelSegmentElement, not AeccParcelSegment.

 

Pls suggest..

0 Likes
Message 7 of 7

Anonymous
Not applicable

Anyone help please...

0 Likes