Document Manager.
More...
void X3g::Plugin::DocumentManager::Audit |
( |
[Out] unsigned int% |
pNumErrors, |
|
|
[Out] unsigned int% |
pNumFixed |
|
) |
| |
Audits/repairs the document.
Returns the number of found and fixed errors.
IList< DbEntity^ > X3g::Plugin::DocumentManager::GetSelection |
( |
) | |
|
Retrieves all currently selected entities.
IList<DbEntity^> ^ X3g::Plugin::DocumentManager::InsertPlanning |
( |
String^ |
pFileName, |
|
|
bool |
pInteractive |
|
) |
| |
Inserts a planning into the current planning.
If 'pInteractive' is true, the user can interactively choose the position of the inserted objects. Otherwise the objects are placed at the document origin. The function returns a list of created modelspace entities if 'pInteractive' is false. Otherwise an empty list is returned. If 'pInteractive' is true you may react on EventType::DocumentEntitiesAdded to retrieve the inserted entities. Note that EventType::DocumentEntitiesAdded is not fired if 'pInteractive' is false.
Supported file formats: dwg, dxf, 3ds, skp, ifc, sat, sab
- See Also
- IAppDialogOverride::GetInsertScale
IList< DbEntity^ > X3g::Plugin::DocumentManager::InsertPlanning |
( |
System::IO::Stream^ |
pStream, |
|
|
String^ |
pFileNameHint, |
|
|
bool |
pInteractive |
|
) |
| |
Inserts the content of a stream into the current planning.
- Parameters
-
pStream | Any type of input stream that contains a single file to import. |
pFileNameHint | If possible, the name of the original file. This is mostly important for the suffix like ".dwg" or ".glb". |
pInteractive | If 'pInteractive' is true you may react on EventType::DocumentEntitiesAdded to retrieve the inserted entities. Note that EventType::DocumentEntitiesAdded is not fired if 'pInteractive' is false. |
- Returns
- Depending on the imported file, the return value might be a List of one or more DbEntity.
Currently supported file streams: DWG, binary glTF v2.0 (glb).
bool X3g::Plugin::DocumentManager::LoadPlanning |
( |
String^ |
pFileName) | |
|
bool X3g::Plugin::DocumentManager::NewPlanning |
( |
) | |
|
Clears the document to start a new planning.
Returns false on fail.
Purges the document.
All unused objects will be removed. Returns the number of purged objects.
Saves given entities as dwg/dxf.
Returns false if saving failed.
If pVersion = Undefined the internal/loaded version of the document is used.
Saves the current planning.
Returns false if saving failed.
The planning will be saved as dxf if the file extension is .dxf, otherwise as dwg. If pCopy is true only a copy of the current document will be saved. If pVersion = Undefined the internal/loaded version of the document is used.
void X3g::Plugin::DocumentManager::SetSelection |
( |
IEnumerable< DbEntity^ >^ |
pSelection) | |
|
AcisQuality X3g::Plugin::DocumentManager::ActiveAcisQuality |
|
get |
The currently active acis quality.
Allows to attach custom data to the document.
Returns dimension style manager.
LengthUnit X3g::Plugin::DocumentManager::DocumentLengthUnit |
|
getset |
The document length unit.
String^ X3g::Plugin::DocumentManager::DocumentName |
|
getset |
The name of the document.
(Usally the path to the file the document was opend from).
Returns material manager.
Block^ X3g::Plugin::DocumentManager::ModelSpace |
|
get |
Returns the modelspace block of current document.
The modelspace block is the block which contains all toplevel 3d space elements.
bool X3g::Plugin::DocumentManager::Modified |
|
get |
True if the document was modified.
bool X3g::Plugin::DocumentManager::ReadOnly |
|
get |
True if the document file was opened in read-only/write-protected mode.
Retrieves the document summary, which holds additional document information.
Occurs when geometry of top level entity has been updated.
This event may also be raised when DbEntity::UpdateGeometry is called.
Occurs when layers have been changed (add/remove/rename/visibility changed).