Railing Tool subtypes

Home Forums Problems and solutions in GDL Others Railing Tool subtypes

This topic contains 4 replies, has 2 voices, and was last updated by  Péter Baksa 1 week, 2 days ago.

  • Author
    Posts
  • #3665

    James Murray
    Participant

    What is the secret to getting an object to show up as an option in the various railing tool components? I have tried setting the subtype (to Railing Post Component, e.g.) and reloading, but the object doesn’t appear in the chooser.

  • #3666

    James Murray
    Participant

    Never mind, user error.

    But, while we’re here, can we send a message to the stair and railing group that macros within railing (and I assume stair) part objects don’t inherit the PEN directive from the calling object. If the object or macro doesn’t have its own PEN directive, parts are drawn with pen #1, which is never right for uncut pens. And to put the directive in the macro isn’t straightforward, since these macros are in use by non-railing objects too.

  • #3668

    Péter Baksa
    Participant

    Hi James,

    I tried to achieve what you described, but it works for me: set the pen in the object, and the called macro will be drawn with that pen.
    Could you post a code example of what isn’t working?

    Péter Baksa
    Software Engineer, Library Team
    GRAPHISOFT SE

  • #3673

    James Murray
    Participant

    More info: I am passing a pen parameter to the macro. It seems that SYMB_VIEW_PEN does not work in this context, the global variable returns 1 and that is the pen the macro uses. When I changed to PARAMETERS useThisPen = myPen, the macro correctly used myPen. It seems some object globals don’t work within railings?

  • #3675

    Péter Baksa
    Participant

    Hi,

    Yes, SYMB_VIEW_PEN doesn’t work for railings and stairs, since railing objects don’t have a Symbol Line Pen setting like objects do.
    The usual parameters A, B, ZZYZX, AC_show2DHotspotsIn3D, ac_toplevel, ac_bottomlevel,
    gs_cont_pen, gs_fill_type, gs_fill_pen, gs_back_pen,
    and most of the SYMB_… globals except SYMB_MIRRORED are irrelevant.

    There is a trick you can use, without rewriting the macro:
    Globals are really global variables, they can be changed in script, they are passed to the macro with their current values, and don’t get reset at the beginning of the macro.
    In the railing object use SYMB_VIEW_PEN = before the macro call.

    Péter Baksa
    Software Engineer, Library Team
    GRAPHISOFT SE

You must be logged in to reply to this topic.