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: 6881
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

Topic Closedmeasure different lengths along polyline

 Post Reply Post Reply
Author
CAD7875 View Drop Down
Groupie
Groupie


Joined: 15.Jul.2009
Location: United Kingdom
Using: autocad 2015
Status: Offline
Points: 24
Direct Link To This Post Topic: measure different lengths along polyline
    Posted: 09.May.2014 at 17:27

hi there,

does anyone know how I can measure different lengths along a polyline. I have to set blocks at different distances along a polyline ie from 1st block, next is 3m along, 3rd is 3.6m along etc etc .

managed to find something that would do it along the curve of the polyline but not on a straight line?

 

help much appreciated Smile

Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 09.May.2014 at 17:29
You could always use the copy command and key in the total distance as measured from the first instance of the block's insertion.  So you would create copies at 3m, 6.6m, etc.
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
CAD7875 View Drop Down
Groupie
Groupie


Joined: 15.Jul.2009
Location: United Kingdom
Using: autocad 2015
Status: Offline
Points: 24
Direct Link To This Post Posted: 09.May.2014 at 17:43
can't use copy command John, polyline, which is the centre of a corridor, starts off horizontal and then curves upwards in an 'S' shape. I need to plot light fittings at different distances along the polyline following the centre of the corridor
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 09.May.2014 at 17:56
Sorry, can't help you there.  Try asking over at the AutoCAD Discussion Group (customization), CADTutor or The Swamp.  You'll find more lisp gurus at those sites than you will here.  No offense meant to anyone here.
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

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


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Online
Points: 625
Direct Link To This Post Posted: 09.May.2014 at 19:22
That is certainly possible in an AutoLISP routine.  Would you want such a routine to ask the User for the initial location (whether by picking or as a distance from the start) and then the distance to the next for each one, or would you have the spacings in a list, or some other means of defining where they go?  It would involve the (vlax-curve-getPointAtDistance) function applied to the Polyline to find the insertion points, using a cumulative distance adding each spacing as it goes along.  They can be inserted to align with the local direction of the Polyline (or all at any constant angle relative to it), or all at the same rotation, as you prefer.
Back to Top
Vladimir Michl View Drop Down
Moderator Group
Moderator Group

Arkance Systems CZ

Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2018
Direct Link To This Post Posted: 11.May.2014 at 09:21

See the tip:

http://www.cadforum.cz/cadforum_en/qaID.asp?tip=5883

and our old LGC utility.

Vladimir Michl (moderator)
Arkance Systems - arkance-systems.cz - Autodesk reseller
Back to Top
CAD7875 View Drop Down
Groupie
Groupie


Joined: 15.Jul.2009
Location: United Kingdom
Using: autocad 2015
Status: Offline
Points: 24
Direct Link To This Post Posted: 13.May.2014 at 13:16
Kent, that's what I was hoping for - picking the start point and then the distance to the next point for each one - have tried one lisp that I found on here but it only picks up on the curve of a polyline and not its entirety
Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Online
Points: 625
Direct Link To This Post Posted: 13.May.2014 at 22:36
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,352 seconds.