Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT - AddIn] Place cell from cellibrary

$
0
0

[quote user="Maury"]Is your cell a shared cell or is it part of a cell library you are attaching?[/quote]

All cells start off in a cell library.  The library doesn't differentiate between normal and shared cells: that differentiation happens only when you place a cell as a shared cell. Normal cells and shared cells differ in these ways from a user point of view...

  1. When you place an instance of a normal cell, the graphic elements are copied from the cell library and added to the active model
  2. When you place a second and subsequent instances of a normal cell, the graphic elements are copied each time from the cell library
  3. When you place the first instance of a shared cell, MicroStation copies the cell from the library and creates a shared cell definition element in the non-model cache of the active DGN file.  Next, it creates a shared cell instance.  The shared cell instance is linked internally to its definition element in the same DGN file
  4. When you place the second and subsequent instances of a shared cell, MicroStation finds the shared cell definition and creates a new shared cell instance referring to that definition

From the programmer's viewpoint, use the appropriate placement methods for shared and normal cells.  Additionally, for a shared cell placement, the responsibility falls on the programmer to create the shared cell definition element before creating any shared cell instance.


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>