See the top rated post in this thread. Click here

Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Dynamic block with attributes that display X, Y, and Z values

  1. #1
    Member sammyz28's Avatar
    Join Date
    2006-02
    Posts
    18
    Login to Give a bone
    0

    Default Dynamic block with attributes that display X, Y, and Z values

    How do I create a dynamic block with an attribute that will display the X, Y, and Z values of where ever it has been placed?

  2. #2
    I could stop if I wanted to Ogre's Avatar
    Join Date
    2005-06
    Location
    In the end, Cauliflower is just albino Broccoli
    Posts
    288
    Login to Give a bone
    1

    Default Re: Dynamic block with attributes that display X, Y, and Z values

    Here is something quick...You can use a field inside the attribute...Unfortunately, you have to regen if you move it to get the position back...I hope this helps...

  3. #3
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,656
    Login to Give a bone
    0

    Default Re: Dynamic block with attributes that display X, Y, and Z values

    Hi "sammyz28"

    Please note I have *moved* this thread from the AutoCAD Customization forum to this one, as I feel this particular forum is a more appropriate place for such a topic.

    Thanks, Mike

    Forum Manager

  4. #4
    Member sammyz28's Avatar
    Join Date
    2006-02
    Posts
    18
    Login to Give a bone
    0

    Default Re: Dynamic block with attributes that display X, Y, and Z values

    Quote Originally Posted by Ogre
    Here is something quick...You can use a field inside the attribute...Unfortunately, you have to regen if you move it to get the position back...I hope this helps...

    Thank you so much sir, that is exactly what I was looking for. Could you explain how you set up the field?
    Last edited by sammyz28; 2007-06-11 at 08:03 PM.

  5. #5
    Retired Forum Staff Rico's Avatar
    Join Date
    2005-06
    Location
    In the hospital cuz of my fever for more cowbell
    Posts
    1,828
    Login to Give a bone
    1

    Default Re: Dynamic block with attributes that display X, Y, and Z values

    Quote Originally Posted by sammyz28
    Thank you so much sir, that is exactly what I was looking for. Could you explain how you set up the field?
    You create your attribute and right-click the "default" value in the edit attribute definition screen.

    Select Insert Field.

    In the field category, select "Objects". Now goto the field names and select "Block Place Holder"

    In the Block Reference Property column, look down till you see "Position" and select that.

    And that pretty well does it.

    Just be sure to note that the block right now is set to note your insertion point. If you want the POSITION that the block tracks to be different, then make sure that THAT point is set to 0,0,0 insertion.

    You may need a base point parameter as well, so be aware of that too.
    Attached Images Attached Images
    [SIGPIC][/SIGPIC]
    Return of the Cowbell

  6. #6
    Member sammyz28's Avatar
    Join Date
    2006-02
    Posts
    18
    Login to Give a bone
    0

    Default Re: Dynamic block with attributes that display X, Y, and Z values

    Here is what I have so far. I have a basic symbol for the core boring. I have an attribute above the symbol to call out the boring and underneath I have the X Y Z values. I am pleased so far, but It can be better. Every time I insert the block I have to press enter for for the X Y Z values. Is there a way to make it so that the info gets inserted with out having to press enter all those times?
    Attached Files Attached Files

  7. #7
    I could stop if I wanted to Ogre's Avatar
    Join Date
    2005-06
    Location
    In the end, Cauliflower is just albino Broccoli
    Posts
    288
    Login to Give a bone
    0

    Default Re: Dynamic block with attributes that display X, Y, and Z values

    Quote Originally Posted by sammyz28
    Here is what I have so far. I have a basic symbol for the core boring. I have an attribute above the symbol to call out the boring and underneath I have the X Y Z values. I am pleased so far, but It can be better. Every time I insert the block I have to press enter for for the X Y Z values. Is there a way to make it so that the info gets inserted with out having to press enter all those times?
    Check the "Constant" check box in the ATTDEF dialog box...This way all you have to do is REGEN to get the coordinates...

  8. #8
    I could stop if I wanted to Ogre's Avatar
    Join Date
    2005-06
    Location
    In the end, Cauliflower is just albino Broccoli
    Posts
    288
    Login to Give a bone
    0

    Default Re: Dynamic block with attributes that display X, Y, and Z values

    Quote Originally Posted by Ogre
    Check the "Constant" check box in the ATTDEF dialog box...This way all you have to do is REGEN to get the coordinates...
    Sorry...It needs to be "Preset" not "Constant"...

    Here is the revised block...

  9. #9
    Retired Forum Staff Rico's Avatar
    Join Date
    2005-06
    Location
    In the hospital cuz of my fever for more cowbell
    Posts
    1,828
    Login to Give a bone
    0

    Default Re: Dynamic block with attributes that display X, Y, and Z values

    Quote Originally Posted by sammyz28
    Here is what I have so far. I have a basic symbol for the core boring. I have an attribute above the symbol to call out the boring and underneath I have the X Y Z values. I am pleased so far, but It can be better. Every time I insert the block I have to press enter for for the X Y Z values. Is there a way to make it so that the info gets inserted with out having to press enter all those times?
    By "Enter" I assume you mean regen?

    I don't think there's any way of changing this. The system variable FIELDEVAL only updates the fields upon opening a drawing, closing a drawing, saving a drawing, plotting a drawing, e-transmitting a drawing and regenerating a drawing.

    I have not seen an "update upon move" option.
    [SIGPIC][/SIGPIC]
    Return of the Cowbell

  10. #10
    Retired Forum Staff Rico's Avatar
    Join Date
    2005-06
    Location
    In the hospital cuz of my fever for more cowbell
    Posts
    1,828
    Login to Give a bone
    0

    Default Re: Dynamic block with attributes that display X, Y, and Z values

    Quote Originally Posted by sammyz28
    Here is what I have so far. I have a basic symbol for the core boring. I have an attribute above the symbol to call out the boring and underneath I have the X Y Z values. I am pleased so far, but It can be better. Every time I insert the block I have to press enter for for the X Y Z values. Is there a way to make it so that the info gets inserted with out having to press enter all those times?
    It's possible that you mean "Enter" upon insertion. And the answer there too is "no". You have to press enter and acknowledge that you are inserting and not changing the fields. After doing this, the block will insert and be set to whatever insertion point you told it to.
    [SIGPIC][/SIGPIC]
    Return of the Cowbell

Page 1 of 3 123 LastLast

Similar Threads

  1. Getting Block Attributes/Values (for dummies)
    By stusic in forum AutoLISP
    Replies: 7
    Last Post: 2012-09-22, 03:56 PM
  2. Assign Attributes & Block to Values
    By asma.waqar in forum AutoCAD General
    Replies: 0
    Last Post: 2011-02-15, 06:21 PM
  3. Replies: 10
    Last Post: 2008-03-06, 12:49 AM
  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
  •