Author Topic: limiting angles?  (Read 2471 times)

0 Members and 1 Guest are viewing this topic.

hudster

  • Gator
  • Posts: 2848
limiting angles?
« on: August 26, 2005, 09:47:00 AM »
How can I can use lisp to draw a line between a chosen point and a line perpendicular to that point but limit the angle to a maximum of 15 degrees?

***edit***

I'm trying to create a lisp to draw tapers in ductwork based on 4 chosen points.
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

whdjr

  • Guest
limiting angles?
« Reply #1 on: August 26, 2005, 10:22:32 AM »
I don't know how a line could be perpendicular to a point. :lol:

How about a screenshot of what you are trying to do?
Maybe even in steps.

hudster

  • Gator
  • Posts: 2848
limiting angles?
« Reply #2 on: August 26, 2005, 10:44:00 AM »


This is what I want to draw, pt1, 2, 3 & 4 will change but the angle must always be a maximum of 15 degrees.
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
limiting angles?
« Reply #3 on: August 26, 2005, 11:06:10 AM »
Roll yer own lisp that uses grread for the input of the second point, using grvecs to draw a vector at the specified angle as a guide, in this case 15°. Once a point is picked just use standard slope formula to return the point that is on said vector.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

hudster

  • Gator
  • Posts: 2848
limiting angles?
« Reply #4 on: August 26, 2005, 11:08:54 AM »
:shock: Eh?
Revit BDS 2017, 2016, 2015, 2014, AutoCAD 2017, 2016, Navisworks 2017, 2016, BIM360 Glue

MP

  • Seagull
  • Posts: 17750
  • Have thousands of dwgs to process? Contact me.
limiting angles?
« Reply #5 on: August 26, 2005, 11:11:06 AM »
Engrish: Fake out your own polar tracking.

/sorry.
Engineering Technologist • CAD Automation Practitioner
Automation ▸ Design ▸ Drafting ▸ Document Control ▸ Client
cadanalyst@gmail.comhttp://cadanalyst.slack.comhttp://linkedin.com/in/cadanalyst

whdjr

  • Guest
limiting angles?
« Reply #6 on: August 26, 2005, 11:19:58 AM »
Here is a post by Stig for Rotating rectangles as you draw them.  It uses GRREAD so it might be of use to you.

Hopr this helps,
 :D

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
limiting angles?
« Reply #7 on: August 26, 2005, 01:54:44 PM »
Hudster,
Questions to consider:
What is the Min Angle?
Do you always start your pick with the larger duct?
When you pick, are you picking the end of two parallel lines for pick 1 & 2?
Are the two lines for the smaller duce already there?
Do you know the size of the smaller duct without measuring it?
Is the reducer always asymmetrical?

I like the direction Will was thinking. A dynamic shape where you anchor the two
corners with picks 1&2 then stretch pick 3 using the Near snap to get one side of
the smaller duct if the two ducts have a common centerline. If centerline is not
the same a fourth pick would be needed.

Just think out loud. :)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

whdjr

  • Guest
limiting angles?
« Reply #8 on: August 26, 2005, 02:24:09 PM »
Quote from: CAB
... If centerline is not
the same a fourth pick would be needed. ..


Why not make it use the centerline as the starting basis and then pick one side and then have it calculate the other side.  That way it's always centered regardless of size.

Unless ofcourse you could be running it along a wall where only one side would transition, but that would an extension of this tool I think.