Start point of dimention with ActiveX

Discussion in 'AutoCAD' started by Fatty, Nov 27, 2004.

  1. Fatty

    Fatty Guest

    Does anyone know of a way to get start point of dimension
    with ActiveX method?
    How would that be done?

    Thanks for help

    Fatty
     
    Fatty, Nov 27, 2004
    #1
  2. Fatty

    Adesu Guest

    Hi Fatty.look at from Jeff answer

     
    Adesu, Nov 29, 2004
    #2
  3. Fatty

    Doug Broad Guest

    Unfortunately only for aligned dimensions. For other
    dimensions, the best choice is to use DXF methods.
    If you are using VBA and have no alternative, then
    you might use the entities within the dimension block.
    But there is no direct ActiveX link between the
    dimension block and the dimension so you need to
    use copyobjects method to get access.
     
    Doug Broad, Nov 29, 2004
    #3
  4. Fatty

    Fatty Guest

    Thanks Adesu and Doug
    I think I know what to do now
     
    Fatty, Nov 29, 2004
    #4
  5. Fatty

    Joe Burke Guest

    Hi Doug,

    Maybe I don't understand the question and/or your reply. One or the other is likely.

    I just wonder if you meant to say CopyFrom method, rather than CopyObjects?

    Joe Burke
     
    Joe Burke, Nov 30, 2004
    #5
  6. Fatty

    Doug Broad Guest

    Hi Joe,

    No, I meant copyobjects.

    Unfortunately, activeX access to critical dimension objects has been
    limited by AutoDesk. Since Adesk doesn't seem to be arbitrary in
    its practices, the implication is that they don't want third parties too
    much control on their dimension objects. There may be some justification
    for this approach, since dimensions have varying levels of reactor
    behavior built-in.

    The OP wanted access to the first extension origin of a dimenion object.
    DXF access to that is relatively simple and that is what I would use if I didn't
    need ObjectDBX or reactive access to the dimensions.

    The dimension block is accessible from the dimension object via ActiveX 2 ways.
    Copyobjects method can be used to copy the dimension to another drawing or to a
    dbxdocument. By using the IDPairs argument and converting the id's back to objects, the
    dimension block can be found. This has been demonstrated very effectively by Tony T.

    Handle arithmetic can also be used to find the next block definition following
    the dimension object. Although others have expressed contempt for this method, dismissing
    it as a kludge, it seems another satisfactory alternative to me when not using ObjectDBX.

    Once the dimension block object is found, I usually store its handle with
    the dimension object to re-access it during reactive callbacks.

    Copyfrom method only applies to dimension styles. The source of a dimension
    styles variable settings can be a dimension object.

    Does that help? Too much?

    Regards,
    Doug
     
    Doug Broad, Nov 30, 2004
    #6
  7. Fatty

    Joe Burke Guest

    Thanks, Doug. That was an unexpected education. :)

    Joe Burke
     
    Joe Burke, Nov 30, 2004
    #7
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.