网上有说,没有“microsoft windows command controls”引用的,我看了下,确实找不到。regsvr32 mscomctl.ocx后,仍然没有
求解决
- '传递标注非关联长度数据
- Public angletext As String
- '传递按钮选择的对象集
- Public sel As AcadSelectionSet
- Load UserForm1
- UserForm1.Show
- Sub DIM_CHANGE()
- Dim dimselect As AcadDimAligned
- Dim ent As AcadEntity
- Set ent = sel.Item(0)
- If ent.ObjectName = "AcDbAlignedDimension" Then
- Set dimselect = ent
- End If
- Set angeltext = TextBox1.Text
- dimselect.TextOverride = Val(angletext)
- Set sel = Nothing
- ThisDrawing.SelectionSets("a").Erase
- End Sub
该贴已经同步到 Flyingdancing的微博 |