AutoCAD Architecture
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Re: Getting steel beam size
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Nick
AEC Design Services
Re: Getting steel beam size
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
HI
I'm working on a way to calculate the bottom of the beam.
Using your idea of creating a custom property works to some extent.
When I create the beam style from the structural members wizard I put the depth in parenthesis.
For Example "W16x45 (16.13)"
See attached pic.
This way I don't have to look it up later.
I then need to manually enter the depth in the custom depth property for each beam
My thinking now, is there a way to strip out the depth from the beam style text?
This way it would be automatic for each style.
I see all those VBscripting codes that can be used in the formula definitions.
But have no idea where to start with it.
It doesn't have to be parenthesis, it could be what ever character is best for striping out certain text.
Could it be scripted to pull out the depth and the width?
Thanks so much..
Dallas
Re: Getting steel beam size
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Nick
AEC Design Services
Re: Getting steel beam size
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Wow! Excellent work there Nick! You put alot of work into it.
So simple to use.
Since my use would be to make a structural background for use on MEP projects, I'm really looking for beam size and bottom of beam. Actually Bottom of Fire Insulation. So if you had an insulation thickness variable and allowed changing the tag's information to include/exclude the above, you'd have a HUGE winner in the MEP market.
That said, I'm far enough along in my understanding of property sets that I can create one for insulation and calculating the bottom from where you've gotten it all.
But to be able to throw that information on as I'm drawing the beam as your tag works, would be awesome...
You found yourself a customer.
Thanks so much for the quick reply..
Re: Getting steel beam size
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Nick
AEC Design Services
Re: Getting steel beam size
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Glad to see that Nick was able to help you out. While that was going on, I put together a quick demonstration file that shows that you could do what your earlier post requested - extract a string between two delimeter characters in the style name and use it to calculate a beam bottom value. Perhaps this may be of help to others who happen to read this thread.
The attached ZIP file has a formula property that extracts the string, using the InStr and Mid VBScript functions, along with some tests to avoid having the formula blow up if the delimeter characters are not found, if the first ")" occurs before or immediately after the first "(" or if the text between the "(" and ")" does not evaluate to a number. The formula returns 0 as the depth in these cases.
The formula property that calculates the bottom of the structural member also takes into account the justification. Most beams would likely be Top Center justified, in which case, along with Top Left and Top Right, the entire depth is subtracted from the automatic LocationZ value. For the Middle justifications, half the member depth is subtracted and for the Bottom justifications, the LocationZ value is passed through unmodified. If the justification is Baseline, then I have no way to know what to subtract (for Structural Member Shapes generated from the steel part of the Structual Member Catalog, I believe that the shape insertion point is a the midpoint of the shape, but that may not be true of a user-defined shape, so I had the MemberBottom formula return a value of "BASELINE". If the MemberDepth is 0, then the MemberBottom formula returns a value of "NO DEPTH", as a warning that the style name was not properly set up.
You could extend this to include a manually entered spray fireproofing thickness if desired. You could also add the member width to the style name, either using different delimeters, such as "[" and "]" , or by truncating the string after the first ")" and then processing the result for the remaining "(" and ")".
Re: Getting steel beam size
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Another thought that occurred to me today: the MemberBottom formula presumes that the Roll property of the Structural Member is 0, and that the bottom of the beam is in the negative Z direction. A more sophisticated formula would require an additional Automatic property to make the Roll value available, and would check that and then adjust the calculations for the various justifications accordingly. For example, for a beam with a Roll of 180 degrees and one of the Top justifications, the LocationZ property is the bottom of the beam, and you would not want to subtract the beam depth. Rolls other than 0 or 180 degrees would also require knowing the member Width and, assuming the bottom occurs at the corner of a rectangle described by the Depth and Width, more sophisticated calculations to determine the lowest elevation of the beam. (In those cases, the Left, Center and Right justifications would not have the same calculation, either.)
Or you could leave things as is, and mandate that all beams have a Roll of 0.
Re: Getting steel beam size
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks so much David.
Your String extraction example really helps me understand it more.
I agree, to get a really foolproof bottom of beam, there would be a lot more coding.
But to grab the bottom of a beam in its normal orientation and not sloped, this works pretty good.
To be honest, Ive taken to using your 'Steal Beams for AEC'. It's sooo much easier to bring in beams and Im able to create a custom tag for the bottom of fireproofing from your object properties.
It's already saved me several hours.
Great Job guys.
Dallas



