News:

Please remember to do a search before you ask a question!

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

For TurboCAD users 2D & 3D Aluminium & Steel Profiles

Started by AussieBloke, August 17, 2021, 03:52:04 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

AussieBloke

So heres some 2D and 3D drawings of the most common steel ( maybe some of these can be used as ally 2D profiles, aluminium profiles not completed as yet. Soon though, ) profiles used in Australia. These polyline profiles are fully editable in all respects and include the ( in most cases ) length, width, depth and radius dimensions based on aussie steel products.  ;D


Saved in  version 2018 format

Henry Hubich

That's great info, Daz. Almost makes me want to move to Australia so I could use it ;-)

Henry H

Torfinn

That's good for you Darryl to use in a ppm ;)
I'm lacy so i only made for the most common in house building in my ppm's, as that is what i work with.
And i can always go to the " base ppm" for special dimension if needed.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

Alvin Gregorio

Good stuff Darryl.  And I like your presentation images.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

John R

Very nice.

These would make great SLW symbol files, but would need a lot of work making each part a Group and setting up the "Info" or "Attribute" field with the proper info.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

AussieBloke

#5
Thanks to Henry, Torfinn for his help with designing ppm's, Alvin and John. ;D

Im doing the same for aluminium as well and I might even have a go at John's idea just for the knowledge.

AussieBloke

Hey John is there any info about making them into SLW, Im not at my pc now so havent checked the help file.

John R

Quote from: Darryl W on August 18, 2021, 01:35:57 AM
Hey John is there any info about making them into SLW, I'm not at my PC now so haven't checked the help file.

I doubt if there is any info in Help. There was info in the Wiki, but that was trashed when they got rid of the site.

An SLW is nothing more than a TCW file with a SLW extension. There is no "Save As" for SLW; you have to rename the TCW in Windows Explorer. The Library palette will only read "Groups" and ignore other items in the drawing.

Here's your "I Beam..." file converted to SLW. Just unZip and drop it in your "My Symbols" folder for 2018 or higher. You may need to use "Reload Library" to get it to show (right-click in the thumbnail area). Once it's loaded, you'll only see question marks for thumbnails, but can be replaced. Right-click a thumbnail and choose "Update Thumbnails".

TurboCAD reads the "Attribute" section of a Groups Properties. The first line is the "Name" of the symbol. Other lines are shown in the "Description" section.

Hope this works for you.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

John R

The Symbol / Group is made up of the Profile, Extrusion and Dimensions. I moved the reference point to an edge of a Beam for easier placement. After placing, you could Explode 'once' to remove the Group wrapping. Everything will be on the layers you assigned them.
John R.

V17—V21, 2015—2025
Designer, Deluxe, (Basic, Expert, Professional), Platinum
RedSDK enabled
Windows 11 Pro (25H2), 64-bit

Torfinn

I work on making my style's the way John do/ show and it very handy.
Instead of have a "forest" of wall styles in example, i only drag in the  wall symbols i want to use in a project so i get the style from it, and then delete the symbol afterward.
Then my drawing don't contain all the "garbage" from the other styles i should not use anyway in that drawing.
But it's a boring job to do, hence i "work on it" :), and in your case Darryl if you also should add Custom Properties it will be even more.
On the other side, it's dang nice to have when the job is done.

I have also done the same thing with door and window style's, with connected blocks etc, but can be an issue there if i use my base window made i v 2021 in a v 2020 drawing, then the block's don't behave.
The material used seems to not follow if they are not standard materials, so this need to be transferred too.

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

AussieBloke

Heres some C & Z purlin profiles in 2D & 3D used in Australia. These polyline profiles are fully editable in all respects and include the ( in most cases ) length, width, depth and radius dimensions based on aussie steel products. Including the rafter beam connectors for 22.5° roof pitch ( used in fnq, due to cyclones ), also the vertical column connectors to rafter beams.

There are parttree parts for easy editing and the 2D profiles of how I made them.  ;D

Edit: I attached an incorrect drawing, use this updated one instead.

Alvin Gregorio

Quote from: Darryl W on September 02, 2021, 11:03:16 PM
Heres some C & Z purlin profiles in 2D & 3D used in Australia. These polyline profiles are fully editable in all respects and include the ( in most cases ) length, width, depth and radius dimensions based on aussie steel products. Including the rafter beam connectors for 22.5° roof pitch ( used in fnq, due to cyclones ), also the vertical column connectors to rafter beams.

There are parttree parts for easy editing and the 2D profiles of how I made them.  ;D

Edit: I attached an incorrect drawing, use this updated one instead.

Thanks for Saving as 2018.tcw before posting Darryl.  Very considerate.
______________
Have you considered using Constraints in conjunction with ACIS_History (Part Tree)= ON?  Just drawing one of each type, judiciously constrained and sensibly named Variables and re-Named operations in the Part Tree.
Sort of a Parametric Part result.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

AussieBloke

Alvin thanks for your valuable feedback. No I have nnot considered this at all, but youve piqued my curiosity and may well give it a go.  ;D

Tell you what I will start later tonight and see how I go and share my results as I go along to the forum. How about a trade, I will do the above and you teach me what you know about the macro recorder cos Im really lousy with it and Ive never had good results at all?

Alvin Gregorio

Quote from: Darryl W on September 03, 2021, 03:52:30 AM
Alvin thanks for your valuable feedback. No I have nnot considered this at all, but youve piqued my curiosity and may well give it a go.  ;D

Tell you what I will start later tonight and see how I go and share my results as I go along to the forum. How about a trade, I will do the above and you teach me what you know about the macro recorder cos Im really lousy with it and Ive never had good results at all?

I don't know anything about the MacroRecorder Darryl.  Other than to use it to try to find acceptable semantics and terms for the PPSE.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Alvin Gregorio

Attached is an example, using Constraints.
Since I used a Sweep along a Front-view Line as the sweep path, and used a Dimension Constraint to dimensionally constrain that Line, Part Tree is not necessary for editing-- just the Calculator Palette.

When working with this file, make sure to have the Options|Constraints "Show Variable Name in the dimension text" ticked On.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

Torfinn

The Macro recorder is pretty straight forward to use Darryl.
Just start it, do what you want to do and then stop it and save the file, after that replay.
But it's very flaky and very often get a fault/ stop when replay it.
It was a "forgotten tool" for many years, but the new management did an overhaul on it some years ago, but still flaky IMO

Andy H is very good with it

Torfinn
V20, V21, 2015 > 2024  Platinum
Deluxe 2015/ 16/ 19
RedSDK enabled
Windows 10 Home Premium (20H2/ 19042.1083) 64 bit, 32 GB
NVIDIA Geforce GTX 780m, 1 GB

AussieBloke

Thanks Alvin for the starter constrained profile, I will have a go at extending others further.  ;D

Torfinn Im really disappointed that tc still has a number of broken tools that just never get fixed.  :-X

nikkipollard

I don't think the macro recorder will ever get "fixed" - It uses VBscript -
I think Microsoft stopped developing it ages ago.
The macro functionality is limited because it cant "see" some of the tasks you do - especially when you use dialogue boxes.
Being aware of this can make it more functional. Sometimes using the SI palette instead of dialogue boxes works.
I mainly use the recording functionality to find out syntax - for other scripting languages.

Sometimes I write small scripts - from scratch directly in the macro recorder. - I find it easier then Ruby.
VBscript is a dumbed down version of VBA - If you are familiar with VBA then you are halfway there.
All you need to do is familiarise yourself with the SDK. - For me this is easyt to do in using VBA in Excel (or another office program). -  I need intellisense.
Use the help provided by someone in the SDK forum - I think it was Kevin Chapman.
Just be aware that some VBA functions are not available in vbscript
But you can usually find a solution with google - include "vbscript" in your search.
Most of the time you have to wade through Irate programmers complaining about being downgraded because the other person asked a stupid question that they should have googled.
But usually you will find an answer.






Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Andy H

There are a few things one has to watch for, when using the macro palette.  If you want to have a macro react to different objects, it is often necessary to select an object before recording the macro.  This way, TC will record it using 'selection', so it will work with future objects.  If you start the recorder then select an object,  it will record the absolute position of the object, and thus won't work correctly on other objects.   Also one has to be cautious of using the I-bar and right click menu, as these are often recorded using field positions.  So it will fail, or not do what you expect, if the fields change, like switching from 3D to 2d mode. Or using a different TC version, where the programmers have added new options.

For me. the biggest drawback to macro (and ppm's for that matter), is the lack of support for custom dialog boxes.  For these, within TC, one would have to learn ruby, (which I have not done).

Alvin Gregorio

I Constrained another one Darryl.  The Apex Joint.
Use Calculator Palette and Part Tree to edit.

I wasn't certain what the priority constraints were, so this is just a guesstimation.  I used a couple of formulas in the Variables palette, guessing at what the constraint relationships are supposed to be; the formulas can be edited or deleted.

Be sure to have Options|Constraints set to ON for "Show Variable Name in the dimension text".

It might (probably) has some errors.  That will only be revealed when playing with it.  But nothing that can't be remedied, I'm sure.

This was just for exercise.
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

nikkipollard

Quote from: Andy H on September 06, 2021, 10:06:29 AM
There are a few things one has to watch for, when using the macro palette.  If you want to have a macro react to different objects, it is often necessary to select an object before recording the macro.  This way, TC will record it using 'selection', so it will work with future objects.  If you start the recorder then select an object,  it will record the absolute position of the object, and thus won't work correctly on other objects.   Also one has to be cautious of using the I-bar and right click menu, as these are often recorded using field positions.  So it will fail, or not do what you expect, if the fields change, like switching from 3D to 2d mode. Or using a different TC version, where the programmers have added new options.

For me. the biggest drawback to macro (and ppm's for that matter), is the lack of support for custom dialog boxes.  For these, within TC, one would have to learn ruby, (which I have not done).
Thanks for that tip Andy
I agree with your comment about dialog boxes. We have all these half tools that would be amazing if they were all put together.
I can get windows forms to work with Ruby But that is as far as I get. I thought I would be able to convert to easily ruby but I cant .

Quote from: Alvin Gregorio on September 06, 2021, 02:30:28 PM
I Constrained another one Darryl.  The Apex Joint.
Use Calculator Palette and Part Tree to edit.

I wasn't certain what the priority constraints were, so this is just a guesstimation.  I used a couple of formulas in the Variables palette, guessing at what the constraint relationships are supposed to be; the formulas can be edited or deleted.

Be sure to have Options|Constraints set to ON for "Show Variable Name in the dimension text".

It might (probably) has some errors.  That will only be revealed when playing with it.  But nothing that can't be remedied, I'm sure.

This was just for exercise.

That is very Cool Alvin. Constraints are fun.
I wish they were more user friendly though.
Free Cad constraints are also 2d but you  can link a sketch to planes - and the position of those planes is parametric.
That small difference makes them so much more powerful.



Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

AussieBloke

Yeah thanks Andy for that macro recorder info cos thats gunna be useful.  ;D

Alvin thanks for taking this further, Im stuck with some work thats got me busy for another couple of days before I can get back to this thread.  ;)

Keep the ideas flowing.  ;D

nikkipollard

Quote from: Andy H on September 06, 2021, 10:06:29 AM
There are a few things one has to watch for, when using the macro palette.  If you want to have a macro react to different objects, it is often necessary to select an object before recording the macro.  This way, TC will record it using 'selection', so it will work with future objects.  If you start the recorder then select an object,  it will record the absolute position of the object, and thus won't work correctly on other objects.   Also one has to be cautious of using the I-bar and right click menu, as these are often recorded using field positions.  So it will fail, or not do what you expect, if the fields change, like switching from 3D to 2d mode. Or using a different TC version, where the programmers have added new options.

For me. the biggest drawback to macro (and ppm's for that matter), is the lack of support for custom dialog boxes.  For these, within TC, one would have to learn ruby, (which I have not done).

Sorry to come back to this now.
I had a brainwave this morning.
You can run an exe file from the macro recorder.
So you can create a windows form with Visual studio. save the parameters to a text file with the windows form.
Run the exe and   open the text file to read the parameter values with vbscript.
I tested it and it works. No need to fight with Ruby.

'Vbscript
Function GetParameters

Dim WshShell
Set WshShell = CreateObject("WScript.Shell")

Dim exeName
Dim statusCode

exeName = """C:\Users\User\Documents\IMSIDesign\macrofiles\mybox.exe"""

statusCode = WshShell.Run (exeName, 1, true)

Dim objFile,strLine,objFso,fileName
Set objFSO = CreateObject("Scripting.FileSystemObject")
fileName = "C:\Users\User\Documents\IMSIDesign\macrofiles\GetParameters.txt"
Set objFile = objFSO.OpenTextFile(fileName)
strLine = objFile.readline

GetParameters = strLine
Set objFSO = Nothing

End Function

'vb.net code

Private Sub ButOk_Click(sender As Object, e As EventArgs) Handles ButOk.Click
        Dim Filename As String = "C:\Users\User\Documents\IMSIDesign\macrofiles\GetParameters.txt"
        Dim outfile As New System.IO.StreamWriter(Filename)
        Dim Output As String = "True;" & TxLength.Text & ";" & TxWidth.Text & ";" & TxHeight.Text

        outfile.WriteLine(Output)
        outfile.Flush()
        outfile.Dispose()
        Me.Close()
    End Sub

Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

murray dickinson

What does that mean, Nikki?  That you could use a recorded macro that invoked your .exe so that it would bring up a form that would accept a coordinate list to draw a polyline or similar?   

nikkipollard

You can write small scripts to perform tasks with the macro recorder too. (Similar to Ruby - but using a different language)
Often you need input from the user - more then the standard one line input box.
You can use this method to create custom Dialogue boxes.
Nikki
TC20 platinum, TC 2015 platinum
TC 2017 with lightworks
TC 2021 platinum
Windows 11 Home 22h

Andy H

Quote from: nikkipollard on September 19, 2021, 04:47:26 AM
Sorry to come back to this now.
I had a brainwave this morning.
You can run an exe file from the macro recorder.
So you can create a windows form with Visual studio. save the parameters to a text file with the windows form.
Run the exe and   open the text file to read the parameter values with vbscript.
I tested it and it works. No need to fight with Ruby.


A really neat solution Nikki.   I've opened exe files from within TC before (by using custom web links, pointing to an exe on my computer), but I never thought to use the macro palette.   And using a text file, easily allows for multiple values to be passed.