Jump to content

using decimal numbers in visual lisp equation


Recommended Posts

Guest lesliematt
Posted

If I have a line that looks like this, how can i change it from a 3 to a 2.5?

 

(polar (car bbox) (/ (* 3. pi) 2.) fl)

Posted

(polar (car bbox) (/ (* 2.5 pi) 2.) fl)

Guest lesliematt
Posted
(polar (car bbox) (/ (* 2.5 pi) 2.) fl)

 

Thank-you. The results were unexpected, but it helps no what not to do, lol.

Posted

In my eyes, its better mathematically to stick to either fractions or decimal:

 

Instead of:

 

(/ (* 2.5 pi) 2.) 

(/ (* 5. pi) 4.)  or  (* 1.25 pi)

Posted
Thank-you. The results were unexpected, but it helps no what not to do, lol.

 

What exactly are you trying to achieve?

Guest lesliematt
Posted
In my eyes, its better mathematically to stick to either fractions or decimal:

 

Instead of:

 

(/ (* 2.5 pi) 2.) 

(/ (* 5. pi) 4.)  or  (* 1.25 pi)

 

 

Thanks Lee Mac,

 

Always good to get your opinion.

Guest lesliematt
Posted
What exactly are you trying to achieve?

 

Umm... I am not sure. Im trying to understand code that someone gave me. And be able to alter it.

Posted
Umm... I am not sure. Im trying to understand code that someone gave me. And be able to alter it.

 

Great! :D Diving in head first!

 

Do you have any other specific questions?

Guest lesliematt
Posted
Great! :D Diving in head first!

 

Do you have any other specific questions?

 

Not specifically, another member wrote a program for me, and it needed a few tweeks, and i am completely lost to tell the truth.

Posted
Not specifically, another member wrote a program for me, and it needed a few tweeks, and i am completely lost to tell the truth.

 

Oh... Well, there are many here who love to help! Post the code, let us know what you need tweaking and we can help you understand the code so that you can make your changes.

 

regards,

hippe013

Guest lesliematt
Posted
Oh... Well, there are many here who love to help! Post the code, let us know what you need tweaking and we can help you understand the code so that you can make your changes.

 

regards,

hippe013

 

Alright. Here it is.

 

In the code, you input a start point, and end point, and a depth. This drew one red rectagle ontop of another purple rectangle as shown in 'Block 2' with a top and bottom flap. The depth changed both flaps in reference to the bubble on 'Cornered'. The depth is not working.

 

My need has changed and what I needed now is a program that will output something that looks like the attached file 'Cornered'. The dotted red line is only there to show a bend line. The code has a main rectangle in the middle and i don't need that anymore. And the top and bottom flap in the code are to tall. As shown in the attached drawing (the top right bubble) shows both corner lines are 1", however in the code, the flaps are 1" tall instead. Also in the code, the rectangle behind the the red one is to narrow and needs to be whatever the user depth is from the inside 47 degree to outside flap. This is hard to explain. lol but if you have questions on what i mean let me know.

 

The biggest thing is that I need the end result to look like 'Cornered' just without the red dotted line. I think I have a lot of work ahead of me. My deadline is 1 week.

1.txt

Cornerd w-o holes 2004.dwg

Block 2.jpg

Posted
In my eyes, its better mathematically to stick to either fractions or decimal:

 

Instead of:

 

(/ (* 2.5 pi) 2.) 

(/ (* 5. pi) 4.)  or  (* 1.25 pi)

 

 

Lee! You wrote this! :lol:

Posted

Curious as to why my original copyright notice has been altered?

 

Also, the attached code contains mistakes that are not present in the originally submitted code here.

Guest lesliematt
Posted
Curious as to why my original copyright notice has been altered?

 

Also, the attached code contains mistakes that are not present in the originally submitted code here.

 

The copyright was altered because i was pulling parts of your code around. Not a big deal. I put your name back in when i posted it again because it was your code and I thank you for getting me that far. And the reason why it has mistakes was again because i was trying to figure it out and pulling sections out to see how they worked. I still have no idea what all the lambda and mapcar code is but i have figured out the rest of it. I understand what they mean, but unsure how it was being used in the code.

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...