RealDWG: Layout Creation Problems
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm having some troubles when attempting to programmatically create a layout in a DWG file using RealDWG. I can create a layout using the AcDbLayoutManager, however when I add entities to the associated block table record, save the DWG file, and open it in Map 3D 2015 the "paper" in the layout has shrunk to surround the entities rather than staying the default size.
If I don't add any entities to the block table record, and again save and open the file in Map 3D the "paper" is a larger like I would like.
I wouldn't mind if the "paper" shrank but the main problem is that I can't seem to programmatically change the size of it. I can see in the documentation that I should be able to change the size, origin, and margin properties of the layout by using a AcDbPlotSettingsValidator object but I can never seem to get access to that object.
Everytime I attempt to get the object using the following command:
AcDbPlotSettingsValidator* pPSV = acdbHostApplicationServices()->plotSettingsValidator()
I am returned a null pointer.
Are there any specific merge modules, DLLs, or libs that we need in order to get a valid pointer?
Thank you for any help,
Matthew DeAbreu