Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Dynamic Block With Attributes and Text Using an IF

  1. #1
    Active Member
    Join Date
    2001-12
    Location
    Pittsburgh, PA
    Posts
    72
    Login to Give a bone
    0

    Default Dynamic Block With Attributes and Text Using an IF

    Hello. Not sure if this is the right forum. I was wondering if it's possible to link text (or something) with an attribute?

    Scenario is I have a dynamic block with attributes. The attributes may rearrange depending on orientation, but will always be similar in matches. Meaning "A" will be "1", "B" is "2", and so on. My thought is acting like an IF statement, it this attribute equals "A", then this will be "1". That way I would only have to change half of the text. Not sure if both items have to be attributes or if one is a field or something.

    Any thought? I hope that explains it clearly.

    Thanks for your help.

    Paul

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,409
    Login to Give a bone
    0

    Default Re: Dynamic Block With Attributes and Text Using an IF

    You might want to attach a copy of the block to this thread. It's a little confusing what you want to do.
    C:> ED WORKING....


    LinkedIn

  3. #3
    I could stop if I wanted to
    Join Date
    2015-10
    Location
    Central New Jersey
    Posts
    439
    Login to Give a bone
    0

    Default Re: Dynamic Block With Attributes and Text Using an IF

    I don't quite understand either. Although it sounds like attributes with fields as their default values and a Block Table or a LookUp may be your solution.

  4. #4
    Active Member
    Join Date
    2001-12
    Location
    Pittsburgh, PA
    Posts
    72
    Login to Give a bone
    0

    Default Re: Dynamic Block With Attributes and Text Using an IF

    I was afraid of that. I figured it wouldn't make sense. Since I attached the file I will use that to better explain.

    With this block the different phases are shown. VA will always be associated with termination point 4, VB with 5, VC with 6, & VN with 3. Currently I have attributes for each of the items of text. What I was trying to do is sometimes the order of these will be different. So I would like to modify VA, VB, VC, & VN and the numbers would change accordingly. This way this would help eliminate possible mistakes by typing the numbers wrong.

    With that said, is there a way to link those together? Do the numbers have to stay as attributes, would they become fields, or is this even possible?

    I hope this helps the explanation better. Thanks again.
    Attached Images Attached Images
    Attached Files Attached Files

  5. #5
    I could stop if I wanted to
    Join Date
    2015-10
    Location
    Central New Jersey
    Posts
    439
    Login to Give a bone
    0

    Default Re: Dynamic Block With Attributes and Text Using an IF

    The attached show one possible way to do it. It uses two Lookup parameters and one Lookup action. One parameter is driven by the action of the other. The driving parameter has its grip visible the other does not. The two attributes have field associated to the values of the two Lookup parameters.

    I only did it for two of the terminals and only for one of the arrangements.


    If the terminal values follow a sequence or only in certain arraignments it may be easier to accomplish this in a block table where you can make one selection to supply all the attribute values.
    Attached Files Attached Files

  6. #6
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,409
    Login to Give a bone
    0

    Default Re: Dynamic Block With Attributes and Text Using an IF

    For your different visibility states, will ABCN always be in the same order for that state? If so, just use multiple text entities for each visibility state.
    C:> ED WORKING....


    LinkedIn

  7. #7
    Active Member
    Join Date
    2001-12
    Location
    Pittsburgh, PA
    Posts
    72
    Login to Give a bone
    0

    Default Re: Dynamic Block With Attributes and Text Using an IF

    Quote Originally Posted by MMccall View Post
    The attached show one possible way to do it. It uses two Lookup parameters and one Lookup action. One parameter is driven by the action of the other. The driving parameter has its grip visible the other does not. The two attributes have field associated to the values of the two Lookup parameters.

    I only did it for two of the terminals and only for one of the arrangements.

    If the terminal values follow a sequence or only in certain arraignments it may be easier to accomplish this in a block table where you can make one selection to supply all the attribute values.
    MMccall,

    Thanks. That was interesting. That's not what I was expecting, but it does accomplish what I wanted. The only thing I don't like about it is not seeing the updates as I'm making the changes and having to regen to see the updates. It seems to be adding a step or two to the process. I'm envisioning some mistakes from other users as this is not the normal way of modifying text in blocks as we're used to doing. I'm sure there would be someone modifying the attributes as normal which would negate the lookup parameters.

    I will finish what you started though as I've never used lookup before. Maybe once it's complete I'll feel it and it'll make more sense to me.

    Thanks for the block and you're time. Appreciate it.

    Quote Originally Posted by Ed Jobe View Post
    For your different visibility states, will ABCN always be in the same order for that state? If so, just use multiple text entities for each visibility state.
    Ed,

    Each state may be in different order, and not just reverse order either.

  8. #8
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,409
    Login to Give a bone
    0

    Default Re: Dynamic Block With Attributes and Text Using an IF

    I think I would just use more visibility states. e.g.
    Voltage-Left-ABCN
    Voltage-Left-NABC
    Voltage-Right-ABCN
    Voltage-Right-NABC
    etc.
    C:> ED WORKING....


    LinkedIn

  9. #9
    Active Member
    Join Date
    2001-12
    Location
    Pittsburgh, PA
    Posts
    72
    Login to Give a bone
    0

    Default Re: Dynamic Block With Attributes and Text Using an IF

    Quote Originally Posted by Ed Jobe View Post
    I think I would just use more visibility states. e.g.
    Voltage-Left-ABCN
    Voltage-Left-NABC
    Voltage-Right-ABCN
    Voltage-Right-NABC
    etc.
    Thanks. That could work too. Only problem is now going from 6 visibility states to over 20 to choose from because of the different combo possibilities. Although the two you listed are the most common, there may also be NCBA. The good thing with this way is the user doesn't have to worry about typing at all. Going to have to consider this way since this can work too.

    Thank you.

  10. #10
    I could stop if I wanted to
    Join Date
    2015-10
    Location
    Central New Jersey
    Posts
    439
    Login to Give a bone
    0

    Default Re: Dynamic Block With Attributes and Text Using an IF

    Here's another option using a block table to first make a selection for orientation and then branch out to selecting the order. I only built a portion of what the finished table would be. The contents of table could be built within the block editor or built in a spreadsheet and then pasted in.
    Attached Files Attached Files

Page 1 of 2 12 LastLast

Similar Threads

  1. Replies: 1
    Last Post: 2014-06-16, 07:54 PM
  2. Block with field attributes within a dynamic block conundrum
    By flash5238 in forum Dynamic Blocks - Technical
    Replies: 0
    Last Post: 2014-05-13, 07:51 PM
  3. link dynamic block parameters with block attributes
    By Wish List System in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2012-06-12, 06:38 PM
  4. Replies: 21
    Last Post: 2007-03-20, 02:03 PM
  5. Extract Dynamic Block Attributes, values change as Block changes
    By dave.buckberry in forum Dynamic Blocks - Technical
    Replies: 11
    Last Post: 2006-09-05, 04:38 PM

Posting Permissions

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