Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

separate non civil 3d objects in a drawing

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
TherealJD
627 Views, 6 Replies

separate non civil 3d objects in a drawing

Good morning!

 

Does anyone know of a way to select all the non-c3d content in a drawing?

I have a really messed up drawing file, and i want to take the non-c3d content in a drawing, and block it out and have it as an x-ref instead.

 

I was starting to use the quick selection filter, but there's a huge list of entities, lines / polylines / mtext / circles, etc.

 

Any suggestions?

 

Cheers,

 

Jd...

6 REPLIES 6
Message 2 of 7
sboon
in reply to: TherealJD

Perhaps you could do it in reverse.  Use Quick Select to isolate and erase all of the C3d objects, then save the drawing to a new file.  You probably should use the style purge tool also.

 

Steve
Please use the Accept as Solution or Kudo buttons when appropriate

Steve
Expert Elite Alumnus
Message 3 of 7
TherealJD
in reply to: sboon

There's an extensive list of C3d objects as well. 😞

 

Maybe a way to make all civil 3d objects Non-visible, without having to but a non-visible style to each type?

 

 

Message 4 of 7
neilyj666
in reply to: TherealJD

Do you have all the Civil objects on layers starting C- l? If so freeze all the others layers and delete the C- layers

neilyj (No connection with Autodesk other than using the products in the real world)
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


AEC Collection 2024 UKIE (mainly Civil 3D UKIE and IW)
Win 11 Pro x64, 1Tb Primary SSD, 1Tb Secondary SSD
64Gb RAM Intel(R) Xeon(R) W-11855M CPU @ 3.2GHz
NVIDIA RTX A5000 16Gb, Dual 27" Monitor, Dell Inspiron 7760
Message 5 of 7
tcorey
in reply to: TherealJD

This code will make a selection set called nonaec:

 

(defun c:go (/ allobj len ctr ent etyp)

(vl-load-com)

(setq allobj (ssget "All")
len (sslength allobj)
ctr 0)
(setq nonaec (ssadd))
(while (< ctr len)
(setq ent (ssname allobj ctr)
etyp (substr (cdr (assoc 0 (entget ent))) 1 4)
)
(if (/= etyp "AECC")
(ssadd ent nonaec)
)
(setq ctr (1+ ctr))
)
(princ)
);end function

 

 

After loading the lisp routine, type Go to make it run. After starting the wblock command, when you go to select objects to export, type !nonaec to have it use the selection set created by the lisp routine. Be sure to use the exclamation mark in front of the selection set name.

 

Best regards,

 

Tim

 



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

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
Message 6 of 7
LyleHardin
in reply to: tcorey

A manual method of selecting the civil stuff is to use the SSX command.  See my command text screen below.

 

Command: SSX
Initializing...
Type "ssx" at a Command: prompt or
(ssx) at any object selection prompt.
Select object <None>: Return
Enter filter option [Block name/Color/Entity/Flag/LAyer/LType/Pick/Style/Thickness/Vector]: e
>>Enter entity type to add <RETURN to remove>: *aec*

Current filter: ((0 . "*aec*"))
Enter filter option [Block name/Color/Entity/Flag/LAyer/LType/Pick/Style/Thickness/Vector]:

108 found.

 

This will select all the AEC objects in the drawing and save that selection in memory.

You then Wblock "All" and "R"emove "P"revious (the selection you just made with SSX)  thusly wblocking out all the non-Civil 3D (aec) objects.

Message 7 of 7
TherealJD
in reply to: TherealJD

Tim / Hardin

 

Both methods work!

 

Thanks for the help.

 

Definitely going to keep this info. I'm sure i'll use it again at some point.

 

Cheers,

 

Jd

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


 

Autodesk Design & Make Report