+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 12 of 12
  1. #11
    Senior Member
    Computer Details
    YZ's Computer Details
    Operating System:
    Windows XP
    CPU:
    Intel Duo Core E6550 @ 2.33GHz
    RAM:
    1.98 GHz, 3.23GB RAM
    Graphics:
    Intel G33/31 Express Chipset Family
    Monitor:
    LG Flatron W2343T
    Discipline
    Surveying
    YZ's Discipline Details
    Occupation
    CAD Operator and Manager; Land Survey, Civil Design
    Discipline
    Surveying
    Details
    Topographic ground surveys for architects and engineers; Subdivisions in NSW; Civil Engineering Design.
    Using
    AutoCAD LT 2012
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    256

    Default

    Registered forum members do not see this ad.

    I have learned some more on this. Still thinking about it a lot. Not sure if the OP has solved this, but it would make a huge difference if I could get it working.

    Quote Originally Posted by irneb View Post
    Why the 3 enters after the select command?
    If only put 1 enter after the SELECT command then the selection ends after the macro. Then I Click PSELECT button and type P and enter. My theory was that it would repeat the command and just "work". In the end the 3 enters gave the same result as 1 so I guess I just left it!


    Quote Originally Posted by irneb View Post
    It's strange, but in my Vanilla 2011 both the PSelect and the Select commands work perfectly fine when I issue them manually. But the Select doesn't change the highlights when it's issued from a macro (only the PSelect does that).
    The default button in LT issues the PSELECT command (as opposed to SELECT), but when I type it in command line or use it in a custom macro, LT returns "Unknown Command". It seems that if the PSELECT command worked in LT then problem would be solved. But it does not, and as you say, SELECT will not leave it highlighted.

    Quote Originally Posted by irneb View Post
    Perhaps you could use a script file to run the select command through your macro?
    A script is an interesting idea. I have only used scripts to open and plot jobs on mass, usually calling AutoCAD to open and close each time. I have never called one from within a macro. Is it likely to be able to leave a selection set "selected" so to manually make changes to its properties before escaping the selection?

  2. #12
    Senior Member
    Computer Details
    YZ's Computer Details
    Operating System:
    Windows XP
    CPU:
    Intel Duo Core E6550 @ 2.33GHz
    RAM:
    1.98 GHz, 3.23GB RAM
    Graphics:
    Intel G33/31 Express Chipset Family
    Monitor:
    LG Flatron W2343T
    Discipline
    Surveying
    YZ's Discipline Details
    Occupation
    CAD Operator and Manager; Land Survey, Civil Design
    Discipline
    Surveying
    Details
    Topographic ground surveys for architects and engineers; Subdivisions in NSW; Civil Engineering Design.
    Using
    AutoCAD LT 2012
    Join Date
    Oct 2007
    Location
    Sydney
    Posts
    256

    Default Solution: Select in Macro now stays selected

    Registered forum members do not see this ad.

    I am not certain what changed, maybe my code improved, but more likely AutoCAD 2013 allowed this. In any case, this macro is in LT 2013 and the selection set stays selected after macro is finished, allowing editing on properties of selection directly.

    Code:
    ^C^C'-LAYER;LOCK;*;UNLOCK;PT_HEIGHT*,RL_*;;_ai_selall;MOVE;0,0;0,0;SELECT;PREVIOUS;;

Similar Threads

  1. Create a Command to run macro from command line
    By Andresig in forum AutoLISP, Visual LISP & DCL
    Replies: 7
    Last Post: 16th Sep 2010, 09:16 pm
  2. Macro run from command line
    By iztok13 in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 10th Sep 2009, 10:35 am
  3. macro to scale selected object at point of selection
    By chelsea1307 in forum AutoLISP, Visual LISP & DCL
    Replies: 10
    Last Post: 25th Jun 2009, 11:57 pm
  4. run macro from command line
    By comcu in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 27th Nov 2008, 12:28 am
  5. macro to select all somethings?
    By swazi.71 in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 10
    Last Post: 9th Jul 2008, 12:25 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts