Author Topic: Database.Insert and Hatch in Dynamic Block  (Read 8197 times)

0 Members and 1 Guest are viewing this topic.

bargool

  • Guest
Re: Database.Insert and Hatch in Dynamic Block
« Reply #15 on: February 21, 2013, 04:06:00 PM »
Can you post the block so I have something to play with
You are welcome. See attachment
Hmm.. can Hatch.EvaluateHatch() help?
Possibly, but it must be done in the definition of the anonymous block referenced by the insertion.  It shouldn't be necessary, but it seems that hatching has some sort of dependence on the drawing editor.
You are right. It's dependent.
Quote from arxdoc from ObjectARX SDK
Quote
After defining the hatch boundary and specifying the hatch pattern and style, the application must elaborate the hatch lines or solid fill for display. The Hatch class implementation maintains the computed hatch lines and solid fill to support WorldDraw() and ViewportDraw() methods for hatch entity display. However, the computed hatch lines and solid fill are not saved with the drawing or DXF files for file size efficiency. Instead, AutoCAD recomputes the hatch lines or solid fill when a DWG or DXF file is opened by AutoCAD.
However I tried and, of course, this didn't help.
Anyway, I need to create Layouts in new files, so I'm creating that files via DocumentManager now.