• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Visual LISP, AutoLISP and General Customization

    Reply
    Active Contributor
    Posts: 35
    Registered: ‎12-19-2007

    Make Block

    99 Views, 3 Replies
    11-08-2011 07:13 AM

    I would like to make a block with Entmake.

    This works fine with me, but how do I give my block the properties AlowExplode, Annotative, ScaleUniformly and InsUnits ?

     

    w.k.r.

    JC

     

    Please use plain text.
    Valued Mentor
    Posts: 308
    Registered: ‎12-29-2009

    Re: Make Block

    11-08-2011 07:21 AM in reply to: jcartigny

    These are stored in the BLOCK_RECORD Entity, to my knowledge, you will need to entmake the BLOCK entity, its contents, then the ENDBLK entity, then modify the corresponding BLOCK_RECORD entity.

     

    Here is an example of setting the InsUnits for a block created using entmake.

     

     

    Lee Mac Programming
    With Mathematics there is the possibility of perfect rigour, so why settle for less?
    Just another Swamper
    Please use plain text.
    Active Contributor
    Posts: 35
    Registered: ‎12-19-2007

    Re: Make Block

    11-08-2011 08:47 AM in reply to: jcartigny

    Thanks,

     

    This works fine with InsUnits (dxf 70) AllowExplode (dxf 280) and ScaleUniformly (dxf 281).

     

    Does anyone know how to make an existing block annotative with lisp ?

     

    w.k.r.

    JC

    Please use plain text.
    Valued Mentor
    Posts: 299
    Registered: ‎11-26-2007

    Re: Make Block

    11-08-2011 12:41 PM in reply to: jcartigny

    Extension Dictionaries.  That's pretty much all I know and I don't understand how they work enough to typically mess with them.  But that's what an annotative block has that regular ones don't.

     

    ---sig---------------------------------------
    '(83 104 110 101 117 112 104 64 71 109 97 105 108 46 99 111 109)
    Please use plain text.