CAD Forum - Database of tips, tricks and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 6959
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

 

HelpCAD discussion

 
CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.

How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to Draw Spiral-Alike Object in ACAD 2014?

 Post Reply Post Reply Page  <12
Author
dery View Drop Down
Senior Member
Senior Member


Joined: 31.Jan.2018
Location: United States
Using: AutoCAD 2014
Status: Online
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote dery Quote  Post ReplyReply Direct Link To This Post Posted: 19.Aug.2024 at 18:53
This is the properties menu of my AutoCAD 2014 looks like.


Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 660
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kent Cooper Quote  Post ReplyReply Direct Link To This Post Posted: 19.Aug.2024 at 19:33
It must be related to this confusing aspect in your image:

That should say Spline in the light blue box, or if you have more selected than just the Spline, it should say All with a number in parentheses of the quantity of selected objects, and a breakdown under it showing how many of each type of object are in the selection.  Yet it looks like you do have the Spline selected, with all its grips showing -- whether also anything else, I can't tell.  If you can figure out why that what's-selected box is empty, maybe that will help with getting to the end tangent vectors.


Edited by Kent Cooper - 19.Aug.2024 at 19:35
Back to Top
dery View Drop Down
Senior Member
Senior Member


Joined: 31.Jan.2018
Location: United States
Using: AutoCAD 2014
Status: Online
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote dery Quote  Post ReplyReply Direct Link To This Post Posted: 20.Aug.2024 at 07:01
Originally posted by Kent Cooper Kent Cooper wrote:

If you can figure out why that what's-selected box is empty, maybe that will help with getting to the end tangent vectors.


I have no idea of why the selected-box is empty.
What should I do then?

Edited by dery - 20.Aug.2024 at 09:42
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 660
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kent Cooper Quote  Post ReplyReply Direct Link To This Post Posted: 20.Aug.2024 at 12:26
Maybe this will give you some help.  I have no other suggestions.
Back to Top
dery View Drop Down
Senior Member
Senior Member


Joined: 31.Jan.2018
Location: United States
Using: AutoCAD 2014
Status: Online
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote dery Quote  Post ReplyReply Direct Link To This Post Posted: 20.Aug.2024 at 15:46
Unfortunately, after doing your suggestions, still not working. Can it be done by using command?
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 660
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kent Cooper Quote  Post ReplyReply Direct Link To This Post Posted: 20.Aug.2024 at 19:29
It can be done with entity data.  If edata is the entity data list of a Spline [extracted with (entget)], this will make the start tangent [the 12 entry] upward and the end tangent [13] downward:

(entmod (append edata '((12 0.0 1.0 0.0) (13 0.0 -1.0 0.0))))

Play around with the value of what's 1.0 there [both positive and negative] to adjust the "strength" of the directions.
Back to Top
dery View Drop Down
Senior Member
Senior Member


Joined: 31.Jan.2018
Location: United States
Using: AutoCAD 2014
Status: Online
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote dery Quote  Post ReplyReply Direct Link To This Post Posted: 21.Aug.2024 at 08:01
How do I do that? Could you tell me please the step-by-step procedure? It's better if you show me by gif animation.
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 660
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kent Cooper Quote  Post ReplyReply Direct Link To This Post Posted: 21.Aug.2024 at 15:40
In simplest terms, paste this in at the Command: line:

(defun C:STE (/ spl sdata) ; = Spline Tangencies at Ends
  (setq
    spl (car (entsel "\nSpline to have end tangent directions forced: "))
    sdata (entget spl)
  )
  (entmod (append sdata '((12 0.0 1.0 0.0) (13 0.0 -1.0 0.0))))
)

Then type in the command name STE.  It can be made more sophisticated, such as to verify that you selected an open-ended Spline.

Note again that this particular version forces the starting tangency to be upward, and the ending tangency downward, as appropriate to the images in this topic.  Different versions could be made for different orientations.  Or it could be made to ask, or possibly to determine something from the configuration of the selected Spline, and/or to figure out the "strength" of the directionality based on something about the Spline, and so on.

If you paste it into a plain-text editor such as Notepad, and save it to a file with a .LSP filetype ending, you can use APPLOAD to load it into any drawing.  If you would use it often enough to justify this, it can be made to automatically load in every drawing you open, so it will always be available.
Back to Top
dery View Drop Down
Senior Member
Senior Member


Joined: 31.Jan.2018
Location: United States
Using: AutoCAD 2014
Status: Online
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote dery Quote  Post ReplyReply Direct Link To This Post Posted: 22.Aug.2024 at 17:58
I got this message after paste-ing the code you sent to me and execute it by typing STE:

"Spline to have end tangent directions forced:"

What should I do?
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 660
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kent Cooper Quote  Post ReplyReply Direct Link To This Post Posted: 23.Aug.2024 at 14:11
Pick it.  Maybe I should have made the prompt more long-winded:
"Select Spline to have end tangent directions forced:"
Back to Top

Related CAD tips:


 Post Reply Post Reply Page  <12
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,520 seconds.