Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

error in sub

Status
Not open for further replies.

rwbaker

Computer
Joined
Mar 27, 2004
Messages
37
Location
US
does anyone see a problem with this sub
i am getting the following error
object library feature not supported

we are using ACAD2004

Sub DrawAlignedDimension()
StartPoint(0) = 0
StartPoint(1) = 0
StartPoint(2) = 0
EndPoint(0) = -txtXDIM
EndPoint(1) = 0
EndPoint(2) = 0
SetTextPosition_horz
Set DimensionObject = ThisDrawing.ModelSpace.AddDimAligned(StartPoint, EndPoint, TextPosition)
DimensionObject.Update
SetUnitsFormat


StartPoint(0) = 0
StartPoint(1) = 0
StartPoint(2) = 0
EndPoint(0) = 0
EndPoint(1) = txtYDIM
EndPoint(2) = 0
SetTextPosition_vert
Set DimensionObject = ThisDrawing.ModelSpace.AddDimAligned(StartPoint, EndPoint, TextPosition)
DimensionObject.Update

SetUnitsFormat
End Sub
 
I was calling an ACAD2006 ref.....my bad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top