mg1409 Posted Saturday at 11:41 AM Posted Saturday at 11:41 AM Hi all, I'm using Autodesk Civil 3D Version 2024 and looking for a solution of following issue. I imported polylines from a LandXML file, and want to distribute them automatically to different layer according to the different codes that are imported as LandXMLAttributes (AcDb3dPolyline) PlanFeature::desc. For example if the the PlanFeature::desc of a polyline is 2 it should be moved to the layer "0_BOK". Does one of you have a solution for this issue? Quote
SLW210 Posted Saturday at 11:54 AM Posted Saturday at 11:54 AM I have moved your thread to the Civil 3D & LDD Forum, please post in the most appropriate forum. Quote
BIGAL Posted Saturday at 11:38 PM Posted Saturday at 11:38 PM Welcome aboard. Need a sample dwg. Quote
mg1409 Posted Sunday at 09:21 AM Author Posted Sunday at 09:21 AM 2025-06-16_Test_LandXML_Linien.dwg Attached the file and also a picture of the extended attributes, I would like to use for the routine. Once there is a solution I want to have a kind of codelist for all lines. Quote
BIGAL Posted Monday at 01:04 AM Posted Monday at 01:04 AM This is as far as I got, I am sure could find other values by digging more. (setq ent (car (entsel "\nPick object "))) (setq a (entget (cdr (assoc 360 ent)))) (setq b (entget (cdr (assoc 360 a)))) (setq c (entget (cdr (assoc 360 b)))) (setq props (mapcar 'cdr (vl-remove-if-not '(lambda (x) (= (car x) 309)) c))) ("2025-06-17 09:13:03" "Alles.XML" "C:\\\\Users\\\\g45166\\\\Desktop\\\\TOPO\\\\" "2025-06-17 14:47:26" "1.2") Will have another go later, using Bricscad. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.