Create Dimension without Reference

Create Dimension without Reference

Anonymous
Not applicable
842 Views
1 Reply
Message 1 of 2

Create Dimension without Reference

Anonymous
Not applicable

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

0 Likes
843 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Hi.

 

No, I would assume that this is not possible.

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes