Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Autocad LT 2013 Qick Select

13 REPLIES 13
Reply
Message 1 of 14
marekcross
503 Views, 13 Replies

Autocad LT 2013 Qick Select

Hello,
I'm trying to find the quantities of blocks on drawing. I used "quick select" command - select by Block Reference. My blocks have some customer’s attributes (for example type of block) which I couldn't find on block reference list. Is any solution to find the quantities of blocks by Type? Please find PDF attachment for snapshots….

13 REPLIES 13
Message 2 of 14
pendean
in reply to: marekcross

"type" is an attribute in the block, so you will not find a "type' selection since that attribute was defined and added by the block creator. Think of it as an after production sticky note or label someone added.

There is no 'find an attribute definition inside a block' ability in QSELECT command. See this older post on the topic:
http://forums.autodesk.com/t5/AutoCAD-2010-2011-2012-DWG/Quick-select-by-attributes-content/td-p/335...

Try this tip (no LISP in LT, so ignore that option):
http://www.cadtutor.net/forum/archive/index.php/t-39947.html
Message 3 of 14
sthompson1021
in reply to: marekcross

Hi, I can't remember if LT has the FIND command, but if it does you can possibly use that you get your count. First use QSELECT to select your block name. Then with the blocks selected, use the FIND command. Put in the the attribute you want to find and replace with the same attribute. You will get a message saying how many were found and 0 changed. Hope this helps.  

Message 4 of 14
pendean
in reply to: sthompson1021

Nice tip 🙂
Message 5 of 14

Wonder if you could one click Macro your way into that?

Message 6 of 14

You'd need command-line versions of both QSELECT and FIND...and I don't think they exist.

--
Kate Morrical
Digital Design Manager, Washington DC
BIMmuse.com
Message 7 of 14

Hi Charles, try this one out,    ^c^c_.selectsimilar //_.find            (change the forward slashes to back slashes, the site kept telling invalid HTML) 

I used SELECTSIMILAR instead of QSELECT because it's a little quicker.

Message 8 of 14

In the Rich Text menu in this dialog there is a Clipboard with a C on it.

That should allow you to put code in this space with the slashes the correct way.

 ^c^c_.selectsimilar \\_.find

 

Did you mean to have the space after similar?

Message 9 of 14

Yes, that's the way I put it in and it worked. I'm not real familar with macros but reading the help, it said that a space was the same as spacebar. Of course it also says that you can't have a macro that accepts more than one input but it worked with the two backslashes.

 

A macro typically resumes after one user input, such as a single point location. Therefore, you cannot construct a macro that accepts a variable number of inputs (as in object selection) and then continues. However, an exception is made for the SELECT command; a backslash (\) suspends the command until object selection has been completed.

 

Message 10 of 14

Playing around with it a little more, I replaced the second backslash with a space and it worked without having to hit the spacebar after selecting the block.   ^c^c_.selectsimilar \ _.find

Message 11 of 14

For future macros, semi-colons also function as space/enter, and they're a lot easier to count.

 

^c^c_.selectsimilar;\ _.find;

 

Also, "variable number of inputs" is not the same as "more than one input" -- what it means is that you can only pick one object/selection at a time -- you can't keep clicking to select more objects unless you put in multiple backslashes...but then you have to keep clicking as many times as you're prompted.

--
Kate Morrical
Digital Design Manager, Washington DC
BIMmuse.com
Message 12 of 14
pendean
in reply to: sthompson1021

semi-colon instead of spaces is the 'pro' way to code macros and alot easier to count how many <enter> you have.
If you want total flexibility in selection (one or many) without pre-counting your clicks, explore starting your macro with SELECT command then using PREVIOUS in your command after that.

Hope the OP is willing to try your FIND tip this way.

Message 13 of 14

I asked because sometimes the Forum here will add a space to a Macro or piece of code that should not be there.

Message 14 of 14
marekcross
in reply to: sthompson1021

Thanks, that helped me very well.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost