It looks like Autodesk has made some changes on the "NCopy" command. When I NCopy the line in the referent drawing, it doesn't copy to Current Layer like Civil 3D 2009, it just likes inserting/binding the object into the current drawing, it brings the object properties in the referent drawing into current drawing, for example layer name, linetype, color, etc. Is there a way to set NCopy to current layer like C3D 2009?
Thanks.
I have a lisp routine that works like ncopy, but only single picks. It does put it on the current layer.
Jim
Jim,
That works great...Thank you.
I do not know why that functionality got changed in 2011. Certainly, I do not want to bind nested layers into my drawings unnecessarily and then have to purge them out...
Your lisp helps...again, thank you.
Brent
It was probably changed because enough people "wished" for it.
Allen
Allen Jessup
CAD Manager - Designer
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.
I never liked having my lines come in on the current layer either. Usually we want to preserve the layer standards of the linework as it serves a crucial role in identifying what they are. If the source lines were on different layers, all of that information got lost in the translation. Ideally it would be best to have an option to preserve the source layers or use current.
All depends on how you work with it I suppose...An option would be nice.
I am usually using NCOPY with drawings that are not to 'our' standards. In fact, most often not generated 'in-house.' ie. pulling information from an otherwise bloated drawing - planning document, tentative map, etc.
Brent
I second ncopymode. I can't think of an instance where I used ncopy and wanted the object to remain on the source layer.
(defun c:ncopyact (/ LE NE) (setq LE (entlast)) ; last entity in database (command "._ncopy") ; start the original ncopy command ; be quiet while ncopy is active (while (wcmatch (strcase (getvar "cmdnames")) "*NCOPY*") (command pause) ) ; for each new object after LE setq the actual layer (while (setq NE (entnext LE)) (ENTMOD (SUBST (CONS 8 (getvar "CLAYER")) (ASSOC 8 (ENTGET NE)) (ENTGET NE) ) ) (setq LE NE) ; change the LE to the current element ) )
small version:
uses the original ncopy (AutoCAD command) and changes every new element after ending the command.
BUT the original layer will be inserted into the drawing
greetz
Wolfgang S
Thanks. Nice little Lisp.
Allen Jessup
Allen Jessup
CAD Manager - Designer
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.
Is there a way to select multiple objects with nentsel? The previous ncopy command allowed you to select multiple objects.
Hi!
in my little lisp you can select as many objects as you want - one after another.
the same behaviour as the original command.
the "nentsel" is definitley only for 1 object. it´s not possible to select more objects with nentsel.
greetings
Wolfgang S
Hi, thank you for the lisp Wolfgang.
Is it possible to determine base point settings of ncopy in the lisp: base "0,0,0", destination "@"?