Recommended Posts

In doing some ruby stuff to automate information required by building department code examiners, so I wrote a bit of simple code

 388193403_realcode.thumb.jpg.8c037037aa8535d23c209cfcea230f16.jpg

 

 

678376773_Coderef.thumb.jpg.00b1b8c394def27d040ce0d723c38213.jpg

 

to get this. 1601429432_PlanView.thumb.jpg.b1306d1a39136e90f8d9ca3d7af2504e.jpg

 

But I need that in an elevation, not in a plan view.  No joy it seems.  

 

1242400075_Darnitdoesntwork.thumb.jpg.8de66e9df68e94b2170254d585a3dee3.jpg

 

Anyone know why this is?

 

real code.jpg

Share this post


Link to post
Share on other sites

Basically because in Elevation the arrow is selecting the "Exterior Room", not the "Window".

 

The only way I know of to get that in an Elevation View is by putting the macro in the Window Label and making the macro "Owner Object".  It's more complicated though because then the macro would also be displayed in the Plan View.  That means you have to have the macro display a different result in Plan View than in Elevation View and the macro has to have a way of knowing what the Current View is.

 

I can do it but it's a bit complicated.

Share this post


Link to post
Share on other sites

Hmmm...  I will have to work on it.  Learning the ruby stuff is interesting.

Share this post


Link to post
Share on other sites

You can also just add the s.f. of each window to the window schedule.

Share this post


Link to post
Share on other sites

Yeah, I did that but the plans examiner wants them on the windows in elevation view.  Sometimes I think they are just cruel.  

Share this post


Link to post
Share on other sites

Hey Doug, Here's a fairly simple method:

In elevation view, draw a polyline the size of the window directly over the window. Turn on "polyline labels" and use your newly created macro as the label. Depending on your settings, you may need to create a new text style for that label and of course I'd suggest giving this polyline it's own layer, or placing it on the 'window' layer.

I use this all the time to help me with my glazed opening calculations. I have macros that will display the area in metric and / or imperial.

Share this post


Link to post
Share on other sites
1 hour ago, robdyck said:

Hey Doug, Here's a fairly simple method:

In elevation view, draw a polyline the size of the window directly over the window. Turn on "polyline labels" and use your newly created macro as the label. Depending on your settings, you may need to create a new text style for that label and of course I'd suggest giving this polyline it's own layer, or placing it on the 'window' layer.

I use this all the time to help me with my glazed opening calculations. I have macros that will display the area in metric and / or imperial.

Hey Rob, 

 

thanks for the suggestion.  That is a pretty good way to tackle the problem.  Using an independent layer will allow this to be shown in some views, and not others but still see the window label.  

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Member Statistics

    27628
    Total Members
    6254
    Most Online
    Fishios
    Newest Member
    Fishios
    Joined
  • Similar Content

    • By mgannage
      I am wondering if there is a way so use Saved Plan View Sets from one plan in another plan without completely redoing my template. Thanks!
       
    • By ccarpenter18
      In X12 I've noticed that when using Structural Member Reporting in a material list, the price column in the list does not appear to be sensitive to whether a "per unit" or "per length" calculation is being performed by the material list.  In both cases, the material list appears to use the same Price variable in the Component Panel of each object.  Does anyone know of some Ruby scripting that could be used to correct this?  Off hand, I'm thinking of a macro inserted into the Price variable on the Component Panel of each structural member that would use the Material List row context to report a price that depends on how the row wants to use the Price.
    • By community
      Hello,
      Just throwing the question out here: Is it possible to write a custom script for X10 to make the program export a custom materials list with some calculated fields and some custom formatting, like a header with our logo?
      If so, would anyone have an idea where I could turn to have this done for me?
       
      Kind regards
    • By BrownTiger
      The Andersen 100 Series windows [Fiberex] are always popular with a builders. Primarily, they offer different interior and exterior colors, not as ugly as some other Vinyl... Sometimes designer want to know if he is using standard vs custom sizes [adds +$$].
       
      So here is a validator macro, that can be assigned as a label or just executed in the tmm
       

       
      Free Macro, enjoy
      Code demonstrate use of Ruby arrays, and "any?" method.
       
      BT
      I also have A200,400, and pella.. But this will get you started if you are not 100% familiar with Ruby.
      Andersen100Units.json
    • By WhistlerBuilder
      Hi Chiefers,
       
      Quick question. Is it possible to display plan view in the watercolor mode? So far I can only get watercolor to apply to the 3D views that chief generates.
       
      I have a sample of what I am talking about generated with Sketchup imported dwg from a chief file.
       
      Chief normal version = Sample 1, sketchup watercolor = sample 2