Jump to content

Recommended Posts

Posted

Extremely simple, using only AutoCad features.

line.gif

  • Replies 48
  • Created
  • Last Reply

Top Posters In This Topic

  • cadfan

    15

  • ReMark

    7

  • marko_ribar

    6

  • nestly

    6

Top Posters In This Topic

Posted Images

Posted

Knowing the OP he will probably say that technique relies too much on utilizing the command line options.

Posted
Knowing the OP he will probably say that technique relies too much on utilizing the command line options.

 

:lol:

 

Though I don't know what is the use or the benefit of that way of drafting .

Posted

Well the OP does wants something that is pretty much automatic or at least it would seem so.

Posted (edited)
Extremely simple, using only AutoCad features.

 

That's cool, but it's also the result of customization, not something that's included in AutoCAD. You're solution may well be acceptable, but what you've demonstrated is essentially the same as using the Parallel Osnap. The OP has requested (and demonstrated) being able to draw lines at a relative angle to the selected object, not just parallel to another object.

Edited by nestly
Posted
Knowing the OP he will probably say that technique relies too much on utilizing the command line options.

 

:lol:

C'mon guys, it takes 1 more keystroke than OP, but it also allows to enter an angle instead of selecting an object.

 

That's cool, but it's also the result of customization, not something that's included in AutoCAD. You're solution may well be acceptable, but what you've demonstrated is essentially the same as using the Parallel Osnap. The OP has requested (and demonstrated) being able to draw lines at a relative angle to the selected object, not just parallel to another object.

 

It is a customization, but it only alters some sysvars, nothing more.

 

Relative angles? OK, it's there

 

GIF doesn't work. Removed

Posted

Sometimes we can be such sticklers for detail...myself included.:lol:

Posted
Sometimes we can be such sticklers for detail...myself included.:lol:

 

But, sir, it is smarter this way... ;)

Posted

 

Relative angles? OK, it's there

 

GIF doesn't work. Removed

 

Yeah, in the OP's animation, the 2nd line is draw at 15 degrees to the selected line, then proceeds to use 90 and 0 degrees for the remainder of the lines, so actually none of the lines were drawn at the same angle as the reference line, they were all drawn at an angle relative to the reference line. If you have a routine that can do that, I'd definitely have use for it. (better yet if it worked with plines) ;)

 

Re:Gif... it has to be under 500kb, or it will automatically be resized and won't be animated.

Posted
Re:Gif... it has to be under 500kb, or it will automatically be resized and won't be animated.

I hope is OK now

Line3.gif

Posted

Ok, you've impressed me. :notworthy:

 

Will you share what you've written to do that?

Posted

Here is my version...

 

Posted here.

 

Regards, M.R.

Posted
Will you share what you've written to do that?

It was never my intention to post any code. I saw it as a challenge and I wanted to know if this is possible on AutoCAD.

My code is not finished, it is very limited tested and I will not spend any minute with it, as I don't see any major advantage on using such a tool.

But I will tell you what it does: it simple changes polaraddang and polarmode system variables.

Further development should take care of autosnap and orthomode as well and of infinite possibilities of changing them manually, using F8, F10 and F11 key, when this function is running.

Posted

Thanks Marko, that works pretty well. Two small issues though, 1) it's not always clear which direction the angle is relative to the reference object, 2) Polarmode seems to be disabled, but depending on how the lisp is ended, sometimes neither Ortho or Polar is enabled after exiting.

 

ALIN - Marcoribar.gif

Posted

To be clear, I admit I wrote that part of the code without much thinking... You should change (setq nang (cvunit (- ang difang) "radian" "degree")) to (setq nang (cvunit (+ ang difang) "radian" "degree"))... And now you also must know that positive angle is always CCW like everything in ACAD, and if you enter negative number angle is measured in CW direction... Sorry for inconvenience, I wrote that part very childish...

 

Regards, M.R.

Posted

I think I'll just stick to using SNAPANG.

Posted
That's cool, but it's also the result of customization, not something that's included in AutoCAD. You're solution may well be acceptable, but what you've demonstrated is essentially the same as using the Parallel Osnap. The OP has requested (and demonstrated) being able to draw lines at a relative angle to the selected object, not just parallel to another object.

 

Yes, you are right !This is exactly what I think.

Posted
Yeah, in the OP's animation, the 2nd line is draw at 15 degrees to the selected line, then proceeds to use 90 and 0 degrees for the remainder of the lines, so actually none of the lines were drawn at the same angle as the reference line, they were all drawn at an angle relative to the reference line. If you have a routine that can do that, I'd definitely have use for it. (better yet if it worked with plines) ;)

 

Re:Gif... it has to be under 500kb, or it will automatically be resized and won't be animated.

 

:thumbsup: You really careful ah. good!

Posted
Here is my version...

 

Posted here.

 

Regards, M.R.

 

Very thank you! Marko ! I will test it ! :thumbsup:

Posted
Thanks Marko, that works pretty well. Two small issues though, 1) it's not always clear which direction the angle is relative to the reference object, 2) Polarmode seems to be disabled, but depending on how the lisp is ended, sometimes neither Ortho or Polar is enabled after exiting.

 

[ATTACH=CONFIG]52312[/ATTACH]

 

 

Thank you guy . how did you make that GIF in AutoCAD? It looks very beautiful.

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