Announcements

Community notifications may experience intermittent interruptions between 10–12 November during scheduled maintenance. We appreciate your patience.

LISP routine for auto elevating building pads

LISP routine for auto elevating building pads

rjames94
Enthusiast Enthusiast
1,285 Views
7 Replies
Message 1 of 8

LISP routine for auto elevating building pads

rjames94
Enthusiast
Enthusiast

I'm looking for a lisp routine that will automatically elevate closed polylines (building pads) to the text elevation inside those closed polylines. I've been using the AEV_AutoEleVateUI.lsp routine but it doesn't consistently work they way I want, I think because its more for elevating contours. Using that routine requires me check every elevation to be sure it's correct because it may elevate the neighboring pad with the same elevation just because it falls within its selection radius. I wanted to see if there a more refined way of doing this, maybe like selecting the polyline and searching inside the area of the closed polyline for the text and elevating it that way. That seems like it would be a solid method of guaranteeing every pad was elevated properly and eliminating the need to go back and check every single pad. Please let me know if you have any solutions to this, it would save me a great deal of time. Thanks!

 

Attached is the old lisp routine I've been using as well as a dwg of some pads and pad elevation text as an example.

0 Likes
1,286 Views
7 Replies
Replies (7)
Message 2 of 8

SMorykin
Collaborator
Collaborator

@rjames94 - what version of Civil 3D are you using?  If using 2020, I would suggest a Dynamo script to complete your task.  I will look into creating one for your use.


If this post solves your issue or answers your question, Please select the ‘Accept as Solution’ button so other Community members may benefit. Thank you!
0 Likes
Message 3 of 8

Joe-Bouza
Mentor
Mentor

if I understand correctly, you are looking to adjust based on the texted typed in.

 

I suggest a different approach use feature lines for your pads and create a feature line lable style to pick up the elevation. now you raise lower your building pads fronm the prospector and the annotation is synced. Kind of how the software works

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 4 of 8

Neilw_05
Mentor
Mentor

Don't know what Dynamo can do. Looking forward to your solution.

 

Another idea is to use object data to assign the elevations as attributes to the polylines. This can be done all at once. Then a Map Query with Alter Properties could elevate the polylines according to the attributes. Then convert the polylines to featurelines all at once.

Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com
Message 5 of 8

rjames94
Enthusiast
Enthusiast

Yes I'm using Civil 3D 2020. I'm interested in any solution that's faster than manually checking and elevating each polyline, and it being mostly automated would be ideal. I understand I'll of course need to do little prep work of isolating the the text and building linework from the rest of the site linework but that is expected and doesn't take much time at all. I haven't heard much about Dynamo but it sounds interesting! Thank you 

0 Likes
Message 6 of 8

rjames94
Enthusiast
Enthusiast

Yeah typically I would elevate the polylines then make feature lines out of them then create a detached surface from all of building feature lines. Syncing the text to the respective building line would be automatically done or at faster then manually tell each line to pull what text? Would like something that is as fast as possible and being mostly automated. Let me know more, thanks!

0 Likes
Message 7 of 8

rjames94
Enthusiast
Enthusiast

I'm going to try this method later today. You mention it can assigned the attributes all at once which sounds like less manual selecting. I'll let know how it goes it will reach out if I have any problems or questions. Thanks.

0 Likes
Message 8 of 8

АлексЮстасу
Advisor
Advisor

This can be done using ADEGENLINK and _ADEQUERY from Map 3D as advised by . That 's exactly what I would do. 😀

Although, it 's a lot of action.
I am not a programmer, but in my experience for lisp this task is not complicated.
I think that the program does not need any selection radius, but needs a criterion for the presence of a text insertion point in a closed polygon.
And your question is not specific for Civil/Map. Better place your question on the developer forums - https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130

https://forums.autodesk.com/t5/civil-3d-customization/bd-p/190 or etc.

Perhaps there will help faster and better.


-- Alexander, private person, pacifist, english only with translator 🙂 --

Object-modeling _ odclass-odedit.com _ Help