Message 1 of 2
Create Dimension without Reference

Not applicable
08-20-2015
01:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
Is it possible to generate a dimension just with 2 points?
I tried with this, but this doen't work.
I think because
tmpLine.GetEndPointReference(0) comes as nothing
Dim p1 As New XYZ(0, 0, 0) Dim p2 As New XYZ(5, 0, 0) Dim tmpLine As Line = Line.CreateBound(p1, p2) Dim refs As new ReferenceArray refs.Append(tmpLine.GetEndPointReference(0)) refs.Append(tmpLine.GetEndPointReference(1)) Dim tdim As Dimension = doc.Document.Create.NewDimension(doc.Document.ActiveView, tmpLine, refs)
thx