Author Topic: QSelect in a Script?  (Read 3816 times)

0 Members and 1 Guest are viewing this topic.

craigr

  • Guest
QSelect in a Script?
« on: April 14, 2014, 11:54:21 AM »
I need to select a single block in many dwgs and wish to select it in a script.

I know how to do it with QSelect, but -QSelect is not available.

This is a block Reference that has been left by using the delete layer command on these dwgs. It DID erase the layer but left the Block Reference. - I wish to 'clean' these dwgs of this reference.

Is there a way to select it in a script?

craigr

huiz

  • Swamp Rat
  • Posts: 917
  • Certified Prof C3D
Re: QSelect in a Script?
« Reply #1 on: April 14, 2014, 01:31:07 PM »
You can use SSX.
The conclusion is justified that the initialization of the development of critical subsystem optimizes the probability of success to the development of the technical behavior over a given period.

craigr

  • Guest
Re: QSelect in a Script?
« Reply #2 on: April 14, 2014, 01:51:59 PM »
Sadly, I am using LT and that Command is not available.

I am still playing, trying to get rid of it. There HAS to be a way of doing it without purchasing thee add-ons for LT.

craigr

Crank

  • Water Moccasin
  • Posts: 1503
Re: QSelect in a Script?
« Reply #3 on: April 14, 2014, 02:02:42 PM »
ZOOM E
ERASE ALL REMOVE [select a crossing with all objects visible]
PURGE
Vault Professional 2023     +     AEC Collection

Crank

  • Water Moccasin
  • Posts: 1503
Re: QSelect in a Script?
« Reply #4 on: April 14, 2014, 02:06:19 PM »
or: redefine the block and use QSELECT
Vault Professional 2023     +     AEC Collection

craigr

  • Guest
Re: QSelect in a Script?
« Reply #5 on: April 14, 2014, 02:10:58 PM »
I know how to do this individually, but I would like to write a script and run it on my Batch program so it can whip thru 100+ dwgs at a time. - This is why I cannot use the QSelect option. There is no what to suppress the menu from popping up.

In other words, I need to find a way to do it using only my keyboard.  Many commands, you can put a - sign in front of a command and it will suppress the menu from popping up and simply give the options on the command line. This is how I have written MANY Scripts to do what I want. Unfortunately, the QSelect command is one of those that will not work this way.

Crank

  • Water Moccasin
  • Posts: 1503
Re: QSelect in a Script?
« Reply #6 on: April 14, 2014, 04:07:43 PM »
Craigr, I don't know if it's worth all the trouble, but you could use SELECTSIMILAR:
  • PICKFIRST 1
  • <redefine the block>
  • <insert a new copy of the block>
  • SELECTSIMILAR;L;;
  • ERASE;;
Vault Professional 2023     +     AEC Collection

craigr

  • Guest
Re: QSelect in a Script?
« Reply #7 on: April 14, 2014, 04:14:45 PM »
Well, this is what I ended up with and it appears to be working fine. I just ran it on 123 dwgs and it appears to have done the trick to all 123.

-insert
done
7.4,5.4



line
-100000,-100000
@1000<45

-block
done
yes
0,0
last

zoom
extents
erase
-102000,-102000
-10000,-10000

zoom
extents
-purge
all

no
Revdate
save


Perhaps it may help someone else that has the same problem.

Thanks for all of the replies