CADTutor: The best free help for AutoCAD on the web

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
Go Back   AutoCAD Forums > AutoCAD > AutoLISP, VBA, the CUI & Customisation

Reply
 
Thread Tools
Old 11th Nov 2009, 05:36 pm   #31
Randolph
Full Member
 
Using: AutoCAD 2009
 
Join Date: Sep 2009
Posts: 86
Default

Hi Alan,

at last I had time to try your xyz.lsp together with the insertblock function. It works and makes me happy - thanxalot!

Concerning referencing, you said, I should "give it a shot". Sorry to say, my English isn't good enough to understand the meaning of that. It seems to mean, that xyz.lsp can't reference an old an a new length. This would be rather helpful, though.

I have here a little code which does this along all axis - quite simple. Could you please somehow insert this into your cool feature?

Code:
 
(DEFUN C:VB ()
(SETQ OBJEKTE (SSGET))
(SETQ MPUNKT (GETPOINT "\nBasispunkt :"))
(SETQ PUNKT1 (GETPOINT "\nBasis (ALT) :")) 
(SETQ PUNKT2 (GETPOINT "\nBasis (NEU) :"))
(COMMAND "_OSNAP" "")
(COMMAND "_SCALE" "_SI" OBJEKTE MPUNKT "_R" MPUNKT PUNKT1 PUNKT2)
(COMMAND "_OSNAP" "_END,_INT,_MID,_CEN,_INS,_PER")
(COMMAND "_REDRAW")
(SETQ OBJEKTE NIL)
)

PS: I also add the long promised "strange text" that won't be rotated by zerorotation.lsp.
Attached Files
File Type: dwg zerorotation - strange text.dwg (198.3 KB, 2 views)
Randolph is offline   Reply With Quote
Old 11th Nov 2009, 06:21 pm   #32
alanjt
Super Member
 
alanjt's Avatar
 
Using: Civil 3D 2009
 
Join Date: Apr 2008
Posts: 1,488
Default

Quote:
Originally Posted by Randolph View Post
Hi Alan,

at last I had time to try your xyz.lsp together with the insertblock function. It works and makes me happy - thanxalot!

Concerning referencing, you said, I should "give it a shot". Sorry to say, my English isn't good enough to understand the meaning of that. It seems to mean, that xyz.lsp can't reference an old an a new length. This would be rather helpful, though.

I have here a little code which does this along all axis - quite simple. Could you please somehow insert this into your cool feature?

Code:
 
(DEFUN C:VB ()
(SETQ OBJEKTE (SSGET))
(SETQ MPUNKT (GETPOINT "\nBasispunkt :"))
(SETQ PUNKT1 (GETPOINT "\nBasis (ALT) :")) 
(SETQ PUNKT2 (GETPOINT "\nBasis (NEU) :"))
(COMMAND "_OSNAP" "")
(COMMAND "_SCALE" "_SI" OBJEKTE MPUNKT "_R" MPUNKT PUNKT1 PUNKT2)
(COMMAND "_OSNAP" "_END,_INT,_MID,_CEN,_INS,_PER")
(COMMAND "_REDRAW")
(SETQ OBJEKTE NIL)
)

PS: I also add the long promised "strange text" that won't be rotated by zerorotation.lsp.
What I meant was, I've spent quite a bit of time of this and you still want more. However, if I have time, I'll look at it. I'm pretty swamped this week.

Thanks for posting the object. It's not ZeroRotation, your block (not text) has the attributes rotated within the block definition. You would need to fix the block.

StrangeBlock.jpg

Seann: ...it went crazy ex-girlfriend on me...
eric_monceaux...
its pretty funny seeing two AutoCAD Gods give each other flak...
alanjt is offline   Reply With Quote
Old 11th Nov 2009, 06:47 pm   #33
Randolph
Full Member
 
Using: AutoCAD 2009
 
Join Date: Sep 2009
Posts: 86
Default

"What I meant was, I've spent quite a bit of time of this and you still want more."

OK, I see that I am too greedy - I don't want to be an annoyance. I thought it was some kind of sport for you, shooting with creativity every time I came up with a problem. Please, if it is stress instead, just leave it. All these are "nice to haves", but nothing I'm depending on. Same goes for the other posts I submitted today. Thank you for all your help so far!

Concerning the block, I imported it from a drawing I got. I even think it originates from another application.
Randolph is offline   Reply With Quote
Old 11th Nov 2009, 06:56 pm   #34
alanjt
Super Member
 
alanjt's Avatar
 
Using: Civil 3D 2009
 
Join Date: Apr 2008
Posts: 1,488
Default

Quote:
Originally Posted by Randolph View Post
"What I meant was, I've spent quite a bit of time of this and you still want more."

OK, I see that I am too greedy - I don't want to be an annoyance. I thought it was some kind of sport for you, shooting with creativity every time I came up with a problem. Please, if it is stress instead, just leave it. All these are "nice to haves", but nothing I'm depending on. Same goes for the other posts I submitted today. Thank you for all your help so far!

Concerning the block, I imported it from a drawing I got. I even think it originates from another application.

I'm not annoyed at all. I like working these out, it's a nice puzzle to ease my mind in the evenings (when I have time). More than anything, I want people to try it for themselves. I learned how to program so I wouldn't have to ask someone else. Believe me, I'll tell you if I'm annoyed.

Seann: ...it went crazy ex-girlfriend on me...
eric_monceaux...
its pretty funny seeing two AutoCAD Gods give each other flak...
alanjt is offline   Reply With Quote
Old 11th Nov 2009, 08:34 pm   #35
Randolph
Full Member
 
Using: AutoCAD 2009
 
Join Date: Sep 2009
Posts: 86
Default

Yeah, I learned so many things, like geometry and statics and in earlier times also programming (but not lisp) ... at the time, I have 2 luxury houses to plan. But I always try to understand the lisp routines ... promise ;)
Randolph is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scale on one axis only TonyMS AutoCAD Beginners' Area 3 15th Oct 2008 08:26 pm
Setting x/y axis scale? therock005 AutoCAD Drawing Management & Output 8 12th Dec 2007 04:22 pm
Scale on one Axis? spittle AutoCAD Drawing Management & Output 6 5th Oct 2007 12:07 pm
How to I change the scale in only one axis? jps AutoCAD General 7 29th May 2007 10:59 am
How do I get all objects onto the same Z-axis plane? lmingll AutoCAD Drawing Management & Output 9 22nd Jun 2006 10:10 pm

Why Donate?


All times are GMT +1. The time now is 04:52 am.

RSS Feed for AutoCAD ForumsValid XHTML 1.0!Valid CSS!Creative Commons Licence