Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS 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
Mar 27, 2004
37
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
 
Replies continue below

Recommended for you

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

Part and Inventory Search

Sponsor