Assign a part to a layer

Hello

Is it possible to assign a part to a layer in an assembly  before being in the mep?

Or for a block? 

 

1 Like

Does this answer your question? http://help.solidworks.com/2015/English/api/sldworksapi/Put_Assembly_Components_in_Drawing_View_on_Different_Layers_Example_VB.htm

@opiep27

Maybe I'm going to say something stupid

but for me a layer or a block is 2D

so I don't see how to put a 3D part in a layer or a block

@+ ;-)

1 Like

@gt22: it is to indicate the position of the electrical or water connections... So just symbols.

Or I put them in a block on a sketch in a 3D part.

or I add them as a part (which contains only a sketch) in an assembly.

The goal is then to display or not the layer with all the connections. and that these blocks attach directly to the correct layer during the MEP.

 

@MaD: not had time to try again.

1 Like

Layers

You can create layers in a SolidWorks drawing document. You can then assign visibility, color, weight, and line style to the new entities (annotations and assembly components) created on the different layers. New features are automatically added to the current layer.

  • Layers can also be used with dimensions, hatched areas, detail circles, and crop lines.

  • In part or assembly drawings, components can be moved to layers. The Component's Line Font dialog box contains a list from which you can select a layer name for the component.

  • If you import a .dxf or .dwg file into the SolidWorks drawing, the layers are automatically created. Layer information (entity name, properties, and location) is preserved.

  • If you export a drawing that contains layers as a .dxf or .dwg file, the file will include the layers' information. When you then open the file in the target system, the features are on the same layers and have the same properties unless you use projection to redirect the features to new layers.

  • You can assign document-level layers to each dimension type, annotation, table, and label in the detail view.

To create a drawing layer:

  1.  Click Layer  Properties (Layer toolbar or Line Formatting toolbar).

  2. In the dialog box, click New and enter the Name of a new layer.

NOTE: If you save the drawing as a .dxf file or .dwg the layer name can be changed in the .dxf file or .dwg as follows:    

    • All characters are converted to capital letters.

    • All spaces in the name are converted to an underscore.

  1. Specify the line format of the features on this layer as follows:

  • To add a description, double-click the Description column and type the text.

  • To specify the color of the line, click the Color box , select a color, and click OK.

  • To specify the style or thickness, click in the Style or Thickness column and select the desired style or thickness from the list.

  1. Repeat steps 2 and 3 to create as many layers as you need.

Active. An arrow  indicates the active layer. To activate a layer, click next to the layer name. The active layer is also displayed on the Layer toolbar.

On/off. A yellow  light bulb appears with any layer visible. To hide a layer, click on its light bulb. It then turns white  and all the entities on the layer are hidden. To reactivate the layer, click on the light bulb again.

Move. To move features to another layer, select them in the drawing, select the destination layer, and click Move. You can also select the entities and select the layer name from the Layer toolbar.

Delete. Deletes a layer.

@+

1 Like

Display states in drawings

Display states are used in assemblies to define multiple combinations of parameters for each component. You can show display states in a drawing view.

Parameters include:

  • Hide/Show
  • Display Mode
  • Component Color
  • Component Texture
  • Component RealView appearance
  • Transparency

You can set multiple display states for each configuration of an assembly. Part drawing views can have configurations but not display states.

Set options for display states in the PropertyManagers of drawing views or in the Properties dialog box of the drawing view.

Table of Contents

  • Line Format

     

  • Component line font

    The Component Line Font dialog box allows you to change the line font style of the edges on each component in an assembly drawing. Choosing a line font other than the default allows you to distinguish individual components in the drawing view.

  • Displaying Edges in Drawings

    When you select an edge in a drawing, the entire line is highlighted if all related segments are collinear.

  • Displaying tangent edges

    Tangent edges are the transition edges between rounded or faired faces in drawing views. They are displayed in Deleted Hidden Lines or Hidden Apparent Lines mode. The most commonly encountered tangent edges are fillet edges.

  • Layers

    You can create layers in a SolidWorks drawing document. You can then assign visibility, color, weight, and line style to the new entities (annotations and assembly components) created on the different layers. New features are automatically added to the current layer.

Parent topic

Aligning and displaying the drawing view

Related concepts

Display State Mode

Related Reference

Drawing view properties

Search for 'Display States in Drawings' in the SOLIDWORKS Knowledge Base.

@+

The nice and easy thing to do is to create a macro generating the layer(s) in the drawing (at least all users end up with layers with the same name).

See in PJ a macro creating a 'forced dimensions' layer (I know it's not good but sometimes it's useful .. and at least with this layer we know what is forced in the MEP)

It's easily editable to create your own custom layers.


creation_calque_cote_forcees.swp