The Hurricane Forum
The Hurricane Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Hurricane for AutoCAD
 General Discussion
 select attributes by field
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

n/a
deleted



17 Posts

Posted - January 17 2005 :  12:40:04 PM  Show Profile  Visit n/a's Homepage  Reply with Quote
Hi everybody,
Here is my situation. I use a lisp program from our manufacturer to input cabinets with attributes, it draws the cabinets and inserts the model number with all the correct info for ordering in the attribute. now the problem is that every attribute has the same name. (cabinfo)

What I want to be able to do is change the attributes of certain cabinets without doing it globally to all the cabinets in the drawing
I can't change by using a find and replace because I need to select the certain cabinets.

Example: I have 3 wall cabinets 12" deep 1 (W0100), 1 (W0120)& 1 (W0110).

I need the model(W0100) to be 18" deep globally throughout a whole set of lets say a hundred sheets. the attributes look something like this

Block-cabinfo

tag prompt value
model W0100
height 30
depth 12
width 36
room A136
elev 24A

If I could select the cabinets by the model number (W0100) that
would really help. Let me know if anybody knows of a good way to do this



never give up never surrender

n/a
deleted

112 Posts

Posted - January 17 2005 :  2:37:18 PM  Show Profile  Reply with Quote
Let's try zipping it up. My lisp file looked okay, so it must be forum rules. (I couldn't download it from the post, either.)

Download Attachment: Select by Attribute Value.zip
1.15 KB

Steve Bubendorf
Go to Top of Page

Miksteele
Hurricane-Extreme User

USA
216 Posts

Posted - January 17 2005 :  2:44:44 PM  Show Profile  Visit Miksteele's Homepage  Reply with Quote
Thanks! That worked

Mike Fischer
Fischer Design Group, LLC
Building Model Coordination - Steel Detailing - Connection Design
www.FischerDesignGroup.com
Go to Top of Page

n/a
deleted



17 Posts

Posted - January 18 2005 :  09:44:31 AM  Show Profile  Visit n/a's Homepage  Reply with Quote
hey sbubendorf,
thanks for the lisp, it looks like its something I could use for my problem but I can't seem to get the lisp to run. I load it into my drawing and it loads fine but it won't run(getblock). It tells me (there are two few arguments) I don't know a whole lot about lisp so maybe somewhere there is a parenthesy missing or maybe I need to change the name let me know if you can see anything wrong with the lisp, or maybe its something I'm missing.

never give up never surrender
Go to Top of Page

Miksteele
Hurricane-Extreme User

USA
216 Posts

Posted - January 18 2005 :  09:57:20 AM  Show Profile  Visit Miksteele's Homepage  Reply with Quote
To start the program, type(GetBlock "YourBlockName" "YourAttributeName" "YourAttributeValue")

Here's my script:

(LOAD "Z:/HURRICANE/LISP/SELECT BY ATTRIBUTE VALUE.LSP")
;------
(GetBlock "SSS-TB" "CHK" "ADR")


Then depending on what you are doing, you need to add a SELECT command and PREVIOUS to grab the block you want.

Mike Fischer
Fischer Design Group, LLC
Building Model Coordination - Steel Detailing - Connection Design
www.FischerDesignGroup.com
Go to Top of Page

n/a
deleted



17 Posts

Posted - April 25 2005 :  08:08:26 AM  Show Profile  Visit n/a's Homepage  Reply with Quote
I can select all the blocks that I want and it comes out with how many I have selected. But when I do select, and previous it selects all the objects. Its so close to exactly what I was looking for if I can just get it to select previous only the ones that I wanted. Let me know what I can do to get this to work for me. Thanks.

never give up never surrender
Go to Top of Page

n/a
deleted

112 Posts

Posted - April 25 2005 :  10:16:25 AM  Show Profile  Reply with Quote
GERMANC,
I believe I got the lisp routine from the forum listed in my original post. I had not actually run the routine until now. As it is written, it only selects the blocks that contain the attributes with the desired attribute value. If you post to the original forum, you may be able to find someone to help you rather quickly. I am sure that for the geniuses there, it is a simple fix to adapt it to what you need specifically.

I think that I can probably get it modified, as well. I don't dare spend any more "company" time on it right now, though. I will put it near the top of my list, however, and see if I can modify it for you at some future time. (No promises, since blocks and attributes are a little more difficult to work with in Lisp than lines and circles, etc., and I am far from good at this stuff).

In the mean time, if you do get a workable response from the other forum, could you please post here, so that I know that you got what you needed? THANKS !!

Steve Bubendorf
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Hurricane Forum © 2009 - 2021 Go To Top Of Page
This page was generated in 0.38 seconds. Snitz Forums 2000