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

RE: [CONNECT C++] group hole fill color

$
0
0

[quote user="Zhen Li"]I can not get my group hole color filled[/quote]

A grouped hole consists of a solid outer element and one or more interior hole elements.  Those elements are grouped inside an anonymous cell.  You can see the solid and hole elements if you use the Analyze Element command key-in.

Read the grouped hole into an MSElementDescr*.  Get the first element in the cell, which is the solid that you want to fill.  Duplicate the element. Set the fill on that duplicate.  Then replace that element in the cell descriptor.

You need to use the duplicate-and-replace idiom because adding fill appends extra bytes to the element.  Attempting to replace it in situ will cause problems.


Viewing all articles
Browse latest Browse all 7260

Latest Images

Trending Articles



Latest Images

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