AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
Contributor
hakangus
Posts: 15
Registered: ‎12-12-2006
Message 1 of 19 (422 Views)
Accepted Solution

Rotate multiple points along alignment

422 Views, 18 Replies
01-14-2014 12:47 AM

Some years ago there was a VB script called Rotate Points.dvb that rotated multiple Civil Points along an alignment. Anyone have a similar command working for Civil R2013?

Product Support
AlmasSuljevic
Posts: 778
Registered: ‎08-11-2010
Message 2 of 19 (374 Views)

Re: Rotate multiple points along alignment

01-15-2014 06:34 AM in reply to: hakangus

Hi hakangus,

 

I am not aware of that script, but you may be able to rotate points with similar procedure to rotate points independently of point label, as described in the blog post Seth Hall wrote. Here is the link: http://beingcivil.typepad.com/my_weblog/2010/01/rotate-point-marker-independently-of-the-point-label...



Almas Suljevic
Product Support Specialist
Autodesk Global Subscription and Support
Autodesk, Inc.

Please click on "Accept as Solution" if post helped you resolve the issue.
Contributor
hakangus
Posts: 15
Registered: ‎12-12-2006
Message 3 of 19 (371 Views)

Re: Rotate multiple points along alignment

01-15-2014 07:08 AM in reply to: hakangus

Thank you for taking your time.

 

I´m afraid that it didn´t help me.

 

On my Alignment I put Points with the command Point/Measure Alignment and took the elevations from my profile.

All points were labeled with a +-sign and elevation and were rotated 0 degrees.

 

What the script made for me in those days was the following:

 

I selected the Point Group, choose the Alignment and the script rotated the points perpendicular to the Alignment for every point.

 

It saved a lot of time instead of rotating each point individually.

It was meantioned in an older forum thread but I can´t find the actual script anymore. (Rotate point.dvb)

*Expert Elite*
mathewk
Posts: 2,745
Registered: ‎07-09-2003
Message 4 of 19 (344 Views)

Re: Rotate multiple points along alignment

01-16-2014 10:39 PM in reply to: hakangus
I wrote that app. It has not been updated to 2013 or 2014 unless some else has done it.
Matt Kolberg
Cansel - Autodesk Division
http://www.cansel.ca/
*Expert Elite*
Jeff_M
Posts: 4,298
Registered: ‎07-22-2003
Message 5 of 19 (339 Views)

Re: Rotate multiple points along alignment

01-16-2014 11:08 PM in reply to: mathewk

Matt, would you mind sharing the code for that? I could out it into a lisp or .NET dll and post back here.

 

Oops! Looks like I found the dvb in my archives. Stay tuned!

Jeff_M, also a frequent Swamper
Contributor
hakangus
Posts: 15
Registered: ‎12-12-2006
Message 6 of 19 (328 Views)

Re: Rotate multiple points along alignment

01-17-2014 01:44 AM in reply to: mathewk

mathewk wrote:
I wrote that app. It has not been updated to 2013 or 2014 unless some else has done it.

Cudos x 1000!

 

Nice to "meet" you Matt, the maker of a wonderful script!

It´s superb news if you, Jeff, would be so nice to rewrite it for me/us!

 

You guys made my day!

*Expert Elite*
Jeff_M
Posts: 4,298
Registered: ‎07-22-2003
Message 7 of 19 (304 Views)

Re: Rotate multiple points along alignment

01-17-2014 11:10 AM in reply to: hakangus

Attached is a new lisp for this. Command name is "ptsalign". Not sure if it functions exactly like the DVB, although it should as I used the same parameters for the rotation. I did add the LabelRotation to match the Point Rotation...this property didn't exist when the DVB was written...not sure if this is desired behavior.

 

Removed this lisp. Updating to match Matt's 2012 version.

Jeff_M, also a frequent Swamper
*Expert Elite*
mathewk
Posts: 2,745
Registered: ‎07-09-2003
Message 8 of 19 (301 Views)

Re: Rotate multiple points along alignment

01-17-2014 11:16 AM in reply to: Jeff_M

Here is the code.  It was last updated to work with 2012.  Rename and remove the txt, change to dvb.  My code rotates blocks as well.

Matt Kolberg
Cansel - Autodesk Division
http://www.cansel.ca/
*Expert Elite*
Jeff_M
Posts: 4,298
Registered: ‎07-22-2003
Message 9 of 19 (292 Views)

Re: Rotate multiple points along alignment

01-17-2014 11:45 AM in reply to: mathewk
Thanks Matt!
Jeff_M, also a frequent Swamper
*Expert Elite*
Jeff_M
Posts: 4,298
Registered: ‎07-22-2003
Message 10 of 19 (285 Views)

Re: Rotate multiple points along alignment

01-17-2014 12:36 PM in reply to: hakangus

New lisp setup to function as Matt's VBA macro does. Note that this should work in all versions of C3D, 2012 and newer.

Jeff_M, also a frequent Swamper
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.