really i need help

really i need help

abdulellah.alattab
Advocate Advocate
13,206 Views
70 Replies
Message 1 of 71

really i need help

abdulellah.alattab
Advocate
Advocate

Please i need lisp to do this task 

 

Old topic link

https://forums.autodesk.com/tUntitled-13-2.png⁸5/visual-lisp-autolisp-and-general/call-for-help-cranking-polyline/td-p/13362612

0 Likes
Replies (70)
Message 21 of 71

Moshe-A
Mentor
Mentor
Accepted solution

@abdulellah.alattab wrote:

Is it possible to add a button that prevents writing dimensions, and is it possible to rotate the rod during entry, and instead of the minimum of 1/5 and the maximum, is it possible to have more freedom so that we can use it for more purposes?


prevent dimensions? you do not add dimensions to bar?

rotate rod - what's that? you mean rotate the bar? you can do that after you draw it.

instead min / max - no problem

 

0 Likes
Message 22 of 71

Moshe-A
Mentor
Mentor

@abdulellah.alattab wrote:

Addtional to pick axes can you add option , select two points 


why? selecting the main 2 axis lines in one step is more easy, for the left / right axis you also can specify the distance?!

 

0 Likes
Message 23 of 71

abdulellah.alattab
Advocate
Advocate

For main field L1, CAN YOU ADD two retreat ratios, one for left side and one for right side in the seam main field L1. They only appear when one of the fields on the right or left is missing. Assuming the field on the right is missing, then I can change the value of the retreat ratio for the main field on the right side.

 

And add option to decide about hooked end length for filedes that is not showed 

0 Likes
Message 24 of 71

abdulellah.alattab
Advocate
Advocate

Just a suggestion, nothing more, to make it easier to do the entry process when the axes are absent

0 Likes
Message 25 of 71

abdulellah.alattab
Advocate
Advocate

@Moshe-A  you do very effective job , are you civil enginner ?

0 Likes
Message 26 of 71

Moshe-A
Mentor
Mentor

@abdulellah.alattab ,

 

For main field L1, CAN YOU ADD two retreat ratios, one for left side and one for right side in the seam main field L1

does that means that the main ratio is redundant?

post a new dwg how do you want to end the bar where left/side is not exist, how the hook will look?

 

Moshe

 

 

Message 27 of 71

abdulellah.alattab
Advocate
Advocate

Sir, this is what I mean. I have made it clear in the drawing. The first and second cases are all that concerns me. As for the rest of the cases, it will be an overflow of generosity from you, and be assured that you will accomplish something that everyone needs and will be used on a daily basis. Something similar to someone who provides a service to every engineer specialized in drawing concrete reinforcement.

0 Likes
Message 28 of 71

abdulellah.alattab
Advocate
Advocate

And can you rename lisp command to bentbar 

Thank you from the depth of my heart

0 Likes
Message 29 of 71

Moshe-A
Mentor
Mentor

@abdulellah.alattab ,

 

So the left field is totally redundant ?

S-L  & S-R are varies?

the hook can be shorter then bar depth?

in case-2 the bar  extend (S-R + Retreat 3) ?

you want to drop dimensions at all?

 

 

 

 

 

Message 30 of 71

abdulellah.alattab
Advocate
Advocate

So the left field is totally redundant ? No ,  I want it too 

S-L  & S-R are varies? Yes 

the hook can be shorter then bar depth? Yes  , shorter or longer than depth 

in case-2 the bar  extend (S-R + Retreat 3) ? Yes ( left or rigth  field length  L1 OR L2 mesuered from after S-R or S-L  , (  S-R or S-L ) never divied by factor it is addtional length 

you want to drop dimensions at all? Yes , with addtional option To prevent drawing dimensions if i want , dimscale can be lower than 1 

0 Likes
Message 31 of 71

abdulellah.alattab
Advocate
Advocate

Pick points for main field is better to work at any angle in model space 

0 Likes
Message 32 of 71

Moshe-A
Mentor
Mentor

@abdulellah.alattab ,

 

if you also want the left field then post a pic with full full version + how do you want dimensions, layers?

i am requesting this cause this is already a huge program and any addition/changes can make is grow and it will take time to accomplish

but i hope 🙏 you'll visit here each day to see it finished. 

 

Moshe

 

Message 33 of 71

abdulellah.alattab
Advocate
Advocate

Thank you sir , For the fields, the same program as before with the suggested additions. I will visit the post every day. Thank you for your cooperation.

0 Likes
Message 34 of 71

Moshe-A
Mentor
Mentor

@abdulellah.alattab hi,

 

i start working on it and i expect to post it in 2-3 days, so keep in touch here 😀

Message 35 of 71

abdulellah.alattab
Advocate
Advocate

Thank you sir, work according to your available time

0 Likes
Message 36 of 71

Moshe-A
Mentor
Mentor
Accepted solution

@abdulellah.alattab  hi,

 

finally i got it 😀

 

This version complies with all your request (case-1 through case-5) although i can not be 100% sure that all cases works, you will have check.

running instructions:

 

after loading reinforce.vlx invoke BAR1 command.

 

Main field 1

Specify Axes < let you specifies the main axes lines, you start with the left line and angle (-90 to first) to the second (system will copy that line automatically) the angle of the first axis can be any angle  but the axes lines must be parallels with exact lengths.

 

Select Main Axes < let you select existing axes lines. the selected lines should grow from bottom to top and the first should be on the left side. otherwise you might get upside bar.

 

Length1 + Bar Angle are always grey and they shows the Main Axis lines distance and angle.

 

Retreat Ratio L-1 + Retreat R-1  works inside Main Axes Field.

 

Left/Right fields L2 / L3

Additional  S-L + Additional R-L  extend length

 

Left/Right Hook   you already know

 

Length 2 / Length 3  is specified only by length only.

 

Retreat Ratio 2 / Retreat Ratio 3  you already know

 

Bend Depth / Bend Angle   you already know

set bend Depth to a negative value in order to get upside bar 😀

 

in properties a new switch Add dimensions for adding texts to bar segments

at the left bottom a new switch delete axes line turn this on if you want to delete axes lines.

 

switches \ toggles

each option has a toggle on its left side, enable it to activate the option

if switches Length2 / Length3 is enables, Retreat Ratio 2 / Retreat Ratio 3 are disabled and vice versa (meaning you can not have hook and extended  length together but you can use Additional S-L / S-R.

 

enjoy

Moshe

 

MosheA_0-1746301125990.png

 

Message 37 of 71

abdulellah.alattab
Advocate
Advocate

@Moshe-A 

Super ,I thank the hands that completed the task.

Thank you, you have overwhelmed us with your generosity.

0 Likes
Message 38 of 71

Moshe-A
Mentor
Mentor

@abdulellah.alattab 

 

Thank you for that  😀

 

i have already thoughts for fine tunings and even some improvements.

i would like to see a video running it on real working drawing?!

 

Can you share with us your real thoughts when you first came to this discussion group, Did you thought you will get such a help?

i was very impressed from your accurate detailed explanations (including the drawing picture) 

 

ps: 

forgot to mention the Retreat edit boxes are not limited now but of course must be less then 1.

 

correction to this....

instead "Retreat Ratio 2 / Retreat Ratio 3"  i meant Left/Right Hook  sorry 😂

 

"if switches Length2 / Length3 is enables, Retreat Ratio 2 / Retreat Ratio 3 are disabled and vice versa (meaning you can not have hook and extended  length together but you can use Additional S-L / S-R"

 

 

Moshe

 

0 Likes
Message 39 of 71

abdulellah.alattab
Advocate
Advocate

Thank you sir, great and very smart effort, especially the idea of ​​the method of choosing the axes to guide the drawing, it resembles a steering wheel, I still have a problem that I hope you look into because we usually work considering that one unit in AutoCAD is equivalent to one meter in nature, and I would like the input and drawing values ​​to accept decimal values ​​less than zero 0.0001, and I have added my notes resulting from the experience of the second version

0 Likes
Message 40 of 71

Moshe-A
Mentor
Mentor

@abdulellah.alattab ,

 

OK i will be fixing these this week, keep visiting here every day 🙏