Joe_Carrick

Members
  • Posts

    12040
  • Joined

  • Last visited

Posts posted by Joe_Carrick

  1. Mike,try this:

     

    case

      when is_double_door == "true"

        result = "2-D"+(width/2).round.to_s

      else

        result = "D"+width.round.to_s

    end

    result

     

    "if" doesn't work within a "case".  The proper syntax is "when"

     

    Of course for a 36" single door the above results in D36, not D30.  Likewise a pair of doors totalling 36" would result in 2-D18 not 2-D16.  To get the exact result you indicate would require using divmod(12) as per a previous exercise.

     

    like this:

     

    case

      when is_double_door == "true"

        w = (width/2).round.divmod(12)

        result = "2-D"+"#{w[0]}#{w[1].round}"

      else

        w = width.round.divmod(12)

        result = "D"+"#{w[0]}#{w[1].round}"

    end

    result

  2. Is it possible to have an if/else statement in a macro?

     

    What I would like to do is have a door label macro that will give me a different result based on whether it is a double door or not.  (There are also a bunch of other applications for this that I'm thinking about).

     

    For instance, the way we label doors around here a 3-0 swing door would be "D30".  However, as a double door it would be "2-D16".

     

    So the statement would be something like:

     

    If is_double_door = true then "2-D" width / 2

    Else "D" width

     

    If it can be done, what would the syntax look like?

     

    Any help would be appreciated.

    case

      If is_double_door == "true"

        result = "2-D"+(width/2).to_s

      else

        result = "D"+width.to_s

    end

    result

  3. David,

     

    I agree - but I am not sure that they have the time and I am also not sure the people writing the help are fully aware of all the nuances.  There is a lot of subtle (and in some cases irrelevant/non functional detail) in this Tool.

     

    Doing this is a learning experience for me as I find what is available in the various dialogs and where those things effect the symbol and where they don't.  It will in the long run be the basis for suggesting improvements.

  4. In looking at Chief's Help for the Symbol Creation Dialog I find that it has a lot of information but many things are skipped over with little or no detail.

     

    The Symbol Category [Cabinet Door/Drawer, Door, Electrical, Fixture(Exterior), Fixture(Interior), etc....] effects the Layer(s) of the Symbol but also what Options and Special Behaviors are available for the Symbol.  In addition - while most Chief Symbols have the origin at x/y/z of Center/Back/Bottom - some Categories have a different origin location.

     

    I am putting together a comprehensive document explaining all the differences (sort of a Super Help) which I think will be of use to many.

     

    I will post that document when I've got it finished but I think maybe it would be a good subject for another workshop.

     

    I also have a couple of tricks with the Primitive Solids that I forgot to demo at the last workshop which might be useful.

  5. I posted a suggestion some time ago to provide the ability to "explode" a symbol to it's constituent faces.  That would allow unwanted faces to be deleted as well as allowing faces to be moved, modified or extruded into new shapes.

     

    The more people post this in the suggestions forum the more likely it would get done.

  6. After looking more closely I seem to find it on all Wall Types. Evidently it's the Last line of the Wall Assembly - the Interior Surface.

    Sometimes it's not obvious in the Wall Type dbx because you might have to scroll down to see it it there are more layers than will fit in the window.

  7. Perry,

     

    I understand and I've been able to fix any of mine that had that problem. What I don't understand and is really the problem with Simonas' Wall Types is the fact that the Last Layer is "Blank". ie: it has no material, no thickness, etc.

     

    OTOH, maybe it's something to do with the metric dimensions vs english.  The Wall Type Definitions seem to be different in some way that I can't resolve.  Maybe one of the other Metric users can figure it out.

  8. Simonas,

     

    I don't know how you did this, but the last Layer in your wall is blank.  In addition, the 2nd Layer should not be in the Main Section.  I have no idea how to fix this other than to start over with a NEW Default Template.  You should send this Plan to Support and see if they can figure out what's wrong.  It shouldn't have been possible to get this kind of Wall Type Definition.

    post-47-0-58715300-1423413605_thumb.jpg

  9. Simonas,

     

    Please show the Wall Type Dialogs for those two walls.  I'm positive that the Main Layer is what controls this.  It's always been that way and I just tried it in X7 and it is the way it works.

  10. Main Layer.  It depends which version of Chief you are using as to how that can be changed.  X7's dialog is different than X6.  In X7 you have Exterior, Main & Interior Layers and you can rearrange them by moving up or down.