Layout Name Variable

Discussion in 'AutoCAD' started by Nick Fuller, Aug 16, 2004.

  1. Nick Fuller

    Nick Fuller Guest

    Is there a way to return the value of a given layout name? I don't see it
    listed in the variables.
     
    Nick Fuller, Aug 16, 2004
    #1
  2. Nick Fuller

    TomD Guest

    I may not be interpreting your question properly, but:

    ThisDrawing.Layouts(1).Name

    .....or do you mean the ActiveLayout?

    ThisDrawing.ActiveLayout.Name
     
    TomD, Aug 16, 2004
    #2
  3. ???? I think your problem is with your reference or something because the
    Name property is there:

    Sub Test()
    Dim oLO As AcadLayout
    For Each oLO In ThisDrawing.Layouts
    Debug.Print oLO.Name
    Next
    End Sub

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Aug 16, 2004
    #3
  4. Nick Fuller

    Nick Fuller Guest

    Im sort of a laymen when it comes to code. I know general lisp. Can you
    explain this further?
     
    Nick Fuller, Aug 16, 2004
    #4
  5. Well, maybe you better post your source code for how you are trying this.
    Based on your question and how I interpreted it, you are saying if you type
    in the period "." for a layout object, you're not getting the intellisense
    NAME to pop up - is that correct? If yes, then you have not acquired an
    instance of a layout object. As the NAME property has been around since
    vb/vba access first became a reality, then you have to be not
    acquiring/referencing objects objects correctly.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Aug 16, 2004
    #5
  6. Nick Fuller

    Nick Fuller Guest

    See teh Post "User Input Help", this is what I really meant.
     
    Nick Fuller, Aug 16, 2004
    #6
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.