Message 1 of 8

Not applicable
02-27-2018
05:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I need to generate a code that evaluates if the current entity is a line and if the next entity is also a line. I'm using the following code, but I can not get the result I want.
Please, excuse my mistakes. I'm learning.
For i As Integer = 0 To align1.Entities.Count - 1 Dim enti As AlignmentEntity = align1.Entities.GetEntityByOrder(i) If (enti.EntityType = AlignmentEntityType.Line) Then Dim nextenti As Integer = enti.EntityAfter Dim nextentity As AlignmentEntity = align1.Entities.Item(nextenti) If (nextentity.EntityType = AlignmentEntityType.Line) Then pipqce(i) = 1 pipqcn(i) = 1 End If Continue For End If Next i
Can someone help me with an example .net code.
Thank you very much.
Best regards.
Mauro Vega
AutoCAD Civil 3D 2018.1
Intel Core i7-6700HQ CPU 2.6 GHZ
32 GB RAM 2133 MHz
NVIDIA Quadro M3000M
Windows 10 Pro 64 Bits
Solved! Go to Solution.