Guide to Using DWG and Other Formats
Guide to Using DWG and Other Formats
Guide to Using DWG and Other Formats
|
MicroStation shared cells are similar to AutoCAD blocks.
A shared cell is a cell whose elements are stored only once in the DGN file, regardless of how often the cell is placed within the DGN file. Any change made to one instance of a shared cell reflects in all instances of that shared cell. For an unshared “normal” cell, on the other hand, the library definition is stored in the DGN file each time the cell is placed. In AutoCAD, all blocks behave like shared cells. There is no analogy to a normal cell.
When you save a DGN file to DWG format, you can use existing cell libraries to help develop the design. Generally, you should use shared cells, as normal cells are not supported in the DWG file format. If your DGN model contains normal cells, however, they will be converted to shared cells in the DWG file.
The following topics provide more details about working with cells:
During the conversion to DWG format, cells migrate with no problems, unless they contain enter data fields. AutoCAD does not have an equivalent feature. To annotate cells in DGN files that will be saved to DWG file, use tags rather than enter data fields. For details, see Tags.
For drawing annotation, MicroStation users have traditionally embedded enter data fields in cell symbols. For example, items like valve designators and door symbols have often been created using this type of cell annotation.
When you save the DGN file as a DWG file, the enter data fields that are not used in cells are converted to text. However, the enter data fields in cells are handled somewhat differently.
In a DGN file, an enter data field may be used to annotate a normal cell (enter data fields cannot be used with shared cells). During conversion, MicroStation converts an enter data field that is part of a cell to an AutoCAD attribute linked to a block. In AutoCAD, the enter data field's value appears as an attribute positioned precisely where the enter data field was located in the MicroStation cell.
Like MicroStation tags, all AutoCAD attributes have an associated label or name. Since MicroStation enter data fields are not defined with a label, the Save As process automatically generates a label for each enter data field that is converted to an attribute. The new label is the cell name plus a sequence number.
These automatically-generated attribute labels may be undesirable, particularly if DWG specifications require specific attribute usage and labels. Since MicroStation cannot store labels for enter data fields, you should not use enter data fields in situations where specific labels are required. Instead, incorporate tags into the cell definition, as these become block attributes when the DGN file is converted to DWG.
The insert layer for a normal (unshared) cell saved in the DWG file corresponds by default to the level of the cell's first component element.
In certain cases it may desirable to override the default insert layer. Consider, for example, what can happen when levels within a viewport (model attached to sheet) are turned off and Level Display is set to a view number. In this case, unless an override is specified, if an insert exists on a layer that is frozen it will not be displayed at all even if the component layers are displayed.
To override the default insert layer for normal cells, set the configuration variable MS_DWGINSERTLAYER to the desired layer name. For example, assigning MS_DWGINSERTLAYER to “MSINSERT” results in the assignments of inserts to the layer "MSINSERT". If this layer does not exist, it will automatically be created.
MS_DWGINSERTLAYER is used to override the default insert layer for reference attachments as well as normal cells. |
Blocks in a DWG file behave like shared cells when the file is opened in MicroStation.
These topics provide more details about working with blocks in MicroStation. You can:
A DWG file can be attached to a DGN or DWG file as a cell library. The individual DWG blocks are converted to shared cells that you can place in your model.
Usually the origin is (0,0,0) in the DWG that is being placed as a cell. However, if the AutoCAD INSBASE (insertion base) system variable is set, it is used as the origin. |
The MS_BLOCKLIST configuration variable can be used to identify a list of DWG files that can be inserted as cells. In this case, the contents of the entire DWG file is placed as a shared cell.
The EXPORT CELLS SHARED key-in can be used to export blocks (or shared cells) from a DWG file to a new MicroStation cell library.
To export blocks or shared cells from a group of files, use the EXPORT CELLS SHARED key-in with the Batch Process utility. |
Multiview block references created by Autodesk Architectural DeskTop display different block definitions in different views, in a manner similar to MicroStation TriForma's compound cells. MicroStation displays these proxy entities by using the general 2D or 3D representations of models. Unlike most proxy entities, which are automatically locked and cannot be modified, multiview block references can be moved, rotated, or scaled with standard MicroStation tools.
To disable this behavior, set the configuration variable MS_DWGNODIRECTPROXIES. When this variable is set, only the proxy entity's graphics or bounding box are displayed.
In DWG workmode, the way that you work with cells is essentially the same as in DGN workmode. All new cells are placed as shared cells, since the DWG file format does not support normal cells. In this workmode, you can also attach a DGN, DWG, or CEL file as a cell library and insert its contents.
In cells, element symbology includes settings for color, line style, and line weight. In MicroStation, cell element symbology can be assigned ByLevel, ByCell, and forced. These three settings are analogous to the AutoCAD ByLayer, ByBlock, and forced settings.
If any of the elements within the cell are assigned symbology ByLevel and are created on the Default level, then they adopt the ByLevel color, ByLevel line style, and ByLevel line weight of the level on which the cell is placed.
If they are assigned ByLevel attributes but are on a level other than Default, they retain the symbology of the level on which they were originally placed.
If the elements are assigned symbology ByCell, they adopt the symbology values that were in effect at the time that the cell is inserted. This setting is only available by default in DWG workmode.
If the element attributes are forced, they always display the same way, regardless of level or active symbology. In other words, if an element within a cell is assigned the color red, then it will always display with the color red.