ENTSEL IN PS

Discussion in 'AutoCAD' started by Gustavo Guidi, Sep 14, 2004.

  1. Is it possible (and please how) to select an entity , to get their
    properties, that exist and is seen in a VIEWPORT while I am in PSPACE.
    AutoCAD let to select a point of an entity but not to select it

    Thanks
     
    Gustavo Guidi, Sep 14, 2004
    #1
  2. Gustavo Guidi

    TCEBob Guest

    Good question! Suggest you look up (acet-ps-to-ms [value] [viewport]) to start.

    rs
     
    TCEBob, Sep 14, 2004
    #2
  3. Thanks, but where can I find information about acet- functions?

     
    Gustavo Guidi, Sep 15, 2004
    #3
  4. Gustavo Guidi

    TCEBob Guest

    You can chase it down in help-autocad-customization-autolisp. Or do as I did and
    make a shortcut to C:\Land4\Help\acad_alr.chm. (substitute your acad root
    directory for Land4.) I use the thing a lot so keep a separate shortcut in my
    Taskbar. If you have not programmed autolisp very much you might be a bit over
    your head. Don't hesitate to ask further questions here. That's why all the
    experts (not me!) look in, so they can guide less experienced (me!) programmers.

    rs

     
    TCEBob, Sep 15, 2004
    #4
  5. I have not the acad_alr.chm file . Where to download it ?




     
    Gustavo Guidi, Sep 17, 2004
    #5
  6. Gustavo Guidi

    TCEBob Guest

    What version of autocad are you using? Mine is Ver. 16. All the Help files are
    ..chm files. You might try searching for *.chm. If you click the Help icon you
    should get an expandable tree of topics. You can get to the customization with a
    little clicking, as I described earlier. The help files are installed with the
    program and I do not think they can be downloaded.

    Here is the help text for acet_ps_to_ms:

    "Converts a real value from paper space units to model space units.
    "(acet-ps-to-ms [value] [viewport])

    "If both the value and viewport arguments are specified, the value is converted
    to model space units using the specified viewport. No user input is required.

    "If only the value argument is specified, the current viewport is assumed and no
    user input is required. However, if the current space is model space, there is
    no current viewport and the function will fail (returning nil). If paper space
    is the current space, the function will either prompt for a viewport if more
    than one viewport exists in the layout, or use the single existing viewport.

    "If no arguments are specified, the function prompts for a value and converts it
    if possible.

    "Arguments

    "value

    "A real value to be converted.

    "viewport

    "A viewport entity name (ads_name).

    "Return Values

    "The converted real value on success, nil on failure. "


    rs

     
    TCEBob, Sep 17, 2004
    #6
  7. Thanks Bob

    I'm developing a routin for AutoCAD 2000 and 2004
    I found the chm file in 2004, anyway it doesn't let me reed an entitie form
    MSPACE, been in PSPACE
    I have attached data to that entities.
    There must be a file that explain all about thee ACET- functions, becouse if
    fou try to find haw many they are doing for example, you will find a lot of
    ACET functions that can be used but you don't kwnow the sinstaxis and what
    they serve for

    (defun acatall ( / a b)
    (setq ldef nil)
    (setq a (atoms-family 1))
    (while a
    (setq b (substr (car a) 1 4))
    (if (= (strcase b) "ACET")
    (setq ldef (agr_lstdef (car a) ldef))
    )
    (setq a (cdr a))
    )
    (setq ldef (vl-sort ldef '>))
    )



     
    Gustavo Guidi, Sep 18, 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.