Author Topic: Layer Isolate  (Read 1565 times)

0 Members and 1 Guest are viewing this topic.

Chris

  • Swamp Rat
  • Posts: 503
Layer Isolate
« on: January 23, 2012, 08:42:46 am »
We recently started using C3D, and over the course of a few projects, we've started to notice a few issues that aren't serious ones, just kind of like, it would be nice if we could do this type issues.  One of those issues is the ability to isolate a layer.  currently if we use the layer isolate command, it treats a c3d entity as though that is all it is. If a corridor is on layer ZC3D, and we want to isolate the slope stake line (daylight feature line), using the layiso command results in a blank screen, the ZC3D layer is on, but the slopestake line, because it is on layer Prop Slope Stake doesnt show up.  Has anyone come up with a method for actually determining the nested layer name and allowing a user to isolate that particular layer?  I know you can switch your settings to use lock and fade, and it gets you close.  I'd just like to be able to do it with layer off.

Thanks,
Christopher T. Cowgill, P.E.
WIGHTMAN & ASSOCIATES, INC.
ENGINEERING * SURVEYING * ARCHITECTURE
Autodesk Infrastructure Design Suite 2013
Win 7 Pro 64

alanjt

  • Needs a day job
  • Posts: 4635
  • Standby for witty remark...
Re: Layer Isolate
« Reply #1 on: January 23, 2012, 08:45:03 am »
You'll soon learn the usefulness of the Isolate/Hide objects commands.
Civil 3D 2011|2012 ~ Windohz 7
Dropbox

Chris

  • Swamp Rat
  • Posts: 503
Re: Layer Isolate
« Reply #2 on: January 23, 2012, 08:47:09 am »
is there a quick way to isolate/hide all objects that are not of a particular layer?  Perhaps its time for me to dig into VLISP and make one if there isnt.
Christopher T. Cowgill, P.E.
WIGHTMAN & ASSOCIATES, INC.
ENGINEERING * SURVEYING * ARCHITECTURE
Autodesk Infrastructure Design Suite 2013
Win 7 Pro 64

mjfarrell

  • Needs a day job
  • Posts: 9915
  • Every Student their own Lesson
Re: Layer Isolate
« Reply #3 on: January 23, 2012, 08:56:44 am »
Select similar, select similar...to build your selection set.

Then Hide or Isolate Objects as required.

Is the Independant On Off control set in your Drawing Settings?
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Chris

  • Swamp Rat
  • Posts: 503
Re: Layer Isolate
« Reply #4 on: January 23, 2012, 08:58:58 am »
its set to on, but it doesnt seem to behave the way I believe that it should.  I would think that with it on, if I Isolate contour annotations, that should be what I see, not a blank screen (until I manually turn back on the annotation layer)
Christopher T. Cowgill, P.E.
WIGHTMAN & ASSOCIATES, INC.
ENGINEERING * SURVEYING * ARCHITECTURE
Autodesk Infrastructure Design Suite 2013
Win 7 Pro 64

mjfarrell

  • Needs a day job
  • Posts: 9915
  • Every Student their own Lesson
Re: Layer Isolate
« Reply #5 on: January 23, 2012, 09:02:56 am »
It will behave the way you expect it to when you change your code set that the corridor and assemblies are using so that the various display components are on their own layers.

Currently your code set style has them inheriting the parent object layer.  "C-ROAD-CORR" or similar.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

BuckoAk

  • Newt
  • Posts: 54
Re: Layer Isolate
« Reply #6 on: January 23, 2012, 05:12:39 pm »
its set to on, but it doesnt seem to behave the way I believe that it should.  I would think that with it on, if I Isolate contour annotations, that should be what I see, not a blank screen (until I manually turn back on the annotation layer)


Are you using the standard LAYISO to isolate your layers?

If So....Try the ISOLATEOBJECTS & UNISOLATEOBJECTS, this is also in your Right Click Menu. 
Use this in-conjunction with Select Similar
Dell Intel Core i7 2.93GHz 16.00GB Ram
Win7 Pro 64Bit; AutoCad Civil 3D 2013
Quadro FX 1800 Video Card 768MB Ram

mjfarrell

  • Needs a day job
  • Posts: 9915
  • Every Student their own Lesson
Re: Layer Isolate
« Reply #7 on: January 23, 2012, 05:30:35 pm »
its set to on, but it doesnt seem to behave the way I believe that it should.  I would think that with it on, if I Isolate contour annotations, that should be what I see, not a blank screen (until I manually turn back on the annotation layer)


Are you using the standard LAYISO to isolate your layers?

If So....Try the ISOLATEOBJECTS & UNISOLATEOBJECTS, this is also in your Right Click Menu. 
Use this in-conjunction with Select Similar
See above:

Select similar, select similar...to build your selection set.

Then Hide or Isolate Objects as required.

Is the Independant On Off control set in your Drawing Settings?

The actual commands in the Right-Click menu are Isolate Selected Objects
witch issues:

_AecIsolateObjects 1 found

Command: ISOLATEOBJECTS
1 found

Right-Click menu are End Isolation
witch issues:

Command: _AecUnIsolateObjects
Command: UNISOLATEOBJECTS

At issue here is that Contours are a Display component of the Surface object, as is the Daylight Line (slope Stake line) a display component of the corridor object.

However to take advantage of that the display components will need to be assigned their own layer within thier style(s) to take advantage of the Imediate and Independant Layer On Off controls, set within the drawing settings.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Mark

  • Custom Title
  • Administrator
  • Seagull
  • Posts: 24083
Re: Layer Isolate
« Reply #8 on: January 24, 2012, 07:58:36 am »
Select similar, select similar...to build your selection set.

Then Hide or Isolate Objects as required.
Cool! I like learning something new. :)
TheSwamp.org  (serving the CAD community since 2003)

mjfarrell

  • Needs a day job
  • Posts: 9915
  • Every Student their own Lesson
Re: Layer Isolate
« Reply #9 on: January 24, 2012, 08:09:30 am »
Select similar, select similar...to build your selection set.

Then Hide or Isolate Objects as required.
Cool! I like learning something new. :)
So when are we scheduling your class?   ;-)
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Chris

  • Swamp Rat
  • Posts: 503
Re: Layer Isolate
« Reply #10 on: January 31, 2012, 01:33:35 pm »
However to take advantage of that the display components will need to be assigned their own layer within thier style(s) to take advantage of the Imediate and Independant Layer On Off controls, set within the drawing settings.
Still doesnt seem to work at all when using the standard layiso command.   The overall group name is the layer that gets isolated, not the display component, even if they have their own layer within the style.  I think what I need to do is write a new layer isolate lisp program that will isolate the layer of the individual component.
Christopher T. Cowgill, P.E.
WIGHTMAN & ASSOCIATES, INC.
ENGINEERING * SURVEYING * ARCHITECTURE
Autodesk Infrastructure Design Suite 2013
Win 7 Pro 64

mjfarrell

  • Needs a day job
  • Posts: 9915
  • Every Student their own Lesson
Re: Layer Isolate
« Reply #11 on: January 31, 2012, 04:36:59 pm »
We recently started using C3D, and over the course of a few projects, we've started to notice a few issues that aren't serious ones, just kind of like, it would be nice if we could do this type issues.  One of those issues is the ability to isolate a layer.  currently if we use the layer isolate command, it treats a c3d entity as though that is all it is. If a corridor is on layer ZC3D, and we want to isolate the slope stake line (daylight feature line), using the layiso command results in a blank screen, the ZC3D layer is on, but the slopestake line, because it is on layer Prop Slope Stake doesnt show up.  Has anyone come up with a method for actually determining the nested layer name and allowing a user to isolate that particular layer?  I know you can switch your settings to use lock and fade, and it gets you close.  I'd just like to be able to do it with layer off.

Thanks,

I think a better way to approach this is to ask:

What are you wanting to do with those slope stake feature lines from the corridor?

It's possible that you may not need to isolate any layers to do what you are attempting to do.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Chris

  • Swamp Rat
  • Posts: 503
Re: Layer Isolate
« Reply #12 on: February 01, 2012, 07:39:17 am »
my answer I believe would be see them better.  Its just basically to shut everything else off and see the slope stake by itself to verify there are no anomalies.
I suppose by stating it that way problem solved:
Code: [Select]
(defun c:test (/)
(command "-layer" "off" "*" "on" "Prop Slope Stake,ZC3D" "")
)
Christopher T. Cowgill, P.E.
WIGHTMAN & ASSOCIATES, INC.
ENGINEERING * SURVEYING * ARCHITECTURE
Autodesk Infrastructure Design Suite 2013
Win 7 Pro 64

mjfarrell

  • Needs a day job
  • Posts: 9915
  • Every Student their own Lesson
Re: Layer Isolate
« Reply #13 on: February 01, 2012, 08:33:52 am »
Optionally, one could EXTRACT them from the corridor for this visual inspection.
Otherwise it appears you have a solution.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Chris

  • Swamp Rat
  • Posts: 503
Re: Layer Isolate
« Reply #14 on: February 01, 2012, 08:35:35 am »
would extracting them create a polyline that I could turn on linetype generation for?
Christopher T. Cowgill, P.E.
WIGHTMAN & ASSOCIATES, INC.
ENGINEERING * SURVEYING * ARCHITECTURE
Autodesk Infrastructure Design Suite 2013
Win 7 Pro 64

mjfarrell

  • Needs a day job
  • Posts: 9915
  • Every Student their own Lesson
Re: Layer Isolate
« Reply #15 on: February 01, 2012, 09:02:20 am »
in a 'round the way fashion...YES

You may need to either perform an Export to Autocad operation, or Explode them.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

sinc

  • Gator
  • Posts: 3124
  • I think I cad...
Re: Layer Isolate
« Reply #16 on: February 06, 2012, 02:51:04 am »
Sounds like you're looking for this (third-party solution):

http://www.quuxsoft.com/SincpacC3D_Help/SP_LayerIsolate.htm
-- Sinc
Civil-3D 2012
http://www.ejsurveying.com
http://www.quuxsoft.com
Unleash Civil-3D with the Sincpac-C3D!

caddcop

  • Newt
  • Posts: 85
Re: Layer Isolate
« Reply #17 on: February 12, 2012, 04:18:12 pm »
I put together some VBA code after searching for some examples that access the Civil 3D objects.
(I' m too much of a noob when it comes to lisp or vlisp.)
Anyway, it reads the object and in my case, I was looking for the surface items - contour layers, etc.  And if it finds a surface object, it gets its style and then from the style, it bores down to read the layers used in the style.
So far, that's as far as I got - it opens a dialog box and shows that info and a bit more. My next step was going to be to add some buttons to allow layer commands based upon these values. I have not had time to work out the user interface or commands to follow.
The procedure is called List_Object
Remember, this is a work in progress.

sinc

  • Gator
  • Posts: 3124
  • I think I cad...
Re: Layer Isolate
« Reply #18 on: February 14, 2012, 07:53:45 pm »
Last I checked, it's still impossible to figure out which item the user selects.  You can try to make "guesses", based on the pick location, but then identifying the closest Surface element (Contour, TIN Triangle, Boundary, etc.) becomes very difficult.

That's why I haven't yet added that sort of functionality to the Sincpac-C3D SPLayIso command.  This sort of stuff becomes easier, though, as the C3D .NET API slowly improves.  (Still not sure we can do THIS, though....)
-- Sinc
Civil-3D 2012
http://www.ejsurveying.com
http://www.quuxsoft.com
Unleash Civil-3D with the Sincpac-C3D!