Non-uniform blocks

Discussion in 'AutoCAD' started by strawberry, Aug 10, 2008.

  1. strawberry

    strawberry Guest

    I use the following macro to 'flatten' 2D drawings (I find it less
    destructive than the built in routine):

    ^C^Cm;all;;0,0,0;0,0,-10E99;^C^Cm;all;;0,0,-10E99;0,0,0;

    It works very well, placing block insertion points as well as all
    other objects (except objects within blocks) on z=0.

    However, it also reduces the z-scale of blocks to 0. This is bad
    because then the blocks are non-uniformly scaled and cannot therefore
    be edited without their properties first being manually altered to z=1
    (or whatever).

    Is there an obvious solution to this problem?
     
    strawberry, Aug 10, 2008
    #1
  2. strawberry

    Guest Guest

    2D drawings flattend for what use? Flatshot command?

    Bob
     
    Guest, Aug 10, 2008
    #2
  3. strawberry

    strawberry Guest

    Sometimes, either when working with a combination of 3D and 2D data in
    one drawing or when using 3d survey data, polylines can end up on
    something other than z=0. I use this routine to correct that. In
    ACAD2008, this has the unfortunate side effect of changing the z-scale
    of blocks to z=0 as well. I'd just like to avoid that.
     
    strawberry, Aug 12, 2008
    #3
  4. strawberry

    per.corell Guest

    I guess there are no other way, than to explode the blocks and before
    that, save the block's sale factor. A block inserted at Z=0 can
    contain entities on various Z . I came around that problem by using
    the entity scale factor cought by Entget --- The block entity contain
    that information, and it is possible to store that list , say (1.2.3)
    meaning a xyz scale factor of one for the x 2 for the Y and 3 for the
    Z, then Mapcar * that with the point information you can take from
    each subentity after it is exploded , and that way insert each entity,
    as a new one but with the block scale factor.
    ----- A sort of explode nessery in case a block contained several
    uneven scaled entities, that othervise was just exploded into the
    original 1.1.1 scale factor.
     
    per.corell, Aug 21, 2008
    #4
  5. strawberry

    strawberry Guest

    Per, very involved answer. Not sure how it pertains to my problem
    however!

    That aside, I should add that the behaviour I've described is
    different to that of previous versions of AutoCAD (at least as far as
    I can remember). In other words if I used that same macro in an older
    version of AutoCAD, it would retain the block's z-scale factor.
     
    strawberry, Sep 3, 2008
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.