A lisp to auto rotate Structures?

A lisp to auto rotate Structures?

faisalWJ8Y9
Enthusiast Enthusiast
1,099 Views
12 Replies
Message 1 of 13

A lisp to auto rotate Structures?

faisalWJ8Y9
Enthusiast
Enthusiast

Hi

 

I was wondering if anyone has a lisp that can automatically rotate a structure to line up with the object it is connected with.

 

For example if I create a stormwater pipe network using the pipe network tools button  and I've used a structure from my structure parts list such as a pit and the pit is rotated incorrectly rather than 90 degrees whether there is a lisp that will auto rotate it to be 90 degrees. So rather than selecting pit by pit and rotating them individually it will bulk rotate them.

 

thanks,

 

FD

0 Likes
1,100 Views
12 Replies
Replies (12)
Message 2 of 13

VincentSheehan
Advisor
Advisor

You could edit the pipe network and change all the angles in the Panorama.

Storm Panorama.png

Vincent Sheehan

Sr. Civil Designer
Poly In 3D Blog

0 Likes
Message 3 of 13

cwitzel5NL5H
Advocate
Advocate

Or a Dynamo Script.  That one doesn't seem that complicated.

 

 

Conan Witzel
Herrera Inc
0 Likes
Message 4 of 13

faisalWJ8Y9
Enthusiast
Enthusiast

AH thank you, still new to the design side of things, didn't realise it had a in built way to do it. 

0 Likes
Message 5 of 13

tcorey
Mentor
Mentor

In the Panorama, select the Structures to be rotated. Right click the column heading for rotation and select Edit. Type the new rotation for all selected structures and press enter.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Platinum Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 6 of 13

paolo_rotaFK7DE
Explorer
Explorer

I think there isn't a node to set the rotation angle of a structure. Has anyone an idea how to solve this problem?

0 Likes
Message 7 of 13

tcorey
Mentor
Mentor

A "Node" to set the rotation? Do you mean "there isn't a Grip to set the rotation angle of a structure." ?



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Platinum Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Likes
Message 8 of 13

paolo_rotaFK7DE
Explorer
Explorer

Sorry, no I mean a Dynamo node to automatically set the rotation angle to the structure

0 Likes
Message 9 of 13

Joe-Bouza
Mentor
Mentor

I have always felt the getting started video for pipes is a misleading piece of advertising.

Joe Bouza
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 10 of 13

samir.rezk
Autodesk Support
Autodesk Support

Hi @faisalWJ8Y9 and @cwitzel5NL5H 

If you are working on Civil 3D 2025.1 update, there is a sample Dynamo graph that will rotate structures perpendicular to a given alignment. It's available in the Dynamo Player samples, but you can also explore it in Dynamo as a good starting point:

 

2024-11-27_16h37_01.png

 

@paolo_rotaFK7DE the Object.SetRotation node in Dynamo > AutoCAD shelf can be used to rotate many different Objects, it's not specific to Structures, but will be able to assign the rotation angle of a structure!

 

Hope this helps,




Samir Rezk
Technical Support Specialist

Message 11 of 13

paolo_rotaFK7DE
Explorer
Explorer

Thank you very much, this node "Object.SetRotation" will be very useful

0 Likes
Message 12 of 13

Hemalatha_Sivanesan
Community Visitor
Community Visitor

Can you tell me Object.setrotation under which package?

0 Likes
Message 13 of 13

samir.rezk
Autodesk Support
Autodesk Support

@Hemalatha_Sivanesan 

It's natively part of Dynamo for Civil 3D, no package needed. You will find it under the AutoCAD library, be sure to visit the Dynamo for Civil 3D primer for learning resources to get started 

Hope this helps, 




Samir Rezk
Technical Support Specialist

0 Likes