Clarification needed (Jason Piercey perhaps)

Discussion in 'AutoCAD' started by per, Jan 24, 2005.

  1. per

    per Guest

    Hi there,
    Last month I was provided the following routine and explanation (see Below)
    What I'm not clear on is the "document object". Can Jason or someone else
    clarify the word "document in the function)? Can you give me an example
    perhaps?
    Thank you,
    Phillip

    -----------------------------------------
    Here are some toolbox functions that I use. The first
    one will get the names of the pagesetups defined in the
    specified document, the other three are used to get
    the plot device information (IIRC, the functions for
    plot devices came from Doug Broad)


    ; function to determine what plotconfigurations
    ; are defined in the specified document
    ; [document] - document object
    ; return: list of strings or nil
    ; (getPlotConfigNames (vla-get-activedocument (vlax-get-acad-object)))
    (defun getPlotConfigNames (document / names)
    (reverse
    (vlax-for x (vla-get-plotconfigurations document)
    (setq names (cons (vla-get-name x) names))
    )
    )
    )
     
    per, Jan 24, 2005
    #1
  2. per

    Jeff Mishler Guest

    A "document" in Autocad is the Drawing. The current Drawing is the
    ActiveDocument
     
    Jeff Mishler, Jan 24, 2005
    #2
  3. per

    per Guest

    I think the fog is clearing... Thanks Jeff. <smile>

     
    per, Jan 24, 2005
    #3
  4. In addition to what Jeff said, try here in the help files.

    Help -> Developer Help -> ActiveX and VBA Reference ->
    Objects -> Document Object
     
    Jason Piercey, Jan 24, 2005
    #4
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.