Results 1 to 4 of 4

Thread: Fix Block comparison

  1. #1
    Active Member limartin's Avatar
    Join Date
    2002-02
    Location
    Back in the Biz in NYC
    Posts
    66

    Default Fix Block comparison

    I know I am coming late to the party, but I am trying to tweak our background processing routine and came across SETBYLAYER. My ignorance of its existence aside, can anyone enlighten me as to how this works better than the Fixblock.lsp from Manusoft?

    The company has been using Fixblock since before I came here, but lately the Manusoft lisp has been failing to convert certain block entities to by layer or by block, but Setbylayer has no problem. I want to change our routine, but I need some language to convince the company that this is the way to go. "Change is bad. We fear change."
    In order that people may be happy in their work, these three things are needed: they must be fit for it; they must not do too much of it; and they must have a sense of success in it. -John Ruskin, author, art critic, and social reformer (1819-1900)

  2. #2
    Certifiable AUGI Addict irneb's Avatar
    Join Date
    2007-07
    Location
    Jo'burg SA
    Posts
    4,344

    Default Re: Fix Block comparison

    Fixblock does a bit more than setbylayer, it also changes the layer of the entities inside the block to "0". Setbylayer only changes the colour, linetype, lineweight, material & plotstyle - leaves the layer(s) as is. However, fixblock only changes the colour, not linetype / lineweight.

    A few points I can see where the fixblock routine will give troubles:
    • Annotative text will get strange sizes, as the fixblock uses entget, subst, assoc & entmod. It should rather use the vla functions, or generate only the ename & changed codes to pass to entmod.
    • Dynamic blocks will be destroyed because it works on the unnamed block "name" if a changed DB is selected. This breaks the block's dynamic parameters and effectively unlinks it from its original. It should rather use the EffectiveName to obtain the block definition.
    • There's some stuff which could be optimized to make fixblock run faster as well (e.g. rather than use the member function to check if the block's been fixed already, the vl-position function does the same in a lot less time). Not sure how setbylayer does it, as it's an ARX application - which in itself should run faster in any event.
    Lots of things have changed in ACad (especially since 2006, 2008 & 2010) like DB's, Annotation Scales & Constraints. These all have new ways of dealing with them, but also makes for new problems which weren't an issue when fixblock was originally written.

    I'd actually say neither fixblock, nor setbylayer is "good enough". They don't do everything I'd want them to. For me I'd rather write my own routine to perform exactly what I need.
    Knowledge is proportional to experience, but wisdom is inversely proportional to ego!
    My little bit of "wisdom": Hind-sight is useless, unless used to improve the next forethought!

  3. #3
    Active Member limartin's Avatar
    Join Date
    2002-02
    Location
    Back in the Biz in NYC
    Posts
    66

    Default Re: Fix Block comparison

    Thanks for the response. I am seeing that "setbylayer" can do a little too much, so I had to set it to adjust 'color' only so that certain linetypes and other properties were not reset as well.

    I wish I could write my own routine, but I am merely a neophyte in LISP and haven't the tools to craft my own as yet.
    In order that people may be happy in their work, these three things are needed: they must be fit for it; they must not do too much of it; and they must have a sense of success in it. -John Ruskin, author, art critic, and social reformer (1819-1900)

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: Fix Block comparison

    Quote Originally Posted by limartin View Post
    I wish I could write my own routine, but I am merely a neophyte in LISP and haven't the tools to craft my own as yet.
    Don't be so hard on yourself. Writing a routine is easy. You probably already know all of the steps needed to do most tasks.

    Write those steps down in plain language (non-code). Then you just have to find out what code does any portion of that step.

    And then for the steps you are not sure of, you can either search (preferable) for a possible solution or post a new question for clarification.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

Similar Threads

  1. SHX TO TTF CONVERSION/COMPARISON
    By FOUTJM in forum Revit Structure - General
    Replies: 1
    Last Post: 2009-02-18, 08:14 PM
  2. New PC comparison
    By DoTheBIM in forum Revit - Hardware & Operating Systems
    Replies: 11
    Last Post: 2008-07-30, 02:13 PM
  3. CAD Standards Comparison
    By rcroke in forum CAD Standards
    Replies: 8
    Last Post: 2007-04-05, 01:06 AM
  4. Cut and fill comparison
    By craighowie in forum Revit Architecture - General
    Replies: 1
    Last Post: 2006-02-22, 12:47 PM
  5. Plotter comparison
    By caduser in forum AutoCAD Plotting
    Replies: 2
    Last Post: 2005-02-16, 01:22 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
  •