CADability dotNET
The Project type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add | ||
AddLayout |
Adds the specified Layout to the project.
| |
AddModel |
Adds the given Model to the project. The attributes of the GeoObjects
in this model are merged into the attribute lists of this project. Fires a
ModelsChangedEvent.
| |
AddProjectedModel | ||
Construct | ||
CreateSimpleProject | ||
DeserializeObject | ||
Export |
Export the project in one of the following formats:
dxf, dwg, iges, step, vrml, stl, sat and xt (sat and xt must be licensed seperately)
| |
Finalize | (Overrides Object..::..Finalize()()()().) | |
FindModel |
Returns the Model with the given name, Returns null if there is no
such model in the project.
| |
GetActiveModel |
Returns the active Model of this project.
| |
GetDefaultLayout |
Gets a default Layout for this project. If there is no layout
in this project a standard Layout is created and adde to the project
| |
GetLayout |
Returns the Layout with the given index.
| |
GetModel |
Returns the Model with the given index.
| |
GetModelCount |
Returns the number of models in this project.
| |
GetNamedValue | ||
GetObjectData |
Implements ISerializable.GetObjectData. Override this method if your object is also serializable.
| |
GetStandardModelView(Model) |
Liefert die Standard Darstellung des gegebenen Modells.
Wenn keine definiert ist, die Draufsicht.
| |
GetStandardModelView(Model, Int32) | ||
ReadFromFile(String) |
Creates a new project reading the data from the file with the given name.
If FileName is null, an OpenFileDialog will be displayed.
| |
ReadFromFile(String, String) | ||
ReadFromFile(String, String, Boolean) | ||
ReadFromStream |
Creates a new project reading the data from the given stream.
| |
ReadFromXML | ||
RemoveLayout |
Removes the given Layout from the project. There must always be at least
one layout, so you cannot remove the last layout.
| |
RemoveModel(Int32) |
Removes the Model with the given index from the project. Fires a
ModelsChangedEvent.
| |
RemoveModel(Model) |
Removes the given Model from the project. Fires a
ModelsChangedEvent.
| |
RemoveModelView(Int32) | ||
RemoveModelView(ModelView) |
Removes the given ModelView from the project. There must always be at least
one modelview, so you cannot remove the last modelview.
| |
RenameLayout |
Renames the
| |
SaveModified |
Überprüft, ob Daten verändert wurden (IsModified) und fordert ggf. den Anwender auf
das Projekt zu speichern.
| |
SerializeObject | ||
SetActiveModel | ||
SetDefaults | ||
SetNamedValue | ||
WriteToFile |
Saves the project in a file with the given FileName.
If FileName is null, a SaveFileDialog is presented. Uses WriteToStream.
| |
WriteToStream |
Writes the project data to the given stream. Resets the IsModified flag
| |
WriteToXML |