[Closed] Drawing Steel Sections
OK lets see if anyone’s here this time;)
This is where all that drawing stuff ended up. I’m still having fun with unpredictable errors in the drawing routine…looks like the weld thresholds although I can’t seem to get consistent results.
But most of all I’d appreciate some help in organising the script and data better…I’m not from a programming background. I’m thinking particularly of the use of structures for the sections, and getting these values out to the dialogue spinners.
I think there are still some issues with variable scope too
Also in terms of getting the script to be more useable I’d like to get some mouse input going…maybe click and drag with the shape outline in place for custom section sizes?
This routine needs the avgdlx50 extension to work as it stands.
I’ve also assumed that units are set to metres (the section dimensions are in millimetres in the data).
Attached is the script and data files…bitmaps to follow
OK, ok, its a bit of a rambling script.
I’ve now posted on the discreet forum due to lack of interest on this one:hmm:
Hasn’t anyone got any comments?
Thanks Keith,
Got a few suggestions from Swami on variable scope, and fixed a few other things in the meantime.
Here’s the latest version of the script
I’m currently rejigging the interface and tidying up in general
I just kicked it around for a bit too…
Here’s MY version… ha ha…
The globals have been removed by declaring eveything local within an over all () set.
the welding of verts so close is going to be an issue. having such a small threshold. check out. Splineops.weld()
I would rewrite the spline drawing function to draw a single line to begin with. Pass the node name along to each drawing segment and keep adding to segment 1, then use the close command after your last point.
Good luck…
Let me know when it’s done, we build beams from time to time…
Keith Morrison
OK Keith,
After a weekend of fun, here’s a totally revised (and working)
version…new interface, new drawing routine, and a few other goodies.
The main problem now is to create parametric versions of each section that can be scaled interactively in the viewport under the custom option.
that all sounds interresting …but it doesn’t seems to work with viz4 (?)
–function to load values from a text file
fn load_values data_array textfilestring =
(
if data_array[1] != undefined do
(data_array = #())
opf = openfile textfilestring
while eof opf != true do
got ” – No ““eof”” function for undefined
edited:
ok, i got it now… dL all files and extract all archives …even if they are packed again… thx.
it’s sad that there is no way to add a shape to the bevel profile modifier with maxscript…