Jump to content

Recommended Posts

Posted

Ok, then just add both expressions in the command line

(rtos 4 10.0 2) or (rtos 3 10.0 2)

then tell me what is right for you

  • Replies 127
  • Created
  • Last Reply

Top Posters In This Topic

  • fixo

    59

  • Butch

    13

  • flyingjunkie

    11

  • Fordy

    9

Top Posters In This Topic

Posted Images

Posted

/offtopic

fixo, your codes helped me a lot while conding lisp + excel. Without your help I would never have finished them. I just want to thank you :D

Posted

Forget about, back to draftboard,

tell me please where is origin point of panel from which one

we need to calculate the measurements relatively

lower left as usual or another one?

Also do you need to return just all holes on "HOLES" layer

or all holes on "Mounting holes" layer as well?

Posted

If I put either of those in the command line, it get " ; error: bad argument type: fixnump: 10.0"

Posted

Glad I could help indeed,

Happy coding

Cheers :)

Posted

Sorry my bad :oops:

ought be

(rtos 10.0 4 2) or (rtos 10.0 3 2)

Posted

(rtos 10.0 4 2) gives "10/""

 

(rtos 10.0 3 2) gives "10.00""

Posted

Okay,

You didn't answer om my questions above, explain this

tell me please where is origin point of panel from which one

we need to calculate the measurements relatively

lower left as usual or another one?

Also do you need to return just all holes on "HOLES" layer

or all holes on "Mounting holes" layer as well?

Posted (edited)

HTOX.LSPWell, I see your machine is working too slowly,

try attached lisp, then let me know what to change in there

Edited by fixo
Posted

I've attached the file that shows where my origin should be. If I can get both "Holes" and "Mounting Holes" that would be great. If not, I have no problem running the app twice to get both of them.

sample.dwg

Posted

Ok, will be back tomorrow,

from the scratch just change this expression in code:

instead of:

(cons 8 "holes")

use this one

(cons 8 "holes,mounting holes")

and try again

I need to go away from my machine

Posted

Ok, Thanks for your help thus far!

Posted

Here's what the output gives me. I need the hole size to be to 3 decimals if possible, and my panels are only 49" x 46", so the ~200' x 12' can't be right. What could be causing that?

sample_BACKWALL.xls

Posted

Check DIMSCALE variable in your drawing

then change all values in code something like:

(rtos (* rad 2) 3 3) same for other values

Do it by yoursef, I' m busy with my own

Posted

I have that worked out. I feel like it's so close I can taste it. I'm starting to understand what some of the changes you're making are doing. I'm sitting here with a book on AutoLISP trying to learn this stuff. I WISH I HAD YOUR BRAIN! lol. I honestly can't tell you how grateful I am for the help that you've given me thus far...

Posted

Glad to help,

try to download Visual Lisp Bible by D.Stein, it

will help you a lot, just a thoughts.

Cheers :)

Posted

Fixo,

 

I found a lsp that does exactly what I need done, but I need a few tweaks done to it. I believe VVA was the writer of the original. I sent him a message seeking his input last week, but have yet to receive a response. The coding is far too complex for me to be able to even consider making any changes to it. Here's where I'm at right now:

 

1. My Assigned origin is at the top right corner of a panel and the coordinates go into Quadrant 3 (both values negative). Where can I add a line or adjust a command with (abs so the values given are absolute values.

 

2. How does the circle numbering system work? I have 173 circles in my drawing that need dimensioned, but it looks like it just selects them and numbers them at random. Is there a way that the holes can be numbered Left to Right, Top to bottom like this, for example:

 

1 2 3 4

5 6 7

8 9 10 11

....etc...

 

The numbering really helps, but having them in an order like that would help greatly.

 

3. Is there a way to get rid of the Z-column on the spreadsheet?

 

Again, awesome program and thanks a million in advance for any help you can give!

ECoorE rev6.LSP

sample.dwg

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