Jump to content

Creating an Auto Lisp command to create stud rails in Auto Cad - Beginner with drawing could use all the help I could get.


Recommended Posts

Posted

Hey everyone,

 

Not sure if you everyone is familiar what is stud rail is in the construction industry but they reinforce the load of concrete surrounding columns so they don't have to pour more concrete around the column to support the slabs. I have attached an image of an example below. 

 

I'm looking to create an auto lisp to draw out stud rails in Auto Cad 2021. The parameters that are given are the rail width, rail length, number of studs per rail, stud diameter, stud spacing, and end spacing. If someone would be kind enough to point me in the right direction or set me up with a draft for an auto lisp that would be greatly appreciated. 

 

Let me know if you need anymore information and I will provide it.

 

Thanks,

Zach

SR.png

Posted (edited)

Multi GETVALS.lspHave a look at this it's a front end for your input. Save it to a support path.

 

(if (not AH:getvalsm)(load "Multi Getvals.lsp"))
(setq ans (AH:getvalsm (list "Enter values " "Length " 5 4 "1000" "Width " 5 4 "150" "Number of studs" 5 4 "5"
"Stud dia" 5 4 "25" "End space" 5 4 "50" )))
(setq 
len (atof (nth 0 ans))
wid (atof (nth 1 ans))
num (atof (nth 2 ans))
dia (atof (nth 3 ans))
espc (atof (nth 4 ans))
)

 

image.png.455e9ecb2aa145395b2d0a87603a5000.png

Edited by BIGAL
  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...