Create Blocks from generated views
Hi,
Requirement:
1. To programmatically create 2D blocks of orthographic views of 3D block(s) created in BricsCAD. Blocks are also created programmatically. The 2D blocks should be have hidden lines removed.
2. To create images of 2D views.
Constraints:
1. Must create programmatically, no user intrvention acceptable
2. Should be able to project blocks, not whole model
3. Some blocks are part of a bigger block, need projected views for both separately
What I tried:
1. Use AcDbViewPort: It creates projected views of whole model and cannot convert in to 2D blocks.
2. Use AcGsView: View is created but cannot be converrted into 2D block. I could not get any way to query projected 2D entities. is there any?
3. Try programmatic equivalent of "FLATSHOT" command: Could not find. is there any? Also, could not find dialogless FLATSHOT to use from acedCommand. Is there any equivalent?
4. Try *VIEWEXPORT *on 2D view port in paper space: System can use VIEWEXPORT only for view created by VIEWBASE command, which again projects whole model, not just blocks.
Help needed:
1. Is there any way to extract 2D entities from AcDbViewPort or AcGsView?
2. Is there a way to export programmatically created views into model space?
3. Is there programmatic no interactive equivalent of FLATSHOT command?
I will appreciate any help in this regards.
Thanks in advance.
regards,
Aniruddha RASTE