Steven P Posted February 14, 2018 Posted February 14, 2018 good afternoon, and sorry if I am being stupid today (in my defence, a long 4 day weekend just finished this morning) I want to select everything in modelspace, how do I do that with LISP? I can get everything in the drawing with (ssget "x") but I am not sure how to just get the objects drawn in model space (ie everything but the border) (I am wanting to make up a very simple routine to put everything in model space to layer 0, but keep the borders as they are on their layers, which I can run when the drawing opens and with no human interaction) Thanks and appologies for a simple question Quote
BKT Posted February 14, 2018 Posted February 14, 2018 See if using "_A" instead of "X" does what you want... Quote
ronjonp Posted February 14, 2018 Posted February 14, 2018 Also this: (ssget "_x" '((410 . "Model"))) Quote
Lee Mac Posted February 14, 2018 Posted February 14, 2018 See if using "_A" instead of "X" does what you want... The "A" mode string omits objects on frozen layers, it will still include objects in all layouts - see this reference. Quote
Steven P Posted February 15, 2018 Author Posted February 15, 2018 Thanks Lee, I was quite happy with what I had until I saw that.... I'll try ronjonp suggestion Quote
BKT Posted February 15, 2018 Posted February 15, 2018 The "A" mode string omits objects on frozen layers, it will still include objects in all layouts - see this reference. Missed the frozen layers thing, Lee - thanks for the correction. About the layouts, I don't have AutoCAD to check this out but when I use the "A" mode in BricsCAD from model space it ignores the entities on the layouts, whereas "X" will grab entities from both model and layouts. Maybe somebody could check that for me in AutoCAD? Quote
Lee Mac Posted February 15, 2018 Posted February 15, 2018 No worries - Maybe somebody could check that for me in AutoCAD? In AutoCAD, both the "X" and "A" mode strings include objects in all layouts. Quote
BKT Posted February 16, 2018 Posted February 16, 2018 Wow! This is what I get for not keeping up on version updates. This was fixed a while back: Version 15.1.11 (BricsCAD) "SR48908 - LISP/SDS/BRX : ssget("A") did only select entities from active layout/space, instead of from any layout/space." Way to go, BricsCAD! Quote
betazero Posted November 14, 2020 Posted November 14, 2020 Well now "A" AND "_A" IN BRICSCAD works like Autocad and selects in model and paperspace. how do I use the code below? Where do I put the variable I want to fill with data? Could you show it in a sample? I know the thread is old so not hopeful for a response (ssget "_x" '((410 . "Model"))) Quote
dlanorh Posted November 14, 2020 Posted November 14, 2020 2 hours ago, betazero said: Well now "A" AND "_A" IN BRICSCAD works like Autocad and selects in model and paperspace. how do I use the code below? Where do I put the variable I want to fill with data? Could you show it in a sample? I know the thread is old so not hopeful for a response (ssget "_x" '((410 . "Model"))) (setq ss (ssget "_X" '((410 . "Model")))) 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.