VBA code in Actrix

Discussion in 'AutoCAD' started by kruno, Mar 2, 2007.

  1. kruno

    kruno Guest

    Hi,
    I know that this group is dedicated to Autocad, but because there is no
    other group dedicated to Actrix, maybe someone of you can help me about
    this problem: Scaling inserted item from catalog
    I've found a "solution" in one old post, but it stops at the last line of
    code
    with message: "Height" is not a property of this object. So it says for any
    othen
    catalog item.

    The code is:
    Dim theCatalogItem As CatalogItem
    Set theCatalogItem = ThisDocument.Catalogs(0).CatalogItems("Square")
    theCatalogItem.CopyToClipboard
    ThisDocument.PasteFromClipboard

    Dim kvadR As DrawObject
    Set kvadR = ThisDocument.ActiveDrawPlane.Selections.Item(0)
    Call kvadR.Expressions.SetExpression("Height", "500")


    Thank you for any help and sorry for offtopic!
    kruno
     
    kruno, Mar 2, 2007
    #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.