CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

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.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
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

Topic ClosedCreate spline with a perpendicular & mobil segment

 Post Reply Post Reply
Author
Ajendrex View Drop Down
Newbie
Newbie


Joined: 27.Jan.2011
Location: Chile
Using: AutoCAD2010
Status: Offline
Points: 4
Direct Link To This Post Topic: Create spline with a perpendicular & mobil segment
    Posted: 27.Jan.2011 at 16:19
Hello!

Every time I use AutoCAD I have to connect electrical devices with a spline and then I need to draw a perpendicular segment (a line) to the already drawed spline in order to put a number indicating amount of cables.

I'm wondering if there is some way to create a new object, very similar to a spline in the sense that I can define any number of points to draw the spline; but with the additional feature of a "built-in" perpendicular segment.

Furthermore, I would need to be able to move this segment along the spline (after the spline points definition is done).  Perhaps the segment could have an initial position at the middle of the extension of the spline, but this is not really important as far as I can move the segment later.

Does anyone have any clue of how could I get this behaviour for a "personalized spline" (if possible).

Thanks!
Back to Top
tulip3D View Drop Down
Senior Member
Senior Member


Joined: 23.Jul.2009
Location: United States
Using: AutoCAD2011, Inventor2011
Status: Offline
Points: 427
Direct Link To This Post Posted: 27.Jan.2011 at 16:35
Maybe convert the spline using 'splinedit' command to a polyline. then straiten out one end of it the way you like. See if that works...
Back to Top
Ajendrex View Drop Down
Newbie
Newbie


Joined: 27.Jan.2011
Location: Chile
Using: AutoCAD2010
Status: Offline
Points: 4
Direct Link To This Post Posted: 27.Jan.2011 at 17:04
I guess I didn't explain myself well enough.  I don't want to work in each spline instance, I would like to know if I can define a entirely new object (like a line, a polyline or a spline; this one would be named "mypoliline" or something like that)

Also, your advice didn't even result in what I need. Again, I always have to come up with a spline (of arbitrary number of points) and a short line perpendicular to the spline, in an arbitrary position along the spline.

I can do it easily in two steps, first draw the spline and then draw the short line. However, what I'm looking for is a way to do it in only one step: draw the spline and the perpendicular segment automagically appears there.

Thanks!
Back to Top
tulip3D View Drop Down
Senior Member
Senior Member


Joined: 23.Jul.2009
Location: United States
Using: AutoCAD2011, Inventor2011
Status: Offline
Points: 427
Direct Link To This Post Posted: 27.Jan.2011 at 17:17
I would like to know if I can define a entirely new object (like a line, a polyline or a spline; this one would be named "mypoliline" or something like that)

short answer: No. Long answer, you must write you own code (lisp)

I would suggest to simple make your line, and copy it Wink
Back to Top
Ajendrex View Drop Down
Newbie
Newbie


Joined: 27.Jan.2011
Location: Chile
Using: AutoCAD2010
Status: Offline
Points: 4
Direct Link To This Post Posted: 27.Jan.2011 at 17:29
So, short answer is yes. Long answer: may be complicated, Lisp.

Thanks, I will start learning Lisp.
Back to Top
HAWDesigner View Drop Down
Senior Member
Senior Member


Joined: 04.Aug.2008
Location: United States
Using: AutoCAD R14, AutoCAD 2009, AutoCAD 2010
Status: Offline
Points: 310
Direct Link To This Post Posted: 27.Jan.2011 at 17:39
Ajendrex, can you provide a picture of what you're talking about? Or maybe one that resembles what you're trying to accomplish?

Thanks!!
--
R. Williams
AutoCAD 2010 Certified Professional
<!-- If all else fails hit F1 -->
<<AutoCAD 2009
Back to Top
tulip3D View Drop Down
Senior Member
Senior Member


Joined: 23.Jul.2009
Location: United States
Using: AutoCAD2011, Inventor2011
Status: Offline
Points: 427
Direct Link To This Post Posted: 27.Jan.2011 at 17:48
LOL, shoot for the moon!
Back to Top
Ajendrex View Drop Down
Newbie
Newbie


Joined: 27.Jan.2011
Location: Chile
Using: AutoCAD2010
Status: Offline
Points: 4
Direct Link To This Post Posted: 27.Jan.2011 at 18:25
http://tinypic.com/r/25u05yd/7
Back to Top
HAWDesigner View Drop Down
Senior Member
Senior Member


Joined: 04.Aug.2008
Location: United States
Using: AutoCAD R14, AutoCAD 2009, AutoCAD 2010
Status: Offline
Points: 310
Direct Link To This Post Posted: 27.Jan.2011 at 21:38
Ok, I think I understand what you're trying to do. I'm not sure if I will be a complete help to you, but maybe I can at least get you pointed in the right direction here.

I think what you're looking to do is create a Dynamic Block. However, you can create a number of regular blocks and save them to your Tool Pallet so that you can quickly insert each one as you need it. This will at least prevent you from having to recreate the wheel every time you want a new item.

Here's a nice tip on working with Tool Pallets that I really love: au.autodesk.com/?nd=class&session_id=3071
--
R. Williams
AutoCAD 2010 Certified Professional
<!-- If all else fails hit F1 -->
<<AutoCAD 2009
Back to Top
CarlB View Drop Down
Senior Member
Senior Member


Joined: 16.Oct.2009
Location: United States
Status: Offline
Points: 321
Direct Link To This Post Posted: 27.Jan.2011 at 21:50
With a fairly simple lisp you could automate drawing the perpendicular segment.  It would be a separate entity though. Start the routine with say "tic", click on object, and perpendicular line gets drawn. Default length, user adjustable such as with fillet radius.
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,148 seconds.