How can I get the type of a dimension?

Discussion in 'AutoCAD' started by stefanopuddu, Aug 22, 2006.

  1. stefanopuddu

    stefanopuddu Guest

    Hi all,

    in Acad, when I select a dimension the _list command returns this:

    DIMENSION Layer: "sDim"
    Space: Model space
    Handle = 13B
    associative: yes
    type: vertical

    I need to get the type value in vba. I'm working on a sub that from
    an MsAccess Db opens an dwg looking for a dimension...

    The Di object has not a type property and I don't know how to get it

    Dim FilterType(1) As Integer
    Dim FilterData(1) As Variant
    Dim S As AcadSelectionSet
    Set S = D.SelectionSets.Add("HiThere")
    FilterType(0) = 0
    FilterData(0) = "DIMENSION"
    FilterType(1) = 8
    FilterData(1) = "sDim"

    S.Select acSelectionSetAll, , , FilterType, FilterData

    Dim Di As AcadDimension
    Set Di = S.item(0)

    Thanks
     
    stefanopuddu, Aug 22, 2006
    #1
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.