Message 1 of 4
Not applicable
12-02-2011
03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dim acDoc As Document = Application.DocumentManager.MdiActiveDocument
Dim acCurDb As Database = acDoc.Database
ed = acDoc.Editor
Using acTrans = acCurDb.TransactionManager.StartTransaction()
Dim acSSPrompt As PromptSelectionResult = acDoc.Editor.GetSelection()
If acSSPrompt.Status = PromptStatus.OK Then
acSSet = acSSPrompt.Value
For Each acSSObj As SelectedObject In acSSet
If Not IsDBNull(acSSObj) Then
Dim acEnt As Entity = acTrans.GetObject(acSSObj.ObjectId, OpenMode.ForWrite)
If Not IsDBNull(acEnt) Then
If TypeOf acEnt Is Line Then
Dim AcL As Line
AcL = acEnt
MsgBox(AcL.Area)
End If
End If
End If
Next
End If
End UsingI need to get the line object length. i Have written the below code.
If i use area property i am getting zero.
Can anyone help me from this issue?
THank you.
Solved! Go to Solution.

