fixo Posted March 19, 2013 Share Posted March 19, 2013 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 Quote Link to comment Share on other sites More sharing options...
fabriciorby Posted March 19, 2013 Share Posted March 19, 2013 /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 Quote Link to comment Share on other sites More sharing options...
fixo Posted March 19, 2013 Share Posted March 19, 2013 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? Quote Link to comment Share on other sites More sharing options...
flyingjunkie Posted March 19, 2013 Share Posted March 19, 2013 If I put either of those in the command line, it get " ; error: bad argument type: fixnump: 10.0" Quote Link to comment Share on other sites More sharing options...
fixo Posted March 19, 2013 Share Posted March 19, 2013 Glad I could help indeed, Happy coding Cheers Quote Link to comment Share on other sites More sharing options...
fixo Posted March 19, 2013 Share Posted March 19, 2013 Sorry my bad ought be (rtos 10.0 4 2) or (rtos 10.0 3 2) Quote Link to comment Share on other sites More sharing options...
flyingjunkie Posted March 19, 2013 Share Posted March 19, 2013 (rtos 10.0 4 2) gives "10/"" (rtos 10.0 3 2) gives "10.00"" Quote Link to comment Share on other sites More sharing options...
fixo Posted March 19, 2013 Share Posted March 19, 2013 And what is your choice? Quote Link to comment Share on other sites More sharing options...
flyingjunkie Posted March 19, 2013 Share Posted March 19, 2013 10.00 10 chars Quote Link to comment Share on other sites More sharing options...
fixo Posted March 19, 2013 Share Posted March 19, 2013 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? Quote Link to comment Share on other sites More sharing options...
fixo Posted March 19, 2013 Share Posted March 19, 2013 (edited) HTOX.LSPWell, I see your machine is working too slowly, try attached lisp, then let me know what to change in there Edited March 20, 2013 by fixo Quote Link to comment Share on other sites More sharing options...
flyingjunkie Posted March 19, 2013 Share Posted March 19, 2013 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 Quote Link to comment Share on other sites More sharing options...
fixo Posted March 19, 2013 Share Posted March 19, 2013 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 Quote Link to comment Share on other sites More sharing options...
flyingjunkie Posted March 19, 2013 Share Posted March 19, 2013 Ok, Thanks for your help thus far! Quote Link to comment Share on other sites More sharing options...
fixo Posted March 20, 2013 Share Posted March 20, 2013 Try edited "HTOX.lsp" again Quote Link to comment Share on other sites More sharing options...
flyingjunkie Posted March 20, 2013 Share Posted March 20, 2013 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 Quote Link to comment Share on other sites More sharing options...
fixo Posted March 20, 2013 Share Posted March 20, 2013 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 Quote Link to comment Share on other sites More sharing options...
flyingjunkie Posted March 20, 2013 Share Posted March 20, 2013 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... Quote Link to comment Share on other sites More sharing options...
fixo Posted March 20, 2013 Share Posted March 20, 2013 Glad to help, try to download Visual Lisp Bible by D.Stein, it will help you a lot, just a thoughts. Cheers Quote Link to comment Share on other sites More sharing options...
flyingjunkie Posted March 25, 2013 Share Posted March 25, 2013 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.