Community
Dynamic Blocks Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

field with a block's elevation

19 REPLIES 19
Reply
Message 1 of 20
Anonymous
1981 Views, 19 Replies

field with a block's elevation

how can i have an mtext field in a block the reads the elevation (z) of the block's insertion point ?

what i have now only works if the block is exploded.

--
"What can I do to get in the way and slow things down?" - Mike Rowe
19 REPLIES 19
Message 2 of 20
hwalker
in reply to: Anonymous

The following is copied from http://www.cadforum.cz/cadforum_en/qaID.asp?tip=3676

  • %<\AcObjProp Object(%<\_ObjId 2130022304>%).Coordinates \f "%pt2">%
    - displays Y-coordinate of the selected POINT object
  • %<\AcObjProp Object(%<\_ObjId 2130022304>%).Coordinates \f "%pt4%ct8[0.001]">%
    - displays in the [mm] Z-coordinate of the selected object (divides by 1000)
    - for block attributes: in the BEDIT mode, add a preset attribute a set its value to (Y-coord, A2007):
    %<\AcObjProp.16.2 Object(?BlockRefId,1).InsertionPoint \f "%pt2%.30q0%ct8[0.001]">%
  • Howard Walker
    Did you find this post helpful? Feel free to Like this post.
    Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

    EESignature


    Left Handed and Proud

    Message 3 of 20
    Anonymous
    in reply to: Anonymous

    Hi Doug, long time nor here
    Do you have to use mtext? an attribute definition allows you to use the
    "BlockPlaceHolder" field that enables you to select the position attribute &
    z value

    Joe
    Message 4 of 20
    Anonymous
    in reply to: Anonymous

    hiya joe,

    i'm using 2008 and need to mask the text using background mtextmasking.

    i can't do that with attributes, unless i bury a blank line of mtext (about the right size) under the attribute. that works, but of
    course the mask won't resize to the attribute value.


    "Joe Bouza" wrote in message news:6316664@discussion.autodesk.com...
    Hi Doug, long time nor here
    Do you have to use mtext? an attribute definition allows you to use the
    "BlockPlaceHolder" field that enables you to select the position attribute &
    z value

    Joe
    Message 5 of 20
    Anonymous
    in reply to: Anonymous


    i reckoned a diesel expression might do
    it.

     

    i have concerns about how it gets updated with
    multiple insertions of the block at various elevations.

     

    i will give this a try and see what
    happens.


    style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
    The
    following is copied from
    http://www.cadforum.cz/cadforum_en/qaID.asp?tip=3676


  • %<\AcObjProp Object(%<\_ObjId 2130022304>%).Coordinates
    \f "%pt2">%
    - displays Y-coordinate of the selected POINT object

  • %<\AcObjProp Object(%<\_ObjId 2130022304>%).Coordinates
    \f "%pt4%ct8[0.001]">%
    - displays in the [mm] Z-coordinate of the
    selected object (divides by 1000)
    - for block attributes: in the BEDIT
    mode, add a preset attribute a set its value to (Y-coord,
    A2007):
    %<\AcObjProp.16.2 Object(?BlockRefId,1).InsertionPoint \f
    "%pt2%.30q0%ct8[0.001]">%
  • Message 6 of 20
    Anonymous
    in reply to: Anonymous


    nope. can't get it to work.


    style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
    dir=ltr>


    i reckoned a diesel expression might do
    it.

     

    i have concerns about how it gets updated with
    multiple insertions of the block at various elevations.

     

    i will give this a try and see what
    happens.


    style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
    The
    following is copied from
    http://www.cadforum.cz/cadforum_en/qaID.asp?tip=3676


  • %<\AcObjProp Object(%<\_ObjId
    2130022304>%).Coordinates \f "%pt2">%
    - displays
    Y-coordinate of the selected POINT object

  • %<\AcObjProp Object(%<\_ObjId
    2130022304>%).Coordinates \f "%pt4%ct8[0.001]">%
    -
    displays in the [mm] Z-coordinate of the selected object (divides by
    1000)
    - for block attributes: in the BEDIT mode, add a preset attribute a
    set its value to (Y-coord, A2007):
    %<\AcObjProp.16.2
    Object(?BlockRefId,1).InsertionPoint \f "%pt2%.30q0%ct8[0.001]">%
  • Message 7 of 20
    Anonymous
    in reply to: Anonymous

    hmm, that doesn't work anyhow.

    all i get is "insertion point" for the attribute value.

    "DougK" wrote in message news:6316670@discussion.autodesk.com...

    "Joe Bouza" wrote in message news:6316664@discussion.autodesk.com...
    Hi Doug, long time nor here
    Do you have to use mtext? an attribute definition allows you to use the
    "BlockPlaceHolder" field that enables you to select the position attribute &
    z value

    Joe
    Message 8 of 20
    Anonymous
    in reply to: Anonymous

    oops nevermind, i forgot to make it preset.

    but i'm back to having to "manually" mask the value.

    "DougK" wrote in message news:6316708@discussion.autodesk.com...
    all i get is "insertion point" for the attribute value.
    Message 9 of 20
    hwalker
    in reply to: Anonymous

    The numbers are a block called test. The attributes are multiline text with background mask on, and I bought them to the front of the drawing. Is that what you wanted?

    Howard Walker
    Did you find this post helpful? Feel free to Like this post.
    Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

    EESignature


    Left Handed and Proud

    Message 10 of 20
    Anonymous
    in reply to: Anonymous

    multiline attributes fail to mask (or always display properly) on my 2008 LDT version.

    far as i know, that was one of those bugs they decided not to fix until a release or two later.

    i really wish i could them to upgrade past 2008 here, but the surveyors refuse to budge.

    wrote in message news:6316803@discussion.autodesk.com...
    The numbers are a block called test. The attributes are multiline text with background mask on, and I bought them to the front of
    the drawing. Is that what you wanted?
    Message 11 of 20
    Anonymous
    in reply to: Anonymous

    here is what i have so far.

    the mtext field matches the z insertion of the block, and can be stretched along with a "leader" to any position.

    i "fake" the attribute masking by having a line of mtext underneath that is just spaces with background masking.

    it works, but its clunky. i would prefer not to have the fake mask, but its needed to crop the leader line.

    maybe there is a way to make the leader, so it doesn't need a mask ?

    "DougK" wrote in message news:6316287@discussion.autodesk.com...
    how can i have an mtext field in a block the reads the elevation (z) of the block's insertion point ?

    what i have now only works if the block is exploded.

    --
    "What can I do to get in the way and slow things down?" - Mike Rowe
    Message 12 of 20
    Anonymous
    in reply to: Anonymous

    dang forgot to attach.

    "DougK" wrote in message news:6316900@discussion.autodesk.com...
    here is what i have so far.

    the mtext field matches the z insertion of the block, and can be stretched along with a "leader" to any position.

    i "fake" the attribute masking by having a line of mtext underneath that is just spaces with background masking.

    it works, but its clunky. i would prefer not to have the fake mask, but its needed to crop the leader line.

    maybe there is a way to make the leader, so it doesn't need a mask ?

    "DougK" wrote in message news:6316287@discussion.autodesk.com...
    how can i have an mtext field in a block the reads the elevation (z) of the block's insertion point ?

    what i have now only works if the block is exploded.

    --
    "What can I do to get in the way and slow things down?" - Mike Rowe
    Message 13 of 20
    Anonymous
    in reply to: Anonymous

    I don't know if this ugly work-around is for you but is does work:

    make the MTEXT separate from the block, add an object field to the mtext,
    select the block >> insert >> z

    Now you can copy that around and change the elevation of the block

    Joe
    Message 14 of 20
    Anonymous
    in reply to: Anonymous

    if i'm gonna kludge it, i'll just use what i made today (using attributes).

    see attached. please let me know if you see any way to improve it.

    now i gotta work on a routine to automate its insertion.

    thanks!

    "Joe Bouza" wrote in message news:6316978@discussion.autodesk.com...
    I don't know if this ugly work-around is for you but is does work:

    make the MTEXT separate from the block, add an object field to the mtext,
    select the block >> insert >> z

    Now you can copy that around and change the elevation of the block

    Joe
    Message 15 of 20
    Anonymous
    in reply to: Anonymous

    Looks good to me. You may want to set the attribute to preset to avoid users
    entering an elevation in the field.

    You can get fancy with some lookup tables and vis state if you wnat to add
    more than one type of marker but that would only be gravy.

    Joe
    Message 16 of 20
    Anonymous
    in reply to: Anonymous

    i'm gonna try that again.

    i did that once, and it seemed to break it.

    maybe i did something else wrong.

    "Joe Bouza" wrote in message news:6317383@discussion.autodesk.com...
    Looks good to me. You may want to set the attribute to preset to avoid users
    entering an elevation in the field.
    Message 17 of 20
    Anonymous
    in reply to: Anonymous

    ahh, that prevents a user override at insertion

    but it doesn't stop somebody from changing it later, via attedit, breaking the link.

    any ideas on how to lock the attribute?

    "DougK" wrote in message news:6317429@discussion.autodesk.com...
    i'm gonna try that again.

    i did that once, and it seemed to break it.

    maybe i did something else wrong.

    "Joe Bouza" wrote in message news:6317383@discussion.autodesk.com...
    Looks good to me. You may want to set the attribute to preset to avoid users
    entering an elevation in the field.
    Message 18 of 20
    Anonymous
    in reply to: Anonymous

    ideally, changing the attribute value would also change the block's elevation

    but that level of programming is beyond me.

    it would prolly need some kind of reactor.

    "DougK" wrote in message news:6317435@discussion.autodesk.com...
    any ideas on how to lock the attribute?
    Message 19 of 20
    Anonymous
    in reply to: Anonymous

    been in the field all day.

    Yes Ideally that would be great - No civil, LDT et to do this for you?
    I know of no way to lock the attribute from user override. However, if you
    keep the field background display on users should know better ... you can
    threaten their existence if the background is gone after there editing
    session

    Joe
    Message 20 of 20
    Anonymous
    in reply to: Anonymous

    we use more complex symbols than LDT can offer.

    and i am forbidden to upgrade to civil yet.

    i like the field background display idea; i normally have it off, but could use it for checking.

    "Joe Bouza" wrote in message news:6317880@discussion.autodesk.com...
    Yes Ideally that would be great - No civil, LDT et to do this for you?
    I know of no way to lock the attribute from user override. However, if you
    keep the field background display on users should know better ... you can
    threaten their existence if the background is gone after there editing
    session

    Joe

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

    Post to forums  

    ”Boost

     

    ”Tips

     

    ”Services